Skip to content

Commit

Permalink
fix(Payroll Entry): permissibility of Queued status doc cancellation …
Browse files Browse the repository at this point in the history
…(backport #1298) (#1330)

(cherry picked from commit 5a70e92)

Co-authored-by: Akash  Tom <[email protected]>
  • Loading branch information
mergify[bot] and krantheman authored Jan 18, 2024
1 parent d5e6c75 commit 8709d96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hrms/payroll/doctype/payroll_entry/payroll_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ frappe.ui.form.on('Payroll Entry', {
},

refresh: function (frm) {
if (frm.doc.status === "Queued") frm.page.btn_secondary.hide()

if (frm.doc.docstatus === 0 && !frm.is_new()) {
frm.page.clear_primary_action();
frm.add_custom_button(__("Get Employees"),
Expand Down

0 comments on commit 8709d96

Please sign in to comment.