Merge pull request #39922 from frappe/mergify/bp/version-15-hotfix/pr-39916
fix: not able to make purchase receipt (backport #39916)
This commit is contained in:
commit
bb77f85d89
@ -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