update access code in spereat view

This commit is contained in:
Aung Myo
2018-05-04 18:10:00 +06:30
parent 0e7c0e7a3e
commit d0b14cf81b
5 changed files with 159 additions and 6 deletions

View File

@@ -5,8 +5,10 @@ class Origami::SaleEditController < BaseOrigamiController
sale_id = params[:sale_id]
if params[:table_id]
@table_id = params[:table_id]
@table_type = DiningFacility.find(@table_id).type
else
@table_id = nil
@table_type = nil
end
@cashier_type = params[:type]