Field renamed in sms center
This commit is contained in:
parent
7c6c2e0ccf
commit
d5a4c871f2
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -1,135 +1,135 @@
|
||||
{
|
||||
"allow_attach": 0,
|
||||
"allow_copy": 1,
|
||||
"creation": "2013-01-10 16:34:22",
|
||||
"docstatus": 0,
|
||||
"doctype": "DocType",
|
||||
"allow_attach": 0,
|
||||
"allow_copy": 1,
|
||||
"creation": "2013-01-10 16:34:22",
|
||||
"docstatus": 0,
|
||||
"doctype": "DocType",
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "column_break1",
|
||||
"fieldtype": "Column Break",
|
||||
"permlevel": 0,
|
||||
"fieldname": "column_break1",
|
||||
"fieldtype": "Column Break",
|
||||
"permlevel": 0,
|
||||
"width": "50%"
|
||||
},
|
||||
},
|
||||
{
|
||||
"fieldname": "send_to",
|
||||
"fieldtype": "Select",
|
||||
"in_list_view": 1,
|
||||
"label": "Send To",
|
||||
"options": "\nAll Contact\nAll Customer Contact\nAll Supplier Contact\nAll Sales Partner Contact\nAll Lead (Open)\nAll Employee (Active)\nAll Sales Person",
|
||||
"fieldname": "send_to",
|
||||
"fieldtype": "Select",
|
||||
"in_list_view": 1,
|
||||
"label": "Send To",
|
||||
"options": "\nAll Contact\nAll Customer Contact\nAll Supplier Contact\nAll Sales Partner Contact\nAll Lead (Open)\nAll Employee (Active)\nAll Sales Person",
|
||||
"permlevel": 0
|
||||
},
|
||||
},
|
||||
{
|
||||
"depends_on": "eval:doc.send_to=='All Customer Contact'",
|
||||
"fieldname": "customer",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Customer",
|
||||
"options": "Customer",
|
||||
"depends_on": "eval:doc.send_to=='All Customer Contact'",
|
||||
"fieldname": "customer",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Customer",
|
||||
"options": "Customer",
|
||||
"permlevel": 0
|
||||
},
|
||||
},
|
||||
{
|
||||
"depends_on": "eval:doc.send_to=='All Supplier Contact'",
|
||||
"fieldname": "supplier",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Supplier",
|
||||
"options": "Supplier",
|
||||
"depends_on": "eval:doc.send_to=='All Supplier Contact'",
|
||||
"fieldname": "supplier",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Supplier",
|
||||
"options": "Supplier",
|
||||
"permlevel": 0
|
||||
},
|
||||
},
|
||||
{
|
||||
"depends_on": "eval:doc.send_to=='All Employee (Active)'",
|
||||
"fieldname": "department",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Department",
|
||||
"options": "Department",
|
||||
"depends_on": "eval:doc.send_to=='All Employee (Active)'",
|
||||
"fieldname": "department",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Department",
|
||||
"options": "Department",
|
||||
"permlevel": 0
|
||||
},
|
||||
},
|
||||
{
|
||||
"depends_on": "eval:doc.send_to=='All Employee (Active)'",
|
||||
"fieldname": "branch",
|
||||
"fieldtype": "Link",
|
||||
"label": "Branch",
|
||||
"options": "Branch",
|
||||
"depends_on": "eval:doc.send_to=='All Employee (Active)'",
|
||||
"fieldname": "branch",
|
||||
"fieldtype": "Link",
|
||||
"label": "Branch",
|
||||
"options": "Branch",
|
||||
"permlevel": 0
|
||||
},
|
||||
},
|
||||
{
|
||||
"fieldname": "create_receiver_list",
|
||||
"fieldtype": "Button",
|
||||
"label": "Create Receiver List",
|
||||
"options": "create_receiver_list",
|
||||
"fieldname": "create_receiver_list",
|
||||
"fieldtype": "Button",
|
||||
"label": "Create Receiver List",
|
||||
"options": "create_receiver_list",
|
||||
"permlevel": 0
|
||||
},
|
||||
},
|
||||
{
|
||||
"fieldname": "receiver_list",
|
||||
"fieldtype": "Code",
|
||||
"label": "Receiver List",
|
||||
"fieldname": "receiver_list",
|
||||
"fieldtype": "Code",
|
||||
"label": "Receiver List",
|
||||
"permlevel": 0
|
||||
},
|
||||
},
|
||||
{
|
||||
"fieldname": "column_break9",
|
||||
"fieldtype": "Column Break",
|
||||
"permlevel": 0,
|
||||
"fieldname": "column_break9",
|
||||
"fieldtype": "Column Break",
|
||||
"permlevel": 0,
|
||||
"width": "50%"
|
||||
},
|
||||
},
|
||||
{
|
||||
"description": "Messages greater than 160 characters will be split into multiple messages",
|
||||
"fieldname": "message",
|
||||
"fieldtype": "Text",
|
||||
"label": "Message",
|
||||
"permlevel": 0,
|
||||
"description": "Messages greater than 160 characters will be split into multiple messages",
|
||||
"fieldname": "message",
|
||||
"fieldtype": "Text",
|
||||
"label": "Message",
|
||||
"permlevel": 0,
|
||||
"reqd": 1
|
||||
},
|
||||
},
|
||||
{
|
||||
"fieldname": "total_words",
|
||||
"fieldtype": "Int",
|
||||
"label": "Total Characters",
|
||||
"permlevel": 0,
|
||||
"fieldname": "total_characters",
|
||||
"fieldtype": "Int",
|
||||
"label": "Total Characters",
|
||||
"permlevel": 0,
|
||||
"read_only": 1
|
||||
},
|
||||
},
|
||||
{
|
||||
"fieldname": "total_messages",
|
||||
"fieldtype": "Int",
|
||||
"label": "Total Message(s)",
|
||||
"permlevel": 0,
|
||||
"fieldname": "total_messages",
|
||||
"fieldtype": "Int",
|
||||
"label": "Total Message(s)",
|
||||
"permlevel": 0,
|
||||
"read_only": 1
|
||||
},
|
||||
},
|
||||
{
|
||||
"fieldname": "send_sms",
|
||||
"fieldtype": "Button",
|
||||
"label": "Send SMS",
|
||||
"options": "send_sms",
|
||||
"fieldname": "send_sms",
|
||||
"fieldtype": "Button",
|
||||
"label": "Send SMS",
|
||||
"options": "send_sms",
|
||||
"permlevel": 0
|
||||
}
|
||||
],
|
||||
"hide_heading": 0,
|
||||
"hide_toolbar": 0,
|
||||
"icon": "icon-mobile-phone",
|
||||
"idx": 1,
|
||||
"in_create": 0,
|
||||
"issingle": 1,
|
||||
"modified": "2014-05-09 02:17:41.375945",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Selling",
|
||||
"name": "SMS Center",
|
||||
"owner": "Administrator",
|
||||
],
|
||||
"hide_heading": 0,
|
||||
"hide_toolbar": 0,
|
||||
"icon": "icon-mobile-phone",
|
||||
"idx": 1,
|
||||
"in_create": 0,
|
||||
"issingle": 1,
|
||||
"modified": "2014-06-18 08:59:51.755566",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Selling",
|
||||
"name": "SMS Center",
|
||||
"owner": "Administrator",
|
||||
"permissions": [
|
||||
{
|
||||
"cancel": 0,
|
||||
"create": 1,
|
||||
"delete": 0,
|
||||
"export": 0,
|
||||
"import": 0,
|
||||
"permlevel": 0,
|
||||
"read": 1,
|
||||
"report": 0,
|
||||
"role": "System Manager",
|
||||
"submit": 0,
|
||||
"cancel": 0,
|
||||
"create": 1,
|
||||
"delete": 0,
|
||||
"export": 0,
|
||||
"import": 0,
|
||||
"permlevel": 0,
|
||||
"read": 1,
|
||||
"report": 0,
|
||||
"role": "System Manager",
|
||||
"submit": 0,
|
||||
"write": 1
|
||||
}
|
||||
],
|
||||
"read_only": 1,
|
||||
"sort_field": "modified",
|
||||
],
|
||||
"read_only": 1,
|
||||
"sort_field": "modified",
|
||||
"sort_order": "DESC"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user