Create Transactions Model
Transaction
s should have a credit Account
, debit Account
, and amount. Transaction
s should also be Taggable
.
When created, a Transaction
should update the appropriate Account
balances, adding to the credit and subtracting from the debit. Checking up the hierarchy of accounts to make sure that any parent account balances get updated needs to happen as well.
Edited by Brad Thompson