Re: Balance comparing date with date/time
> "PFS" == Paulo Flabiano Smorigo writes: PFS> If I pass a date in --display to register command, like below, it works PFS> fine. $ ledger reg -d "d>=[2023-04-01] and d<[2023-05-01] PFS> If I use the same argument with the balance command, it fails: PFS> $ ledger bal -d "d>=[2023-04-01] and d<[2023-05-01]" PFS> While evaluating value expression: PFS> ((d >= [2023-04-01]) & (d < [2023-05-01])) PFS>^^^ PFS> While comparing if 2023/04/11 20:34:59 is less than 2023-04-01: PFS> Is this expected or is it a bug? This sounds like a 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/m23555yaed.fsf%40newartisans.com.
Balance comparing date with date/time
If I pass a date in --display to register command, like below, it works fine. $ ledger reg -d "d>=[2023-04-01] and d<[2023-05-01] If I use the same argument with the balance command, it fails: $ ledger bal -d "d>=[2023-04-01] and d<[2023-05-01]" While evaluating value expression: ((d >= [2023-04-01]) & (d < [2023-05-01])) ^^^ While comparing if 2023/04/11 20:34:59 is less than 2023-04-01: Is this expected or is it a bug? -- P. F. Smorigo -- --- 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/CABaM_XsOkojr_aRucgmz5ZMtT%2ByCi_gTcdAC682h%3DZ3XiDcAEQ%40mail.gmail.com.
[ANNOUNCE] ledger API documentation available online
Hello all, ledger's API documentation is now available at: https://ledger-cli.org/doc/api/ The API documentation is generated from ledger's source code using doxygen. It features a custom navigation header you all know and love from ledger-cli.org, support for dark mode, SVG based dependency graphs, and more. The API documentation is updated as needed, at the very least with every ledger release. Note that improving the documentation is an ongoing effort, if you have experience with technical documentation or doxygen or C++ or all of the aforementioned you are welcome to contribute. As stated on the API documentation main page: "In case you find [the API] documentation incorrect, incomplete, unclear, or lacking please open a pull request [https://git.ledger-cli.org/ledger/pulls].; Enjoy Alexis -- --- 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/20230411195709.6d7h5xcry7fbgm72%40kei.local.
Re: Unable to import CSV
I found the reason. I was following the last version of the manual, which has "credit" and "debit" fields in CVS parser. But I am using ledger-3.1.3, which had "amount" field only. I see src/cvs.h changed in newer versions. My problem is fixed. Hopefully this helps someone else with the same problem :) BR Carlos El lun, 10 abr 2023 a las 13:28, Carlos Sánchez de La Lama () escribió: > > Hi all, > > I am trying to follow the steps in the manual > (https://ledger-cli.org/doc/ledger3.html#The-convert-command) to > import CSV data into my journal. But I am getting different errors. > > I have reduced my test case to a simple almost empty journal: > > 2022/12/01 * Opening Balance > Assets:MyBank3117.82 > Equity:Opening Balances > > And a simple CSV taken from the examples in the manual: > > ,date,payee,note,debit,credit,balance,code, > 767406,12/13/2022,"Deposit","CASH DEPOSIT",,45.00,1646.89,, > 767718,12/13/2022,"Withdrawal","ACE HARDWARE 16335 S HOUGHTON > RD",8.80,,1640.04,, > > But I am getting an error: > LANG=C ~/src/ledger/ledger convert test.csv --input-date-format > "%m/%d/%Y" --invert --account Assets:MyBank --rich-data --file > test.dat --now=2023/01/13 > > While parsing file "test.csv", line 1: > While parsing CSV line: > 767406,12/13/2022,"Deposit","CASH DEPOSIT",,45.00,1646.89,, > > Error: Cannot negate an uninitialized amount > Without the --invert flag, the error changes: > > Error: Only one posting with null amount allowed per transaction > > What am I doing wrong? > > Thanks, > > Carlos -- --- 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/CA%2BKcR8Bkaap0qApqAi%3DGRQ9z5HDdi1%3D7JoaYiTG5oRnPVSOETQ%40mail.gmail.com.