Re: Debugging assertion failures / printing the value of a value expression

2017-10-21 Thread John Lee
Thanks Simon

I was referring to the combination of requirements below, which seems to
not quite fit ledger.  I don't mind so much how I achieve these with
particular features:

* Keep track of account balances (specifically bank balance)
intermittently without recording all transactions (either with balance
assignments or ordinary adjustment transactions that just add or
subtract an amount to reconcile with what the bank says is the current
balance)
* Periodically assert total account balance
* Track money set aside money from that account as e.g. savings

On Sat, 21 Oct 2017, at 18:05, Simon Michael wrote:
> On 10/20/17 1:46 PM, John Lee wrote:
> > I guess I should either dust off my very dusty C++ and try to fix it, or
> > try one of the ledger spinoffs like beancount... maybe there are
> > beancount / hledger people here who can comment re whether those systems
> > have ways to tackle the problem from the thread linked above?
> 
> Hi John,
> 
> I think you're referring to the fact that Ledger's balance assertions 
> check the exclusive balance only ? (excluding any subaccount balances).
> 
> hledger's balance assertions do the same, for compatibility. Sometimes 
> you want that (though I forget why ?). Sometimes it is a pain. We have 
> talked about adding new balance assertion syntax to check inclusive 
> balances. https://github.com/simonmichael/hledger/issues/290
> 
> There's also the issue of whether to check just the commodity of the 
> asserted amount, or the whole multicommodity balance of the asserted 
> account. Ledger and hledger currently do the former. 
> https://github.com/simonmichael/hledger/issues/195
> 
> 
> 
> -- 
> 
> --- 
> 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.
> For more options, visit https://groups.google.com/d/optout.

-- 

--- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Debugging assertion failures / printing the value of a value expression

2017-10-21 Thread Simon Michael

On 10/20/17 1:46 PM, John Lee wrote:

I guess I should either dust off my very dusty C++ and try to fix it, or
try one of the ledger spinoffs like beancount... maybe there are
beancount / hledger people here who can comment re whether those systems
have ways to tackle the problem from the thread linked above?


Hi John,

I think you're referring to the fact that Ledger's balance assertions 
check the exclusive balance only ? (excluding any subaccount balances).


hledger's balance assertions do the same, for compatibility. Sometimes 
you want that (though I forget why ?). Sometimes it is a pain. We have 
talked about adding new balance assertion syntax to check inclusive 
balances. https://github.com/simonmichael/hledger/issues/290


There's also the issue of whether to check just the commodity of the 
asserted amount, or the whole multicommodity balance of the asserted 
account. Ledger and hledger currently do the former. 
https://github.com/simonmichael/hledger/issues/195




--

--- 
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.
For more options, visit https://groups.google.com/d/optout.