Class: RecurrTrans

RecurrTrans(storage)

Handles recurring transactions.

Constructor

new RecurrTrans(storage)

Parameters:
Name Type Description
storage Storage Storage object.
Source:

Methods

addRecurringTransaction(transObj)

Creates a new recurring transaction.
Parameters:
Name Type Description
transObj object The transaction object to add.
Source:

deleteRecurringTransaction(startDate)

Deletes a recurring transaction.
Parameters:
Name Type Description
startDate number The startDate property of the transaction which should be deleted. Since this property is unique, it acts as an identifier.
Source:

editRecurringTransaction(startDate, newProps)

Edits a recurring transaction.
Parameters:
Name Type Description
startDate number The startDate property of the transaction which should be edited. Since this property is unique, it acts as an identifier.
newProps object An object containing all properties which should be updated, with the new values for each property.
Source:

execRecurrTransact()

Executes all due recurring transactions.
Source:

transToObj(trans) → {object}

Transform a transaction object into a data object.
Parameters:
Name Type Description
trans object The transaction object.
Source:
Returns:
The data object.
Type
object