Fix translate expense_claim.js

This commit is contained in:
Bárbara Perretti 2013-10-07 15:39:20 -03:00
parent 63439ef7c7
commit 28181d3384

View File

@ -93,28 +93,28 @@ cur_frm.cscript.refresh = function(doc,cdt,cdn){
cur_frm.savesubmit(); cur_frm.savesubmit();
if(doc.docstatus==1 && wn.model.can_create("Journal Voucher")) if(doc.docstatus==1 && wn.model.can_create("Journal Voucher"))
cur_frm.add_custom_button("Make Bank Voucher", cur_frm.cscript.make_bank_voucher); cur_frm.add_custom_button(wn._("Make Bank Voucher"), cur_frm.cscript.make_bank_voucher);
} }
} }
cur_frm.cscript.set_help = function(doc) { cur_frm.cscript.set_help = function(doc) {
cur_frm.set_intro(""); cur_frm.set_intro("");
if(doc.__islocal && !in_list(user_roles, "HR User")) { if(doc.__islocal && !in_list(user_roles, "HR User")) {
cur_frm.set_intro("Fill the form and save it") cur_frm.set_intro(wn._("Fill the form and save it"))
} else { } else {
if(doc.docstatus==0 && doc.approval_status=="Draft") { if(doc.docstatus==0 && doc.approval_status=="Draft") {
if(user==doc.exp_approver) { if(user==doc.exp_approver) {
cur_frm.set_intro("You are the Expense Approver for this record. \ cur_frm.set_intro(wn._("You are the Expense Approver for this record. \
Please Update the 'Status' and Save"); Please Update the 'Status' and Save"));
} else { } else {
cur_frm.set_intro("Expense Claim is pending approval. \ cur_frm.set_intro(wn._("Expense Claim is pending approval. \
Only the Expense Approver can update status."); Only the Expense Approver can update status."));
} }
} else { } else {
if(doc.approval_status=="Approved") { if(doc.approval_status=="Approved") {
cur_frm.set_intro("Expense Claim has been approved."); cur_frm.set_intro(wn._("Expense Claim has been approved."));
} else if(doc.approval_status=="Rejected") { } else if(doc.approval_status=="Rejected") {
cur_frm.set_intro("Expense Claim has been rejected."); cur_frm.set_intro(wn._("Expense Claim has been rejected."));
} }
} }
} }