|
|
|
|
|
by oftenwrong
2898 days ago
|
|
I don't think I understand this. Isn't the double-entry more of an implementation detail? Instead of... entries: [
Entry(side: .debit, account: cash, amount: Decimal(42)),
Entry(side: .credit, account: revenue, amount: Decimal(42))
],
...you could have: debitAccount: cash,
creditAccount: revenue,
amount: Decimal(42)
In other words, why does the client need to care about multiple entries in the call. I just want to record that X amount was sent from account Y to account Z. You can atomically record that as two entries in the back-end. |
|