mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
Translations redesigned webnotes/wnframework#351
This commit is contained in:
@@ -104,11 +104,9 @@ cur_frm.cscript.set_help = function(doc) {
|
||||
} else {
|
||||
if(doc.docstatus==0 && doc.approval_status=="Draft") {
|
||||
if(user==doc.exp_approver) {
|
||||
cur_frm.set_intro(wn._("You are the Expense Approver for this record. \
|
||||
Please Update the 'Status' and Save"));
|
||||
cur_frm.set_intro(wn._("You are the Expense Approver for this record. Please Update the 'Status' and Save"));
|
||||
} else {
|
||||
cur_frm.set_intro(wn._("Expense Claim is pending approval. \
|
||||
Only the Expense Approver can update status."));
|
||||
cur_frm.set_intro(wn._("Expense Claim is pending approval. Only the Expense Approver can update status."));
|
||||
}
|
||||
} else {
|
||||
if(doc.approval_status=="Approved") {
|
||||
|
||||
@@ -107,8 +107,7 @@ class DocType(DocListController):
|
||||
self.doc.total_leave_days = self.get_total_leave_days()["total_leave_days"]
|
||||
|
||||
if self.doc.total_leave_days == 0:
|
||||
msgprint(_("Hurray! The day(s) on which you are applying for leave \
|
||||
coincide with holiday(s). You need not apply for leave."),
|
||||
msgprint(_("The day(s) on which you are applying for leave coincide with holiday(s). You need not apply for leave."),
|
||||
raise_exception=1)
|
||||
|
||||
if not is_lwp(self.doc.leave_type):
|
||||
|
||||
@@ -60,8 +60,7 @@ class DocType:
|
||||
ret = webnotes.conn.sql("""select name from `tabSalary Structure` where is_active = 'Yes'
|
||||
and employee = %s and name!=%s""", (self.doc.employee,self.doc.name))
|
||||
if ret and self.doc.is_active=='Yes':
|
||||
msgprint(_("""Another Salary Structure '%s' is active for employee '%s'.
|
||||
Please make its status 'Inactive' to proceed.""") %
|
||||
msgprint(_("""Another Salary Structure '%s' is active for employee '%s'. Please make its status 'Inactive' to proceed.""") %
|
||||
(cstr(ret), self.doc.employee), raise_exception=1)
|
||||
|
||||
def validate_amount(self):
|
||||
|
||||
Reference in New Issue
Block a user