Merge pull request #38530 from bosue/duplicate_zero_quantity_check2

refactor: Consolidate duplicate zero-quantity Items checks for transactions.
This commit is contained in:
Nabin Hait
2024-01-09 13:12:25 +05:30
committed by GitHub
84 changed files with 253 additions and 160 deletions

View File

@@ -295,9 +295,6 @@ class SellingController(StockController):
def get_item_list(self):
il = []
for d in self.get("items"):
if d.qty is None:
frappe.throw(_("Row {0}: Qty is mandatory").format(d.idx))
if self.has_product_bundle(d.item_code):
for p in self.get("packed_items"):
if p.parent_detail_docname == d.name and p.parent_item == d.item_code: