[warranty claim] ux - serial no on top

This commit is contained in:
Rushabh Mehta 2015-02-21 14:49:17 +05:30
parent 364054a6fc
commit 7bbbda162c
2 changed files with 12 additions and 11 deletions

View File

@ -13,7 +13,8 @@ frappe.ui.form.on_change("Warranty Claim", "contact_person",
erpnext.support.WarrantyClaim = frappe.ui.form.Controller.extend({
refresh: function() {
if((cur_frm.doc.status=='Open' || cur_frm.doc.status == 'Work In Progress')) {
if(!cur_frm.doc.__islocal &&
(cur_frm.doc.status=='Open' || cur_frm.doc.status == 'Work In Progress')) {
cur_frm.add_custom_button(__('Make Maintenance Visit'),
this.make_maintenance_visit, frappe.boot.doctype_icons["Maintenance Visit"], "btn-default")
}

View File

@ -59,6 +59,15 @@
"permlevel": 0,
"width": "50%"
},
{
"description": "",
"fieldname": "serial_no",
"fieldtype": "Link",
"in_list_view": 0,
"label": "Serial No",
"options": "Serial No",
"permlevel": 0
},
{
"fieldname": "customer",
"fieldtype": "Link",
@ -107,15 +116,6 @@
"permlevel": 0,
"reqd": 1
},
{
"description": "Item, Warranty, AMC (Annual Maintenance Contract) details will be automatically fetched when Serial Number is selected.",
"fieldname": "serial_no",
"fieldtype": "Link",
"in_list_view": 0,
"label": "Serial No",
"options": "Serial No",
"permlevel": 0
},
{
"fieldname": "item_code",
"fieldtype": "Link",
@ -396,7 +396,7 @@
"icon": "icon-bug",
"idx": 1,
"is_submittable": 0,
"modified": "2015-02-20 05:08:06.361985",
"modified": "2015-02-21 04:11:40.653543",
"modified_by": "Administrator",
"module": "Support",
"name": "Warranty Claim",