Link to: source code | transactions
directory
Copyright Turtle Creek Software 1996-2006. All Rights Reserved.
This class manages other costs for the Goldenseal accounting software,
small business management software, construction
project management software and
construction
accounting software.
class COtherCost : public CMaterialPurchase
{
public:
static CLASS_DESC *sDescriptor;
static DB_PersistentObject *MakeNew() { return TCS_NEW COtherCost; }
COtherCost();
virtual ~COtherCost() {}
virtual void CopyFrom(DB_PersistentObject *source, const UInt8 copyFlags = 0);
virtual NeoSize GetFileLength(const CNeoFormat *aFormat) const;
virtual DBid GetDBClassID(void) const { return id_OtherCost; }
virtual Boolean GetMemberValue(const TagType aTag, const TagType aType,
void *aValue) const;
virtual Boolean SetMemberValue(const TagType aTag, const TagType aType,
const void *aValue);
virtual void ReadObject(CNeoStream *aStream, const TagType aTag);
virtual void WriteObject(CNeoStream *aStream, const TagType aTag);
virtual DBid GetDefaultExpenseAccount() const { return account_OtherExpenses; }
virtual DBid GetPayablesAccount() const { return account_OtherPayable; }
virtual void FillBreakdownsFromVendorStruct(SVendorInfo &vendorInfo,
const UInt8 filterType);
virtual void FillTaxPaymentReport(TTwoLevelArray *breakdownArray,
const SReportInfo &reportInfo);
virtual void FinishBreakdownUpdate(CBreakdownEntry *breakdown, CBreakdownTable *table);
virtual void FillDataReport(CTCS_Table *table, CNeoStream *stream) const;
protected:
TagType mOCEndSafetyTag; // TCS 9/8/02
enum
{
cCopyFileLength = 0,
cFileLength = cCopyFileLength +
sizeof(TagType)
};
}; |