Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Problem with Supplier Payment Allocation
05-08-2016, 02:29 AM, (This post was last modified: 05-08-2016, 05:19 AM by MacPhotoBiker.)
#1
[SOLVED] Problem with Supplier Payment Allocation
Hi,

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

   

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.

   

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

How could I solve or at least work around that?

Thanks!
MacPhotoBiker
Just Core Business Inc.
[url]http://www.justcorebusiness.com[/url]
Reply
05-08-2016, 02:40 AM,
#2
RE: Problem with Supplier Payment Allocation
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
Reply
05-08-2016, 05:19 AM,
#3
RE: Problem with Supplier Payment Allocation
Wonderful, works like a charm!

Thank you, Tim!

Gert
MacPhotoBiker
Just Core Business Inc.
[url]http://www.justcorebusiness.com[/url]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)