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: '0' rate LDC's Invoice net totals should be ignored #45639

Merged

Conversation

ruthra-kumar
Copy link
Member

@ruthra-kumar ruthra-kumar commented Jan 31, 2025

| Dec 2024 | Jan 2025 |
|          |          |
| LDC @ 0% |          |
|----------+----------|
| pinv1    | pinv3    |
| pinv2    |          |

Consider above scenario, LDC of '0' rate active for December 2024 and thera are purchase invoices booked in that period. Now, when a purchase invoice is created outside LDC, system incorrectly considers net total of pinv1 and pinv2 on TDS calculation as there are no taxes on the previous entries.

todo:

  • test case

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Jan 31, 2025
@ruthra-kumar ruthra-kumar force-pushed the incorrect_tds_on_0_rate_ldc branch from 51d2c45 to 8955fa7 Compare February 6, 2025 05:11
@ruthra-kumar ruthra-kumar force-pushed the incorrect_tds_on_0_rate_ldc branch from 8955fa7 to 325c4e3 Compare February 6, 2025 05:35
@ruthra-kumar ruthra-kumar added backport version-14-hotfix backport to version 14 backport version-15-hotfix and removed needs-tests This PR needs automated unit-tests. labels Feb 7, 2025
@ruthra-kumar ruthra-kumar marked this pull request as ready for review February 7, 2025 06:49
@ruthra-kumar ruthra-kumar merged commit b80b557 into frappe:develop Feb 7, 2025
14 checks passed
ruthra-kumar added a commit that referenced this pull request Feb 7, 2025
…-45639

fix: '0' rate LDC's Invoice net totals should be ignored (backport #45639)
ruthra-kumar added a commit that referenced this pull request Feb 13, 2025
…5639) (#45783)

* fix: '0' rate LDC's Invoice net totals should be ignored

(cherry picked from commit 325c4e3)

# Conflicts:
#	erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py

* test: ldc @ 0 rate

(cherry picked from commit 0cdd346)

# Conflicts:
#	erpnext/accounts/doctype/tax_withholding_category/test_tax_withholding_category.py

* chore: resolve conflicts

* fix: incorrect parameters

* fix: ignore 0 rate ldc invoices

---------

Co-authored-by: ruthra kumar <ruthra@erpnext.com>
frappe-pr-bot pushed a commit that referenced this pull request Feb 19, 2025
# [14.83.0](v14.82.2...v14.83.0) (2025-02-19)

### Bug Fixes

* '0' rate LDC's Invoice net totals should be ignored (backport [#45639](#45639)) ([#45783](#45783)) ([534b25c](534b25c))
* add is_new in if condition ([ef37388](ef37388))
* fetch child account data for selected parent ([#45904](#45904)) ([e7d9786](e7d9786))
* include missing payment_gateway parameter in Payment Request URL ([a344b8b](a344b8b))
* millisecond issue for posting datetime ([fc6f568](fc6f568))
* on selection of batch qty is not fetching ([44a16bb](44a16bb))
* pos return validation on v14 ([#45859](#45859)) ([84432fc](84432fc))
* **report:** add options to multiselectlist fields ([aa0ada9](aa0ada9))
* **send_message:** escape HTML in the text ([703fd81](703fd81))
* serial no is mandatory for zero qty validation ([6f6133f](6f6133f))
* set default value to 0 as per new logic ([4b16272](4b16272))
* tests ([e515b91](e515b91))

### Features

* added ability to use custom html format for process statement of accounts ([#45746](#45746)) ([a0cd08e](a0cd08e))
* added option to enforce free item qty in pricing rule ([2edf083](2edf083))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant