Sha256: de3257984f27e7a56fa868a08f8374f8e0f06fcf9edf22ade534328f19c56060

Contents?: true

Size: 704 Bytes

Versions: 23

Compression:

Stored size: 704 Bytes

Contents

# frozen_string_literal: true

module BrInvoicesPdf
  module Nfce
    module Renderer
      module Totals
        extend Util::BaseRenderer
        extend BaseRenderer

        module_function

        def execute(pdf, data)
          insert_box_info(pdf, data)

          pdf.move_down(5)
        end

        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
        private_class_method :box_info
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
br_invoices_pdf-0.2.24 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.23 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.22 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.21 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.20 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.19 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.18 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.17 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.16 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.15 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.14 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.14.alpha.23 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.13 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.13.alpha.22 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.12.alpha.21 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.12.alpha.20 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.12 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.11 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.10 lib/br_invoices_pdf/nfce/renderer/totals.rb
br_invoices_pdf-0.2.9 lib/br_invoices_pdf/nfce/renderer/totals.rb