shop_code

This commit is contained in:
Myat Zin Wai Maw
2019-12-05 14:56:47 +06:30
parent ccbd3c6966
commit b0f6368248
58 changed files with 95 additions and 26 deletions

View File

@@ -46,6 +46,7 @@ class Origami::CustomersController < BaseOrigamiController
end
def add_customer
@shop = Shop.current_shop
@webview = false
if check_mobile
@webview = true
@@ -162,6 +163,7 @@ class Origami::CustomersController < BaseOrigamiController
end
def send_account
@shop = Shop.current_shop
amount = params[:amount]
account_no = params[:account_no]
receipt_no = params[:receipt_no]
@@ -178,7 +180,7 @@ class Origami::CustomersController < BaseOrigamiController
auth_token = member_actions.auth_token.to_s
membership_data = SalePayment.get_paypar_account_data(url,membership_setting.auth_token,merchant_uid,auth_token,account_no,amount,receipt_no)
puts membership_data.to_json
if membership_data["status"]==true
remark = "Payment by account no Receipt No #{sale.receipt_no} | Sale ID #{sale.sale_id} | Transaction ref: #{membership_data[:transaction_ref]} | Reload amount #{membership_data[:reload_amount]} | Old Balance Amount #{membership_data[:old_balance_amount]} | DateTime : #{membership_data[:date]}"
sale_audit = SaleAudit.record_audit_for_edit(sale.sale_id,sale.cashier_id, action_by,remark,"PAYBYACCOUNT" )