fix: zero rm-cost in SCR
This commit is contained in:
parent
e22d56484d
commit
f70d757b82
@ -63,6 +63,11 @@ class SubcontractingReceipt(SubcontractingController):
|
|||||||
self.set_items_expense_account()
|
self.set_items_expense_account()
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
|
if (
|
||||||
|
frappe.db.get_single_value("Buying Settings", "backflush_raw_materials_of_subcontract_based_on")
|
||||||
|
== "BOM"
|
||||||
|
):
|
||||||
|
self.supplied_items = []
|
||||||
super(SubcontractingReceipt, self).validate()
|
super(SubcontractingReceipt, self).validate()
|
||||||
self.set_missing_values()
|
self.set_missing_values()
|
||||||
self.validate_posting_time()
|
self.validate_posting_time()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user