Field renamed in sms center

This commit is contained in:
Nabin Hait 2014-06-18 09:02:21 +05:30
parent b73d3f925d
commit ac1a4ed576
2 changed files with 106 additions and 106 deletions

View File

@ -3,15 +3,15 @@
$.extend(cur_frm.cscript, {
message: function () {
var total_words = this.frm.doc.message.length;
var total_characters = this.frm.doc.message.length;
var total_msg = 1;
if (total_words > 160) {
total_msg = cint(total_words / 160);
total_msg = (total_words % 160 == 0 ? total_msg : total_msg + 1);
if (total_characters > 160) {
total_msg = cint(total_characters / 160);
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);
}
});

View File

@ -82,7 +82,7 @@
"reqd": 1
},
{
"fieldname": "total_words",
"fieldname": "total_characters",
"fieldtype": "Int",
"label": "Total Characters",
"permlevel": 0,
@ -109,7 +109,7 @@
"idx": 1,
"in_create": 0,
"issingle": 1,
"modified": "2014-05-09 02:17:41.375945",
"modified": "2014-06-18 08:59:51.755566",
"modified_by": "Administrator",
"module": "Selling",
"name": "SMS Center",