yellowbean / Hastructure

ABS/MBS cashflow engine written in Haskell, with API to Python and C/Java (on the way)
https://deal-bench.xyz
Other
16 stars 4 forks source link

[Refactor] New Ledger Booking #224

Closed yellowbean closed 4 days ago

yellowbean commented 4 days ago

Current ledger booking is being implement in a

Current type signature:

<Action>,<Account>,<Target>,<Limit>

The issue is, what if , an is using a , then the won't able to book a ledger within this , as the is being used already.

Propose solution

Add new decorate syntax like:

<Book>,<Direction>,[<Ledger>]
    <Action>,<Account>,<Target>,<Limit>

which the action will book transaction amount of

Compatibility

No breaking change