From 33f03b2e05f61515b56e80c53c22449502310f4b Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Tue, 10 Oct 2017 14:11:38 +0630 Subject: [PATCH] update adminbsb theme all theme setting --- app/assets/javascripts/application.js | 2 +- .../inventory/inventory_controller.rb | 2 +- .../inventory_definitions_controller.rb | 2 +- .../inventory/stock_check_items_controller.rb | 2 +- .../inventory/stock_checks_controller.rb | 2 +- .../origami/card_payments_controller.rb | 2 +- .../origami/cash_ins_controller.rb | 2 +- .../origami/cash_outs_controller.rb | 2 +- .../origami/credit_payments_controller.rb | 2 +- .../origami/discounts_controller.rb | 2 +- .../origami/in_duties_controller.rb | 2 +- app/controllers/origami/jcb_controller.rb | 2 +- app/controllers/origami/master_controller.rb | 2 +- .../origami/moveroom_controller.rb | 2 +- .../origami/movetable_controller.rb | 2 +- app/controllers/origami/mpu_controller.rb | 2 +- .../origami/other_charges_controller.rb | 2 +- .../origami/others_payments_controller.rb | 2 +- .../origami/payments_controller.rb | 2 +- .../origami/paypar_payments_controller.rb | 2 +- .../origami/product_commissions_controller.rb | 2 +- .../origami/redeem_payments_controller.rb | 2 +- .../origami/room_invoices_controller.rb | 2 +- app/controllers/origami/sales_controller.rb | 2 +- app/controllers/origami/shifts_controller.rb | 2 +- .../origami/table_invoices_controller.rb | 2 +- app/controllers/origami/visa_controller.rb | 2 +- app/controllers/origami/voucher_controller.rb | 2 +- app/views/crm/customers/index.html.erb | 2 +- .../inventory/_inventory_list.html.erb | 2 +- app/views/inventory/inventory/index.html.erb | 41 +- .../inventory_definitions/_form.html.erb | 4 +- .../inventory_definitions/index.html.erb | 2 + .../inventory_definitions/new.html.erb | 5 +- app/views/origami/cash_ins/new.html.erb | 98 ++- app/views/origami/cash_outs/new.html.erb | 62 +- .../origami/credit_payments/index.html.erb | 314 +++---- app/views/origami/discounts/index.html.erb | 826 +++++++++--------- app/views/origami/in_duties/_form.html.erb | 8 +- .../origami/in_duties/assign_in_duty.html.erb | 4 +- app/views/origami/in_duties/index.html.erb | 5 +- .../origami/other_charges/index.html.erb | 505 +++++------ .../origami/others_payments/index.html.erb | 37 +- app/views/origami/payments/show.html.erb | 220 ++--- .../load_commissioners.html.erb | 280 +++--- .../origami/redeem_payments/index.html.erb | 2 +- app/views/origami/shifts/new.html.erb | 175 ++-- app/views/origami/shifts/show.html.erb | 83 +- app/views/origami/visa/index.html.erb | 99 ++- 49 files changed, 1443 insertions(+), 1387 deletions(-) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index f7c698e8..baf62ca4 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -13,7 +13,6 @@ //= require jquery //= require jquery_nested_form //= require tether -//= require bootstrap/js/bootstrap.js //= require bootstrap/js/popper.min //= require bootstrap/js/bootstrap-material-design.min //= require jquery_ujs @@ -37,6 +36,7 @@ //= require BSBMaterial/admin.js //= require BSBMaterial/pages/index.js //= require BSBMaterial/demo.js +//= require BSBMaterial/pages/forms/basic-form-elements diff --git a/app/controllers/inventory/inventory_controller.rb b/app/controllers/inventory/inventory_controller.rb index 673cf943..3bf3c84c 100644 --- a/app/controllers/inventory/inventory_controller.rb +++ b/app/controllers/inventory/inventory_controller.rb @@ -1,4 +1,4 @@ -class Inventory::InventoryController < BaseInventoryController +class Inventory::InventoryController < ApplicationController#BaseInventoryController def index @products = InventoryDefinition.all.active.order('created_at desc') diff --git a/app/controllers/inventory/inventory_definitions_controller.rb b/app/controllers/inventory/inventory_definitions_controller.rb index 33b7dd75..cc9eecd8 100644 --- a/app/controllers/inventory/inventory_definitions_controller.rb +++ b/app/controllers/inventory/inventory_definitions_controller.rb @@ -1,4 +1,4 @@ -class Inventory::InventoryDefinitionsController < BaseInventoryController +class Inventory::InventoryDefinitionsController < ApplicationController#BaseInventoryController before_action :set_inventory_definition, only: [:show, :edit, :update, :destroy] # GET /inventory_definitions diff --git a/app/controllers/inventory/stock_check_items_controller.rb b/app/controllers/inventory/stock_check_items_controller.rb index 18980f29..43782767 100644 --- a/app/controllers/inventory/stock_check_items_controller.rb +++ b/app/controllers/inventory/stock_check_items_controller.rb @@ -1,4 +1,4 @@ -class Inventory::StockCheckItemsController < BaseInventoryController +class Inventory::StockCheckItemsController < ApplicationController#BaseInventoryController before_action :set_stock_check_item, only: [:show, :edit, :update, :destroy] # GET /stock_check_items diff --git a/app/controllers/inventory/stock_checks_controller.rb b/app/controllers/inventory/stock_checks_controller.rb index 52d183de..f7a9e7fe 100644 --- a/app/controllers/inventory/stock_checks_controller.rb +++ b/app/controllers/inventory/stock_checks_controller.rb @@ -1,4 +1,4 @@ -class Inventory::StockChecksController < BaseInventoryController +class Inventory::StockChecksController < ApplicationController#BaseInventoryController def index @check = StockCheck.new @inventory_definitions = InventoryDefinition.active.all diff --git a/app/controllers/origami/card_payments_controller.rb b/app/controllers/origami/card_payments_controller.rb index 1d18e401..e72c5139 100644 --- a/app/controllers/origami/card_payments_controller.rb +++ b/app/controllers/origami/card_payments_controller.rb @@ -1,4 +1,4 @@ -class Origami::CardPaymentsController < BaseOrigamiController +class Origami::CardPaymentsController < ApplicationController#BaseOrigamiController def index diff --git a/app/controllers/origami/cash_ins_controller.rb b/app/controllers/origami/cash_ins_controller.rb index 085f68b8..0155c223 100644 --- a/app/controllers/origami/cash_ins_controller.rb +++ b/app/controllers/origami/cash_ins_controller.rb @@ -1,4 +1,4 @@ -class Origami::CashInsController < BaseOrigamiController +class Origami::CashInsController < ApplicationController#BaseOrigamiController def new end diff --git a/app/controllers/origami/cash_outs_controller.rb b/app/controllers/origami/cash_outs_controller.rb index 95ab97a2..26f2edb1 100644 --- a/app/controllers/origami/cash_outs_controller.rb +++ b/app/controllers/origami/cash_outs_controller.rb @@ -1,4 +1,4 @@ -class Origami::CashOutsController < BaseOrigamiController +class Origami::CashOutsController < ApplicationController#BaseOrigamiController def new end diff --git a/app/controllers/origami/credit_payments_controller.rb b/app/controllers/origami/credit_payments_controller.rb index ff9ae413..bf59f5da 100644 --- a/app/controllers/origami/credit_payments_controller.rb +++ b/app/controllers/origami/credit_payments_controller.rb @@ -1,4 +1,4 @@ -class Origami::CreditPaymentsController < BaseOrigamiController +class Origami::CreditPaymentsController < ApplicationController#BaseOrigamiController def index diff --git a/app/controllers/origami/discounts_controller.rb b/app/controllers/origami/discounts_controller.rb index 8fddfa0f..bf0d7c5a 100644 --- a/app/controllers/origami/discounts_controller.rb +++ b/app/controllers/origami/discounts_controller.rb @@ -1,4 +1,4 @@ -class Origami::DiscountsController < BaseOrigamiController +class Origami::DiscountsController < ApplicationController#BaseOrigamiController authorize_resource :class => false #discount page show from origami index with selected order diff --git a/app/controllers/origami/in_duties_controller.rb b/app/controllers/origami/in_duties_controller.rb index eaf23c5a..56119e58 100644 --- a/app/controllers/origami/in_duties_controller.rb +++ b/app/controllers/origami/in_duties_controller.rb @@ -1,4 +1,4 @@ -class Origami::InDutiesController < BaseOrigamiController +class Origami::InDutiesController < ApplicationController#BaseOrigamiController before_action :set_in_duty, only: %i[show edit update edit_in_duty update_for_in_duty destroy destroy_in_duty] # GET /in_duties diff --git a/app/controllers/origami/jcb_controller.rb b/app/controllers/origami/jcb_controller.rb index a8b77861..90639b80 100644 --- a/app/controllers/origami/jcb_controller.rb +++ b/app/controllers/origami/jcb_controller.rb @@ -1,4 +1,4 @@ -class Origami::JcbController < BaseOrigamiController +class Origami::JcbController < ApplicationController#BaseOrigamiController def index @sale_id = params[:sale_id] diff --git a/app/controllers/origami/master_controller.rb b/app/controllers/origami/master_controller.rb index ba97cad9..b5619f12 100644 --- a/app/controllers/origami/master_controller.rb +++ b/app/controllers/origami/master_controller.rb @@ -1,4 +1,4 @@ -class Origami::MasterController < BaseOrigamiController +class Origami::MasterController < ApplicationController#BaseOrigamiController def index @sale_id = params[:sale_id] diff --git a/app/controllers/origami/moveroom_controller.rb b/app/controllers/origami/moveroom_controller.rb index ef1c286a..c4e1b91d 100644 --- a/app/controllers/origami/moveroom_controller.rb +++ b/app/controllers/origami/moveroom_controller.rb @@ -1,4 +1,4 @@ -class Origami::MoveroomController < BaseOrigamiController +class Origami::MoveroomController < ApplicationController#BaseOrigamiController authorize_resource :class => false diff --git a/app/controllers/origami/movetable_controller.rb b/app/controllers/origami/movetable_controller.rb index 6062216f..baced1ab 100644 --- a/app/controllers/origami/movetable_controller.rb +++ b/app/controllers/origami/movetable_controller.rb @@ -1,4 +1,4 @@ -class Origami::MovetableController < BaseOrigamiController +class Origami::MovetableController < ApplicationController#BaseOrigamiController authorize_resource :class => false diff --git a/app/controllers/origami/mpu_controller.rb b/app/controllers/origami/mpu_controller.rb index c9f707e3..7b66b79a 100644 --- a/app/controllers/origami/mpu_controller.rb +++ b/app/controllers/origami/mpu_controller.rb @@ -1,4 +1,4 @@ -class Origami::MpuController < BaseOrigamiController +class Origami::MpuController < ApplicationController#BaseOrigamiController def index @sale_id = params[:sale_id] diff --git a/app/controllers/origami/other_charges_controller.rb b/app/controllers/origami/other_charges_controller.rb index b0e6472c..fe1cc18a 100644 --- a/app/controllers/origami/other_charges_controller.rb +++ b/app/controllers/origami/other_charges_controller.rb @@ -1,4 +1,4 @@ -class Origami::OtherChargesController < BaseOrigamiController +class Origami::OtherChargesController < ApplicationController#BaseOrigamiController authorize_resource :class => false def index diff --git a/app/controllers/origami/others_payments_controller.rb b/app/controllers/origami/others_payments_controller.rb index 2a24e2ac..b4c8a7c7 100644 --- a/app/controllers/origami/others_payments_controller.rb +++ b/app/controllers/origami/others_payments_controller.rb @@ -1,4 +1,4 @@ -class Origami::OthersPaymentsController < BaseOrigamiController +class Origami::OthersPaymentsController < ApplicationController#BaseOrigamiController def index diff --git a/app/controllers/origami/payments_controller.rb b/app/controllers/origami/payments_controller.rb index 2a9fe5d9..c00a9178 100644 --- a/app/controllers/origami/payments_controller.rb +++ b/app/controllers/origami/payments_controller.rb @@ -1,4 +1,4 @@ -class Origami::PaymentsController < BaseOrigamiController +class Origami::PaymentsController < ApplicationController#BaseOrigamiController authorize_resource :class => false def index diff --git a/app/controllers/origami/paypar_payments_controller.rb b/app/controllers/origami/paypar_payments_controller.rb index 0c3ea11f..8f9cb59d 100644 --- a/app/controllers/origami/paypar_payments_controller.rb +++ b/app/controllers/origami/paypar_payments_controller.rb @@ -1,4 +1,4 @@ -class Origami::PayparPaymentsController < BaseOrigamiController +class Origami::PayparPaymentsController < ApplicationController#BaseOrigamiController def create sale_id = params[:sale_id] redeem_amount = params[:redeem_amount] diff --git a/app/controllers/origami/product_commissions_controller.rb b/app/controllers/origami/product_commissions_controller.rb index 74dd8095..4e64c9c6 100644 --- a/app/controllers/origami/product_commissions_controller.rb +++ b/app/controllers/origami/product_commissions_controller.rb @@ -1,4 +1,4 @@ -class Origami::ProductCommissionsController < BaseOrigamiController +class Origami::ProductCommissionsController < ApplicationController#BaseOrigamiController before_action :set_product_commission, only: [:show, :edit, :update, :destroy] # GET /product_commissions diff --git a/app/controllers/origami/redeem_payments_controller.rb b/app/controllers/origami/redeem_payments_controller.rb index 802ba51b..30eceb11 100644 --- a/app/controllers/origami/redeem_payments_controller.rb +++ b/app/controllers/origami/redeem_payments_controller.rb @@ -1,4 +1,4 @@ -class Origami::RedeemPaymentsController < BaseOrigamiController +class Origami::RedeemPaymentsController < ApplicationController#BaseOrigamiController def index @sale_id = params[:sale_id] payment_method = params[:payment_method] diff --git a/app/controllers/origami/room_invoices_controller.rb b/app/controllers/origami/room_invoices_controller.rb index 8d805771..e884b433 100644 --- a/app/controllers/origami/room_invoices_controller.rb +++ b/app/controllers/origami/room_invoices_controller.rb @@ -1,4 +1,4 @@ -class Origami::RoomInvoicesController < BaseOrigamiController +class Origami::RoomInvoicesController < ApplicationController#BaseOrigamiController def index @room = DiningFacility.find(params[:room_id]) puts "room bookig lenght" diff --git a/app/controllers/origami/sales_controller.rb b/app/controllers/origami/sales_controller.rb index 56e41a2a..ce13aa8a 100644 --- a/app/controllers/origami/sales_controller.rb +++ b/app/controllers/origami/sales_controller.rb @@ -1,4 +1,4 @@ -class Origami::SalesController < BaseOrigamiController +class Origami::SalesController < ApplicationController#BaseOrigamiController def show @tables = Table.all.active.order('status desc') diff --git a/app/controllers/origami/shifts_controller.rb b/app/controllers/origami/shifts_controller.rb index 31c68edf..084a11d8 100644 --- a/app/controllers/origami/shifts_controller.rb +++ b/app/controllers/origami/shifts_controller.rb @@ -1,4 +1,4 @@ -class Origami::ShiftsController < BaseOrigamiController +class Origami::ShiftsController < ApplicationController#BaseOrigamiController def index end diff --git a/app/controllers/origami/table_invoices_controller.rb b/app/controllers/origami/table_invoices_controller.rb index 4571ba87..331d2843 100644 --- a/app/controllers/origami/table_invoices_controller.rb +++ b/app/controllers/origami/table_invoices_controller.rb @@ -1,4 +1,4 @@ -class Origami::TableInvoicesController < BaseOrigamiController +class Origami::TableInvoicesController < ApplicationController#BaseOrigamiController def index @table = DiningFacility.find(params[:table_id]) puts "table bookig lenght" diff --git a/app/controllers/origami/visa_controller.rb b/app/controllers/origami/visa_controller.rb index 552d960b..b1e1890f 100644 --- a/app/controllers/origami/visa_controller.rb +++ b/app/controllers/origami/visa_controller.rb @@ -1,4 +1,4 @@ -class Origami::VisaController < BaseOrigamiController +class Origami::VisaController < ApplicationController#BaseOrigamiController def index @sale_id = params[:sale_id] diff --git a/app/controllers/origami/voucher_controller.rb b/app/controllers/origami/voucher_controller.rb index e65abc85..45c4d0d2 100644 --- a/app/controllers/origami/voucher_controller.rb +++ b/app/controllers/origami/voucher_controller.rb @@ -1,4 +1,4 @@ -class Origami::VoucherController < BaseOrigamiController +class Origami::VoucherController < ApplicationController#BaseOrigamiController def index @sale_id = params[:sale_id] diff --git a/app/views/crm/customers/index.html.erb b/app/views/crm/customers/index.html.erb index ec71066c..ac9277e8 100644 --- a/app/views/crm/customers/index.html.erb +++ b/app/views/crm/customers/index.html.erb @@ -43,7 +43,7 @@
- +
diff --git a/app/views/inventory/inventory/_inventory_list.html.erb b/app/views/inventory/inventory/_inventory_list.html.erb index 7869bc10..91a4ac94 100644 --- a/app/views/inventory/inventory/_inventory_list.html.erb +++ b/app/views/inventory/inventory/_inventory_list.html.erb @@ -1,7 +1,7 @@

Inventoy Product Lists

-
+
diff --git a/app/views/inventory/inventory/index.html.erb b/app/views/inventory/inventory/index.html.erb index 07d6f253..6149198b 100644 --- a/app/views/inventory/inventory/index.html.erb +++ b/app/views/inventory/inventory/index.html.erb @@ -1,27 +1,28 @@ -
-
- <%= render 'inventory_list' %> -
-
- <% if current_login_employee.role == "administrator" || current_login_employee.role == 'manager' %> - - <% end %> - - +
+
+
+ <%= render 'inventory_list' %> +
+
+ <% if current_login_employee.role == "administrator" || current_login_employee.role == 'manager' %> + + <% end %> + + +
- diff --git a/app/views/inventory/inventory_definitions/_form.html.erb b/app/views/inventory/inventory_definitions/_form.html.erb index 31a1a9a2..f5149fee 100644 --- a/app/views/inventory/inventory_definitions/_form.html.erb +++ b/app/views/inventory/inventory_definitions/_form.html.erb @@ -45,8 +45,8 @@
- <%= link_to 'Back', inventory_path, class: 'btn btn-success' %> - <%= f.button :submit, class: 'btn btn-primary' %> + <%= link_to 'Back', inventory_path, class: 'btn bg-default waves-effect' %> + <%= f.button :submit, class: 'btn bg-blue wave' %>
<% end %> diff --git a/app/views/inventory/inventory_definitions/index.html.erb b/app/views/inventory/inventory_definitions/index.html.erb index 9a2612b2..6b27f54a 100644 --- a/app/views/inventory/inventory_definitions/index.html.erb +++ b/app/views/inventory/inventory_definitions/index.html.erb @@ -1,3 +1,4 @@ +

<%= notice %>

Inventory Definitions

@@ -23,3 +24,4 @@
<%= link_to 'New Inventory Definition', new_inventory_definition_path %> +
\ No newline at end of file diff --git a/app/views/inventory/inventory_definitions/new.html.erb b/app/views/inventory/inventory_definitions/new.html.erb index ce290607..ecc47d79 100644 --- a/app/views/inventory/inventory_definitions/new.html.erb +++ b/app/views/inventory/inventory_definitions/new.html.erb @@ -1,5 +1,5 @@ - -
+
+
<%= render 'form', inventory: @inventory_definition %>
+
\ No newline at end of file diff --git a/app/views/origami/cash_ins/new.html.erb b/app/views/origami/cash_ins/new.html.erb index b2922f63..405286d3 100644 --- a/app/views/origami/cash_ins/new.html.erb +++ b/app/views/origami/cash_ins/new.html.erb @@ -1,77 +1,89 @@ - -
-
+
+
+

Cash In


- + - + - + - +
Payment Reference + +
Remark + +
Payment Method - - - - + + + +
Reference Number + +
Amount + +
-
- - +
+
+ + +
+
+
diff --git a/app/views/origami/cash_outs/new.html.erb b/app/views/origami/cash_outs/new.html.erb index e4d42b89..c503f4dc 100644 --- a/app/views/origami/cash_outs/new.html.erb +++ b/app/views/origami/cash_outs/new.html.erb @@ -1,49 +1,45 @@ - - -
-
-

Cash Out

+
+
+
+

Cash Out

- - + + - - + + - - + +
Payment Reference - Payment Reference
Remark - Remark
Amount - Amount
-
-
- - +
+

+ +
+
- diff --git a/app/views/origami/credit_payments/index.html.erb b/app/views/origami/credit_payments/index.html.erb index dc2b5b85..d7fed3de 100644 --- a/app/views/origami/credit_payments/index.html.erb +++ b/app/views/origami/credit_payments/index.html.erb @@ -1,166 +1,180 @@ - -
- -
-
-
-

CREDIT PAYMENT

-
-
-
-
-
-
- - -
-
-
- <% if @creditcount != 0 %> -
-
- - -
-
-
- <% end %> -
-
- - -
-
-
-
-
- -
0.0
-
-
-
-
-
-
- -
- -
-
-
-
1
-
2
-
3
-
-
-
4
-
5
-
6
-
-
-
7
-
8
-
9
-
-
-
0
-
.
-
00
-
-
-
Nett
-
Del
-
Clr
-
-
-
-
-
1000
-
3000
-
-
-
5000
-
10000
-
-
-
Pay
-
-
+
+
+
+
+
+

CREDIT PAYMENT

-
- -
- -
+
+
+ +
+
+ +
+
+ +
+
+
+ + <% if @creditcount != 0 %> + +
+
+ +
+
+ +
+ +
+
+ + <% end %> + +
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+
0.0
+
+
+
+
+
+
+ +
+
+
+
1
+
2
+
3
+
+
+
4
+
5
+
6
+
+
+
7
+
8
+
9
+
+
+
0
+
.
+
00
+
+
+
Nett
+
Del
+
Clr
+
+
+
+
+
1000
+
3000
+
+
+
5000
+
10000
+
+
+
Pay
+
+
+
+ +
+ +
+ +
+
+
diff --git a/app/views/origami/discounts/index.html.erb b/app/views/origami/discounts/index.html.erb index 2c3d970a..89913c8b 100644 --- a/app/views/origami/discounts/index.html.erb +++ b/app/views/origami/discounts/index.html.erb @@ -1,63 +1,64 @@ -
- -
- -
+
+
+ +
+ +
-
-
-
- -

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

- -
-
-

Date: <%=@sale_data.receipt_date.strftime("%d/%m/%Y - %I:%M %p") rescue '-'%>

-
-
-
- - - - - - - - <% sub_total = 0 %> - <% @sale_data.sale_items.each do |sale_item| %> - <% - sub_total += sale_item.qty*sale_item.unit_price - if sale_item.price != 0 && sale_item.remark != "void" - %> - > - - - - - <% - end - end - %> - -
ItemsQTY - Price -
- - <%=sale_item.product_name%>@<%=sale_item.unit_price%> - - <%=sale_item.qty%> - - <%=(sale_item.qty*sale_item.unit_price)%> -
-
- + -
-
-
- + --> + + <%if @sale_data.discount_type == 'member_discount'%> + Member Discount: + <%else%> + Discount: + <%end%> - -
+ (<%=@sale_data.total_discount rescue 0%>) + + + Tax: + <%=@sale_data.total_tax rescue 0%> + + + Grand Total: + <%=@sale_data.grand_total rescue 0%> + + +
+
+
+
+ + + +
-
-
-
Discount Control
-
-
+
+
+
Discount Control
+
+
@@ -106,115 +107,126 @@
<% - @accounts.each do |acc| - %> - - <% end %> -
-
+ @accounts.each do |acc| + %> + + <% end %> +
+
+
+ +
+ +
+
+
+
+
5%
+
+
+
+
1
+
2
+
3
+
+
+
+ +
+
+
10%
+
+
+
+
4
+
5
+
6
+
+
+
+ +
+
+
15%
+
+
+
+
7
+
8
+
9
+
+
+
+ +
+
+
20%
+
+
+
+
0
+
.
+
00
+
+
+
+ +
+
+
30%
+
+
+
+
+
DEL
+
CLR
+
+
+
+
+ +
+
+ + + +
+
+
+
+
-
- -
-
-
-
-
5%
-
-
-
1
-
2
-
3
-
-
- -
-
-
10%
-
-
-
4
-
5
-
6
-
-
- -
-
-
15%
-
-
-
7
-
8
-
9
-
-
- -
-
-
20%
-
-
-
0
-
.
-
00
-
-
- -
-
-
30%
-
-
-
-
DEL
-
CLR
-
-
-
- -
-
- - - -
-
-
-
-
-
- - -
- -
- - - - - <% if @member_discount%> + +
+ +
+ + + + + <% if @member_discount%> - <%end %> -
-
+ <%end %> +
+
+
diff --git a/app/views/origami/others_payments/index.html.erb b/app/views/origami/others_payments/index.html.erb index b547fcda..3a715b12 100644 --- a/app/views/origami/others_payments/index.html.erb +++ b/app/views/origami/others_payments/index.html.erb @@ -1,27 +1,28 @@ -
-
-
+
+
+
- <% @payment_method_setting.where("is_active = true").each do |payment_method|%> +
+ <% @payment_method_setting.where("is_active = true").each do |payment_method|%>
<%= payment_method.payment_method %>
- <% end %> + <% end %> +
+
+
+ +
-
- -
-
- diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb index f0298e73..621a0d71 100644 --- a/app/views/origami/payments/show.html.erb +++ b/app/views/origami/payments/show.html.erb @@ -1,107 +1,109 @@ - -
-
-
-
-
- - - - - - - - - - - - - - - -
Receipt No : <%=@sale_data.receipt_no rescue ' '%>Receipt Date : <%=@sale_data.receipt_date.utc.getlocal.strftime("%d/%m/%Y - %I:%M %p") rescue '-'%>
Table No - <%=@table_no%>Sale Id <% if @sale_data %><%=@sale_data.sale_id %><% end %>
Customer : <%= @sale_data.customer.name%>Customer ID : <%= @sale_data.customer.customer_id%>
-
-
-
-
- - - - - - - -
#ItemsQTY - Price -
-
-
- - - <% sub_total = 0 - count = 0 - %> - <% @sale_data.sale_items.each do |sale_item| - count += 1 - %> +
+ - <% sub_total += sale_item.price%> -
- - - - - - <%end %> - -
<%= count %> - <%=sale_item.product_name%>@<%=sale_item.unit_price%> - - <%=sale_item.qty%> - - <%=(sale_item.price)%> -
-
- -
+
+
+
+ + + + + + + +
#ItemsQTY + Price +
+
+
+ + + <% sub_total = 0 + count = 0 + %> + <% @sale_data.sale_items.each do |sale_item| + count += 1 + %> + + <% sub_total += sale_item.price%> + + + + + + + <%end %> + +
<%= count %> + <%=sale_item.product_name%>@<%=sale_item.unit_price%> + + <%=sale_item.qty%> + + <%=(sale_item.price)%> +
+
+ +
@@ -242,15 +244,15 @@
-
1000
+
1000
3000
-
5000
+
5000
10000
-
Pay
+
Pay
@@ -259,12 +261,12 @@
- - - + + +
- +
diff --git a/app/views/origami/redeem_payments/index.html.erb b/app/views/origami/redeem_payments/index.html.erb index df4e7cf9..bae9878c 100644 --- a/app/views/origami/redeem_payments/index.html.erb +++ b/app/views/origami/redeem_payments/index.html.erb @@ -91,7 +91,7 @@
- +
diff --git a/app/views/origami/shifts/new.html.erb b/app/views/origami/shifts/new.html.erb index a8ded240..7e905f15 100644 --- a/app/views/origami/shifts/new.html.erb +++ b/app/views/origami/shifts/new.html.erb @@ -1,23 +1,24 @@ -

Open Cashier

-
- -
-
+
+

Open Cashier

+
+
+
<% @float.each do |float| %> - + <% end %> @@ -26,99 +27,99 @@
Cashier Terminal - + <% @terminal.each do |ter| %> + <% end %> - + +
<%= float.name %>
-
+
-
-
-
1
-
2
-
3
-
-
-
4
-
5
-
6
-
-
-
7
-
8
-
9
-
-
-
0
-
.
-
00
-
-
-
Clr
-
Calculate
-
Open Cashier
-
+
+
+
1
+
2
+
3
+
+
4
+
5
+
6
+
+
+
7
+
8
+
9
+
+
+
0
+
.
+
00
+
+
+
Clr
+
Calculate
+
Open Cashier
+
+
-
-
+
+
+
- diff --git a/app/views/origami/shifts/show.html.erb b/app/views/origami/shifts/show.html.erb index 225b0036..be924d4c 100644 --- a/app/views/origami/shifts/show.html.erb +++ b/app/views/origami/shifts/show.html.erb @@ -1,48 +1,49 @@ +
+
+
+

Close Cashier

+
+ + + + + + + + + -
-
-

Close Cashier

-
-
Shift Started At<%= @shift.shift_started_at.utc.getlocal.strftime("%d/%m/%Y - %I:%M %p") rescue '-' %>
Cashier Name<%= @shift.employee.name rescue ''%>
- - - - - - - - - -
Shift Started At<%= @shift.shift_started_at.utc.getlocal.strftime("%d/%m/%Y - %I:%M %p") rescue '-' %>
Cashier Name<%= @shift.employee.name rescue ''%>
-
-
-
- Closing Balance -
-
- + +
+
+
+ Closing Balance +
+
+ +
-
-
- - +
+ + +
diff --git a/app/views/origami/visa/index.html.erb b/app/views/origami/visa/index.html.erb index 073b7e60..54f207b8 100644 --- a/app/views/origami/visa/index.html.erb +++ b/app/views/origami/visa/index.html.erb @@ -1,47 +1,46 @@ - -
- -
-
-
-

VISA

-
-
- - - -
-
-
-
- - -
-
-
- <% if @visacount != 0 %> -
-
- - -
-
-
- <% end %> -
-
- - +
+
+
+
+
+

VISA

+
+
+ + + +
+
+
+
+ +

+ <% if @visacount != 0 %> +
+
+ + +
+
+
+ <% end %>
- -
0.0
+ +

+
+
+ +
0.0
+
+
+
@@ -94,10 +93,10 @@
- + +
-