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.
  • Loading branch information
barredterra committed Feb 12, 2024
1 parent 1d1cb86 commit 5df5851
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 @@ -686,9 +686,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 5df5851

Please sign in to comment.