fix: not able to cancel purchase receipt for old subcontracting flow (#40298)

This commit is contained in:
rohitwaghchaure
2024-03-06 12:51:04 +05:30
committed by GitHub
parent e178ffc3c1
commit 48da952fd7

View File

@@ -559,7 +559,7 @@ class BuyingController(SubcontractingController):
{
"incoming_rate": incoming_rate,
"recalculate_rate": 1
if (self.is_subcontracted and (d.bom or d.fg_item)) or d.from_warehouse
if (self.is_subcontracted and (d.bom or d.get("fg_item"))) or d.from_warehouse
else 0,
}
)