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: additional salary amount is overwritten by salary component amount after selecting it, only if reference doctype is not set #2420

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

asmitahase
Copy link
Contributor

Issue

Amount field in New Additional Salary Doctype gets overwritten by amount field in Salary Component after selecting salary component. This behaviour is ideal except for scenarios like creating a "deduction from salary" from "employee advance"

Before

While creating new additional salary
Screenshot 2024-11-14 at 6 42 03 PM
While creating deduction from salary
Screenshot 2024-11-14 at 6 44 31 PM

After

While creating new additional salary (same as before)
Screenshot 2024-11-14 at 6 48 28 PM
While creating deduction from salary: Deduction amount referencing the employee advance doctype isn't overweritten
Screenshot 2024-11-14 at 6 48 09 PM

Fix

Removed "fetch from" "Salary Component" Setting on amount field in Additional Salary Doctype
Added conditional fetching and setting based on referenced doctype

no-tests

…t after selecting it, only if reference doctype is not set
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.

1 participant