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

Can't Purchase Return when One of Batch is Not Available or Not Completed #41080

Closed
xhijack opened this issue Apr 18, 2024 · 2 comments
Closed
Labels

Comments

@xhijack
Copy link

xhijack commented Apr 18, 2024

Information about bug

I have a Purchase Receipt with batch items. For example, I have one item with 10 batches. When one of the batches is empty or sold out, I couldn't create a purchase return. I believe a purchase return should be possible as long as the purchase return has not been submitted.

Screenshot 2024-04-18 at 11 32 42 create purchase return in purchase receipt FYI: I have enable "Allow Negative"

Module

stock

Version

ERPNext: v15.20.3 (version-15)

Frappe Framework: v15.22.0 (version-15)

Installation method

manual install

Relevant log output / Stack trace / Full Error Message.

Batch No BMJ2404170344 of an Item JM00000002 has negative stock of quantity -20.0 in the warehouse Stores - JMT
@xhijack xhijack added the bug label Apr 18, 2024
@rohitwaghchaure
Copy link
Collaborator

Allow negative stock doesn't make Sense for Batch or serial no, if the batch has already consumed then how could you return it?

@xhijack
Copy link
Author

xhijack commented Apr 20, 2024

I understand that if all batches have been sold, then it's not possible to return them. However, the main issue lies elsewhere. For example, I create a purchase receipt for 10 different batches. Then, I make a sale for 1 batch, leaving me with 9 batches. However, when I try to make a return, the system rejects it because 1 batch is no longer available. Returns should still be possible as long as I have the remaining 9 batches.

@xhijack xhijack changed the title Can't Purchase Return when One of Batch is Not Available Can't Purchase Return when One of Batch is Not Available or Not Completed Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants