From 937576856ff958c27e2e79f2dab8c53c92dae077 Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Tue, 14 Nov 2017 15:33:06 +0630 Subject: [PATCH] update back buttom in cashier default --- .../origami/discounts_controller.rb | 2 + .../origami/other_charges_controller.rb | 1 + app/views/origami/addorders/detail.html.erb | 2 +- .../origami/credit_payments/index.html.erb | 2 +- app/views/origami/customers/index.html.erb | 30 ++--- app/views/origami/discounts/index.html.erb | 17 ++- app/views/origami/home/index.html.erb | 9 +- .../in_duties/_assign_in_duty.html.erb | 2 +- .../origami/in_duties/index_in_duty.html.erb | 10 +- app/views/origami/jcb/index.html.erb | 2 +- app/views/origami/master/index.html.erb | 2 +- app/views/origami/mpu/index.html.erb | 2 +- app/views/origami/orders/show.html.erb | 2 +- .../origami/other_charges/index.html.erb | 2 +- .../origami/others_payments/index.html.erb | 2 +- .../origami/redeem_payments/index.html.erb | 2 +- app/views/origami/rooms/show.html.erb | 26 ++-- app/views/origami/sales/show.html.erb | 2 +- app/views/origami/surveys/_form.html.erb | 113 ++++++++++-------- app/views/origami/surveys/index.html.erb | 19 ++- app/views/origami/surveys/new.html.erb | 4 +- app/views/origami/visa/index.html.erb | 2 +- 22 files changed, 154 insertions(+), 101 deletions(-) diff --git a/app/controllers/origami/discounts_controller.rb b/app/controllers/origami/discounts_controller.rb index 44ddd60e..d5ea194f 100755 --- a/app/controllers/origami/discounts_controller.rb +++ b/app/controllers/origami/discounts_controller.rb @@ -6,7 +6,9 @@ class Origami::DiscountsController < BaseOrigamiController sale_id = params[:id] if Sale.exists?(sale_id) @sale_data = Sale.find(sale_id) + @table = DiningFacility.find(@sale_data.bookings[0].dining_facility_id) end + @member_discount = MembershipSetting.find_by_discount(1) @accounts = Account.all end diff --git a/app/controllers/origami/other_charges_controller.rb b/app/controllers/origami/other_charges_controller.rb index c402782d..c7e20ba6 100755 --- a/app/controllers/origami/other_charges_controller.rb +++ b/app/controllers/origami/other_charges_controller.rb @@ -5,6 +5,7 @@ class Origami::OtherChargesController < BaseOrigamiController sale_id = params[:sale_id] if Sale.exists?(sale_id) @sale_data = Sale.find(sale_id) + @table = DiningFacility.find(@sale_data.bookings[0].dining_facility_id) end end diff --git a/app/views/origami/addorders/detail.html.erb b/app/views/origami/addorders/detail.html.erb index 900f7442..8fa1b640 100755 --- a/app/views/origami/addorders/detail.html.erb +++ b/app/views/origami/addorders/detail.html.erb @@ -62,7 +62,7 @@ 0.00 - + diff --git a/app/views/origami/credit_payments/index.html.erb b/app/views/origami/credit_payments/index.html.erb index 963ec9f6..a913f579 100755 --- a/app/views/origami/credit_payments/index.html.erb +++ b/app/views/origami/credit_payments/index.html.erb @@ -112,7 +112,7 @@
- +
diff --git a/app/views/origami/customers/index.html.erb b/app/views/origami/customers/index.html.erb index 3c40c8ed..07185c7e 100755 --- a/app/views/origami/customers/index.html.erb +++ b/app/views/origami/customers/index.html.erb @@ -1,15 +1,14 @@
- +
-->
@@ -101,7 +100,7 @@
-
+
<%= simple_form_for @crm_customer,:url => crm_customers_path, :method => :post do |f| %> @@ -113,14 +112,14 @@ <%= f.hidden_field :id, :class => "form-control col-md-6 " %>

- - <%= f.radio_button :salutation,"Mr", :class => "salutation mr", :value=>"Mr", :style=>"width: 30px"%> - - <%= f.radio_button :salutation,"Mrs", :class => "salutation mrs", :value=>"Mrs", :style=>"width: 30px"%> - - <%= f.radio_button :salutation,"Miss", :class => "salutation miss", :value=>"Miss", :style=>"width: 30px"%> - - <%= f.radio_button :salutation,"Mdm", :class => "salutation mdm", :value=>"Mdm", :style=>"width: 30px"%> + + <%= f.radio_button :salutation,"Mr", :class => "salutation mr", :value=>"Mr"%> + + <%= f.radio_button :salutation,"Mrs", :class => "salutation mrs", :value=>"Mrs"%> + + <%= f.radio_button :salutation,"Miss", :class => "salutation miss", :value=>"Miss"%> + + <%= f.radio_button :salutation,"Mdm", :class => "salutation mdm", :value=>"Mdm"%>
"> @@ -238,7 +237,10 @@
<%end%>
- + +
+ +
diff --git a/app/views/origami/discounts/index.html.erb b/app/views/origami/discounts/index.html.erb index a2fbaafb..23b83054 100755 --- a/app/views/origami/discounts/index.html.erb +++ b/app/views/origami/discounts/index.html.erb @@ -13,6 +13,8 @@
+ +

Receipt No: <%=@sale_data.receipt_no rescue ' '%>

@@ -209,7 +211,7 @@
- + @@ -225,6 +227,19 @@ \ No newline at end of file diff --git a/app/views/origami/surveys/index.html.erb b/app/views/origami/surveys/index.html.erb index f61caefb..915bf20a 100755 --- a/app/views/origami/surveys/index.html.erb +++ b/app/views/origami/surveys/index.html.erb @@ -9,7 +9,7 @@
-
+
@@ -70,5 +70,22 @@ +
+ +
+ \ No newline at end of file diff --git a/app/views/origami/surveys/new.html.erb b/app/views/origami/surveys/new.html.erb index db1f68c0..bee0f843 100755 --- a/app/views/origami/surveys/new.html.erb +++ b/app/views/origami/surveys/new.html.erb @@ -1,4 +1,4 @@ -
- +