webERP Forum
[SOLVED] Problem with Supplier Payment Allocation - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1)
+--- Forum: Problems / Bugs? (http://www.weberp.org/forum/forumdisplay.php?fid=8)
+--- Thread: [SOLVED] Problem with Supplier Payment Allocation (/showthread.php?tid=2748)



[SOLVED] Problem with Supplier Payment Allocation - MacPhotoBiker - 05-08-2016

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!


RE: Problem with Supplier Payment Allocation - TimSchofield - 05-08-2016

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


RE: Problem with Supplier Payment Allocation - MacPhotoBiker - 05-08-2016

Wonderful, works like a charm!

Thank you, Tim!

Gert