Skip to content

Commit

Permalink
fix: not able to cancel purchase receipt for old subcontracting flow …
Browse files Browse the repository at this point in the history
…(backport #40298) (backport #40302) (#40305)

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

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

(cherry picked from commit 48da952)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
(cherry picked from commit e0e80f7)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
mergify[bot] authored Mar 6, 2024
1 parent eb9b2e8 commit 3814c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/controllers/buying_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def update_stock_ledger(self, allow_negative_stock=False, via_landed_cost_vouche
{
"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,
}
)
Expand Down

0 comments on commit 3814c5a

Please sign in to comment.