0

I would like to add comments based on original transactions, is it possible?

For example, I would like to do something like that:

= expr "account =~ /^Income/ and not commodity"                                                                                                                                                               
    (Budget:Income)                               -1  ; comment()

then when I get income like that

2025-04-01 * Salary
    Income:bank:mybank      1234  ; bonus for extra working hours
    Income:bank:mybank     12345  ; monthly salary

it becomes

2025-04-01 * Salary
    Income:bank:mybank      1234  ; bonus for extra working hours
    (Budget:Income)        -1234  ; bonus for extra working hours
    Income:bank:mybank     12345  ; monthly salary
    (Budget:Income)       -12345  ; monthly salary

1 Answers1

-1

I've got a solution

= expr "account =~ /^Income/ and not commodity"                                                                                                                                                               
    (Budget:Income)                               -1
    ; %(note)