change align and check booking ID

This commit is contained in:
phyusin
2018-09-04 14:20:58 +06:30
parent 1579618831
commit 6579df3db9
3 changed files with 6 additions and 6 deletions

View File

@@ -99,11 +99,11 @@ class Crm::DiningQueuesController < BaseCrmController
table_id = params[:table_id]
dining_facility = DiningFacility.find(params[:table_id])
if dining_facility.type == "Table"
# if dining_facility.type == "Table"
type = "TableBooking"
else
type = "RoomBooking"
end
# else
# type = "RoomBooking"
# end
booking = Booking.create({:dining_facility_id => params[:table_id],:type => type,
:checkin_at => Time.now.utc,:customer_id => queue.customer_id,:booking_status => "assign" })

View File

@@ -659,7 +659,7 @@ class ReceiptBillA5Pdf < Prawn::Document
move_down line_move
y_position = cursor
text "#{shop.note}", :size => self.item_font_size,:align => :center
text "#{shop.note}", :size => self.item_font_size,:align => :left
move_down line_move
end

View File

@@ -659,7 +659,7 @@ class ReceiptBillPdf < Prawn::Document
move_down line_move
y_position = cursor
text "#{shop.note}", :size => self.item_font_size,:align => :center
text "#{shop.note}", :size => self.item_font_size, :align => :left
move_down line_move
end