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: Tax for recurring additional salary #27459

Merged

Conversation

nabinhait
Copy link
Member

@nabinhait nabinhait commented Sep 13, 2021

Recurring Additional Salary:

Is Recurring Additional Salary checkbox added to Salary Slip detail:

is-recurring

Taxable Amounts will be calculated considering future recurring additional salary records.

#no-docs

@nabinhait nabinhait force-pushed the tax-for-recurring-additional-salary branch from 4288ded to 3651e47 Compare September 13, 2021 09:56
@codecov
Copy link

codecov bot commented Sep 13, 2021

Codecov Report

Merging #27459 (7853ee4) into develop (830fa60) will increase coverage by 0.17%.
The diff coverage is 96.00%.

@@             Coverage Diff             @@
##           develop   #27459      +/-   ##
===========================================
+ Coverage    54.26%   54.43%   +0.17%     
===========================================
  Files         1255     1255              
  Lines        67831    67845      +14     
===========================================
+ Hits         36810    36933     +123     
+ Misses       31021    30912     -109     
Impacted Files Coverage Δ
erpnext/payroll/doctype/salary_slip/salary_slip.py 83.64% <94.73%> (+0.21%) ⬆️
...oll/doctype/additional_salary/additional_salary.py 68.88% <100.00%> (+1.44%) ⬆️
erpnext/education/doctype/student/student.py 73.95% <0.00%> (-3.13%) ⬇️
...value/warehouse_wise_item_balance_age_and_value.py 92.59% <0.00%> (-2.47%) ⬇️
...ion/doctype/course_enrollment/course_enrollment.py 45.09% <0.00%> (-1.97%) ⬇️
erpnext/portal/utils.py 30.00% <0.00%> (-1.43%) ⬇️
erpnext/stock/reorder_item.py 77.11% <0.00%> (-0.85%) ⬇️
erpnext/stock/stock_ledger.py 85.35% <0.00%> (-0.73%) ⬇️
erpnext/stock/get_item_details.py 79.38% <0.00%> (-0.47%) ⬇️
... and 20 more

@stale
Copy link

stale bot commented Sep 29, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed within a week if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing.

@stale stale bot added the inactive label Sep 29, 2021
@stale
Copy link

stale bot commented Oct 14, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed within a week if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing.

@stale stale bot added the inactive label Oct 14, 2021
@stale stale bot closed this Oct 17, 2021
@ruchamahabal ruchamahabal reopened this Oct 18, 2021
@stale stale bot removed the inactive label Oct 18, 2021
@ruchamahabal ruchamahabal changed the title Tax for recurring additional salary feat: Tax for recurring additional salary Oct 20, 2021
@ruchamahabal ruchamahabal force-pushed the tax-for-recurring-additional-salary branch from a3fd8bf to 97c344a Compare October 20, 2021 09:38
@ruchamahabal ruchamahabal force-pushed the tax-for-recurring-additional-salary branch from 97c344a to 7853ee4 Compare October 20, 2021 09:49
@ruchamahabal ruchamahabal merged commit 2ef4844 into frappe:develop Oct 20, 2021
@ruchamahabal
Copy link
Member

@Mergifyio backport version-13-hotfix

mergify bot pushed a commit that referenced this pull request Oct 20, 2021
* fix: Logic for tax calculation on recurring additional salary

* fix: Get actual amount always in case of overwritten additional salary even if based on payment days

* feat: Test case added for recurring additional salary

* fix: use query builder to get additional salaries instead of raw SQL

* fix: query formatting and remove trailing spaces

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
(cherry picked from commit 2ef4844)

# Conflicts:
#	erpnext/payroll/doctype/salary_slip/salary_slip.py
#	erpnext/payroll/doctype/salary_slip/test_salary_slip.py
@mergify
Copy link
Contributor

mergify bot commented Oct 20, 2021

backport version-13-hotfix

✅ Backports have been created

ruchamahabal added a commit that referenced this pull request Oct 20, 2021
* feat: Tax for recurring additional salary (#27459)

* fix: Logic for tax calculation on recurring additional salary

* fix: Get actual amount always in case of overwritten additional salary even if based on payment days

* feat: Test case added for recurring additional salary

* fix: use query builder to get additional salaries instead of raw SQL

* fix: query formatting and remove trailing spaces

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
(cherry picked from commit 2ef4844)

# Conflicts:
#	erpnext/payroll/doctype/salary_slip/salary_slip.py
#	erpnext/payroll/doctype/salary_slip/test_salary_slip.py

* fix: conflicts

Co-authored-by: Nabin Hait <nabinhait@gmail.com>
Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
…appe#28024)

* feat: Tax for recurring additional salary (frappe#27459)

* fix: Logic for tax calculation on recurring additional salary

* fix: Get actual amount always in case of overwritten additional salary even if based on payment days

* feat: Test case added for recurring additional salary

* fix: use query builder to get additional salaries instead of raw SQL

* fix: query formatting and remove trailing spaces

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
(cherry picked from commit 2ef4844)

# Conflicts:
#	erpnext/payroll/doctype/salary_slip/salary_slip.py
#	erpnext/payroll/doctype/salary_slip/test_salary_slip.py

* fix: conflicts

Co-authored-by: Nabin Hait <nabinhait@gmail.com>
Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
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.

2 participants