mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-12 23:07:41 +00:00
Merge pull request #33654 from frappe/mergify/bp/version-14-hotfix/pr-33651
fix: zero rm-cost in SCR (backport #33651)
This commit is contained in:
@@ -63,6 +63,11 @@ class SubcontractingReceipt(SubcontractingController):
|
||||
self.set_items_expense_account()
|
||||
|
||||
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()
|
||||
self.set_missing_values()
|
||||
self.validate_posting_time()
|
||||
|
||||
Reference in New Issue
Block a user