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

fix: Do not allow Company as accounting dimension #23749

Merged

Conversation

deepeshgarg007
Copy link
Member

Company doctype should not be allowed as an accounting dimension as Company is already linked with every GL Entry so it doesn't make sense making it as an accounting dimension.

Also making company as a dimension breaks some accounting reports as company is used as keys in many queries for filtering

For Eg:
frappe.db.sql(""" select name as gl_entry, posting_date, account, party_type, party, voucher_type, voucher_no, {dimension_fields} cost_center, project, against_voucher_type, against_voucher, account_currency, remarks, against, is_opening, creation {select_fields} from tabGL Entry where company=%(company)s {conditions} {distributed_cost_center_query} {order_by_statement} """.format(dimension_fields=dimension_fields, select_fields=select_fields, conditions=get_conditions(filters), distributed_cost_center_query=distributed_cost_center_query,order_by_statement=order_by_statement),ilters, as_dict=1)

image

@deepeshgarg007
Copy link
Member Author

@Mergifyio backport version-13-beta-pre-release

@mergify
Copy link
Contributor

mergify bot commented Oct 28, 2020

Command backport version-13-beta-pre-release: pending

Waiting for the pull request to get merged

@deepeshgarg007 deepeshgarg007 merged commit ae6a51b into frappe:develop Oct 28, 2020
@mergify
Copy link
Contributor

mergify bot commented Oct 28, 2020

Command backport version-13-beta-pre-release: failure

No backport have been created

  • Backport to branch version-13-beta-pre-release failed
    backport fail: repository is too big and no subscription is active

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant