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 (pos closing entry): validation for 100 pc discount on pos invoice (backport #44899) #44930

Merged

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Dec 27, 2024

The following error occurs when a POS closing entry is submitted with a POS invoice with a 100% discount.

image

The above message is generated every time a POS Closing Entry is created. It validates that each Linked Sales Invoice generated through the POS has at least one associated SalesInvoicePayment. However, for invoices that have a 100% discount, no payment is required and thus, no SalesInvoicePayment document is appended to the Invoice.

@nabinhait suggested that validation should only take place for invoices having a positive Grand Total to fix this issue.


This is an automatic backport of pull request #44899 done by Mergify.

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Dec 27, 2024
@diptanilsaha diptanilsaha merged commit 40f46b7 into version-15-hotfix Dec 30, 2024
10 of 12 checks passed
@diptanilsaha diptanilsaha deleted the mergify/bp/version-15-hotfix/pr-44899 branch December 30, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant