mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 09:35:03 +00:00
Book expense included in valuation only if perpetual inventory enabled (#10271)
This commit is contained in:
committed by
Makarand Bauskar
parent
af01f5154b
commit
ee5ff805e9
@@ -510,7 +510,7 @@ class PurchaseInvoice(BuyingController):
|
||||
|
||||
i += 1
|
||||
|
||||
if self.update_stock and valuation_tax:
|
||||
if self.auto_accounting_for_stock and self.update_stock and valuation_tax:
|
||||
for cost_center, amount in valuation_tax.items():
|
||||
gl_entries.append(
|
||||
self.get_gl_dict({
|
||||
|
||||
Reference in New Issue
Block a user