app/jobs/billing/issue_print_doc.rb in billing-0.1.6 vs app/jobs/billing/issue_print_doc.rb in billing-0.1.7

- old
+ new

@@ -63,10 +63,10 @@ s.print_edges_row bill.number, Time.now.strftime("%Y-%d-%m %T") s.print "\r\n\r\n\r\n" s.try :autocut if bill.origin.receipt_config.try(:paper_cut) s.try :beep if bill.origin.receipt_config.try(:sound_signal) s.try :pulse if bill.origin.receipt_config.try(:open_cash_drawer) - if bill.origin.receipt_config.try(:custom_commands) && cmd = s.push bill.origin.receipt_config.try(:custom_commands_text) + if bill.origin.receipt_config.try(:custom_commands) && cmd = bill.origin.receipt_config.try(:custom_commands_text) s.push(cmd.b.gsub(/../){ |pair| pair.hex.chr }) end s.notify "Print Doc End" end rescue Resque::TermException \ No newline at end of file