Sha256: 86f8f467f4bdb03e5dd5f04dd66b8c9e3a4364cfc5790a6c6d0db84952a90ab2

Contents?: true

Size: 591 Bytes

Versions: 12

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: 5, align: :center

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
br_danfe-0.16.0 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.15.1 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.15.0 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.14.5 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.14.4 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.14.3 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.14.2 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.14.0 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.13.3 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.13.2 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.13.1 lib/br_danfe/danfe_lib/nfce_lib/footer.rb
br_danfe-0.13.0 lib/br_danfe/danfe_lib/nfce_lib/footer.rb