(leas/call function-name options)
Calls the Scheme function with name function-name (a string) with arguments described by the list options entered interactively by the user. options is a list of pairs. Each element of the list has the following structure: the first element gives the “name” of the option (what Leas will prompt for) and the second element gives the “type” of the option: the kind of value it should contain. Both elements should be strings. The following are the current types allowed for options. If you use a type not in this list, whatever the user enters will be passed as-is to the function.
- string
- Pass whatever the user enters to the Scheme function as a string.
- account
- Pass the name of an account to the Scheme function. Prompts the user with a menu of accounts to select from.
- expense_account
- Pass the name of an account to the Scheme function. Prompts the user with a menu of expense accounts to select from.
- income_account
- Pass the name of an account to the Scheme function. Prompts the user with a menu of income accounts to select from.
- asset_account
- Pass the name of an account to the Scheme function. Prompts the user with a menu of asset accounts to select from.
- liability_account
- Pass the name of an account to the Scheme function. Prompts the user with a menu of liability accounts to select from.
- pay_from_account
- Pass the name of an account to the Scheme function. Prompts the user with a menu of liability and asset accounts to select from.
- current_account
- Pass the name of the current account to the Scheme function. Does not prompt the user.
- type
- Prompts the user to select an account type (asset, liability, income, expense). Passes the type as a string.
- transaction
- Prompts the user to select a transaction. Passes a pair of account number and transaction number to label the transaction to the Scheme function.
- day
- Prompts the user to select a day. Passes a three-element list elements — (day month year) — to the function.