NAME
Transaction class
CHILDREN
Anvil/TrBasic
USAGE
Base Transaction Class This class is used as a base for the 2 transaction types: basic and investment.
AUTHOR
Joseph M. Robertson, jmr, jmrobert5@mchsi.com
COPYRIGHT
(c) 2001 by Joseph M. Robertson
CREATION DATE
3/18/01
HISTORY
6/13/01 changed to be a base class, no longer directly instantiated in accounts or qif4.
NAME
ID - unique number for this transaction.
SYNOPSIS
long Transaction::ID() void Transaction::ID(long value)
PURPOSE
Use to get/set the number of the transaction.
NAME
Date - the date of the transaction, a string value.
SYNOPSIS
string Transaction::Date() void Transaction::Date(string value)
PURPOSE
Use to get/set the date of the transaction.
NAME
Status
SYNOPSIS
string Transaction::Status() void Transaction::Status(string value)
PURPOSE
Use to get/set the status of the transaction.
NAME
Clear
SYNOPSIS
void Transaction::Clear
PURPOSE
Convenience methid to set the status flag to 'x'.
NAME
Payee
SYNOPSIS
string Transaction::Payee() void Transaction::Payee(string value)
PURPOSE
Use to get/set the payee member of the transaction.
NAME
Memo
SYNOPSIS
string Transaction::Memo
PURPOSE
Use to get/set the memo member of the transaction.
NAME
SYNOPSIS
istring Transaction::Print()
PURPOSE
Use to get a formatted string of the transaction. This is a verbose version.
NAME
Print_Rec
SYNOPSIS
string Transaction::Print_Rec()
PURPOSE
Use to print out a string format of the transaction data. This is a short format, pipe delimited string.
NAME
Field
SYNOPSIS
string Transaction::Field(int index)
PURPOSE
Use to get a piece of member data from a transaction. 0 = id 6 = memo 1 = date 7 = address (could contain linefeeds) 2 = number 8 = category 3 = status 9 = split (pipe delimited string) 4 = amount amount|memo|category... 5 = payee 10 = balance