Skip to content

Commit

Permalink
fix: zero rm-cost in SCR
Browse files Browse the repository at this point in the history
(cherry picked from commit f70d757)
  • Loading branch information
s-aga-r authored and mergify[bot] committed Jan 14, 2023
1 parent 5631cbb commit 2dfbc6e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ def before_validate(self):
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()
Expand Down

0 comments on commit 2dfbc6e

Please sign in to comment.