mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 23:42:13 +00:00
fix: not able to cancel purchase receipt for old subcontracting flow (#40298)
(cherry picked from commit 48da952fd7)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -559,7 +559,7 @@ class BuyingController(SubcontractingController):
|
|||||||
{
|
{
|
||||||
"incoming_rate": incoming_rate,
|
"incoming_rate": incoming_rate,
|
||||||
"recalculate_rate": 1
|
"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,
|
else 0,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user