webERP Forum

Full Version: [SOLVED] Problem with Supplier Payment Allocation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm facing an issue when I trying to allocate a supplier payment to the corresponding invoices, here's a screenshot:

[attachment=431]

The amount I try to allocate is 6,960.07 (full payment), but webERP keeps telling me that the total amount I'm trying to allocate is 6,960.08, while the actual payment was one cent less.

[attachment=432]

I'm sure the problem is because of rounding differences.

How could I solve or at least work around that?

Thanks!
Hi,

Try changing line 85 (approx) of SupplierAllocations.php from

$TotalAllocated += $_POST['Amt' . $AllocCounter];

to

$TotalAllocated += round($_POST['Amt' . $AllocCounter],$_SESSION['Alloc']->CurrDecimalPlaces);

and see if that works.

Tim
Wonderful, works like a charm!

Thank you, Tim!

Gert
Reference URL's