fix: Fixed logic in if condition causing tests to fail

(cherry picked from commit 575fb43f9c)
This commit is contained in:
Mihir Kandoi
2024-12-31 20:33:05 +05:30
committed by Mergify
parent 66544bfa10
commit b3b808335f

View File

@@ -104,7 +104,7 @@ class SubcontractingController(StockController):
)
if (
not item.sc_conversion_factor
self.doctype == "Subcontracting Order" and not item.sc_conversion_factor
): # this condition will only be true if user has recently updated from develop branch
service_item_qty = frappe.get_value(
"Subcontracting Order Service Item",