Skip to content

Commit

Permalink
Merge pull request #39868 from barredterra/fix-stock-value-diff
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra authored Feb 13, 2024
2 parents 24ba26f + 5df5851 commit f1f8f59
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 f1f8f59

Please sign in to comment.