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: Production Plan -> Stock Qty from SO Item instead of Qty #43400

Closed
wants to merge 1 commit into from

Conversation

MaxMorais
Copy link
Contributor

@MaxMorais MaxMorais commented Sep 26, 2024

When building a production plan from a Sales Order, by default ERPNext take into account the so_item.qty field, this covers 90% of the good scenarios, but, if an Item have an different selling uom, it will raise an issue on manufacturing.

For instance, let's consider an Ice Cream factory!

For Ice Cream, the Stock Unit is Mililitre

Sorvete-Sabor-Creme-Sorvete-Sabor-Creme-09-26-2024_03_09_PM

The Standard Selling Unit is 1 Litre Package

Sorvete-Sabor-Creme-Sorvete-Sabor-Creme-09-26-2024_03_10_PM

So, let's consider a Sales of 2000 Litres

image

On the Sales Order Item, ERPNext calculate properly the expected Stock Qty 2.000.000 Mililitres

But, when fetching the Sales Order on the Production Plan we have

image

So all the Raw Materials get wrong

image

But with a manual fix

image

We get the right raw materials

image

Prooving that ERPNext is fetching the wrong value

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Sep 26, 2024
@MaxMorais MaxMorais closed this Oct 3, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant