I'm using Ledger 3.1.3-20190331 and your example works.

There were some changes to balance assertions that make them work better in 
subsequent versions.  It would likely be worth your time to use a more 
recent version: when I went from 3.1.2 to 3.1.3, my older tx records' BAs 
began to fail. I could trust that they _were_ working, so I could remove 
them or use the flag that turns them off (--permissive, iirc) when 
interacting with those records' files. I upgraded at a year boundary and 
simply sealed off my old records with an opening balances transaction.

On Thursday, August 1, 2019 at 6:10:59 AM UTC-4, Paulo Phagula wrote:
>
> Hi,
>
> I'm using Ledger 3.1.2-20160801 in Ubuntu 18.04. Its on the screenshot.
>
> Cheers
>
> On Wednesday, July 31, 2019 at 8:43:08 PM UTC+2, Robin Johnson wrote:
>>
>> On Fri, Jul 26, 2019 at 10:21:04AM -0700, Paulo Phagula wrote: 
>> > While parsing file "/home/phagulap/Dropbox/financials/minimal.ledger", 
>> line 
>> > 9: While parsing posting: Assets:Banks:MPESA850 MT-1500.00 = MT4225.00 
>> > ^^^^^^^^^ Error: Balance assertion off by MT-10.00 (expected to see 
>> > MT4235.00) [1] 23522 exit 1 ledger -f minimal.ledger 
>> > 
>> > Does this mean I have to post the fees independently for ledger to 
>> > understand? 
>> Exactly what version of Ledger are you using? Your reduced example works 
>> fine on Ledger 3.1.2. 
>>
>> $ ledger -f minimal.ledger bal 
>>            MT4225.00  Assets:Banks:MPESA850 
>>           MT-5735.00  Equity:Opening Balances 
>>            MT1510.00  Expenses 
>>              MT10.00    Banks:Fees 
>>            MT1500.00    Food:Bananas 
>> -------------------- 
>>                    0 
>>
>> -- 
>> Robin Hugh Johnson 
>> Gentoo Linux: Dev, Infra Lead, Foundation Treasurer 
>> E-Mail   : [email protected] 
>> GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85 
>> GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136 
>>
>

-- 

--- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/37af315d-4100-4dab-8102-e70124b8c499%40googlegroups.com.

Reply via email to