Okay thankyou for your patience, just for the record, on a MacOS 12 machine 
I get the problem e.g., 
2016-08-19 OpeningBalances
  Assets:Cash  £ 3
  Equity:OpeningBalances

2016-09-25 X
  Expenses:Other  £ 2
  Assets:Cash

2016-09-26 X
  Expenses:Other  £ 1
  Assets:Cash   = £ 1  ; On a MacOS 12 machine, ledger is accepting anything
  ; between -0.5 and 1 here!

But on an up to date machine the transaction is rejected.
On Sunday, February 19, 2023 at 2:22:58 AM UTC Martin Michlmayr wrote:

> * 'Dave Webb' via Ledger <[email protected]> [2023-02-18 11:53]:
> > 2016-09-25 X
> > Expenses:Other £ 2
> > Assets:Cash = £ 1
> > 
> > 2016-09-26 X
> > Expenses:Other £ 1
> > Assets:Cash = £ 1 ; I would expect this to fail
>
> If I change the last transaction to:
>
> 2016-09-26 X
> Expenses:Other £ 1
> Assets:Cash = £ 1 ; I would expect this to fail
> x
>
> then I get:
> with 3.2.1:
> Error: Only one posting with null amount allowed per transaction
> with 3.3.0:
> 2016-09-25 X Assets:Cash £ -2
> x £ -1
>
> so it seems the "Assets:Cash" posting is treated as not having an
> amount.
>
> BTW, if I rename "Assets:Cash" to another account it works fine.
>
> So the problem is 2 balance assignments to the same account after
> each other.
>
> There are some open bug reports but I'm not sure this is covered
> already.
> -- 
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/9cf24343-7cd6-453e-9d69-ebcccd8525a5n%40googlegroups.com.

Reply via email to