Merge branch 'ui_ux_changes' of bitbucket.org:code2lab/sxrestaurant into adminbsb_ui_changes
This commit is contained in:
@@ -82,24 +82,26 @@ class Origami::MovetableController < BaseOrigamiController
|
|||||||
|
|
||||||
@get_type = Booking.update_dining_facility(booking_array,change_to,change_from)
|
@get_type = Booking.update_dining_facility(booking_array,change_to,change_from)
|
||||||
|
|
||||||
# get printer info
|
if ENV["SERVER_MODE"] != "cloud" #no print in cloud server
|
||||||
@from = (DiningFacility.find(change_from)).name
|
# get printer info
|
||||||
@to = (DiningFacility.find(change_to)).name
|
@from = (DiningFacility.find(change_from)).name
|
||||||
@type = (DiningFacility.find(change_to)).type
|
@to = (DiningFacility.find(change_to)).name
|
||||||
@moved_by = @current_user.name
|
@type = (DiningFacility.find(change_to)).type
|
||||||
@date = DateTime.now
|
@moved_by = @current_user.name
|
||||||
@shop = Shop.first
|
@date = DateTime.now
|
||||||
unique_code = "MoveTablePdf"
|
@shop = Shop.first
|
||||||
pdf_no = PrintSetting.where(:unique_code => unique_code).count
|
unique_code = "MoveTablePdf"
|
||||||
#print_settings = PrintSetting.find_by_unique_code(unique_code)
|
pdf_no = PrintSetting.where(:unique_code => unique_code).count
|
||||||
printer_array = []
|
#print_settings = PrintSetting.find_by_unique_code(unique_code)
|
||||||
printer_array = PrintSetting.where(:unique_code => unique_code)
|
printer_array = []
|
||||||
|
printer_array = PrintSetting.where(:unique_code => unique_code)
|
||||||
|
|
||||||
for i in 0..pdf_no
|
for i in 0..pdf_no
|
||||||
if i != pdf_no
|
if i != pdf_no
|
||||||
print_settings = printer_array[i]
|
print_settings = printer_array[i]
|
||||||
printer = Printer::ReceiptPrinter.new(print_settings)
|
printer = Printer::ReceiptPrinter.new(print_settings)
|
||||||
printer.print_move_table(print_settings,@to,@from ,@shop,@date,@type,@moved_by,order_items)
|
printer.print_move_table(print_settings,@to,@from ,@shop,@date,@type,@moved_by,order_items)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -437,10 +437,12 @@
|
|||||||
<div class="row m-b-10 m-r-30">
|
<div class="row m-b-10 m-r-30">
|
||||||
|
|
||||||
<div class="col-md-5 m-r-20">
|
<div class="col-md-5 m-r-20">
|
||||||
<button type="button" class="btn btn-link bg-red waves-effect print_receipt">Print</button>
|
<% if ENV["SERVER_MODE"] != "cloud" %>
|
||||||
|
<button type="button" class="btn btn-link bg-red waves-effect print_receipt">Print</button>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-5">
|
<div class="col-md-5 m-r-20">
|
||||||
<button type="button" class="btn btn-link bg-blue waves-effect btn_pdf_close" data-dismiss="modal">CLOSE</button>
|
<button type="button" class="btn btn-link bg-blue waves-effect btn_pdf_close" data-dismiss="modal">CLOSE</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user