mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
(cherry picked from commit 8b090a9f7d)
Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -607,8 +607,8 @@ function check_can_calculate_pending_qty(me) {
|
|||||||
&& erpnext.stock.bom
|
&& erpnext.stock.bom
|
||||||
&& erpnext.stock.bom.name === doc.bom_no;
|
&& erpnext.stock.bom.name === doc.bom_no;
|
||||||
const itemChecks = !!item
|
const itemChecks = !!item
|
||||||
&& !item.allow_alternative_item
|
&& !item.original_item
|
||||||
&& erpnext.stock.bom && erpnext.stock.items
|
&& erpnext.stock.bom && erpnext.stock.bom.items
|
||||||
&& (item.item_code in erpnext.stock.bom.items);
|
&& (item.item_code in erpnext.stock.bom.items);
|
||||||
return docChecks && itemChecks;
|
return docChecks && itemChecks;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user