Skip to content

Commit

Permalink
Merge pull request #39894 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-39868

fix(Purchase Receipt): calculate `stock_value_diff` (backport #39868)
  • Loading branch information
barredterra authored Feb 14, 2024
2 parents a2f1a96 + 5a66c85 commit 375859a
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 @@ -684,9 +684,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 375859a

Please sign in to comment.