fix: ignore alternate item while checking pending qty
This commit is contained in:
parent
36bff953b0
commit
14e3e163ae
@ -592,6 +592,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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user