|
From: Dieter S. <dsi...@sq...> - 2001-09-10 16:18:12
|
This error is caused by how numbers are processed by your computer.
Somewhere along the line your machine thinks that the result of adding
11.86 and 1.19 is 13.050000000001 and not 13.05 IMHO this should not
happen but apparently it does.
The workaround. In GL.pm add the following before line 77
$debit = sprintf("%.2f", $debit);
$credit = sprintf("%.2f", $credit);
Dieter Simader http://www.sql-ledger.org (780) 472-8161
DWS Systems Inc. Accounting Software Fax: 478-5281
=========== On a clear disk you can seek forever ===========
On Mon, 10 Sep 2001, adrian wrote:
> I attampting to post some GL transaction I sometimes get the following
> error:
>
> Error!
> Debit and credit out of balance!
>
> I have attached the screen dumps.
>
> More detail:
> A GL transaction for petty cash, so Petty Cash credit $13.05
> Sundry exp $11.86
> GST $1.19
> Update form
> Post Transaction .....
>
> Error
>
> The crazy thing is that sometimes it works. I had one transaction that
> I tried several times, several days later I tried again and it worked.
> I just tried re-logging in, but no success
>
> Any thoughts as to why?
>
> Adrian
>
|