fix: not able to make purchase receipt
(cherry picked from commit 2fb0499923
)
This commit is contained in:
parent
ab03ab388c
commit
37329469c3
@ -539,6 +539,10 @@ class SubcontractingController(StockController):
|
||||
def __add_supplied_item(self, item_row, bom_item, qty):
|
||||
bom_item.conversion_factor = item_row.conversion_factor
|
||||
rm_obj = self.append(self.raw_material_table, bom_item)
|
||||
if rm_obj.get("qty"):
|
||||
# Qty field not exists
|
||||
rm_obj.qty = 0.0
|
||||
|
||||
rm_obj.reference_name = item_row.name
|
||||
|
||||
if self.doctype == self.subcontract_data.order_doctype:
|
||||
|
Loading…
Reference in New Issue
Block a user