fix: use original logic for v15 - inverted wrt v16

This commit is contained in:
Smit Vora
2025-12-15 17:20:57 +05:30
parent edcf24afa9
commit 0452b22aa6
2 changed files with 2 additions and 2 deletions

View File

@@ -1308,7 +1308,7 @@ def get_material_request_items(
required_qty = 0
item_code = row.get("item_code")
if not ignore_existing_ordered_qty or bin_dict.get("projected_qty", 0) < 0:
if ignore_existing_ordered_qty or bin_dict.get("projected_qty", 0) < 0:
required_qty = flt(row.get("qty"))
else:
key = (item_code, warehouse)

View File

@@ -173,7 +173,7 @@ class TestProductionPlan(FrappeTestCase):
"company": "_Test Company",
"posting_date": nowdate(),
"get_items_from": "Sales Order",
"ignore_existing_ordered_qty": 1,
"ignore_existing_ordered_qty": 0,
}
)
pln.append(