Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[trep-engine.scm] upgrade engine to improve calculated-cells handling
calculated-cells was formerly a vector of RHS info - heading, calculator-fn, subtotal? etc. This upgrades it so that calculator-fn now accepts two arguments - split and transaction-row? which is a bool. It uses a basic record with version and list-of-cells, and each cell is a record (instead of a vector) with relevant members. This also enables the engine to handle previous calculated-cells -- note the income-gst-statement.scm will offer the previous one and will be transparently upgraded to the above -- see the function upgrade-to-calculated-cells-v2
- Loading branch information
1 parent
49e34b5
commit 93dd19e
Showing
1 changed file
with
146 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93dd19e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot to change the commit message after fixup...
calculated-cells was formerly a vector of RHS info - heading, calculator-fn, subtotal? etc.
This upgrades it so that calculator-fn now accepts two arguments - split and transaction-row? which is a bool.
Each cell is an association list, whose car is the field name and cdr is the relevant member.
This also enables the engine to handle previous calculated-cells -- note the income-gst-statement.scm will offer the list of vectors and will be transparently upgraded to the assoc-list -- see the function upgrade-to-calculated-cells-v2