Skip to content

Error in GSTR-1 Report #98

@rakesh8848

Description

@rakesh8848

Information about bug

getting error while trying to open the report:

Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 115, in application
response = frappe.api.handle(request)
File "apps/frappe/frappe/api/init.py", line 49, in handle
data = endpoint(**arguments)
File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 51, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 84, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/init.py", line 1785, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
return func(*args, **kwargs)
File "apps/frappe/frappe/init.py", line 920, in wrapper_fn
retval = fn(*args, **get_newargs(fn, kwargs))
File "apps/frappe/frappe/desk/query_report.py", line 229, in run
result = generate_report_result(report, filters, user, custom_columns, is_tree, parent_field)
File "apps/frappe/frappe/init.py", line 920, in wrapper_fn
retval = fn(*args, **get_newargs(fn, kwargs))
File "apps/frappe/frappe/desk/query_report.py", line 85, in generate_report_result
res = get_report_result(report, filters) or []
File "apps/frappe/frappe/desk/query_report.py", line 66, in get_report_result
res = report.execute_script_report(filters)
File "apps/frappe/frappe/core/doctype/report/report.py", line 173, in execute_script_report
res = self.execute_module(filters)
File "apps/frappe/frappe/core/doctype/report/report.py", line 189, in execute_module
return frappe.get_attr(method_name)(frappe._dict(filters))
File "apps/india_compliance/india_compliance/gst_india/report/gstr_1/gstr_1.py", line 49, in execute
return Gstr1Report(filters).run()
File "apps/india_compliance/india_compliance/gst_india/report/gstr_1/gstr_1.py", line 92, in run
self.get_data()
File "apps/india_compliance/india_compliance/gst_india/report/gstr_1/gstr_1.py", line 110, in get_data
self.get_invoice_data()
File "apps/india_compliance/india_compliance/gst_india/report/gstr_1/gstr_1.py", line 306, in get_invoice_data
invoice_data = frappe.db.sql(
File "apps/frappe/frappe/database/postgres/database.py", line 326, in sql
return super().sql(modify_query(query), modify_values(values), *args, **kwargs)
File "apps/frappe/frappe/database/database.py", line 236, in sql
self._cursor.execute(query, values)
psycopg2.errors.UndefinedColumn: column "Unregistered" does not exist
LINE 23: WHEN gst_category = "Unregistered" AND N...

Image

Version

frappe 15.72.4 pre-prod
erpnext 15.65.1 pre-prod
payments 0.0.1 version-15
assets 0.0.1 pre-prod
sales_commission 0.0.1 pre-prod
projects 0.0.1 pre-prod
india_compliance 15.18.1 pre-prod
erpnext_india 0.0.1 pre-prod
erpnext_crm 0.0.1 pre-prod
hrms 15.39.0 pre-prod

Relevant log output / Stack trace / Full Error Message.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions