fix(stock): allow serial no of consumed raw material on repacked item (backport #59729) - #59738
Merged
rohitwaghchaure merged 2 commits intoOct 2, 2026
Merged
Conversation
In a Repack or Manufacture entry, the finished good can keep the serial no of a consumed raw material, because it is the same physical unit. This worked in v14 and was lost with the Serial and Batch Bundle. The bundle validation now accepts a serial no of another item if an outward bundle of the same entry consumes it. When the serial no lands in a warehouse, it moves to the item of the inward entry, together with item name, description, item group and brand. Cancelling the entry moves it back.
barredterra
requested review from
mihir-kandoi and
rohitwaghchaure
as code owners
October 2, 2026 09:30
Contributor
|
A Repack could consume one serial no and give it to two finished goods. The bundle validation now rejects a consumed serial no if another inward bundle of the same entry already takes it.
Collaborator
|
@Mergifyio backport version-15 |
Contributor
✅ Backports have been createdDetails
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #59729 to v15.
In a Repack or Manufacture entry, the finished good can keep the serial no of a consumed raw material. Example: a notebook gets a case. "Notebook" and "Case" are consumed, "Notebook with Case" is produced, and it keeps the serial no of the notebook, because it is the same physical unit.
This worked in v14 (
allow_serial_nos_with_different_item()). The exception was lost when the Serial and Batch Bundle was introduced. Now the bundle rejects the serial no with "Serial Nos ... does not belong to Item ...".Changes
Not backported: the changes to the Serial No and Batch Traceability report. This report does not exist in v15.
Behaviour to know
Tests
Follow-up with fixes from later review findings: #59741
no-docs