mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +00:00
fix: use original logic for v15 - inverted wrt v16
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user