Next: Functions to add/edit/delete/get accounts, Previous: Make Scheme functions interactive, Up: Programming Leas [Contents]
Adds a transaction to the account with name account-name with the transaction amount being amount, description desc, and day given as day (a list with three elements, in this order: day, month, year). This is a primitive function that does not add a counterbalancing transaction in any other account. Just adds or subtracts the amount from a certain account. It doesn’t take the money from anywhere.
Returns the most recent number transactions from account-name. A transaction in Scheme is a five element list with elements in this order: (description amount year month day).
Returns all transactions from the account with name account-name.
Returns all transactions from the account with name account-name where the transaction’s description matches the regular expression regex.
Return the transaction from the account numbered account-number with the transaction numbered transaction-number.
Return the transactions from account account-name that occurred between first-day and last-day.
Create a transfer from one account to another by creating offsetting transactions in both accounts.
Delete a transaction that went from from-account to to-location (a pair giving account number and transaction number).
Create a loan payment transaction with takes money from from-account and pays interest to interest-account and principal to loan-account. The description and day of the transaction are given by the other two arguments.
Updates the stock price to stock-price of a stock account taking the money from from-account (usually an income account called something like “Stock Income”). The stock account is assumed to hold number shares. The day is the day of the transaction.
Edits the transaction at transaction-location (a pair of account number and transaction number) to have day, amount, and desc set to the given values.
Prints out a list of transactions in a pretty way (well, at least, in a standard way).
Next: Functions to add/edit/delete/get accounts, Previous: Make Scheme functions interactive, Up: Programming Leas [Contents]