fix: calculate stock_value_diff

`d.item_tax_amount` is already in base currency.

(cherry picked from commit 5df5851798)
This commit is contained in:
barredterra
2024-02-12 17:05:03 +01:00
committed by Mergify
parent 6460e649a5
commit 8f58b613e4

View File

@@ -572,9 +572,7 @@ class PurchaseReceipt(BuyingController):
)
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)