In order to cancel an invoice we need to be able to Void the associated transactions. ie. payments, credits, pending payments. Meaning we might need a status of "Void" which basically tells the system to ignore these transactions. They will no longer count towards budgets and budget totals need to be updated. However, they will still appear in the transaction list so it is clear that they were voided.
- Update amounts in budgets : "expenditures", "awaitingPayment"
- Update calculation of amount totals