ERPNext Conference 2019* ERPNext.com Blog

Expired Batch Purchase/Sales Return


#1

Purchase Invoice/ Purchase Receipt are not allowed to accept Expired Batch Items that is a good validator, but keeping the same validator for Returns is not a good idea. Well I cannot find anyway to return expired items to the supplier.

Similar way,

Sales Return,
I am not able to make sales returns for expired items, I think the validator needs to be disables when the ‘Is Return’ is checked.

Currently i just change the batch expiry and process the document and then change the expiry back to is original which is just a workaround and not a good way to show to clients.

I think Erpnext team needs to look into this. I will also try to add this to issues and ask my development team to look into this and find a way to solve.

The reason to post here is to Check with the community if they have the same concern and what are the ways they are solving this concern.


#2

Anyone have any idea about this?

Now we’re getting many returns to process with expiry and we cannot keep changing the expiry dates.


#3

Please create a github issue explaining the scenario.


#4

I am having exactly the same situation. Actually expired batch item should be able to be sold because it will depend on seller criteria.


#5

Yes there need to be toggle switch to do this. I dont see any interest from the core team nor the community except few of us.


#6

I found that the team hardcoded the SQL statament that query for batchs on all docs.

So, there is no option to override this behavior unless the team changes this.

Alirio.


#7

Oh thanks for pointing it out.
Maybe you should make an github issue and follow up with it. I will up it for you. :+1:


#8

Thanks for your attention,

Will you post the github issue?


#9

Git Issue on ERPNext.