mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-14 17:33:09 +00:00
fix: added serial no condition
This commit is contained in:
@@ -72,10 +72,13 @@ class SellingController(StockController):
|
||||
|
||||
serial_nos = frappe.get_all(
|
||||
"Serial and Batch Entry",
|
||||
filters={"parent": ("in", bundle_ids)},
|
||||
filters={"parent": ("in", bundle_ids), "serial_no": ("is", "set")},
|
||||
pluck="serial_no",
|
||||
)
|
||||
|
||||
if not serial_nos:
|
||||
return
|
||||
|
||||
if serial_nos := frappe.get_all(
|
||||
"Serial No",
|
||||
filters={"name": ("in", serial_nos), "customer": ("is", "set")},
|
||||
|
||||
Reference in New Issue
Block a user