Skip to content

Commit

Permalink
fix: incorrect actual cost in Procurement Tracker report (#43109)
Browse files Browse the repository at this point in the history
(cherry picked from commit 80f101f)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Sep 9, 2024
1 parent cf81202 commit ec36ada
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def get_data(filters):
"purchase_order": po.parent,
"supplier": po.supplier,
"estimated_cost": flt(mr_record.get("amount")),
"actual_cost": flt(pi_records.get(po.name)),
"actual_cost": flt(pi_records.get(po.name)) or flt(po.amount),
"purchase_order_amt": flt(po.amount),
"purchase_order_amt_in_company_currency": flt(po.base_amount),
"expected_delivery_date": po.schedule_date,
Expand Down

0 comments on commit ec36ada

Please sign in to comment.