Sha256: 6256155f165112eac66ea2aa4eac1571addaf4494857ab0e7adb2dbe207347d1

Contents?: true

Size: 339 Bytes

Versions: 10

Compression:

Stored size: 339 Bytes

Contents

# frozen_string_literal: true

module BrInvoicesPdf
  module Nfce
    module Parser
      module AdditionalInfo
        extend Util::XmlLocate

        module_function

        def execute(xml)
          tribute = locate_element(xml, "#{root_path(xml)}/det/imposto/vTotTrib")
          tribute || 0
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
br_invoices_pdf-0.2.24 lib/br_invoices_pdf/nfce/parser/additional_info.rb
br_invoices_pdf-0.2.23 lib/br_invoices_pdf/nfce/parser/additional_info.rb
br_invoices_pdf-0.2.22 lib/br_invoices_pdf/nfce/parser/additional_info.rb
br_invoices_pdf-0.2.21 lib/br_invoices_pdf/nfce/parser/additional_info.rb
br_invoices_pdf-0.2.20 lib/br_invoices_pdf/nfce/parser/additional_info.rb
br_invoices_pdf-0.2.19 lib/br_invoices_pdf/nfce/parser/additional_info.rb
br_invoices_pdf-0.2.18 lib/br_invoices_pdf/nfce/parser/additional_info.rb
br_invoices_pdf-0.2.17 lib/br_invoices_pdf/nfce/parser/additional_info.rb
br_invoices_pdf-0.2.16 lib/br_invoices_pdf/nfce/parser/additional_info.rb
br_invoices_pdf-0.2.15 lib/br_invoices_pdf/nfce/parser/additional_info.rb