fix: make po_detail or sco_rm_detail mandatory for SE Send to Subcontractor
This commit is contained in:
parent
3b5284ec2b
commit
b90875575c
@ -919,6 +919,16 @@ class StockEntry(StockController):
|
|||||||
)
|
)
|
||||||
if order_rm_detail:
|
if order_rm_detail:
|
||||||
se_item.db_set(self.subcontract_data.rm_detail_field, order_rm_detail)
|
se_item.db_set(self.subcontract_data.rm_detail_field, order_rm_detail)
|
||||||
|
else:
|
||||||
|
if not se_item.allow_alternative_item:
|
||||||
|
frappe.throw(
|
||||||
|
_("Row {0}# Item {1} not found in 'Raw Materials Supplied' table in {2} {3}").format(
|
||||||
|
se_item.idx,
|
||||||
|
se_item.item_code,
|
||||||
|
self.subcontract_data.order_doctype,
|
||||||
|
self.get(self.subcontract_data.order_field),
|
||||||
|
)
|
||||||
|
)
|
||||||
elif backflush_raw_materials_based_on == "Material Transferred for Subcontract":
|
elif backflush_raw_materials_based_on == "Material Transferred for Subcontract":
|
||||||
for row in self.items:
|
for row in self.items:
|
||||||
if not row.subcontracted_item:
|
if not row.subcontracted_item:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user