app/jobs/billing/issue_print_doc.rb in billing-0.1.8 vs app/jobs/billing/issue_print_doc.rb in billing-0.1.9

- old
+ new

@@ -28,21 +28,21 @@ s.print "#{bill.name}\r\n" s.print_fill_row "-" bill.charges.each_with_index do |charge, index| s.print "\r\n" unless index == 0 - s.print_text_price_row "#{charge.qty ? charge.qty : 1} x #{charge.name}", charge.price + s.print_text_price_row "#{charge.qty ? charge.qty : 1} x #{charge.name}", charge.qtyprice if charge.description s.print_ljust_row charge.description, ' ', 4 end if charge.modifier.present? text = charge.modifier.percent_ratio.nil? ? "" : " #{charge.modifier.percentage}" if charge.modifier.positive? text += " #{ bill.origin.receipt_config ? bill.origin.receipt_config.surcharge_text || 'Surcharge' : 'Surcharge' }" else text += " #{ bill.origin.receipt_config ? bill.origin.receipt_config.discount_text || 'Discount' : 'Discount' }" end - s.print_text_price_row text, (charge.value - charge.price) + s.print_text_price_row text, (charge.value - charge.qtyprice) end end s.print_rjust_row "-----------" if bill.modifiers.global.any? global_modifier = bill.modifiers.global.first \ No newline at end of file