mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 02:34:41 +00:00
Deduct Rejected Item's Raw materials in SubContracting (#12837)
* Deduct Rejected Item's Raw materials in SubContracting frappe/erpnext#12752 * Travis Build Fix
This commit is contained in:
committed by
Nabin Hait
parent
2dee8fc255
commit
277935be79
@@ -218,7 +218,7 @@ class BuyingController(StockController):
|
||||
if not exists:
|
||||
rm = self.append(raw_material_table, {})
|
||||
|
||||
required_qty = flt(flt(bom_item.qty_consumed_per_unit) * flt(item.qty) *
|
||||
required_qty = flt(flt(bom_item.qty_consumed_per_unit) * (flt(item.qty) + getattr(item, 'rejected_qty', 0)) *
|
||||
flt(item.conversion_factor), rm.precision("required_qty"))
|
||||
rm.reference_name = item.name
|
||||
rm.bom_detail_no = bom_item.name
|
||||
|
||||
Reference in New Issue
Block a user