Merge pull request #48807 from frappe/mergify/bp/version-14-hotfix/pr-48801

fix: incorrect GL entries (backport #48801)
This commit is contained in:
rohitwaghchaure
2025-07-28 17:54:00 +05:30
committed by GitHub

View File

@@ -781,7 +781,7 @@ class PurchaseInvoice(BuyingController):
self.get_provisional_accounts()
for item in self.get("items"):
if flt(item.base_net_amount):
if flt(item.base_net_amount) or (self.get("update_stock") and item.valuation_rate):
account_currency = get_account_currency(item.expense_account)
if item.item_code:
frappe.get_cached_value("Item", item.item_code, "asset_category")