Accounting Software
Small Business Software Estimating Software
Inventory SoftwareInventory Tracking SoftwareInventory Control SoftwareInventory Management SoftwareConstruction Management SoftwareProject Management SoftwareBusiness Management Software

Loan Transactions (Header)

Link to: source code | transactions directory

Copyright Turtle Creek Software 1996-2006. All Rights Reserved.

This class manages loan accounting for the Goldenseal accounting software,
small business management software, construction project management software and
construction accounting software.

class CLoanTransaction : public CBankTransaction
{
public:

static CLASS_DESC *sDescriptor;
static DB_PersistentObject *MakeNew() { return TCS_NEW CLoanTransaction; }

CLoanTransaction();
virtual ~CLoanTransaction() {}

virtual void CopyFrom(DB_PersistentObject *source, const UInt8 copyFlags = 0);

virtual NeoSize GetFileLength(const CNeoFormat *aFormat) const
{ return CBankTransaction::GetFileLength(aFormat) + cFileLength; }

virtual DBid GetDBClassID(void) const { return id_LoanTransaction; }

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 UInt8 GetBankAccountClass() const { return id_LoanAccount; }
virtual SInt32 GetCheckbookNumber() { return mCheckbookID; }
virtual void SetCheckbookNumber(const SInt32 inValue) { mCheckbookID = inValue; }

virtual Boolean IsBankCheck() const { return mTransactionType == id_BankCheck; }

virtual void FillDataReport(CTCS_Table *table, CNeoStream *stream) const;

virtual void SetEndSafetyTag() { mEndSafetyTag = tag_endsafetytag; }

protected:
UInt8 mCheckbookID,
mFiller; // TCS 3/27/02

// calculated members
TagType mEndSafetyTag; // TCS 9/8/02

enum
{
cCopyFileLength = 2*sizeof(UInt8),

cFileLength = cCopyFileLength +
sizeof(TagType)
};
};