An update on the failed comaprison to zero. Once the error was pointed out the
'fix' was simple:

change the comparison of '=' to 0.00 to '<'' 0.001. Thus the if clause now
reads:

          (if (< (gnc:account-get-balance-at-date acct date #t) 0.001)

Works as expected now.  If other currencies have more decimal places, just
increase the number of decimal places to one more than the currency used and
the test should work as desired.

--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]


Reply via email to