
// _BPInvoice.h
// BISubstrate
// 
// Created by mceogenerator
// DO NOT EDIT.  Make changes to BPInvoice.h instead.
// 
// Copyright (c) 2008 Marketcircle Inc. All rights reserved.

#import <MCFoundation/MCPObject.h>
#import "BIPObject.h"

@class BIPaymentInvoiceEntry;
@class BITimeSlip;
@class BIInvoiceHtml;
@class BIConsolidatedTax;
@class BIClient;
@class BIURLReference;

@interface _BPInvoice : BIPObject
{ 
//    
//    NSNumber *totalCached;
//    NSNumber *invoiceHtmlID;
//    NSNumber *projectID;
//    NSNumber *clientID;
//    NSNumber *userFileID;
//    NSNumber *useTax2;
//    NSNumber *useTax1;
//    NSCalendarDate *taxPointDate;
//    NSString *tax2Name;
//    NSNumber *tax2;
//    NSString *tax1Name;
//    NSNumber *tax1;
//    NSNumber *state;
//    NSCalendarDate *sentDate;
//    NSString *name;
//    NSCalendarDate *modifyDate;
//    NSNumber *markup;
//    NSString *invoiceNumber;
//    NSNumber *invoiceID;
//    NSCalendarDate *invoiceDate;
//    NSCalendarDate *dueDate;
//    NSNumber *discount;
//    NSCalendarDate *createDate;
//    NSNumber *consolidatedTaxID;
//    NSNumber *compoundSecondaryTax;
//    NSString *comment;
//    NSNumber *billingsFileID;
//    
//    BIInvoiceHtml*invoiceHtml;
//    BIClient*client;
//    BIURLReference*userFile;
//    BIConsolidatedTax*consolidatedTax;
//    BIURLReference*billingsFile;
//    
//    NSMutableArray *timeslips;
//    NSMutableArray *paymentEntries;
}




- (void)setTotalCached:(NSNumber *)aValue;
- (NSNumber *)totalCached;

- (void)setInvoiceHtmlID:(NSNumber *)aValue;
- (NSNumber *)invoiceHtmlID;

- (void)setProjectID:(NSNumber *)aValue;
- (NSNumber *)projectID;

- (void)setClientID:(NSNumber *)aValue;
- (NSNumber *)clientID;

- (void)setUserFileID:(NSNumber *)aValue;
- (NSNumber *)userFileID;

- (void)setUseTax2:(NSNumber *)aValue;
- (NSNumber *)useTax2;

- (void)setUseTax1:(NSNumber *)aValue;
- (NSNumber *)useTax1;

- (void)setTaxPointDate:(NSCalendarDate *)aValue;
- (NSCalendarDate *)taxPointDate;

- (void)setTax2Name:(NSString *)aValue;
- (NSString *)tax2Name;

- (void)setTax2:(NSNumber *)aValue;
- (NSNumber *)tax2;

- (void)setTax1Name:(NSString *)aValue;
- (NSString *)tax1Name;

- (void)setTax1:(NSNumber *)aValue;
- (NSNumber *)tax1;

- (void)setState:(NSNumber *)aValue;
- (NSNumber *)state;

- (void)setSentDate:(NSCalendarDate *)aValue;
- (NSCalendarDate *)sentDate;

- (void)setName:(NSString *)aValue;
- (NSString *)name;

- (void)setModifyDate:(NSCalendarDate *)aValue;
- (NSCalendarDate *)modifyDate;

- (void)setMarkup:(NSNumber *)aValue;
- (NSNumber *)markup;

- (void)setInvoiceNumber:(NSString *)aValue;
- (NSString *)invoiceNumber;

- (void)setInvoiceID:(NSNumber *)aValue;
- (NSNumber *)invoiceID;

- (void)setInvoiceDate:(NSCalendarDate *)aValue;
- (NSCalendarDate *)invoiceDate;

- (void)setDueDate:(NSCalendarDate *)aValue;
- (NSCalendarDate *)dueDate;

- (void)setDiscount:(NSNumber *)aValue;
- (NSNumber *)discount;

- (void)setCreateDate:(NSCalendarDate *)aValue;
- (NSCalendarDate *)createDate;

- (void)setConsolidatedTaxID:(NSNumber *)aValue;
- (NSNumber *)consolidatedTaxID;

- (void)setCompoundSecondaryTax:(NSNumber *)aValue;
- (NSNumber *)compoundSecondaryTax;

- (void)setComment:(NSString *)aValue;
- (NSString *)comment;

- (void)setBillingsFileID:(NSNumber *)aValue;
- (NSNumber *)billingsFileID;

- (void)setInvoiceHtml:(BIInvoiceHtml*)aValue;
- (BIInvoiceHtml*)createAndSetInvoiceHtmlIfNeeded;
- (BIInvoiceHtml*)invoiceHtml;

- (void)setClient:(BIClient*)aValue;
- (BIClient*)createAndSetClientIfNeeded;
- (BIClient*)client;

- (void)setUserFile:(BIURLReference*)aValue;
- (BIURLReference*)createAndSetUserFileIfNeeded;
- (BIURLReference*)userFile;

- (void)setConsolidatedTax:(BIConsolidatedTax*)aValue;
- (BIConsolidatedTax*)createAndSetConsolidatedTaxIfNeeded;
- (BIConsolidatedTax*)consolidatedTax;

- (void)setBillingsFile:(BIURLReference*)aValue;
- (BIURLReference*)createAndSetBillingsFileIfNeeded;
- (BIURLReference*)billingsFile;

- (NSMutableArray *)timeslips;
- (BITimeSlip*)createAndAddToTimeslips;
- (void)addToTimeslips:(BITimeSlip*)object;
- (void)removeFromTimeslips:(BITimeSlip*)object;
- (BOOL)hasTimeslipsBeenFaulted;

- (NSMutableArray *)paymentEntries;
- (BIPaymentInvoiceEntry*)createAndAddToPaymentEntries;
- (void)addToPaymentEntries:(BIPaymentInvoiceEntry*)object;
- (void)removeFromPaymentEntries:(BIPaymentInvoiceEntry*)object;
- (BOOL)hasPaymentEntriesBeenFaulted;



@end
