Skip to content

feat: Added checkbox to exclude specific salary component amount from Journal Entry #3315

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

iamkhanraheel
Copy link
Collaborator

@iamkhanraheel iamkhanraheel commented Jul 7, 2025

Reason

To ensure salary component exclusion from journal entry as per need

Changes Done

  • Added a new checkbox Do Not Include in Accounting Entries in salary component to exclude specific component amount from Journal Enrtry
  • It will be shown when Do Not Include in Total checkbox is enabled

Screenshots

image image image

no-docs

Copy link
Member

@ruchamahabal ruchamahabal left a comment

Choose a reason for hiding this comment

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

I had tried this but it's used by some users as a feature so could not remove it 😅
#2389

@AyshaHakeem
Copy link
Collaborator

AyshaHakeem commented Jul 8, 2025

can you please add a test and fix the linter issue @iamkhanraheel

@AyshaHakeem
Copy link
Collaborator

Can it be a separate check box then? @ruchamahabal

& (ss.name.isin([d.name for d in salary_slips]))
& (
(ssd.do_not_include_in_total == 0)
| ((ssd.do_not_include_in_total == 1) & (ssd.do_not_include_in_accounts == 0))
Copy link
Collaborator

@AyshaHakeem AyshaHakeem Jul 18, 2025

Choose a reason for hiding this comment

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

do_not_include_in_total check can be removed from this condition? every component has do_not_include_in_total either set to 0 or 1 since those are the only options

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This condition will help to give only those component where do_not_include_in_total is not checked, if it is checked then do_not_include_in_account should be unchecked

@iamkhanraheel iamkhanraheel changed the title fix: Exclude salary component which is not allowed to include in total in Journal Entry feat: Added checkbox to exclude specific salary component amount from Journal Entry Jul 21, 2025
@iamkhanraheel iamkhanraheel requested a review from nabinhait July 24, 2025 07:12
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.

3 participants