fix: hide pending qty only if original item is assigned (#30599)
This commit is contained in:
parent
ba42c87687
commit
8b090a9f7d
@ -609,8 +609,8 @@ function check_can_calculate_pending_qty(me) {
|
||||
&& erpnext.stock.bom
|
||||
&& erpnext.stock.bom.name === doc.bom_no;
|
||||
const itemChecks = !!item
|
||||
&& !item.allow_alternative_item
|
||||
&& erpnext.stock.bom && erpnext.stock.items
|
||||
&& !item.original_item
|
||||
&& erpnext.stock.bom && erpnext.stock.bom.items
|
||||
&& (item.item_code in erpnext.stock.bom.items);
|
||||
return docChecks && itemChecks;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user