10-28-2021, 10:53 AM,
(This post was last modified: 10-28-2021, 11:07 AM by srdjanm.)
|
|
srdjanm
Member
|
Posts: 42
Threads: 22
Joined: Feb 2012
|
|
Negative Payment to supplier
I'm using version 4.15.1
Problem statement:
Supplier currency is USD, non functional currency. Functional currency is CAD.
Payment from USD bank account
When negative number is entered and accept is pressed it draws a red box around the amount, transaction is not processed.
I also tested negative payment from functional currency bank account CAD to USD supplier and it is the same issue when negative value is entered, the red box.
Thank you
Srdjan
|
|
10-29-2021, 12:30 AM,
|
|
srdjanm
Member
|
Posts: 42
Threads: 22
Joined: Feb 2012
|
|
RE: Negative Payment to supplier
Thank you Tim!
I just tested this change and it did not work in my case. I think because the "Total input Amount" is 0, no allocation against invoices.
I tweaked your change from:
&& (parseFloat(document.getElementById(b).value) > 0)){
to
&& (parseFloat(document.getElementById(b).value) >= 0)){
and this worked. Not sure if this is correct?
Thank you
Srdjan
|
|
10-29-2021, 11:43 PM,
|
|
srdjanm
Member
|
Posts: 42
Threads: 22
Joined: Feb 2012
|
|
RE: Negative Payment to supplier
(10-29-2021, 01:13 AM)TimSchofield Wrote: Thanks Paul and Srdjan Hi,
I did some more testing on Firefox and Chrome.
Changing this function has implications on other functions where it is not used. It brakes compatibility.
1. Date entry: the calendar is gone, can not choose date.
2. Enter Supplier invoice screen: Try to change Tax from "Automatic" to "Manual", you can't enter new tax value, screen does not change.
This need deeper look. So, I put back the original code.
Thank you
Srdjan
|
|
10-30-2021, 05:49 AM,
|
|
srdjanm
Member
|
Posts: 42
Threads: 22
Joined: Feb 2012
|
|
RE: Negative Payment to supplier
(10-30-2021, 12:05 AM)TimSchofield Wrote: The payVerify() function is only called from one place and that is in Payments.php. I'm unsure how changing it can be causing the issues you say. The date picker and the Supplier Invoice script are working fine on my local system with that change.
It seems like JavaScript is not working at all on your system. On firefox try CTRL-SHIFT-I and look under the console tab when you try to do something like clicking on a date field and see what it says.
Tim I was missing a bracket in the function...It is working now.
Thank you
Srdjan
|
|
|