From 434f0a41bf6634f15097d7f11b7c46a3d30b0d39 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 24 Jul 2013 12:04:01 +0530 Subject: [PATCH] [fix] [minor] syntax error in quality inspection --- buying/doctype/quality_inspection/quality_inspection.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/buying/doctype/quality_inspection/quality_inspection.js b/buying/doctype/quality_inspection/quality_inspection.js index d40d81a4fa..995119cd27 100644 --- a/buying/doctype/quality_inspection/quality_inspection.js +++ b/buying/doctype/quality_inspection/quality_inspection.js @@ -56,13 +56,13 @@ cur_frm.fields_dict['item_code'].get_query = function(doc, cdt, cdn) { // Serial No based on item_code cur_frm.fields_dict['item_serial_no'].get_query = function(doc, cdt, cdn) { var filter = {}; - if (doc.item_code) - filter:{ + if (doc.item_code) { + filter = { 'item_code': doc.item_code, 'status': "In Store" } - else - filter: { 'status': "In Store" } + } else + filter = { 'status': "In Store" } return { filters: filter } } \ No newline at end of file