diff --git a/.idea/.generators b/.idea/.generators
index 8893e668..98526fe7 100644
--- a/.idea/.generators
+++ b/.idea/.generators
@@ -5,4 +5,4 @@ You are allowed to:
2. Remove generators
3. Add installed generators
To add new installed generators automatically delete this file and reload the project.
--->
+-->
diff --git a/.idea/sxrestaurant.iml b/.idea/sxrestaurant.iml
index f88608e6..e1c0cfaa 100644
--- a/.idea/sxrestaurant.iml
+++ b/.idea/sxrestaurant.iml
@@ -181,6 +181,7 @@
+
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index b41a365d..de9b54ce 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -2,26 +2,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
@@ -41,98 +26,71 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -142,11 +100,12 @@
- origami
table_invoice
sale_id
oqs
void
+ red
+ origami
@@ -160,7 +119,6 @@
-
@@ -168,7 +126,6 @@
-
@@ -179,9 +136,21 @@
+
+
+
+
+
+
+
+
-
+
+
+
+
+
@@ -192,10 +161,10 @@
DEFINITION_ORDER
-
+
-
-
+
+
@@ -215,22 +184,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -343,33 +298,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -447,12 +376,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -773,6 +717,9 @@
+
+
+
@@ -784,35 +731,36 @@
-
+
+
-
+
-
+
-
+
-
+
+
+
-
-
@@ -826,12 +774,6 @@
-
-
-
-
-
-
@@ -839,9 +781,7 @@
-
-
@@ -863,18 +803,7 @@
-
-
-
-
-
-
-
-
-
-
-
@@ -925,6 +854,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -945,90 +897,165 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
+
+
-
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/app/controllers/origami/commissions_controller.rb b/app/controllers/origami/commissions_controller.rb
index f0f07d2a..fdd1bf73 100644
--- a/app/controllers/origami/commissions_controller.rb
+++ b/app/controllers/origami/commissions_controller.rb
@@ -1,5 +1,5 @@
class Origami::CommissionsController < BaseOrigamiController
- # before_action :set_commission, only: [:show, :edit, :update, :destroy]
+ before_action :set_commission, only: [:show, :edit, :update, :destroy]
# GET /commissions
# GET /commissions.json
diff --git a/app/controllers/origami/product_commissions_controller.rb b/app/controllers/origami/product_commissions_controller.rb
new file mode 100644
index 00000000..f3f05ab9
--- /dev/null
+++ b/app/controllers/origami/product_commissions_controller.rb
@@ -0,0 +1,74 @@
+class Origami::ProductCommissionsController < ApplicationController
+ before_action :set_product_commission, only: [:show, :edit, :update, :destroy]
+
+ # GET /product_commissions
+ # GET /product_commissions.json
+ def index
+ @product_commissions = ProductCommission.all
+ end
+
+ # GET /product_commissions/1
+ # GET /product_commissions/1.json
+ def show
+ end
+
+ # GET /product_commissions/new
+ def new
+ @product_commission = ProductCommission.new
+ end
+
+ # GET /product_commissions/1/edit
+ def edit
+ end
+
+ # POST /product_commissions
+ # POST /product_commissions.json
+ def create
+ @product_commission = ProductCommission.new(product_commission_params)
+
+ respond_to do |format|
+ if @product_commission.save
+ format.html { redirect_to @product_commission, notice: 'Product commission was successfully created.' }
+ format.json { render :show, status: :created, location: @product_commission }
+ else
+ format.html { render :new }
+ format.json { render json: @product_commission.errors, status: :unprocessable_entity }
+ end
+ end
+ end
+
+ # PATCH/PUT /product_commissions/1
+ # PATCH/PUT /product_commissions/1.json
+ def update
+ respond_to do |format|
+ if @product_commission.update(product_commission_params)
+ format.html { redirect_to @product_commission, notice: 'Product commission was successfully updated.' }
+ format.json { render :show, status: :ok, location: @product_commission }
+ else
+ format.html { render :edit }
+ format.json { render json: @product_commission.errors, status: :unprocessable_entity }
+ end
+ end
+ end
+
+ # DELETE /product_commissions/1
+ # DELETE /product_commissions/1.json
+ def destroy
+ @product_commission.destroy
+ respond_to do |format|
+ format.html { redirect_to product_commissions_url, notice: 'Product commission was successfully destroyed.' }
+ format.json { head :no_content }
+ end
+ end
+
+ private
+ # Use callbacks to share common setup or constraints between actions.
+ def set_product_commission
+ @product_commission = ProductCommission.find(params[:id])
+ end
+
+ # Never trust parameters from the scary internet, only allow the white list through.
+ def product_commission_params
+ params.fetch(:product_commission, {})
+ end
+end
diff --git a/app/helpers/origami/product_commissions_helper.rb b/app/helpers/origami/product_commissions_helper.rb
new file mode 100644
index 00000000..1d191b16
--- /dev/null
+++ b/app/helpers/origami/product_commissions_helper.rb
@@ -0,0 +1,2 @@
+module Origami::ProductCommissionsHelper
+end
diff --git a/app/models/product_commission.rb b/app/models/product_commission.rb
new file mode 100644
index 00000000..70de81f8
--- /dev/null
+++ b/app/models/product_commission.rb
@@ -0,0 +1,2 @@
+class ProductCommission < ApplicationRecord
+end
diff --git a/app/views/home/dashboard.html.erb b/app/views/home/dashboard.html.erb
index 511cd500..025cfae9 100644
--- a/app/views/home/dashboard.html.erb
+++ b/app/views/home/dashboard.html.erb
@@ -30,7 +30,7 @@
@@ -66,8 +66,7 @@
@@ -105,7 +104,7 @@
- OQS
- - Origami
+ - Cashier
- CRM
@@ -115,8 +114,7 @@
@@ -152,7 +150,7 @@
- OQS
- - Origami
+ - Cashier
- CRM
@@ -162,8 +160,7 @@
@@ -185,14 +182,13 @@
- - Orgami Panel except Edit and Void
+ - Cashier Panel except Edit and Void
- Sale and Order
- and Queue in CRM
@@ -203,8 +199,7 @@
-