Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable "Provident Fund Deductions" report for unless India regional setup is executed #2503

Open
1 task done
cogk opened this issue Dec 12, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@cogk
Copy link
Contributor

cogk commented Dec 12, 2024

Information about bug

The "Provident Fund Deductions" report doesn't work for countries outside of India, should it be disabled by default then enabled in setup?

component_type_dict = frappe._dict(
frappe.db.sql(
""" select name, component_type from `tabSalary Component`
where component_type in ('Provident Fund', 'Additional Provident Fund', 'Provident Fund Loan')"""
)
)

def get_custom_fields():
return {
"Salary Component": [
{
"fieldname": "component_type",

Module

Payroll

Version

develop

Installation method

None

Relevant log output / Stack trace / Full Error Message.

pymysql.err.OperationalError: (1054, "Unknown column 'component_type' in 'field list'")

Code of Conduct

  • I agree to follow this project's Code of Conduct
@cogk cogk added the bug Something isn't working label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant