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: validate return invoice qty #46038

Closed
wants to merge 2 commits into from

Conversation

Bhavan23
Copy link
Contributor

@Bhavan23 Bhavan23 commented Feb 20, 2025

  1. A validation check to prevent the return invoice item quantity from exceeding the corresponding voucher item quantity.
  2. A restriction to disallow zero-quantity returns when the invoice item is already fully returned.

Ref: 31768

Before:

before.webm

After:

after.webm

Backport Needed: v15

@Bhavan23 Bhavan23 changed the title Validate return invoice qty fix: validate return invoice qty Feb 21, 2025
@Bhavan23 Bhavan23 marked this pull request as ready for review February 27, 2025 12:07
return

validate_returned_items(doc)


def validate_returned_invoice_items_qty(doc):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already a function named validate_quantity for validating returned qty. Please debug that function and make the fix.

@Bhavan23
Copy link
Contributor Author

Closing this PR and opening a new one: PR #46451

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