Sha256: 45e1cd6cca19bf4caee8047738b1d16131afc4eb26ea1ceecd5f86b80c017f64

Contents?: true

Size: 591 Bytes

Versions: 17

Compression:

Stored size: 591 Bytes

Contents

module BrDanfe
  module DanfeLib
    module NfceLib
      class Footer
        def initialize(pdf, xml)
          @pdf = pdf
          @xml = xml
        end

        def render(info = '')
          tot_trib = @xml['ICMSTot/vTotTrib'].present? ? BrDanfe::Helper.numerify(@xml['ICMSTot/vTotTrib']) : '0,00'
          @pdf.text "Tributos Totais Incidentes (Lei Federal 12.741/2012): R$ #{tot_trib}", size: 8, align: :center

          if info.present?
            @pdf.render_blank_line
            @pdf.text info, size: 8, align: :center
          end
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
br_danfe-1.2.2 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-1.2.1 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-1.2.0 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-1.1.0 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-1.0.0 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.20.0 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.19.0 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.18.0 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.17.8 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.17.7 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.17.6 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.17.5 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.17.4 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.17.3 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.17.2 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.17.1 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.17.0 lib/br_danfe/danfe_lib/nfce_lib/footer.rb