Skip to content

Commit

Permalink
printer
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Jan 25, 2025
1 parent bf58401 commit 4568664
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/models/trade/print/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ module Print::Order
end

def print_to_prepare
return unless organ&.device_produce
organ.device_produce.print(to_prepare_esc)
if organ&.produce_printer
organ.produce_printer.device.print(to_prepare_esc)
end
end

def print
return unless organ&.device_receipt
organ.device_receipt.print(to_esc)
if organ&.receipt_printer
organ.receipt_printer.device.print(to_esc)
end
end

def qrcode_show_url
Expand Down

0 comments on commit 4568664

Please sign in to comment.