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: Editable Letter Head field in Salary Structure Doctype (backport #2436) #2443

Merged
merged 4 commits into from
Nov 25, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 22, 2024

Issue

Salary Structure doctype has "fetch from" setting to fetch company default letterhead so no other letter head can be set while creating salary structure. The same field value is mapped to salary slip, so for companies where the salary letter head is different from company letter head, the letter head field has to be changed manually while creating salary slip.

Fix

Removed "fetch from company default letter head" setting from Salary Structure and used form script to set the field value instead.

Before

  • Uneditable Letter Head in Salary Structure
Screenshot 2024-11-21 at 7 17 54 PM

After

  • Editable Letter Head in Salary Structure
Screenshot 2024-11-21 at 6 47 51 PM
  • After selecting the employee Letter Head maps to the one set in Salary Structure
Screenshot 2024-11-21 at 6 54 03 PM Screenshot 2024-11-21 at 6 56 16 PM

no-tests


This is an automatic backport of pull request #2436 done by Mergify.

…doctype, to make it editable, set the company defualt letter head using form script instead

(cherry picked from commit 5e53324)

# Conflicts:
#	hrms/payroll/doctype/salary_structure/salary_structure.json
… if empty" to make the field editable, intead of using form script to set the value

(cherry picked from commit 18dc6fc)

# Conflicts:
#	hrms/payroll/doctype/salary_structure/salary_structure.json
…n't figure out why, added them back

(cherry picked from commit d3564c4)
@mergify mergify bot requested a review from ruchamahabal as a code owner November 22, 2024 12:21
@mergify mergify bot added the conflicts label Nov 22, 2024
Copy link
Contributor Author

mergify bot commented Nov 22, 2024

Cherry-pick of 5e53324 has failed:

On branch mergify/bp/version-15-hotfix/pr-2436
Your branch is up to date with 'origin/version-15-hotfix'.

You are currently cherry-picking commit 5e5332404.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   hrms/payroll/doctype/salary_structure/salary_structure.js

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   hrms/payroll/doctype/salary_structure/salary_structure.json

Cherry-pick of 18dc6fc has failed:

On branch mergify/bp/version-15-hotfix/pr-2436
Your branch is ahead of 'origin/version-15-hotfix' by 1 commit.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit 18dc6fc4a.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   hrms/payroll/doctype/salary_structure/salary_structure.js

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   hrms/payroll/doctype/salary_structure/salary_structure.json

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@ruchamahabal
Copy link
Member

@asmitahase can you fix conflicts?

@asmitahase asmitahase force-pushed the mergify/bp/version-15-hotfix/pr-2436 branch from 00f3e29 to df71cf8 Compare November 25, 2024 09:04
@ruchamahabal ruchamahabal merged commit f948a36 into version-15-hotfix Nov 25, 2024
7 checks passed
@ruchamahabal ruchamahabal deleted the mergify/bp/version-15-hotfix/pr-2436 branch November 25, 2024 15:07
frappe-pr-bot pushed a commit that referenced this pull request Nov 26, 2024
## [15.35.3](v15.35.2...v15.35.3) (2024-11-26)

### Bug Fixes

* Editable Letter Head field in Salary Structure Doctype (backport [#2436](#2436)) ([#2443](#2443)) ([f948a36](f948a36))
* filters on vehicle expenses report (backport [#2440](#2440)) ([#2447](#2447)) ([4e4425c](4e4425c))
* ignore linked ledger entry record on employee advance cancellation (backport [#2432](#2432)) ([#2433](#2433)) ([e1d9514](e1d9514))
* redundant fetching of Interviewers in Interview ([#2441](#2441)) ([62cd631](62cd631))
* **Salary Structure Assignment:** validate cost center company on server-side (backport [#2445](#2445)) ([#2450](#2450)) ([7f5e969](7f5e969))
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 15.35.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants