[warranty claim] ux - serial no on top
This commit is contained in:
parent
364054a6fc
commit
7bbbda162c
@ -13,7 +13,8 @@ frappe.ui.form.on_change("Warranty Claim", "contact_person",
|
|||||||
|
|
||||||
erpnext.support.WarrantyClaim = frappe.ui.form.Controller.extend({
|
erpnext.support.WarrantyClaim = frappe.ui.form.Controller.extend({
|
||||||
refresh: function() {
|
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'),
|
cur_frm.add_custom_button(__('Make Maintenance Visit'),
|
||||||
this.make_maintenance_visit, frappe.boot.doctype_icons["Maintenance Visit"], "btn-default")
|
this.make_maintenance_visit, frappe.boot.doctype_icons["Maintenance Visit"], "btn-default")
|
||||||
}
|
}
|
||||||
|
|||||||
@ -59,6 +59,15 @@
|
|||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"width": "50%"
|
"width": "50%"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "",
|
||||||
|
"fieldname": "serial_no",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"in_list_view": 0,
|
||||||
|
"label": "Serial No",
|
||||||
|
"options": "Serial No",
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "customer",
|
"fieldname": "customer",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
@ -107,15 +116,6 @@
|
|||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"reqd": 1
|
"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",
|
"fieldname": "item_code",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
@ -396,7 +396,7 @@
|
|||||||
"icon": "icon-bug",
|
"icon": "icon-bug",
|
||||||
"idx": 1,
|
"idx": 1,
|
||||||
"is_submittable": 0,
|
"is_submittable": 0,
|
||||||
"modified": "2015-02-20 05:08:06.361985",
|
"modified": "2015-02-21 04:11:40.653543",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Support",
|
"module": "Support",
|
||||||
"name": "Warranty Claim",
|
"name": "Warranty Claim",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user