Post Reply 
 
Thread Rating:
  • 1 Votes - 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.)
Post: #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]
Find all posts by this user
Quote this message in a reply
05-08-2016, 02:40 AM
Post: #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
Visit this user's website Find all posts by this user
Quote this message in a reply
05-08-2016, 05:19 AM
Post: #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]
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)