blob: 534231ba2da21c53a900a929e5315418a8f9e4a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
!python
def foo(d, val, x):
return d.xact.amount + val
!end
--amount-expr 'foo'({$100}, 20)
2004/05/01 Checking balance
Assets:Checking $500.00
Equity:Opening Balances
2004/05/29 Book Store
Expenses:Books $20.00
Assets:Checking
2004/05/29 Restaurant
Expenses:Food $50.00
Liabilities:MasterCard
|