Add Moved By in MoveTablePdf

This commit is contained in:
San Wai Lwin
2018-03-28 16:17:41 +06:30
parent ff19f20a18
commit bc922a68c8
3 changed files with 11 additions and 9 deletions

View File

@@ -71,15 +71,16 @@ class Origami::MovetableController < BaseOrigamiController
@get_type = Booking.update_dining_facility(booking_array,change_to,change_from)
# get printer info
@from = (DiningFacility.find(change_from)).name
@to = (DiningFacility.find(change_to)).name
@from = (DiningFacility.find(change_from)).name
@to = (DiningFacility.find(change_to)).name
@type = (DiningFacility.find(change_to)).type
@moved_by = @current_user.name
@date = DateTime.now
@shop = Shop::ShopDetail
unique_code = "MoveTablePdf"
print_settings = PrintSetting.find_by_unique_code(unique_code)
printer = Printer::ReceiptPrinter.new(print_settings)
printer.print_move_table(print_settings,@to,@from ,@shop,@date,@type)
printer.print_move_table(print_settings,@to,@from ,@shop,@date,@type,@moved_by)
end
end