fixed cancel order print
This commit is contained in:
@@ -49,8 +49,7 @@ class Oqs::EditController < BaseOqsController
|
|||||||
oqs = assign_item.order_queue_station
|
oqs = assign_item.order_queue_station
|
||||||
|
|
||||||
printer = PrintSetting.all
|
printer = PrintSetting.all
|
||||||
|
unique_code= ""
|
||||||
unique_code="OrderItemPdf"
|
|
||||||
if !printer.empty?
|
if !printer.empty?
|
||||||
printer.each do |printer_setting|
|
printer.each do |printer_setting|
|
||||||
if printer_setting.unique_code == 'OrderItemPdf'
|
if printer_setting.unique_code == 'OrderItemPdf'
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class Printer::OrderQueuePrinter < Printer::PrinterWorker
|
|||||||
print_setting = PrintSetting.all
|
print_setting = PrintSetting.all
|
||||||
|
|
||||||
# check for item not to show
|
# check for item not to show
|
||||||
|
pdf = ''
|
||||||
# if order_item[0].price != 0
|
# if order_item[0].price != 0
|
||||||
if !print_setting.empty?
|
if !print_setting.empty?
|
||||||
print_setting.each do |print_settings|
|
print_setting.each do |print_settings|
|
||||||
@@ -182,8 +182,6 @@ class Printer::OrderQueuePrinter < Printer::PrinterWorker
|
|||||||
|
|
||||||
# Print for orders in booking
|
# Print for orders in booking
|
||||||
def print_booking_summary(print_settings,oqs, booking_id, print_status,before_updated_qty="")
|
def print_booking_summary(print_settings,oqs, booking_id, print_status,before_updated_qty="")
|
||||||
puts 'PrintSetting!!!'
|
|
||||||
puts print_setting.print_copies
|
|
||||||
# Must be one print
|
# Must be one print
|
||||||
if print_settings.print_copies == 0
|
if print_settings.print_copies == 0
|
||||||
print_settings.print_copies = 1
|
print_settings.print_copies = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user