Guest User

traceback api p&l erpnext

a guest
Dec 1st, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.87 KB | None | 0 0
  1. Traceback (most recent call last):
  2.   File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 60, in application
  3.     response = frappe.api.handle()
  4.   File "/home/frappe/frappe-bench/apps/frappe/frappe/api.py", line 54, in handle
  5.     return frappe.handler.handle()
  6.   File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 19, in handle
  7.     execute_cmd(cmd)
  8.   File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 36, in execute_cmd
  9.     ret = frappe.call(method, **frappe.form_dict)
  10.   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 890, in call
  11.     return fn(*args, **newargs)
  12.   File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/query_report.py", line 93, in run
  13.     res = frappe.get_attr(method_name)(frappe._dict(filters))
  14.   File "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/report/profit_and_loss_statement/profit_and_loss_statement.py", line 11, in execute
  15.     period_list = get_period_list(filters.from_fiscal_year, filters.to_fiscal_year, filters.periodicity)
  16.   File "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/report/financial_statements.py", line 16, in get_period_list
  17.     validate_fiscal_year(fiscal_year, from_fiscal_year, to_fiscal_year)
  18.   File "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/report/financial_statements.py", line 90, in validate_fiscal_year
  19.     #frappe.throw(_("End Year cannot be before Start Year"))
  20.   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 300, in throw
  21.     msgprint(msg, raise_exception=exc, title=title, indicator='red')
  22.   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 293, in msgprint
  23.     _raise_exception()
  24.   File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 266, in _raise_exception
  25.     raise raise_exception, encode(msg)
  26. ValidationError: End Year cannot be before Start Year
Add Comment
Please, Sign In to add comment