Skip to content

Commit b3b8083

Browse files
mihir-kandoimergify[bot]
authored andcommitted
fix: Fixed logic in if condition causing tests to fail
(cherry picked from commit 575fb43)
1 parent 66544bf commit b3b8083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

erpnext/controllers/subcontracting_controller.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def validate_items(self):
104104
)
105105

106106
if (
107-
not item.sc_conversion_factor
107+
self.doctype == "Subcontracting Order" and not item.sc_conversion_factor
108108
): # this condition will only be true if user has recently updated from develop branch
109109
service_item_qty = frappe.get_value(
110110
"Subcontracting Order Service Item",

0 commit comments

Comments
 (0)