Methods
getMonthlySum(budgetName, type, fileopt) → {number}
Returns the sum of transactions of a given type for a given budget in a specified month.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
budgetName |
string | The budget name. | |
type |
string | The type of the transactions (earning or spending). | |
file |
string |
<optional> |
The name of the file in which we are searching, defaults to the file for the current month. |
- Source:
Returns:
The sum of transactions for the given type and the given budget.
- Type
- number
getRecentTrans(limit, type) → {array}
Returns recent transactions of a given type.
Parameters:
Name | Type | Description |
---|---|---|
limit |
number | The limit of recent transactions to fetch. |
type |
string | The type of transactions to look for (earning or spending). |
- Source:
Returns:
The most recent transactions of a given type.
- Type
- array