Sha256: 63f9155921b8bc5a094b96d42b3cf9e48107a75494b501d7b9b5e04caf220676

Contents?: true

Size: 651 Bytes

Versions: 13

Compression:

Stored size: 651 Bytes

Contents

# frozen_string_literal: true

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

        module_function

        def execute(pdf, data)
          box(pdf, [0, pdf.cursor], page_content_width(pdf)) do
            tribute_values(pdf, data[:additional_info])
          end
        end

        # :reek:FeatureEnvy
        def tribute_values(pdf, taxes)
          pdf.text("Tributos\n\n", style: :italic)
          text = "#{taxes}\n\n"
          pdf.text(text, align: :center)
        end
        private_class_method :tribute_values
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
br_invoices_pdf-0.2.14 lib/br_invoices_pdf/nfce/renderer/taxes_info.rb
br_invoices_pdf-0.2.14.alpha.23 lib/br_invoices_pdf/nfce/renderer/taxes_info.rb
br_invoices_pdf-0.2.13 lib/br_invoices_pdf/nfce/renderer/taxes_info.rb
br_invoices_pdf-0.2.13.alpha.22 lib/br_invoices_pdf/nfce/renderer/taxes_info.rb
br_invoices_pdf-0.2.12.alpha.21 lib/br_invoices_pdf/nfce/renderer/taxes_info.rb
br_invoices_pdf-0.2.12.alpha.20 lib/br_invoices_pdf/nfce/renderer/taxes_info.rb
br_invoices_pdf-0.2.12 lib/br_invoices_pdf/nfce/renderer/taxes_info.rb
br_invoices_pdf-0.2.11 lib/br_invoices_pdf/nfce/renderer/taxes_info.rb
br_invoices_pdf-0.2.10 lib/br_invoices_pdf/nfce/renderer/taxes_info.rb
br_invoices_pdf-0.2.9 lib/br_invoices_pdf/nfce/renderer/taxes_info.rb
br_invoices_pdf-0.2.8 lib/br_invoices_pdf/nfce/renderer/taxes_info.rb
br_invoices_pdf-0.2.7 lib/br_invoices_pdf/nfce/renderer/taxes_info.rb
br_invoices_pdf-0.2.6.alpha.19 lib/br_invoices_pdf/nfce/renderer/taxes_info.rb