mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-09 08:11:19 +00:00
fix in expense claim
This commit is contained in:
@@ -54,10 +54,8 @@ cur_frm.cscript.refresh = function(doc,cdt,cdn){
|
|||||||
} else {
|
} else {
|
||||||
if(doc.approval_status=="Draft") {
|
if(doc.approval_status=="Draft") {
|
||||||
if(user==doc.exp_approver) {
|
if(user==doc.exp_approver) {
|
||||||
if(doc.approval_status=="Draft") {
|
cur_frm.set_intro("You are the Expense Approver for this record. Please Update the 'Status' and Save");
|
||||||
cur_frm.set_intro("You are the Expense Approver for this record. Please Update the 'Status' and Save");
|
cur_frm.toggle_enable("approval_status", true);
|
||||||
cur_frm.toggle_enable("approval_status", true);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
cur_frm.set_intro("Expense Claim is pending approval. Only the Expense Approver can update status.");
|
cur_frm.set_intro("Expense Claim is pending approval. Only the Expense Approver can update status.");
|
||||||
cur_frm.toggle_enable("approval_status", false);
|
cur_frm.toggle_enable("approval_status", false);
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
{
|
{
|
||||||
"owner": "harshada@webnotestech.com",
|
"owner": "harshada@webnotestech.com",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"creation": "2012-12-05 14:11:53",
|
"creation": "2012-12-05 16:53:59",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"modified": "2012-12-05 14:22:27"
|
"modified": "2012-12-06 17:34:37"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"permlevel": 1,
|
"permlevel": 0,
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
@@ -248,8 +248,8 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"cancel": 1,
|
|
||||||
"role": "Expense Approver",
|
"role": "Expense Approver",
|
||||||
|
"cancel": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"match": "exp_approver:user"
|
"match": "exp_approver:user"
|
||||||
},
|
},
|
||||||
@@ -259,8 +259,8 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"cancel": 1,
|
|
||||||
"role": "HR User",
|
"role": "HR User",
|
||||||
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user