fix: dont show View
button on cancelled SCR
This commit is contained in:
parent
98cba5ed30
commit
dd80d3b9b9
@ -24,7 +24,7 @@ frappe.ui.form.on('Subcontracting Receipt', {
|
||||
},
|
||||
|
||||
refresh: (frm) => {
|
||||
if (frm.doc.docstatus > 0) {
|
||||
if (frm.doc.docstatus === 1) {
|
||||
frm.add_custom_button(__('Stock Ledger'), () => {
|
||||
frappe.route_options = {
|
||||
voucher_no: frm.doc.name,
|
||||
|
Loading…
x
Reference in New Issue
Block a user