-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
base: develop
Are you sure you want to change the base?
feat: Added checkbox to exclude specific salary component amount from Journal Entry #3315
Conversation
There was a problem hiding this 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
can you please add a test and fix the linter issue @iamkhanraheel |
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)) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Reason
To ensure salary component exclusion from journal entry as per need
Changes Done
Screenshots
no-docs