-
Notifications
You must be signed in to change notification settings - Fork 754
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 #2436
Merged
ruchamahabal
merged 3 commits into
frappe:develop
from
asmitahase:editable-salary-letterhead
Nov 22, 2024
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
5e53324
fix: removed "fetch from" setting on letter head in salary structure …
asmitahase 18dc6fc
fix: added "fetch from company default letter head" back, with "fetch…
asmitahase d3564c4
fix: doctype permissions were removed while saving the doctype, could…
asmitahase File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,9 @@ | |
"search_index": 1 | ||
}, | ||
{ | ||
"allow_on_submit": 1, | ||
"fetch_from": "company.default_letter_head", | ||
"fetch_if_empty": 1, | ||
"fieldname": "letter_head", | ||
"fieldtype": "Link", | ||
"label": "Letter Head", | ||
|
@@ -240,44 +242,13 @@ | |
"idx": 1, | ||
"is_submittable": 1, | ||
"links": [], | ||
"modified": "2024-03-27 13:10:34.984210", | ||
"modified": "2024-11-22 11:17:28.384386", | ||
"modified_by": "Administrator", | ||
"module": "Payroll", | ||
"name": "Salary Structure", | ||
"naming_rule": "Set by user", | ||
"owner": "Administrator", | ||
"permissions": [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Default perms got removed accidentally IG There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. they're removed while saving the updated doctype settings, couldn't figure out why, added them back |
||
{ | ||
"amend": 1, | ||
"cancel": 1, | ||
"create": 1, | ||
"delete": 1, | ||
"email": 1, | ||
"print": 1, | ||
"read": 1, | ||
"report": 1, | ||
"role": "HR User", | ||
"share": 1, | ||
"submit": 1, | ||
"write": 1 | ||
}, | ||
{ | ||
"amend": 1, | ||
"cancel": 1, | ||
"create": 1, | ||
"delete": 1, | ||
"email": 1, | ||
"export": 1, | ||
"import": 1, | ||
"print": 1, | ||
"read": 1, | ||
"report": 1, | ||
"role": "HR Manager", | ||
"share": 1, | ||
"submit": 1, | ||
"write": 1 | ||
} | ||
], | ||
"permissions": [], | ||
"show_name_in_global_search": 1, | ||
"sort_field": "creation", | ||
"sort_order": "DESC", | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Instead, you can let this be and just enable "fetch if empty". That will let you overwrite the letter head
Also let's enable "Allow on Submit" for this field so that people don't have to cancel the entire structure to edit this.
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.
Smart, shoulda thought of that, done