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

[FIX] Fix not enough available amount msg for draft prepaid supplier … #46

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

florian-dacosta
Copy link
Member

…invoice

the draft invoice amount is already substracted from the available amount

…invoice

the draft invoice amount is already substracted from the available amount
On draft invoice, make comparaison consistent, we need to compare what is available with the draft invoice
On confirmed invoices, make a message with consistent amount. we deduce confirmed supplier invoices from available totals to avoid case where we have available amount > invoice but still display a message as there is not enough amount (case where others invoices are validated an have priority)
Also deduce ongoing supplier prepaid invoice from available total on partner/project to show what is actually available once all is paid. Else we could have strange case where total of the project is lower than available
@florian-dacosta florian-dacosta merged commit 054dd58 into 14.0 Apr 26, 2024
3 checks passed
@github-grap-bot github-grap-bot deleted the 14-fix-error-msg branch April 26, 2024 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants