app order

This commit is contained in:
Myat Zin Wai Maw
2019-12-04 14:37:21 +06:30
19 changed files with 97 additions and 138 deletions

View File

@@ -30,7 +30,7 @@ class Api::PaymentsController < Api::ApiController
@shop =Shop.find_by_shop_code(sale.shop_code)
if sale.sale_status == "new"
if !params[:card_no].empty?
current_shift = ShiftSale.current_shift(sale.shop_code)
current_shift = ShiftSale.current_shift
current_login_employee =Employee.find(current_shift.employee_id)
@status, @message = send_account_paymal(sale.grand_total, params[:card_no], sale.receipt_no,current_login_employee)
if @status