From: Rafael C. <raf...@gm...> - 2014-02-28 21:58:18
|
Hi, We are using "Enter Counter Sales" with an item 11 times, with price in USD (Default Price List is in USD). It is banked to a bank-account in USD, but Home Currency is in CRC. When the cashier enters the Amount Paid (exactly teh total). he gets the advise "The amount entered as payment does not equal the amount of the invoice. Please ensure the customer has paid the correct amount and re-enter". I think the problem is in: (abs(filter_number_format($_POST['AmountPaid']) -(round($_SESSION['Items'.$identifier]->total+filter_number_format($_POST['TaxTotal']),$_SESSION['Items'.$identifier]->CurrDecimalPlaces)))>=0.01) probably in the way the number format is handled. Someone has had a similar problem? Why we use "xxx->yyy" instead of "$zzz" ? Regards, Rafael. |