mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
fix: ignore alternate item while checking pending qty
(cherry picked from commit 14e3e163ae)
This commit is contained in:
committed by
Ankush Menat
parent
ebe9599dda
commit
997ddbea78
@@ -590,6 +590,6 @@ function check_can_calculate_pending_qty(me) {
|
|||||||
&& doc.fg_completed_qty
|
&& doc.fg_completed_qty
|
||||||
&& 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;
|
||||||
return docChecks && itemChecks;
|
return docChecks && itemChecks;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user