In article <[email protected]>,
 Bryan Becker <[email protected]> 
 wrote:

> The exact error is:
> 
> 
> While evaluating value expression:
>   justify(scrub((get_at(display_total, 1) + get_at(display_total, 0))), 12, 
> ((((12 + 1) + 12) + 1) + 12), true, color)
> While adding  to -200.00 RMB:
> While calling function 'scrub <#EXPR (get_at(display_total, {1}) + 
> get_at(display_total, {0}))>':
> While calling function 'justify (<#EXPR scrub((get_at(display_total, {1}) + 
> get_at(display_total, {0})))>, <#EXPR {12}>, <#EXPR (((({12} + {1}) + {12}) 
> + {1}) + {12})>, 1, 1)':
> Error: Cannot add an uninitialized value to an amount
> 5,452.12 RMB -5,006.00 RMB 10,458.12 RMB -109%  Assets
> 3,000.00 RMB 5,006.00 RMB -2,006.00 RMB   60%  Expenses
> 
> (I removed the bits to BTC conversion per my previous post, until I find a 
> solution, so my accounts/transactions are all only RMB or BTC),
> 
> When I run with '-X RMB budget', I get the above error and output
> 
> My budget file is just a list of monthly expenses (no yearly).  The last 
> item in the list is 200RMB, which matches with the above error... no where 
> else in any file has 200RMB, the error definitely comes from there.

In my ledger2html script:

    https://github.com/lifepillar/ledger2html

I have made some adjustments to the budget report's format, because in 
some cases I was getting errors similar to yours. Not sure if those 
would help in your case, but you may give it a try (use -X). If it 
works, you may take a look at the source code for the details about the 
format.

If you're on a Mac and use TextMate, there is a Ledger bundle 
(https://github.com/lifepillar/Ledger.tmbundle) that uses the same 
format.

Enjoy,
Life

-- 

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

Reply via email to