change from labels to fieldname in cur_frm.cscript

This commit is contained in:
Anand Doshi
2012-04-05 13:03:35 +05:30
parent 130dfaee8c
commit fa0cd89a7c
204 changed files with 389 additions and 1663 deletions

View File

@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
'creation': '2010-09-20 12:33:34',
'creation': '2010-09-01 15:47:59',
'docstatus': 0,
'modified': '2012-03-30 13:33:31',
'modified': '2012-04-03 12:49:50',
'modified_by': u'Administrator',
'owner': u'ashwini@webnotestech.com'
},

View File

@@ -60,7 +60,7 @@ cur_frm.cscript.employee = function(doc,cdt,cdn){
}
}
cur_frm.cscript['Calculate Total Score'] = function(doc,cdt,cdn){
cur_frm.cscript.calculate_total_score = function(doc,cdt,cdn){
//get_server_fields('calculate_total','','',doc,cdt,cdn,1);
var val = getchildren('Appraisal Goal', doc.name, 'appraisal_details', doc.doctype);
var total =0;
@@ -71,7 +71,7 @@ cur_frm.cscript['Calculate Total Score'] = function(doc,cdt,cdn){
refresh_field('total_score')
}
/*cur_frm.cscript['Declare Completed'] = function(doc,cdt,cdn){
/*cur_frm.cscript.declare_completed = function(doc,cdt,cdn){
$c_obj(make_doclist(doc.doctype, doc.name),'declare_completed','', function(r,rt){
if(r.message){
refresh_field('Status');
@@ -80,7 +80,7 @@ cur_frm.cscript['Calculate Total Score'] = function(doc,cdt,cdn){
});
}*/
cur_frm.cscript['Declare Completed'] = function(doc,cdt,cdn){
cur_frm.cscript.declare_completed = function(doc,cdt,cdn){
var declare_completed_dialog;
set_declare_completed_dialog = function() {

View File

@@ -26,7 +26,7 @@ cur_frm.cscript.onload = function(doc,cdt,cdn){
}
//download attendance template - csv file
cur_frm.cscript['Get Template'] = function(doc,cdt,cdn){
cur_frm.cscript.get_template = function(doc,cdt,cdn){
if(doc.att_to_date && !doc.att_fr_date)
alert("Please enter 'Attendance To Date'");
@@ -37,7 +37,7 @@ cur_frm.cscript['Get Template'] = function(doc,cdt,cdn){
}
//---------------------------------------------------------
cur_frm.cscript['Import'] = function(doc,cdt,cdn){
cur_frm.cscript.import = function(doc,cdt,cdn){
if(!doc.file_list){
alert("Please upload attendance data CSV file");
}

View File

@@ -90,7 +90,7 @@ cur_frm.cscript.calculate_total = function(doc,cdt,cdn){
}
}
cur_frm.cscript['Calculate Total Amount'] = function(doc,cdt,cdn){
cur_frm.cscript.calculate_total_amount = function(doc,cdt,cdn){
cur_frm.cscript.calculate_total(doc,cdt,cdn);
}
cur_frm.cscript.claim_amount = function(doc,cdt,cdn){
@@ -102,7 +102,7 @@ cur_frm.cscript.sanctioned_amount = function(doc,cdt,cdn){
wn.require('erpnext/setup/doctype/notification_control/notification_control.js');
cur_frm.cscript['Approve'] = function(doc,cdt,cdn){
cur_frm.cscript.approve = function(doc,cdt,cdn){
if(user == doc.exp_approver){
var approve_voucher_dialog;
@@ -171,7 +171,7 @@ cur_frm.cscript['Approve'] = function(doc,cdt,cdn){
}
}
cur_frm.cscript['Reject'] = function(doc,cdt,cdn){
cur_frm.cscript.reject = function(doc,cdt,cdn){
if(user == doc.exp_approver){
var reject_voucher_dialog;
@@ -235,7 +235,7 @@ cur_frm.cscript['Reject'] = function(doc,cdt,cdn){
//update follow up
//=================================================================================
cur_frm.cscript['Update Voucher'] = function(doc){
cur_frm.cscript.update_voucher = function(doc){
$c_obj(make_doclist(doc.doctype, doc.name),'update_voucher','',function(r, rt){
refresh_field('expense_voucher_details');

View File

@@ -57,7 +57,7 @@ cur_frm.cscript.rent_acc = function(doc,cdt,cdn){
//---------------------------------------------------------
//On done button click check for all values filled or not, and accordingly add records in child tables
cur_frm.cscript['Done']=function(doc,cdt,cdn){
cur_frm.cscript.done=function(doc,cdt,cdn){
var mydoc=doc;
if(doc.employee && doc.fiscal_year && doc.metro && doc.sr_citizen && doc.part_sr_citizen && doc.basic && doc.gross_income){

View File

@@ -23,7 +23,7 @@ var display_activity_log = function(msg) {
//Create salary slip
//-----------------------
cur_frm.cscript['Create Salary Slip'] = function(doc, cdt, cdn) {
cur_frm.cscript.create_salary_slip = function(doc, cdt, cdn) {
var callback = function(r, rt){
if (r.message)
display_activity_log(r.message);
@@ -35,7 +35,7 @@ cur_frm.cscript['Create Salary Slip'] = function(doc, cdt, cdn) {
//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);
if(check){
var callback = function(r, rt){
@@ -48,7 +48,7 @@ cur_frm.cscript['Submit Salary Slip'] = function(doc, cdt, cdn) {
// Make Bank Voucher
//-----------------------
cur_frm.cscript['Make Bank Voucher'] = function(doc,cdt,cdn){
cur_frm.cscript.make_bank_voucher = function(doc,cdt,cdn){
if(doc.month && doc.fiscal_year){
cur_frm.cscript.make_jv(doc, cdt, cdn);
}

View File

@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
'creation': '2012-03-30 13:33:31',
'creation': '2012-04-03 12:49:51',
'docstatus': 0,
'modified': '2012-03-30 13:33:31',
'modified': '2012-04-03 12:49:51',
'modified_by': u'Administrator',
'owner': u'ashwini@webnotestech.com'
},

View File

@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
'creation': '2012-03-30 13:33:32',
'creation': '2012-04-03 12:49:51',
'docstatus': 0,
'modified': '2012-03-30 13:33:32',
'modified': '2012-04-03 12:49:51',
'modified_by': u'Administrator',
'owner': u'harshada@webnotestech.com'
},

View File

@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
'creation': '2012-03-30 13:33:31',
'creation': '2012-04-03 12:49:51',
'docstatus': 0,
'modified': '2012-03-30 13:33:31',
'modified': '2012-04-03 12:49:51',
'modified_by': u'Administrator',
'owner': u'Administrator'
},

View File

@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
'creation': '2012-03-30 13:33:31',
'creation': '2012-04-03 12:49:51',
'docstatus': 0,
'modified': '2012-03-30 13:33:31',
'modified': '2012-04-03 12:49:51',
'modified_by': u'Administrator',
'owner': u'Administrator'
},

View File

@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
'creation': '2012-03-30 14:50:43',
'creation': '2012-04-03 12:49:51',
'docstatus': 0,
'modified': '2012-03-30 14:50:43',
'modified': '2012-04-03 12:49:51',
'modified_by': u'Administrator',
'owner': u'harshada@webnotestech.com'
},

View File

@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
'creation': '2012-03-30 14:50:44',
'creation': '2012-04-03 12:49:51',
'docstatus': 0,
'modified': '2012-03-30 14:50:44',
'modified': '2012-04-03 12:49:51',
'modified_by': u'Administrator',
'owner': u'Administrator'
},

View File

@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
'creation': '2012-03-30 14:50:44',
'creation': '2012-04-03 12:49:51',
'docstatus': 0,
'modified': '2012-03-30 14:50:44',
'modified': '2012-04-03 12:49:51',
'modified_by': u'Administrator',
'owner': u'harshada@webnotestech.com'
},

View File

@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
'creation': '2012-03-30 14:50:44',
'creation': '2012-04-03 12:49:51',
'docstatus': 0,
'modified': '2012-03-30 14:50:44',
'modified': '2012-04-03 12:49:51',
'modified_by': u'Administrator',
'owner': u'ashwini@webnotestech.com'
},

View File

@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
'creation': '2012-03-30 13:33:32',
'creation': '2012-04-03 12:49:52',
'docstatus': 0,
'modified': '2012-03-30 13:33:32',
'modified': '2012-04-03 12:49:52',
'modified_by': u'Administrator',
'owner': u'harshada@webnotestech.com'
},

View File

@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
'creation': '2012-03-30 13:33:32',
'creation': '2012-04-03 12:49:52',
'docstatus': 0,
'modified': '2012-03-30 13:33:32',
'modified': '2012-04-03 12:49:52',
'modified_by': u'Administrator',
'owner': u'Administrator'
},

View File

@@ -3,9 +3,9 @@
# These values are common in all dictionaries
{
'creation': '2012-03-30 14:50:44',
'creation': '2012-04-03 12:49:52',
'docstatus': 0,
'modified': '2012-03-30 14:50:44',
'modified': '2012-04-03 12:49:52',
'modified_by': u'Administrator',
'owner': u'Administrator'
},