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: ignore cancelled gle in voucher-wise balance report #36417

Conversation

GursheenK
Copy link
Member

Fetch GL entries that have is_cancelled = 0 in Voucher-Wise Balance Report.

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Jul 31, 2023
@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Merging #36417 (c017f7d) into develop (8c410c6) will increase coverage by 0.58%.
Report is 111 commits behind head on develop.
The diff coverage is 0.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #36417      +/-   ##
===========================================
+ Coverage    64.11%   64.70%   +0.58%     
===========================================
  Files          785      786       +1     
  Lines        60780    61111     +331     
===========================================
+ Hits         38970    39541     +571     
+ Misses       21810    21570     -240     
Files Changed Coverage Δ
...eport/voucher_wise_balance/voucher_wise_balance.py 0.00% <ø> (ø)
...t/crm/doctype/twitter_settings/twitter_settings.py 0.00% <0.00%> (ø)

... and 34 files with indirect coverage changes

@deepeshgarg007 deepeshgarg007 merged commit 1ddfaa7 into frappe:develop Jul 31, 2023
14 checks passed
@@ -46,6 +46,7 @@ def get_data(filters):
.select(
gle.voucher_type, gle.voucher_no, Sum(gle.debit).as_("debit"), Sum(gle.credit).as_("credit")
)
.where(gle.is_cancelled == 0)
Copy link
Member

@ankush ankush Jul 31, 2023

Choose a reason for hiding this comment

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

This is missed out many times. Can we write some semgrep rule to prevent this?

https://github.com/frappe/semgrep-rules

@ruthra-kumar ruthra-kumar added the backport version-14-hotfix backport to version 14 label Oct 10, 2023
mergify bot pushed a commit that referenced this pull request Oct 10, 2023
fix: ignore cancelled gle
(cherry picked from commit 1ddfaa7)
ruthra-kumar added a commit that referenced this pull request Oct 10, 2023
…-36417

fix: ignore cancelled gle in voucher-wise balance report (backport #36417)
frappe-pr-bot pushed a commit that referenced this pull request Oct 12, 2023
# [14.44.0](v14.43.1...v14.44.0) (2023-10-12)

### Bug Fixes

* added validation for the batch on stock reco ([#37174](#37174)) ([4c337a6](4c337a6))
* ageing summary in AR ([15d2024](15d2024))
* allocate amt for payment term invoices ([b22ac13](b22ac13))
* call validate before setting repost flag ([bec3e8e](bec3e8e))
* do not run bg job for single doc ([4123e7b](4123e7b))
* **Employee:** enable `no_copy` for `relieving_date` (backport [#37344](#37344)) ([#37358](#37358)) ([2b38b78](2b38b78))
* exception on exporting errored rows ([e58b3b1](e58b3b1))
* fetch company details for Lead based quotation ([c1d40a6](c1d40a6))
* fetch dependent task subject and project (backport [#37401](#37401)) ([#37421](#37421)) ([0aad942](0aad942))
* ignore cancelled gle in voucher-wise balance report ([#36417](#36417)) ([ee1255a](ee1255a))
* incorrect status of the returned purchase receipt ([#37300](#37300)) ([63f4573](63f4573))
* linting issues ([6c8a65e](6c8a65e))
* negative valuation rate in PR return ([#37424](#37424)) ([26ad688](26ad688))
* payment request rounding in multi-currency and on status update ([eed5863](eed5863))
* production plan reserved qty incorrect calculation (backport [#37400](#37400)) ([#37458](#37458)) ([573b159](573b159))
* split inv allocated amt on server side ([06b0477](06b0477))
* typo in doctype name and qb ([606c99e](606c99e))
* **ux:** allow MR to Stop until fully received (backport [#37452](#37452)) ([#37456](#37456)) ([fb0b426](fb0b426))
* validation for si ([3dc68e3](3dc68e3))

### Features

* add repost btn in invoice ([cde848d](cde848d))
* allow on submit fields ([f5245f6](f5245f6))
* allow repost for pi ([2d13dda](2d13dda))
* composite WIP asset ([#37352](#37352)) ([0ecd7d2](0ecd7d2))
* disable currency exchange api. ([#33593](#33593)) ([1ca0516](1ca0516))
* filter on voucher no ([cb35218](cb35218))
* introduce unreconcile doctype ([ae8355c](ae8355c))
* UI for unreconcile ([9531a45](9531a45))
* unreconcile support for journal entry ([cd2d335](cd2d335))
* validate negative stock for inventory dimension ([#37373](#37373)) ([1480aca](1480aca))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14 needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants