Merge pull request #3429 from neilLasrado/quality-inspection
Get Item Details in Quality Inspection.
This commit is contained in:
commit
828cbee12a
@ -57,3 +57,7 @@ cur_frm.fields_dict['item_serial_no'].get_query = function(doc, cdt, cdn) {
|
|||||||
|
|
||||||
return { filters: filter }
|
return { filters: filter }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cur_frm.add_fetch('item_code', 'item_name', 'item_name');
|
||||||
|
cur_frm.add_fetch('item_code', 'description', 'description');
|
||||||
|
|
||||||
|
@ -127,6 +127,14 @@
|
|||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"width": "50%"
|
"width": "50%"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "item_name",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "Item Name",
|
||||||
|
"permlevel": 0,
|
||||||
|
"precision": "",
|
||||||
|
"read_only": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "description",
|
"fieldname": "description",
|
||||||
"fieldtype": "Small Text",
|
"fieldtype": "Small Text",
|
||||||
@ -219,7 +227,7 @@
|
|||||||
"icon": "icon-search",
|
"icon": "icon-search",
|
||||||
"idx": 1,
|
"idx": 1,
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"modified": "2015-04-14 07:37:07.331291",
|
"modified": "2015-06-08 02:40:25.121948",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Buying",
|
"module": "Buying",
|
||||||
"name": "Quality Inspection",
|
"name": "Quality Inspection",
|
||||||
|
@ -31,7 +31,6 @@ class QualityInspection(Document):
|
|||||||
(self.name, self.modified, self.purchase_receipt_no,
|
(self.name, self.modified, self.purchase_receipt_no,
|
||||||
self.item_code))
|
self.item_code))
|
||||||
|
|
||||||
|
|
||||||
def on_cancel(self):
|
def on_cancel(self):
|
||||||
if self.purchase_receipt_no:
|
if self.purchase_receipt_no:
|
||||||
frappe.db.sql("""update `tabPurchase Receipt Item` t1, `tabPurchase Receipt` t2
|
frappe.db.sql("""update `tabPurchase Receipt Item` t1, `tabPurchase Receipt` t2
|
||||||
@ -39,7 +38,6 @@ class QualityInspection(Document):
|
|||||||
where t1.parent = %s and t1.item_code = %s and t1.parent = t2.name""",
|
where t1.parent = %s and t1.item_code = %s and t1.parent = t2.name""",
|
||||||
(self.modified, self.purchase_receipt_no, self.item_code))
|
(self.modified, self.purchase_receipt_no, self.item_code))
|
||||||
|
|
||||||
|
|
||||||
def item_query(doctype, txt, searchfield, start, page_len, filters):
|
def item_query(doctype, txt, searchfield, start, page_len, filters):
|
||||||
if filters.get("from"):
|
if filters.get("from"):
|
||||||
from frappe.desk.reportview import get_match_cond
|
from frappe.desk.reportview import get_match_cond
|
||||||
|
Loading…
x
Reference in New Issue
Block a user