Menu

1 / 2

ERPNext v16.61: Why a Purchase Return Now Gets Refused Without the Right Stock

DEV Community: backend·AO PLUS·4 days ago
#T8O1I7GV
#devtobackend#devto#dev#return#warehouse
Long article (1145 words) — no AI summary yet.
Reading 0:00
15s threshold

A return that used to go through quietly

Picture a stores clerk on a Tuesday afternoon. A batch of parts came in last month from a supplier at 300 per unit. The batch was received into the Stores warehouse on one Purchase Receipt.

A few days later, the same item also sits in the Finished Goods warehouse. That stock came from an earlier Material Receipt, at 100 per unit. Nobody thinks of the two lots as connected.

Five units from the supplier batch turn out to be damaged. The clerk opens a Purchase Return against the Purchase Receipt, picks Finished Goods as the return warehouse, and submits.

Before ERPNext v16.61, that submit went through. The numbers it produced were wrong, and nothing in the form warned anyone.

This article covers what changed, why the old behaviour was a problem, and how to work with the new check.

What the old return did

The bug report is PR #69062 in frappe/erpnext . It is an automatic backport of #67530 into the version-16 hotfix branch.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.