mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-13 03:45:08 +00:00
committed by
Mergify
parent
442fede0fe
commit
207d2ac63c
@@ -970,7 +970,7 @@ class PurchaseInvoice(BuyingController):
|
|||||||
self.get_provisional_accounts()
|
self.get_provisional_accounts()
|
||||||
|
|
||||||
for item in self.get("items"):
|
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:
|
if item.item_code:
|
||||||
frappe.get_cached_value("Item", item.item_code, "asset_category")
|
frappe.get_cached_value("Item", item.item_code, "asset_category")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user