printer
This commit is contained in:
@@ -38,8 +38,9 @@ class Api::PaymentsController < Api::ApiController
|
||||
sale_payment = SalePayment.new
|
||||
status = sale_payment.process_payment(sale, current_login_employee, 0, "cash")
|
||||
#card_balance amount for Paymal payment
|
||||
card_balance_amount = SaleAudit.getCardBalanceAmount(params[:sale_id])
|
||||
|
||||
card_balance_amount, transaction_ref = SaleAudit.getCardBalanceAmount(params[:sale_id])
|
||||
puts card_balance_amount
|
||||
puts "Card Balance Amount"
|
||||
render json: JSON.generate({:status => true, :balance_amount => card_balance_amount,:receipt_no => sale.receipt_no, :message => "Payment successful."})
|
||||
else
|
||||
if @membership_data
|
||||
|
||||
@@ -83,7 +83,7 @@ class Printer::OrderQueuePrinter < Printer::PrinterWorker
|
||||
|
||||
|
||||
shop = Shop.current_shop
|
||||
directory_name = 'public/orders_'+shop.shop_code
|
||||
directory_name = 'public/orders_'+ shop.shop_code
|
||||
Dir.mkdir(directory_name) unless File.exists?(directory_name)
|
||||
|
||||
# For Print Per Item
|
||||
|
||||
Reference in New Issue
Block a user