From 77049176f6f100d27c98207b9e2abe81a9268919 Mon Sep 17 00:00:00 2001 From: Yan Date: Thu, 15 Jun 2017 16:47:04 +0630 Subject: [PATCH] oqs and zone for seed --- app/assets/javascripts/OQS.js | 6 +++--- db/seeds.rb | 8 ++++---- dump.rdb | Bin 18312 -> 18306 bytes lib/tasks/menu_import.rake | 10 ++++++++++ 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/OQS.js b/app/assets/javascripts/OQS.js index 3674e235..9ad540ab 100644 --- a/app/assets/javascripts/OQS.js +++ b/app/assets/javascripts/OQS.js @@ -18,9 +18,9 @@ $(document).ready(function(){ // auto refresh every 10 seconds - setTimeout(function(){ - window.location.reload(1); - }, 10000); + // setTimeout(function(){ + // window.location.reload(1); + // }, 10000); $('.queue_station').on('click',function(){ var orderZone=$(this).children().children().children('.order-zone').text(); diff --git a/db/seeds.rb b/db/seeds.rb index cfbcd914..f6323d48 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -132,13 +132,13 @@ menu_item_attribute_size_large = MenuItemAttribute.create({attribute_type:"size" #Default Order Queue stations -order_queue_station1 = OrderQueueStation.create({station_name: "Queue Station 1", is_active: true,printer_name: "kitchen_printer", processing_items: JSON.generate(['01001','01002','01003','01004']), print_copy:true, cut_per_item: false, use_alternate_name: false, created_by: "SYSTEM DEFAULT"}) -order_queue_station2 = OrderQueueStation.create({station_name: "Queue Station 2", is_active: true,printer_name: "drink_printer", processing_items: JSON.generate(['02005','02006','02007','02008']), print_copy:true, cut_per_item: true, use_alternate_name: true, created_by: "SYSTEM DEFAULT"}) -zone_order_queue_station = OrderQueueStation.create({station_name: "Zone 1 Queue Station 2", is_active: true, printer_name: "print_station", processing_items: JSON.generate(['01001','01002','01003','01004','02005','02006','02007','02008']), print_copy: true, cut_per_item: true, use_alternate_name: false, created_by: "SYSTEM DEFAULT"}) +# order_queue_station1 = OrderQueueStation.create({station_name: "Queue Station 1", is_active: true,printer_name: "kitchen_printer", processing_items: JSON.generate(['01001','01002','01003','01004']), print_copy:true, cut_per_item: false, use_alternate_name: false, created_by: "SYSTEM DEFAULT"}) +# order_queue_station2 = OrderQueueStation.create({station_name: "Queue Station 2", is_active: true,printer_name: "drink_printer", processing_items: JSON.generate(['02005','02006','02007','02008']), print_copy:true, cut_per_item: true, use_alternate_name: true, created_by: "SYSTEM DEFAULT"}) +# zone_order_queue_station = OrderQueueStation.create({station_name: "Zone 1 Queue Station 2", is_active: true, printer_name: "print_station", processing_items: JSON.generate(['01001','01002','01003','01004','02005','02006','02007','02008']), print_copy: true, cut_per_item: true, use_alternate_name: false, created_by: "SYSTEM DEFAULT"}) #Default Order Queue Process By Zone -#zone_queue_station = OrderQueueProcessByZone.create({order_queue_station: zone_order_queue_station, zone: zone2}) +# zone_queue_station = OrderQueueProcessByZone.create({order_queue_station: zone_order_queue_station, zone: zone2}) #Create Adminstrator employee diff --git a/dump.rdb b/dump.rdb index 3c28111097919f72ba1d6b6fa14b1cee5fe18c8f..7ef364dfb335d9809431ee24ceb43df40ac926f4 100644 GIT binary patch delta 1028 zcmZ`&OGs2v7`|ujj83WJj2NaB-hviU-p=DcFGF#rLRuJ_MF^!%X(ad{)J2OZGQtQl zIc)=>7D1cfCRCf4EX2x9%U(n34MY7ykM7MUoZrr`1TyK?n(3bIu;0~udph%NBPATPkFg;3;gpSzrN4Dgs(^21?kU!h&fMw3qxq=#9y4m<;CE4kGtms?#K@C(Pxhr?Hsi z%P<@yG5c$Ko1L3sf{9kE10hMhMg&D5p}DUll|b}d@>QzCZa!}oqYH_s

A3eel{5 z7GAx%Q@YzcXxzZUiV93-J}>K-n<=OWB9wuk#oba!A1LEgnp4{@1$SZ(LzU&0u;iTh z8ZhWy(^0#p(>vMQni&r5A8G4ta`v{Y^ESCTYqRJ=){4QLUPXJjG1HV=%!7m9kH9AWN9jvB;jwiaT*Su`6FoMCk)@i&DWbvrIN zC{r&d&C<4om{(I~y&^tQ3;@h@MOubI6QyRpF8lGsVSjVQS!cFH0~M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