Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG : Error when validating supplier payment #21772

Closed
ksar-ksar opened this issue Aug 17, 2022 · 0 comments
Closed

BUG : Error when validating supplier payment #21772

ksar-ksar opened this issue Aug 17, 2022 · 0 comments
Labels
Bug This is a bug (something does not work as expected)

Comments

@ksar-ksar
Copy link
Contributor

ksar-ksar commented Aug 17, 2022

Bug

From : https://www.dolibarr.org/forum/t/error-when-validating-payment/22651

When I go to pay a supplier invoice and insert the value I was billed by the supplier in the ‘Payment amount, original currency’ form text field the value is checked against the equivalent value in euros and throws an error stating:

Attention, the payment amount of one or more bills is higher then the outstanding amount to pay.
Edit your entry, otherwise confirm and consider creating a credit note for the excess received for each overpaid invoice.

For example I have an invoice of let’s say 1000 dollars to pay. The equivalent in Euros is 938.
When I input the value 1000 in the original currency place the error is triggered.

When I input 938 in the same field the error is not triggered.

Environment Version

15.0.1

Attached files

htdocs\fourn\facture\paiement.php

on line 186 where it says

$multicurrency_amountsresttopay[$cursorfacid] = price2num($tmpinvoice->total_ttc - $tmpinvoice->getSommePaiement(1));

it should be

$multicurrency_amountsresttopay[$cursorfacid] = price2num($tmpinvoice->multicurrency_total_ttc - $tmpinvoice->getSommePaiement(1));

@ksar-ksar ksar-ksar added the Bug This is a bug (something does not work as expected) label Aug 17, 2022
ksar-ksar added a commit to ksar-ksar/dolibarr that referenced this issue Aug 17, 2022
@ksar-ksar ksar-ksar mentioned this issue Aug 17, 2022
eldy added a commit that referenced this issue Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

1 participant