commit | ee5ff805e9bdd4c1e7ef3904bc0eb68ec60d3c6e | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Thu Aug 03 17:37:23 2017 +0530 |
committer | Makarand Bauskar <mbauskar@gmail.com> | Thu Aug 03 17:37:23 2017 +0530 |
tree | af3799c06b6bb387abddf866011edc0b53f61237 | |
parent | af01f5154b5c663ff3e8da14c2e29f6645df7c19 [diff] |
Book expense included in valuation only if perpetual inventory enabled (#10271)
diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py index e768c27..589bc40 100644 --- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py +++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py
@@ -510,7 +510,7 @@ 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({