We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 319ba31 commit 9d46d81Copy full SHA for 9d46d81
1 file changed
erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.py
@@ -10,6 +10,7 @@
10
from frappe.utils import cint, flt
11
12
import erpnext
13
+from erpnext import is_perpetual_inventory_enabled
14
from erpnext.controllers.taxes_and_totals import init_landed_taxes_and_totals
15
from erpnext.stock.doctype.serial_no.serial_no import get_serial_nos
16
@@ -175,6 +176,9 @@ def validate_receipt_documents(self):
175
176
)
177
178
def validate_expense_accounts(self):
179
+ if not is_perpetual_inventory_enabled(self.company):
180
+ return
181
+
182
for t in self.taxes:
183
company = frappe.get_cached_value("Account", t.expense_account, "company")
184
0 commit comments