Skip to content

Commit

Permalink
fix: calculate stock_value_diff
Browse files Browse the repository at this point in the history
`d.item_tax_amount` is already in base currency.

(cherry picked from commit 5df5851)
  • Loading branch information
barredterra authored and mergify[bot] committed Feb 13, 2024
1 parent 6460e64 commit 8f58b61
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions erpnext/stock/doctype/purchase_receipt/purchase_receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,7 @@ def make_divisional_loss_gl_entry(item, outgoing_amount):
)

stock_value_diff = (
flt(d.base_net_amount)
+ flt(d.item_tax_amount / self.conversion_rate)
+ flt(d.landed_cost_voucher_amount)
flt(d.base_net_amount) + flt(d.item_tax_amount) + flt(d.landed_cost_voucher_amount)
)
elif warehouse_account.get(d.warehouse):
stock_value_diff = get_stock_value_difference(self.name, d.name, d.warehouse)
Expand Down

0 comments on commit 8f58b61

Please sign in to comment.