Merge pull request #48801 from rohitwaghchaure/fixed-support-44546

fix: incorrect GL entries
This commit is contained in:
rohitwaghchaure
2025-07-28 16:27:32 +05:30
committed by GitHub

View File

@@ -972,7 +972,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")