mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 07:20:26 +00:00
Merge pull request #54757 from rohitwaghchaure/fixed-support-67550
fix: incorrect serial nos picked during disassemble
This commit is contained in:
@@ -376,6 +376,9 @@ class StockEntry(StockController, SubcontractingInwardController):
|
||||
def _set_serial_batch_for_disassembly_from_available_materials(self):
|
||||
available_materials = get_available_materials(self.work_order, self)
|
||||
for row in self.items:
|
||||
if row.serial_no or row.batch_no or row.serial_and_batch_bundle:
|
||||
continue
|
||||
|
||||
warehouse = row.s_warehouse or row.t_warehouse
|
||||
materials = available_materials.get((row.item_code, warehouse))
|
||||
if not materials:
|
||||
|
||||
Reference in New Issue
Block a user