mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-16 07:58:38 +00:00
* fix: don't attempt to create SABB for non-serialized / non-batch items (#56627)
* fix: don't attempt to create SABB for non-serialized / non-batch items
* fix(stock): skip serial batch lookup for rows without item code
(cherry picked from commit 5b738b7b0d)
# Conflicts:
# erpnext/stock/services/serial_batch_bundle_service.py
* chore: resolve conflicts
---------
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
This commit is contained in:
@@ -263,6 +263,10 @@ class StockController(AccountsController):
|
|||||||
parent_details = self.get_parent_details_for_packed_items()
|
parent_details = self.get_parent_details_for_packed_items()
|
||||||
|
|
||||||
for row in self.get(table_name):
|
for row in self.get(table_name):
|
||||||
|
item_code = row.get("rm_item_code") or row.get("item_code")
|
||||||
|
if not item_code or not self.is_serial_batch_item(item_code):
|
||||||
|
continue
|
||||||
|
|
||||||
if (
|
if (
|
||||||
not via_landed_cost_voucher
|
not via_landed_cost_voucher
|
||||||
and row.serial_and_batch_bundle
|
and row.serial_and_batch_bundle
|
||||||
|
|||||||
Reference in New Issue
Block a user