fix: ignore alternate item while checking pending qty

This commit is contained in:
Ankush Menat 2022-01-28 14:12:57 +05:30 committed by Ankush Menat
parent 36bff953b0
commit 14e3e163ae

View File

@ -592,6 +592,6 @@ function check_can_calculate_pending_qty(me) {
&& doc.fg_completed_qty
&& erpnext.stock.bom
&& erpnext.stock.bom.name === doc.bom_no;
const itemChecks = !!item;
const itemChecks = !!item && !item.allow_alternative_item;
return docChecks && itemChecks;
}