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 @@
- Search
+ Search
Member Card
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
-
New Inventory Product
+
New Inventory Product
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' %>
-
Back
- <% end %>
-
New Stock Taking
-
Stock Check Report
+
+
+
+ <%= render 'inventory_list' %>
+
+
+ <% if current_login_employee.role == "administrator" || current_login_employee.role == 'manager' %>
+ Back
+ <% end %>
+ New Stock Taking
+ Stock Check Report
+
-
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 @@
-
-
-
+
+
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
+
+
+
-
-
Back
-
Cash Out
+
+
+ Back
+ Cash Out
+
-
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 @@
-
-
-
-
-
-
-
-
-
-
+
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 @@
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
<%=@sale_data.sale_id %>
-
Receipt No: <%=@sale_data.receipt_no rescue ' '%>
-
-
-
-
Date: <%=@sale_data.receipt_date.strftime("%d/%m/%Y - %I:%M %p") rescue '-'%>
-
-
-
-
-
-
- Items
- QTY
- Price
-
-
-
- <% 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"
- %>
- >
-
- <%=sale_item.account_id%>
- <%=sale_item.product_name%>@<%=sale_item.unit_price%>
-
-
- <%=sale_item.qty%>
-
-
- <%=(sale_item.qty*sale_item.unit_price)%>
-
-
- <%
- end
- end
- %>
-
-
-
-
+
+
+
+
+
+
+
-
-
-
+
+
+
+ @accounts.each do |acc|
+ %>
+
<%= acc.title %>
+ <% end %>
+
+
+
+
+
+
+
+
+
+
+
+ Nett
+ Percentage
+ Clear Discount
+
+
+
+
+
-
-
-
-
-
-
-
- Nett
- Percentage
- Clear Discount
-
-
-
-
-
-
-
-
-
-
-
-
Back
-
RemoveItem Discount
-
Remove All
-
Enter
- <% if @member_discount%>
+
+
+
+
+ Back
+ Remove Item Discount
+ Remove All
+ Enter
+ <% 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 %>
+
+
+
+ Back
+
-
- Back
-
-
-
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 @@
-
-
-
-
-
-
-
-
-
-
- #
- Items
- QTY
- Price
-
-
-
-
-
-
-
- <% sub_total = 0
- count = 0
- %>
- <% @sale_data.sale_items.each do |sale_item|
- count += 1
- %>
+
+
- <% sub_total += sale_item.price%>
-
- <%= count %>
-
- <%=sale_item.product_name%>@<%=sale_item.unit_price%>
-
-
- <%=sale_item.qty%>
-
-
- <%=(sale_item.price)%>
-
-
- <%end %>
-
-
-
-