Skip to content

feat(India): Bootstrapped GST Setup - #25415

Merged
nabinhait merged 29 commits into
frappe:version-13-hotfixfrom
deepeshgarg007:bootstraped_gst_setup
Jul 6, 2021
Merged

feat(India): Bootstrapped GST Setup #25415
nabinhait merged 29 commits into
frappe:version-13-hotfixfrom
deepeshgarg007:bootstraped_gst_setup

Conversation

@deepeshgarg007

@deepeshgarg007 deepeshgarg007 commented Apr 20, 2021

Copy link
Copy Markdown
Member
  • 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

@barredterra barredterra Jun 2, 2021

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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 thread erpnext/setup/setup_wizard/data/country_wise_tax.json Outdated
Comment on lines +171 to +173
doc.flags.ignore_links = True
doc.flags.ignore_validate = True
doc.insert(ignore_permissions=True)

@barredterra barredterra Jun 2, 2021

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@frappe frappe locked as resolved and limited conversation to collaborators Mar 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants