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

refactor(Salary Structure Assignment): opening balances setup warning + section visibility #2309

Conversation

ruchamahabal
Copy link
Member

@ruchamahabal ruchamahabal commented Oct 18, 2024

Simplified overengineered setup for setting opening balances in salary structure assignments:

  • Remove a checkbox from Payroll Settings. This setting just toggles the visibility of the opening earnings till date & tax deducted till date, but if it's disabled & amounts are set, these amounts are still considered in the payroll. Seems like an overkill for just controlling visibility
    image

  • Relabelled opening balances section
    image

  • Simplified logic for toggling & warning about opening balances. Too much back and forth between functions, buggy and typos in functions

Closes #1853

… in assignment

- this setting just toggles visibility of the opening earnings till date & tax deducted till date, but if its disabled & amounts are set, these amounts are still considered in payroll

- seems like an overkill to just control visibility
@ruchamahabal ruchamahabal force-pushed the fix-opening-earnings-section-visibility branch from 574176d to df980ce Compare October 18, 2024 13:57
@ruchamahabal ruchamahabal changed the title refactor(Salary Structure Assignment): Opening Balances setup warning + section visibility refactor(Salary Structure Assignment): opening balances setup warning + section visibility Oct 18, 2024
@ruchamahabal ruchamahabal merged commit 7f9c05f into frappe:develop Oct 18, 2024
8 checks passed
ruchamahabal added a commit that referenced this pull request Oct 18, 2024
…2309

refactor(Salary Structure Assignment): opening balances setup warning + section visibility (backport #2309)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Opening Balance filed disappear after choosing from date at salary structure
1 participant