feat: update for discount, edit for qrpay

This commit is contained in:
Dev Team
2025-06-27 18:22:40 +06:30
committed by DevTeam
parent 8101916fcc
commit 8b62d410b0
3 changed files with 17 additions and 6 deletions

View File

@@ -17,10 +17,10 @@ class Foodcourt::QrpayController < BaseFoodcourtController
path = request.fullpath
sale_id = params[:sale_id]
@trans_flag = true
@cashier_type = params[:cashier_type] || session[:cashier_type] || "cashier"
@cashier_type = params[:cashier_type] || session[:cashier_type] || "food_court_qr"
Rails.logger.info "Precreate action called with params: #{@cashier_type}"
# if params[:type] == "transaction"
# @trans_flag = false
# @cashier_type = "cashier"