fix: incorrect GL entries

(cherry picked from commit 4c273fcc99)
This commit is contained in:
Rohit Waghchaure
2025-07-28 14:56:17 +05:30
committed by Mergify
parent 442fede0fe
commit 207d2ac63c

View File

@@ -970,7 +970,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):
if item.item_code:
frappe.get_cached_value("Item", item.item_code, "asset_category")