check req bil

This commit is contained in:
phyusin
2018-08-08 09:48:21 +06:30
parent 5b1374b3ee
commit a0f81af75b
3 changed files with 22 additions and 20 deletions

View File

@@ -67,9 +67,10 @@ class Origami::RequestBillsController < ApplicationController
result = {:status=> @status, :data => @sale.sale_id }
render :json => result.to_json
else
if ENV["SERVER_MODE"] != "cloud" #no print in cloud server
#check checkInOut pdf print
check_booking = Booking.find_by_sale_id(@sale_id)
checkout_time = Lookup.collection_of('checkout_time')
if (!checkout_time.empty?) && (ENV["SERVER_MODE"] != "cloud") #no print in cloud server
unique_code = "CheckInOutPdf"
printer = PrintSetting.find_by_unique_code(unique_code)