Merge pull request #39894 from frappe/mergify/bp/version-15-hotfix/pr-39868

fix(Purchase Receipt): calculate `stock_value_diff` (backport #39868)
This commit is contained in:
Raffael Meyer 2024-02-14 01:21:38 +01:00 committed by GitHub
commit 375859a25f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -684,9 +684,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)