[fix] [minor] syntax error in quality inspection
diff --git a/buying/doctype/quality_inspection/quality_inspection.js b/buying/doctype/quality_inspection/quality_inspection.js
index d40d81a..995119c 100644
--- a/buying/doctype/quality_inspection/quality_inspection.js
+++ b/buying/doctype/quality_inspection/quality_inspection.js
@@ -56,13 +56,13 @@
// 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