From 9a5656c5e669867998f65b0e2d2639ce5b430f0e Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Mon, 26 Jun 2017 20:13:56 +0630 Subject: [PATCH 1/2] update crm customer --- app/views/crm/customers/show.html.erb | 5 ++--- config/application.rb | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/crm/customers/show.html.erb b/app/views/crm/customers/show.html.erb index 5c4bf7c8..3cf08856 100644 --- a/app/views/crm/customers/show.html.erb +++ b/app/views/crm/customers/show.html.erb @@ -55,9 +55,8 @@
- <% puts "'''''''''''''''''''" - puts @response - if @response["status"] == true %> + <% + if @response["data"].present? %> <% if @response["status"] == true %> diff --git a/config/application.rb b/config/application.rb index 0e323d22..5ce0a92a 100644 --- a/config/application.rb +++ b/config/application.rb @@ -13,7 +13,7 @@ module SXRestaurants # -- all .rb files in that directory are automatically loaded. config.active_record.time_zone_aware_types = [:datetime, :time] config.active_job.queue_adapter = :sidekiq - config.time_zone = 'Asia/Rangoon' + # config.time_zone = 'Asia/Rangoon' end end From 25967b82d35912cb55d2a3b1a39976cf787a8099 Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Mon, 26 Jun 2017 20:44:15 +0630 Subject: [PATCH 2/2] update home link --- app/views/reports/daily_sale/index.html.erb | 2 +- app/views/reports/daily_sales/index.html.erb | 2 +- app/views/reports/receipt_no/index.html.erb | 2 +- app/views/reports/sale_item/index.html.erb | 2 +- app/views/reports/sale_items/index.html.erb | 6 +++--- db/seeds.rb | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/reports/daily_sale/index.html.erb b/app/views/reports/daily_sale/index.html.erb index 7c2a8c61..7b790148 100644 --- a/app/views/reports/daily_sale/index.html.erb +++ b/app/views/reports/daily_sale/index.html.erb @@ -1,6 +1,6 @@ diff --git a/app/views/reports/daily_sales/index.html.erb b/app/views/reports/daily_sales/index.html.erb index 7c2a8c61..7b790148 100644 --- a/app/views/reports/daily_sales/index.html.erb +++ b/app/views/reports/daily_sales/index.html.erb @@ -1,6 +1,6 @@ diff --git a/app/views/reports/receipt_no/index.html.erb b/app/views/reports/receipt_no/index.html.erb index 86307066..dc7d05ee 100644 --- a/app/views/reports/receipt_no/index.html.erb +++ b/app/views/reports/receipt_no/index.html.erb @@ -1,6 +1,6 @@ diff --git a/app/views/reports/sale_item/index.html.erb b/app/views/reports/sale_item/index.html.erb index a3b460fc..7b0d6f38 100644 --- a/app/views/reports/sale_item/index.html.erb +++ b/app/views/reports/sale_item/index.html.erb @@ -1,6 +1,6 @@ diff --git a/app/views/reports/sale_items/index.html.erb b/app/views/reports/sale_items/index.html.erb index a3b460fc..26ad560e 100644 --- a/app/views/reports/sale_items/index.html.erb +++ b/app/views/reports/sale_items/index.html.erb @@ -1,6 +1,6 @@ @@ -11,13 +11,13 @@
-
+
diff --git a/db/seeds.rb b/db/seeds.rb index 64192b19..841495d4 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -131,7 +131,7 @@ menu_item_attribute_size_small = MenuItemAttribute.create({attribute_type:"size" menu_item_attribute_size_medium = MenuItemAttribute.create({attribute_type:"size",name: "Medium", value: "medium"}) menu_item_attribute_size_large = MenuItemAttribute.create({attribute_type:"size", name: "Large", value: "large"}) -shop = Shop.create({id:1, name: "Beauty In the Pot", address:'No.42-A, Sayar San Road', township:"Bahan",state:"Yangon",city:"Yangon", country:"Myanmar", phone_no:"+95(9) 252221188, +95(9) 252221177",reservation_no:"111",license:"123", +shop = Shop.create({id:1, name: "Beauty In the Pot", address:'No.42-A, Sayar San Road, Bahan, Yangon', township:"Bahan",state:"Yangon",city:"Yangon", country:"Myanmar", phone_no:"+95(9) 252221188, +95(9) 252221177",reservation_no:"111",license:"123", activated_at:"2017-06-26 08:36:24",license_data:"test",base_currency:"111",id_prefix:"111"}) #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"})
Membership Transactions