Re: [Entries that are expressions]
>>> "MM" == Martin Michlmayr >>> writes: > * John Wiegley [2021-12-30 23:25]: UB> Does not work! >> >> I'm not entirely sure why, but Ledger doesn't like the absence of spaces >> around the '-' sign. This does work: >> >> ((110 - 60)*0.5) > This got fixed recently > https://github.com/ledger/ledger/issues/2001 Thanks for pointing it out. -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/87mtkgj4by.fsf%40mat.ucm.es. smime.p7s Description: S/MIME cryptographic signature
Re: [Entries that are expressions]
* John Wiegley [2021-12-30 23:25]: > UB> Does not work! > > I'm not entirely sure why, but Ledger doesn't like the absence of spaces > around the '-' sign. This does work: > > ((110 - 60)*0.5) This got fixed recently https://github.com/ledger/ledger/issues/2001 -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/Yc78QD/slEqmxEfU%40jirafa.cyrius.com.
Re: [Entries that are expressions]
>>> "JW" == John Wiegley writes: >> "UB" == Uwe Brauer writes: UB> 2010/07/23 User2:User1-Compensation UB> expenses:User2:User1-Compensation ((110-60)*0.5) UB> expenses:User1:User1-Compensation UB> Does not work! > I'm not entirely sure why, but Ledger doesn't like the absence of spaces > around the '-' sign. This does work: > ((110 - 60)*0.5) Confirmed. This 2010/07/23 User2:User1-Compensation expenses:User2:User1-Compensation ((110 - 60)*0.5) expenses:User1:User1-Compensation Indeed does work, thanks. > Btw, you see what Ledger is thinking using: > ledger expr "((110-60)*0.5)" > This seems like a parsing bug to me. ok > John -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/87zgohjk04.fsf%40mat.ucm.es. smime.p7s Description: S/MIME cryptographic signature
Re: [Entries that are expressions]
> "UB" == Uwe Brauer writes: UB> 2010/07/23 User2:User1-Compensation UB> expenses:User2:User1-Compensation ((110-60)*0.5) UB> expenses:User1:User1-Compensation UB> Does not work! I'm not entirely sure why, but Ledger doesn't like the absence of spaces around the '-' sign. This does work: ((110 - 60)*0.5) Btw, you see what Ledger is thinking using: ledger expr "((110-60)*0.5)" This seems like a parsing bug to me. John -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/m2wnjlqlq1.fsf%40newartisans.com. signature.asc Description: PGP signature
Re: [Entries that are expressions]
>>> "YK" == Yuri Khan >>> writes: > On Thu, 30 Dec 2021 at 14:20, Uwe Brauer > wrote: >> expenses:User2:User1-Compensation ((110/2)-(60/2)) >> >> Works >> But >> >> expenses:User2:User1-Compensation ((110-60)*0.5)) >> >> Does not, a bit strange > You should probably balance the parentheses :) Good point, but even 2010/07/23 User2:User1-Compensation expenses:User2:User1-Compensation ((110-60)*0.5) expenses:User1:User1-Compensation Does not work! -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/878rw2c8h2.fsf%40mat.ucm.es. smime.p7s Description: S/MIME cryptographic signature
Re: [Entries that are expressions]
On Thu, 30 Dec 2021 at 14:20, Uwe Brauer wrote: > expenses:User2:User1-Compensation ((110/2)-(60/2)) > > Works > But > > expenses:User2:User1-Compensation ((110-60)*0.5)) > > Does not, a bit strange You should probably balance the parentheses :) -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/CAP_d_8XsVwQhZC54UzXDi2S2DOcebgH47DWGN70bW3C6-%2B5-Og%40mail.gmail.com.
Re: [Entries that are expressions]
>>> "MM" == Martin Michlmayr >>> writes: Thanks > * Uwe Brauer [2021-12-29 19:58]: >> expenses:User2:User1-Compensation 25.00/2 >> >> The entry 25.00/2 is not interpreted. > You have to this use syntax: > 2010/07/23 User2:User1-Compensation > expenses:User2:User1-Compensation (25.00/2) > expenses:User1:User1-Compensation Well 25 is already the result it should have been 50/2 I also found out that 2010/07/23 User2:User1-Compensation expenses:User2:User1-Compensation ((110/2)-(60/2)) expenses:User1:User1-Compensation Works But 2010/07/23 User2:User1-Compensation expenses:User2:User1-Compensation ((110-60)*0.5)) expenses:User1:User1-Compensation Does not, a bit strange -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/87ilv6eeys.fsf%40mat.ucm.es. smime.p7s Description: S/MIME cryptographic signature
Re: [Entries that are expressions] (was: The fair Christmas problem: splitting expenses automatically)
* Uwe Brauer [2021-12-29 19:58]: > expenses:User2:User1-Compensation 25.00/2 > > The entry 25.00/2 is not interpreted. You have to this use syntax: 2010/07/23 User2:User1-Compensation expenses:User2:User1-Compensation (25.00/2) expenses:User1:User1-Compensation -- Martin Michlmayr https://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/YcznwfdoWXlCaluB%40jirafa.cyrius.com.
[Entries that are expressions] (was: The fair Christmas problem: splitting expenses automatically)
>>> "UB" == Uwe Brauer writes: I realized that in gnucash I can have entries that are simple operations, like 100/5 or something like this. That seems not to work in ledger please see the last entry #+name: compensated #+begin_src ledger 2010/01/01 * Starting balance assets:bank:savings 0 income:starting balances 2021/12/01 User1:Jacket expenses:User1:Jacket 80 income:User1:creditcard1 2010/07/24 User1:Pajama expenses:User1:Pajama 30 income:User1:creditcard1 2010/07/23 User2:Flowers expenses:User2:Flowers 20 income:User2:creditcard2 2010/07/23 User2:ChristmasTree expenses:User2:ChristmasTree 40.00 income:User2:creditcard2 2010/07/23 User2:User1-Compensation expenses:User2:User1-Compensation 25.00/2 expenses:User1:User1-Compensation #+end_src The entry 25.00/2 is not interpreted. Anyway to achieve that? -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/87o84zdyqw.fsf%40mat.ucm.es. smime.p7s Description: S/MIME cryptographic signature