Closed Ponyooooo closed 1 year ago
@Ponyooooo please provide steps to replicate.
Example scenarios:
First
I have 2 different Item Codes:
Microwave - 1 Microwave -2
Purchased item code Microwave - 1 to Manufacturer 1 with SN 0001
and then Purchased item code Microwave - 2 to Manufacturer 2 with SN 0001
Both the manufacturers started their SN on 0001
Result: when encoded on a different purchase receipt, the second purchase receipt to be submitted is not allowed since the SN was already used for the first purchase receipt.
Second
I have 2 different Item Codes:
Oven Stove
Purchased item code Oven and Stove to Manufacturer 3 and then submitted the following purchase receipt:
Result: I cannot cancel and amend or create another document to replace or interchange the used SN.
So, it's a known issue, we will consider in somewhere near future. It will be a breaking change and the entire code related to Serial Nos needs to be rewritten. Ideally, you should use a different naming prefix for each item.
Information about bug
Cannot sumbit a purchase receipt or stock entry if a serial number is already used or encoded on the serial number to a specific item code already.
However there is a scenario that two item code has the same format of the serial numbers.
The Bug is saying: Serial No 00003 does not belong to Item MICROWAVE -3
Module
stock
Version
ERPNext: v13.45.0 (HEAD) Frappe Framework: v13.49.0 (HEAD)
Installation method
FrappeCloud
Relevant log output / Stack trace / Full Error Message.