change align and check booking ID
This commit is contained in:
@@ -99,11 +99,11 @@ class Crm::DiningQueuesController < BaseCrmController
|
|||||||
table_id = params[:table_id]
|
table_id = params[:table_id]
|
||||||
|
|
||||||
dining_facility = DiningFacility.find(params[:table_id])
|
dining_facility = DiningFacility.find(params[:table_id])
|
||||||
if dining_facility.type == "Table"
|
# if dining_facility.type == "Table"
|
||||||
type = "TableBooking"
|
type = "TableBooking"
|
||||||
else
|
# else
|
||||||
type = "RoomBooking"
|
# type = "RoomBooking"
|
||||||
end
|
# end
|
||||||
|
|
||||||
booking = Booking.create({:dining_facility_id => params[:table_id],:type => type,
|
booking = Booking.create({:dining_facility_id => params[:table_id],:type => type,
|
||||||
:checkin_at => Time.now.utc,:customer_id => queue.customer_id,:booking_status => "assign" })
|
:checkin_at => Time.now.utc,:customer_id => queue.customer_id,:booking_status => "assign" })
|
||||||
|
|||||||
@@ -659,7 +659,7 @@ class ReceiptBillA5Pdf < Prawn::Document
|
|||||||
move_down line_move
|
move_down line_move
|
||||||
y_position = cursor
|
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
|
move_down line_move
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -659,7 +659,7 @@ class ReceiptBillPdf < Prawn::Document
|
|||||||
move_down line_move
|
move_down line_move
|
||||||
y_position = cursor
|
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
|
move_down line_move
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user