br_invoices_pdf 0.2.19 → 0.2.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/br_invoices_pdf/nfce/parser/payments.rb +2 -2
- data/lib/br_invoices_pdf/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d816c99d1ac42be8fb9e2ae8bbf8d49b18454b6
|
4
|
+
data.tar.gz: aeafbb3c5b3697caa20ab3dabded262ec8f9963d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28f919e57e1b22cb11105244c9dfd7249452a2003bfba3f1933edc2dd8b52bc3d862d514b4dac4094b6ee313abc7db3c8843199f5e89f8b2b6195cc03c21806e
|
7
|
+
data.tar.gz: aee4da1db712dfc35856146308fa9cabe992fc21f794db2a78fc6d5628e3872f80c3b2f3ae08e91e7b990dfd88019d1ead01beb31e0e4a29204b397c36fa8043
|
@@ -9,9 +9,9 @@ module BrInvoicesPdf
|
|
9
9
|
module_function
|
10
10
|
|
11
11
|
def execute(xml)
|
12
|
-
xml_version = xml.locate(root_path(xml).to_s)
|
12
|
+
xml_version = xml.locate(root_path(xml).to_s)
|
13
13
|
|
14
|
-
return payments_new_version(xml) if xml_version[0] == '4'
|
14
|
+
return payments_new_version(xml) if xml_version.any? && xml_version[0].attributes[:versao][0] == '4'
|
15
15
|
|
16
16
|
payments_old_version(xml)
|
17
17
|
end
|