From 808b123a91849be899f6a7895021e2b66999c725 Mon Sep 17 00:00:00 2001 From: San Wai Lwin Date: Thu, 15 Mar 2018 15:27:11 +0630 Subject: [PATCH] Add Date in Cashier's Dashboard and remove no need breadcrumb --- app/assets/javascripts/origami.js | 24 ++++--------------- app/views/origami/addorders/detail.html.erb | 1 - app/views/origami/cash_ins/new.html.erb | 3 --- app/views/origami/cash_mgmt/new.html.erb | 4 +--- app/views/origami/cash_outs/new.html.erb | 3 --- app/views/origami/dashboard/index.html.erb | 8 ++----- app/views/origami/home/index.html.erb | 1 - app/views/origami/home/show.html.erb | 1 - .../origami/moveroom/move_dining.html.erb | 1 - .../origami/movetable/move_dining.html.erb | 1 - app/views/origami/orders/show.html.erb | 1 - .../origami/pending_order/index.html.erb | 3 --- .../load_commissioners.html.erb | 2 +- .../origami/room_invoices/index.html.erb | 1 - app/views/origami/rooms/show.html.erb | 1 - .../origami/second_display/index.html.erb | 1 - app/views/origami/shifts/show.html.erb | 3 --- .../origami/table_invoices/index.html.erb | 1 - .../origami/table_invoices/show.html.erb | 1 - config/initializers/action_controller.rb | 2 +- 20 files changed, 9 insertions(+), 54 deletions(-) diff --git a/app/assets/javascripts/origami.js b/app/assets/javascripts/origami.js index 4dda94e2..7f3febba 100755 --- a/app/assets/javascripts/origami.js +++ b/app/assets/javascripts/origami.js @@ -17,40 +17,24 @@ //= require custom.js /* Constant Varaibles */ -_ADD_ORDER_ = "/   ADD ORDER"; -_CASH_IN_ = "/   CASH IN"; -_CASH_OUT_ = "/   CASH OUT"; -_CASH_MGMT_ = "/   CASH MGMT"; _CREDIT_PAYMENTS_ = "/   CREDIT PAYMENTS"; _CUSTOMERS_ = "/   CUSTOMERS"; -_DASHBOARD_ = "/   DASHBOARD"; _DISCOUNTS_ = "/   DISCOUNTS"; -_CASHIER_ = "/   CASHIER"; _IN_DUTIES_ = "/   IN DUTIES"; _JCB_ = "/   JCB PAYMENT"; _MASTER_ = "/   MASTER PAYMENT"; -_MOVE_ROOM_ = "/   MOVE ROOM"; -_MOVE_TABLE_ = "/   MOVE TABLE"; _MPU_ = "/   MPU PAYMENT"; -_ORDERS_ = "/   ORDERS"; -_OTHER_CHARGES_ = "/   OTHER CHARGES"; -_OTHER_PAYMENTS_ = "/   OTHER PAYMENTS"; -_PAYMENTS_ = "/   PAYMENTS"; +_OTHER_CHARGES_ = "/   CHARGES"; +_OTHER_PAYMENTS_ = "/   OTHER PAYMENT"; +_PAYMENTS_ = "/   PAYMENT"; _PAYPAR_PAYMENT_ = "/   PAYPAR PAYMENT"; -_PENDING_ORDER_ = "/   PENDING ORDER"; -_PRODUCT_COMMISSIONS_= "/   PRODUCT COMMISSIONS"; +_COMMISSIONS_ = "/   COMMISSIONS"; _REDEEM_PAYMENT_ = "/   REDEEM PAYMENT"; -_ROOM_INVOICES_ = "/   ROOM INVOICES"; -_ROOM_ = "/   ROOM"; _SALE_EDIT_ = "/   SALE EDIT"; -_SECOND_DISPLAY_ = "/   CUSTOMER VIEW"; -_CLOSE_CASHIER_ = "/   CLOSE CASHIER"; _SPLIT_BILL_ = "/   SPLIT BILL"; -_TABLE_INVOICE_ = "/   TABLE INVOICE"; _UNION_ = "/   UNION PAYMENT"; _VISA_ = "/   VISA PAYMENT"; _VOUCHER_ = "/   VOUCHER"; -_TABLE_ = "/   TABLE"; _SURVEY_ = "/   SURVEY"; /* Constant Varaibles */ diff --git a/app/views/origami/addorders/detail.html.erb b/app/views/origami/addorders/detail.html.erb index aba0f3f7..6c580f40 100755 --- a/app/views/origami/addorders/detail.html.erb +++ b/app/views/origami/addorders/detail.html.erb @@ -493,7 +493,6 @@ jQuery('.first_'+id).click(); }); $(document).ready(function () { - setHeaderBreadCrumb(_ADD_ORDER_); $(".tables").on('click', function () { $('.tables').css('background-color',''); $('.tables').removeClass('purple') diff --git a/app/views/origami/cash_ins/new.html.erb b/app/views/origami/cash_ins/new.html.erb index 32d5215a..bda159e2 100755 --- a/app/views/origami/cash_ins/new.html.erb +++ b/app/views/origami/cash_ins/new.html.erb @@ -56,9 +56,6 @@