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

refactor: fetching of account balance in chart of accounts #27661

Merged
merged 3 commits into from
Oct 4, 2021

Conversation

nextchamp-saqib
Copy link
Member

@nextchamp-saqib nextchamp-saqib commented Sep 27, 2021

Before:

Took ~40 secs

CleanShot 2021-09-27 at 11 10 34

After:

Took 18 secs

CleanShot 2021-09-27 at 11 08 32

Changes:

  • Display Nodes and then Asynchronously fetch balance
  • Only fetch balance if the user has permissions for GL Entry

Depends On: frappe/frappe#14310

@codecov
Copy link

codecov bot commented Sep 27, 2021

Codecov Report

Merging #27661 (68668e9) into develop (5e0b215) will increase coverage by 8.08%.
The diff coverage is 78.57%.

@@             Coverage Diff             @@
##           develop   #27661      +/-   ##
===========================================
+ Coverage    46.53%   54.61%   +8.08%     
===========================================
  Files         1333     1333              
  Lines        70679    70745      +66     
===========================================
+ Hits         32888    38640    +5752     
+ Misses       37791    32105    -5686     
Impacted Files Coverage Δ
erpnext/hooks.py 0.00% <ø> (ø)
...cturing/doctype/production_plan/production_plan.py 69.78% <ø> (+57.28%) ⬆️
erpnext/regional/india/setup.py 95.23% <ø> (ø)
erpnext/regional/report/gstr_1/gstr_1.py 0.00% <0.00%> (ø)
erpnext/accounts/utils.py 59.19% <21.42%> (+0.04%) ⬆️
...ctype/stock_reconciliation/stock_reconciliation.py 82.85% <33.33%> (+0.14%) ⬆️
...ype/pos_invoice_merge_log/pos_invoice_merge_log.py 74.70% <50.00%> (+0.20%) ⬆️
erpnext/tests/utils.py 97.67% <93.33%> (-2.33%) ⬇️
...rpnext/accounts/doctype/pos_invoice/pos_invoice.py 70.44% <100.00%> (+9.77%) ⬆️
...xt/accounts/doctype/sales_invoice/sales_invoice.py 75.42% <100.00%> (+1.24%) ⬆️
... and 209 more

@nextchamp-saqib
Copy link
Member Author

@Mergifyio backport version-13-hotfix

@mergify
Copy link
Contributor

mergify bot commented Oct 4, 2021

Command backport version-13-hotfix: pending

backport version-13-hotfix is pending

@nextchamp-saqib nextchamp-saqib merged commit 9051735 into frappe:develop Oct 4, 2021
mergify bot pushed a commit that referenced this pull request Oct 4, 2021
@mergify
Copy link
Contributor

mergify bot commented Oct 4, 2021

Command backport version-13-hotfix: success

Backports have been created

frappe-pr-bot pushed a commit to frappe-pr-bot/erpnext that referenced this pull request Oct 4, 2021
marination added a commit that referenced this pull request Oct 6, 2021
…-27661

refactor: fetching of account balance in chart of accounts (backport #27661)
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
fproldan pushed a commit to fproldan/erpnext that referenced this pull request May 19, 2022
ValentinaPruvost pushed a commit to fproldan/erpnext that referenced this pull request May 20, 2022
* fix: Account number and name incorrectly import using COA importer

(cherry picked from commit 17a8649)

* frappe#27775

* fix: Totals row incorrect value in GL Entry (frappe#27867)

(cherry picked from commit ebe68c1)

* frappe#27862

* frappe#27915

* fix: Item Variant selection empty popup on website

- pass item_code instead of website item name to fetch attributes

* perf: fetching of account balance in chart of accounts (frappe#27661)

(cherry picked from commit 9051735)

* frappe#27748

* fix: Website Items with same Item name unhandled, thumbnails missing

- Use naming series for Website Item. There could be two items with same name and different item code
- Fix: Website Item Page view breaks if cart is disabled
- Fix: thumbnails not created for Website Items after patch
- Fix: ‘Request for Quote’ button & cart summary not visible if checkout is disabled

(cherry picked from commit 36b519c)

* fix: Pre-commit formatting

(cherry picked from commit 77d4849)

* fix: Delete linked Transaction Deletion Record docs on deleting company

(cherry picked from commit 38c7e42)

* frappe#27763

* frappe#27732

* fix: consolidated report not consider company currency

(cherry picked from commit dc42064)

* fix: opening balance to calculate 'Unclosed Fiscal Years Profit / Loss (Credit)'

(cherry picked from commit 19d14da)

* frappe#27804

* fix: consolitated financial statement

* fix: chart of account

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com>
Co-authored-by: marination <maricadsouza221197@gmail.com>
Co-authored-by: Saqib <nextchamp.saqib@gmail.com>
Co-authored-by: GangaManoj <ganga.manoj98@gmail.com>
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
fproldan pushed a commit to fproldan/erpnext that referenced this pull request May 20, 2022
fproldan added a commit to fproldan/erpnext that referenced this pull request Jun 24, 2022
* fix: Account number and name incorrectly import using COA importer

(cherry picked from commit 17a8649)

* frappe#27775

* fix: Totals row incorrect value in GL Entry (frappe#27867)

(cherry picked from commit ebe68c1)

* frappe#27862

* frappe#27915

* fix: Item Variant selection empty popup on website

- pass item_code instead of website item name to fetch attributes

* perf: fetching of account balance in chart of accounts (frappe#27661)

(cherry picked from commit 9051735)

* frappe#27748

* fix: Website Items with same Item name unhandled, thumbnails missing

- Use naming series for Website Item. There could be two items with same name and different item code
- Fix: Website Item Page view breaks if cart is disabled
- Fix: thumbnails not created for Website Items after patch
- Fix: ‘Request for Quote’ button & cart summary not visible if checkout is disabled

(cherry picked from commit 36b519c)

* fix: Pre-commit formatting

(cherry picked from commit 77d4849)

* fix: Delete linked Transaction Deletion Record docs on deleting company

(cherry picked from commit 38c7e42)

* frappe#27763

* frappe#27732

* fix: consolidated report not consider company currency

(cherry picked from commit dc42064)

* fix: opening balance to calculate 'Unclosed Fiscal Years Profit / Loss (Credit)'

(cherry picked from commit 19d14da)

* frappe#27804

* fix: consolitated financial statement

* fix: chart of account

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com>
Co-authored-by: marination <maricadsouza221197@gmail.com>
Co-authored-by: Saqib <nextchamp.saqib@gmail.com>
Co-authored-by: GangaManoj <ganga.manoj98@gmail.com>
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
fproldan pushed a commit to fproldan/erpnext that referenced this pull request Jun 24, 2022
fproldan pushed a commit to fproldan/erpnext that referenced this pull request Jun 24, 2022
fproldan pushed a commit to fproldan/erpnext that referenced this pull request Jun 24, 2022
ValentinaPruvost pushed a commit to fproldan/erpnext that referenced this pull request Jun 24, 2022
* fix: Account number and name incorrectly import using COA importer

(cherry picked from commit 17a8649)

* fix

* fix: Totals row incorrect value in GL Entry (frappe#27867)

(cherry picked from commit ebe68c1)

* frappe#27862

* frappe#27915

* fix: Item Variant selection empty popup on website

- pass item_code instead of website item name to fetch attributes

* perf: fetching of account balance in chart of accounts (frappe#27661)

(cherry picked from commit 9051735)

* frappe#27748

* fix: Website Items with same Item name unhandled, thumbnails missing

- Use naming series for Website Item. There could be two items with same name and different item code
- Fix: Website Item Page view breaks if cart is disabled
- Fix: thumbnails not created for Website Items after patch
- Fix: ‘Request for Quote’ button & cart summary not visible if checkout is disabled

(cherry picked from commit 36b519c)

* fix: Pre-commit formatting

(cherry picked from commit 77d4849)

* fix: Delete linked Transaction Deletion Record docs on deleting company

(cherry picked from commit 38c7e42)

* fix

* frappe#27732

* fix: consolidated report not consider company currency

(cherry picked from commit dc42064)

* fix: opening balance to calculate 'Unclosed Fiscal Years Profit / Loss (Credit)'

(cherry picked from commit 19d14da)

* frappe#27804

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com>
Co-authored-by: marination <maricadsouza221197@gmail.com>
Co-authored-by: Saqib <nextchamp.saqib@gmail.com>
Co-authored-by: GangaManoj <ganga.manoj98@gmail.com>
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
ValentinaPruvost pushed a commit to fproldan/erpnext that referenced this pull request Jun 24, 2022
* fix: Account number and name incorrectly import using COA importer

(cherry picked from commit 17a8649)

* fix

* fix: Totals row incorrect value in GL Entry (frappe#27867)

(cherry picked from commit ebe68c1)

* frappe#27862

* frappe#27915

* fix: Item Variant selection empty popup on website

- pass item_code instead of website item name to fetch attributes

* perf: fetching of account balance in chart of accounts (frappe#27661)

(cherry picked from commit 9051735)

* frappe#27748

* fix: Website Items with same Item name unhandled, thumbnails missing

- Use naming series for Website Item. There could be two items with same name and different item code
- Fix: Website Item Page view breaks if cart is disabled
- Fix: thumbnails not created for Website Items after patch
- Fix: ‘Request for Quote’ button & cart summary not visible if checkout is disabled

(cherry picked from commit 36b519c)

* fix: Pre-commit formatting

(cherry picked from commit 77d4849)

* fix: Delete linked Transaction Deletion Record docs on deleting company

(cherry picked from commit 38c7e42)

* fix

* frappe#27732

* fix: consolidated report not consider company currency

(cherry picked from commit dc42064)

* fix: opening balance to calculate 'Unclosed Fiscal Years Profit / Loss (Credit)'

(cherry picked from commit 19d14da)

* frappe#27804

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com>
Co-authored-by: marination <maricadsouza221197@gmail.com>
Co-authored-by: Saqib <nextchamp.saqib@gmail.com>
Co-authored-by: GangaManoj <ganga.manoj98@gmail.com>
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
ValentinaPruvost pushed a commit to fproldan/erpnext that referenced this pull request Jun 24, 2022
* fix: Account number and name incorrectly import using COA importer

(cherry picked from commit 17a8649)

* fix

* fix: Totals row incorrect value in GL Entry (frappe#27867)

(cherry picked from commit ebe68c1)

* frappe#27862

* frappe#27915

* fix: Item Variant selection empty popup on website

- pass item_code instead of website item name to fetch attributes

* perf: fetching of account balance in chart of accounts (frappe#27661)

(cherry picked from commit 9051735)

* frappe#27748

* fix: Website Items with same Item name unhandled, thumbnails missing

- Use naming series for Website Item. There could be two items with same name and different item code
- Fix: Website Item Page view breaks if cart is disabled
- Fix: thumbnails not created for Website Items after patch
- Fix: ‘Request for Quote’ button & cart summary not visible if checkout is disabled

(cherry picked from commit 36b519c)

* fix: Pre-commit formatting

(cherry picked from commit 77d4849)

* fix: Delete linked Transaction Deletion Record docs on deleting company

(cherry picked from commit 38c7e42)

* fix

* frappe#27732

* fix: consolidated report not consider company currency

(cherry picked from commit dc42064)

* fix: opening balance to calculate 'Unclosed Fiscal Years Profit / Loss (Credit)'

(cherry picked from commit 19d14da)

* frappe#27804

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com>
Co-authored-by: marination <maricadsouza221197@gmail.com>
Co-authored-by: Saqib <nextchamp.saqib@gmail.com>
Co-authored-by: GangaManoj <ganga.manoj98@gmail.com>
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants