Fix translate salary_manager.js
This commit is contained in:
parent
2521910d56
commit
e9548a55e9
@ -5,7 +5,7 @@ var display_activity_log = function(msg) {
|
|||||||
if(!pscript.ss_html)
|
if(!pscript.ss_html)
|
||||||
pscript.ss_html = $a(cur_frm.fields_dict['activity_log'].wrapper,'div');
|
pscript.ss_html = $a(cur_frm.fields_dict['activity_log'].wrapper,'div');
|
||||||
pscript.ss_html.innerHTML =
|
pscript.ss_html.innerHTML =
|
||||||
'<div class="panel"><div class="panel-heading">Activity Log:</div>'+msg+'</div>';
|
'<div class="panel"><div class="panel-heading">'+wn._("Activity Log:")+'</div>'+msg+'</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
//Create salary slip
|
//Create salary slip
|
||||||
@ -23,7 +23,7 @@ cur_frm.cscript.create_salary_slip = function(doc, cdt, cdn) {
|
|||||||
//Submit salary slip
|
//Submit salary slip
|
||||||
//-----------------------
|
//-----------------------
|
||||||
cur_frm.cscript.submit_salary_slip = function(doc, cdt, cdn) {
|
cur_frm.cscript.submit_salary_slip = function(doc, cdt, cdn) {
|
||||||
var check = confirm("Do you really want to Submit all Salary Slip for month : " + doc.month+" and fiscal year : "+doc.fiscal_year);
|
var check = confirm(wn._("Do you really want to Submit all Salary Slip for month : ") + doc.month+ wn._(" and fiscal year : ")+doc.fiscal_year);
|
||||||
if(check){
|
if(check){
|
||||||
var callback = function(r, rt){
|
var callback = function(r, rt){
|
||||||
if (r.message)
|
if (r.message)
|
||||||
@ -49,7 +49,7 @@ cur_frm.cscript.make_jv = function(doc, dt, dn) {
|
|||||||
var jv = wn.model.make_new_doc_and_get_name('Journal Voucher');
|
var jv = wn.model.make_new_doc_and_get_name('Journal Voucher');
|
||||||
jv = locals['Journal Voucher'][jv];
|
jv = locals['Journal Voucher'][jv];
|
||||||
jv.voucher_type = 'Bank Voucher';
|
jv.voucher_type = 'Bank Voucher';
|
||||||
jv.user_remark = 'Payment of salary for the month: ' + doc.month + 'and fiscal year: ' + doc.fiscal_year;
|
jv.user_remark = wn._('Payment of salary for the month: ') + doc.month + wn._('and fiscal year: ') + doc.fiscal_year;
|
||||||
jv.fiscal_year = doc.fiscal_year;
|
jv.fiscal_year = doc.fiscal_year;
|
||||||
jv.company = doc.company;
|
jv.company = doc.company;
|
||||||
jv.posting_date = dateutil.obj_to_str(new Date());
|
jv.posting_date = dateutil.obj_to_str(new Date());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user