module BrInvoicesPdf::Nfce::Renderer::Totals
Public Instance Methods
box_info(data_payment)
click to toggle source
# File lib/br_invoices_pdf/nfce/renderer/totals.rb, line 18 def box_info(data_payment) [ ['Items', format_currency(data_payment[:items])], ['Total bruto', format_currency(data_payment[:subtotal])], ['Desconto', format_currency(data_payment[:discounts])], ['Total', format_currency(data_payment[:total])] ] end
execute(pdf, data)
click to toggle source
# File lib/br_invoices_pdf/nfce/renderer/totals.rb, line 12 def execute(pdf, data) insert_box_info(pdf, data) pdf.move_down(5) end