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

feat(India): Bootstrapped GST Setup #25415

Merged

Conversation

deepeshgarg007
Copy link
Member

@deepeshgarg007 deepeshgarg007 commented Apr 20, 2021

  • Add separate GST accounts for Sales and Purchases on Company Setup
    • Sales Accounts:
      • Output Tax SGST
      • Output Tax CGST
      • Output Tax IGST
    • Purchase Accounts:
      • Input Tax SGST
      • Input Tax CGST
      • Input Tax IGST
  • Auto create item tax templates for all GST Tax Rates
  • Auto create Sales/Purchase Taxes and Charges Template and add tax category for In-State and Out-State to the templates
  • Made setup faster by removing redundant checks and validations
  • Automatically add default GST Accounts in GST Settings

docs: frappe/erpnext_documentation#362

@nabinhait nabinhait changed the base branch from develop to version-13-hotfix May 3, 2021 16:19
Comment on lines 196 to 203
'account_name': account.get('account_name'),
'account_number': account.get('account_number', ''),
'company': company_name
},
or_filters={
'account_name': account.get('account_name'),
'account_number': account.get('account_number')
'company': company_name,
'root_type': root_type,
'is_group': 0
Copy link
Collaborator

@barredterra barredterra Jun 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Company is both in filters and or_filters.

The intention for having account_name and account_number in or_filters was that each should be unique and one is enough to identify the account. Having both in filters, especially 'account_number' == '' might not work.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deepeshgarg007 I agree with Raffael, account_number and account_name should be in or_filters

Comment on lines +171 to +173
doc.flags.ignore_links = True
doc.flags.ignore_validate = True
doc.insert(ignore_permissions=True)
Copy link
Collaborator

@barredterra barredterra Jun 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is all this ignoring really necessary? I don't remember getting any errors, at least for the german setup, and if there are any they might be worth fixing...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not to ignore any errors but to reduce the setup time. India has a lot of fixtures that are created during setup which takes a lot of time. Have not done any profiting yet so cannot say if this helps or not. Will remove if there is no significant change

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Could you please add a comment mentioning this?

if(me.values.bank_account){
frappe.call({
async: false,
method: "erpnext.accounts.doctype.account.chart_of_accounts.chart_of_accounts.validate_bank_account",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this is removed? The code was there because many people enter just "Bank Accounts" in Bank field in Setup Wizard and it raises duplication error.

Comment on lines 196 to 203
'account_name': account.get('account_name'),
'account_number': account.get('account_number', ''),
'company': company_name
},
or_filters={
'account_name': account.get('account_name'),
'account_number': account.get('account_number')
'company': company_name,
'root_type': root_type,
'is_group': 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deepeshgarg007 I agree with Raffael, account_number and account_name should be in or_filters

@nabinhait nabinhait added the CI-failing Unit tests or patch tests are failing. label Jun 23, 2021
@deepeshgarg007 deepeshgarg007 removed the CI-failing Unit tests or patch tests are failing. label Jul 5, 2021
@nabinhait nabinhait merged commit 11d5690 into frappe:version-13-hotfix Jul 6, 2021
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.

3 participants