Field renamed in sms center
This commit is contained in:
parent
b73d3f925d
commit
ac1a4ed576
@ -3,15 +3,15 @@
|
|||||||
|
|
||||||
$.extend(cur_frm.cscript, {
|
$.extend(cur_frm.cscript, {
|
||||||
message: function () {
|
message: function () {
|
||||||
var total_words = this.frm.doc.message.length;
|
var total_characters = this.frm.doc.message.length;
|
||||||
var total_msg = 1;
|
var total_msg = 1;
|
||||||
|
|
||||||
if (total_words > 160) {
|
if (total_characters > 160) {
|
||||||
total_msg = cint(total_words / 160);
|
total_msg = cint(total_characters / 160);
|
||||||
total_msg = (total_words % 160 == 0 ? total_msg : total_msg + 1);
|
total_msg = (total_characters % 160 == 0 ? total_msg : total_msg + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.frm.set_value("total_words", total_words);
|
this.frm.set_value("total_characters", total_characters);
|
||||||
this.frm.set_value("total_messages", this.frm.doc.message ? total_msg : 0);
|
this.frm.set_value("total_messages", this.frm.doc.message ? total_msg : 0);
|
||||||
}
|
}
|
||||||
});
|
});
|
@ -82,7 +82,7 @@
|
|||||||
"reqd": 1
|
"reqd": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "total_words",
|
"fieldname": "total_characters",
|
||||||
"fieldtype": "Int",
|
"fieldtype": "Int",
|
||||||
"label": "Total Characters",
|
"label": "Total Characters",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
@ -109,7 +109,7 @@
|
|||||||
"idx": 1,
|
"idx": 1,
|
||||||
"in_create": 0,
|
"in_create": 0,
|
||||||
"issingle": 1,
|
"issingle": 1,
|
||||||
"modified": "2014-05-09 02:17:41.375945",
|
"modified": "2014-06-18 08:59:51.755566",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Selling",
|
"module": "Selling",
|
||||||
"name": "SMS Center",
|
"name": "SMS Center",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user