br_danfe 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +19 -16
- data/README.md +10 -4
- data/br_danfe.gemspec +3 -3
- data/config/locales/pt-BR.yml +3 -3
- data/lib/br_danfe/danfe_lib/nfe_lib/dup.rb +31 -18
- data/lib/br_danfe/danfe_lib/nfe_lib/infadic.rb +23 -5
- data/lib/br_danfe/version.rb +1 -1
- data/spec/br_danfe/danfe_lib/nfe_lib/dup_spec.rb +53 -3
- data/spec/br_danfe/danfe_lib/nfe_lib/infadic_spec.rb +234 -0
- data/spec/fixtures/cce/lib/barcode#render.pdf +14 -14
- data/spec/fixtures/cce/lib/correction#render.pdf +0 -0
- data/spec/fixtures/cce/lib/document#box.pdf +14 -14
- data/spec/fixtures/cce/lib/document#box.with.block.pdf +0 -0
- data/spec/fixtures/cce/lib/document#text.align.pdf +0 -0
- data/spec/fixtures/cce/lib/document#text.pad.pdf +0 -0
- data/spec/fixtures/cce/lib/document#text.simple.pdf +0 -0
- data/spec/fixtures/cce/lib/document#text.size.pdf +0 -0
- data/spec/fixtures/cce/lib/document#text.style.pdf +0 -0
- data/spec/fixtures/cce/lib/footer#render.pdf +0 -0
- data/spec/fixtures/cce/lib/header#render.pdf +0 -0
- data/spec/fixtures/cce/lib/nfe_key#render.pdf +0 -0
- data/spec/fixtures/cce/lib/protocol#render.pdf +0 -0
- data/spec/fixtures/cce/v1.00/cce.fixture.pdf +265 -149
- data/spec/fixtures/mdfe/lib/fisco_control#barcode.pdf +0 -0
- data/spec/fixtures/mdfe/lib/fisco_control#without-barcode.pdf +0 -0
- data/spec/fixtures/mdfe/lib/header#render-qr-code.pdf +0 -0
- data/spec/fixtures/mdfe/lib/header#render-with_logo.pdf +0 -0
- data/spec/fixtures/mdfe/lib/header#render-without-qr-code.pdf +0 -0
- data/spec/fixtures/mdfe/lib/header#render-without_logo.pdf +0 -0
- data/spec/fixtures/mdfe/lib/mdfe-with-multiple-pages.pdf +344 -176
- data/spec/fixtures/mdfe/lib/mdfe.fixture.pdf +336 -168
- data/spec/fixtures/mdfe/lib/notes#render-big-aditional-information.pdf +219 -151
- data/spec/fixtures/nfce/lib/document#render.pdf +20 -20
- data/spec/fixtures/nfce/lib/footer#render-with_additional_information.pdf +0 -0
- data/spec/fixtures/nfce/lib/footer#render.pdf +0 -0
- data/spec/fixtures/nfce/lib/header#render-homologation.pdf +0 -0
- data/spec/fixtures/nfce/lib/header#render-long_name_with_logo.pdf +0 -0
- data/spec/fixtures/nfce/lib/header#render-long_name_without_logo.pdf +0 -0
- data/spec/fixtures/nfce/lib/header#render-short_name_with_logo.pdf +0 -0
- data/spec/fixtures/nfce/lib/header#render-short_name_without_logo.pdf +0 -0
- data/spec/fixtures/nfce/lib/key#render.pdf +0 -0
- data/spec/fixtures/nfce/lib/nfce_identification#render.pdf +0 -0
- data/spec/fixtures/nfce/lib/product_list#render-with_many_products.pdf +0 -0
- data/spec/fixtures/nfce/lib/product_list#render-with_many_products_and_long_names.pdf +0 -0
- data/spec/fixtures/nfce/lib/product_list#render-with_single_product.pdf +0 -0
- data/spec/fixtures/nfce/lib/product_list#render-with_single_product_and_long_name.pdf +0 -0
- data/spec/fixtures/nfce/lib/recipient#render-company.pdf +0 -0
- data/spec/fixtures/nfce/lib/recipient#render-consumer_without_document.pdf +0 -0
- data/spec/fixtures/nfce/lib/recipient#render-foreign.pdf +0 -0
- data/spec/fixtures/nfce/lib/recipient#render-individual.pdf +0 -0
- data/spec/fixtures/nfce/lib/recipient#render-unidentified_consumer.pdf +0 -0
- data/spec/fixtures/nfce/lib/total_list#does_not_render-payment_methods.pdf +0 -0
- data/spec/fixtures/nfce/lib/total_list#render-grouped_payment_methods.pdf +0 -0
- data/spec/fixtures/nfce/lib/total_list#render-totals.pdf +0 -0
- data/spec/fixtures/nfce/lib/total_list#render-without_payment.pdf +0 -0
- data/spec/fixtures/nfce/lib/total_list#render.pdf +0 -0
- data/spec/fixtures/nfce/v4.00/multiples_xmls_on_the_same_pdf.pdf +336 -205
- data/spec/fixtures/nfce/v4.00/nfce-unauthorized-hom.fixture.pdf +0 -0
- data/spec/fixtures/nfce/v4.00/nfce-unauthorized-prod.fixture.pdf +0 -0
- data/spec/fixtures/nfce/v4.00/rendered_nfce.fixture.pdf +0 -0
- data/spec/fixtures/nfce/v4.00/saved_nfce.fixture.pdf +0 -0
- data/spec/fixtures/nfe/lib/dest#render-v2.00.pdf +0 -0
- data/spec/fixtures/nfe/lib/dest#render-v3.10.pdf +0 -0
- data/spec/fixtures/nfe/lib/dest#render-v4.00.pdf +0 -0
- data/spec/fixtures/nfe/lib/dest#render-with-address-bigger.pdf +0 -0
- data/spec/fixtures/nfe/lib/dest#render-with_cnpj.pdf +0 -0
- data/spec/fixtures/nfe/lib/dest#render-with_cpf.pdf +0 -0
- data/spec/fixtures/nfe/lib/dest#render-with_ie.pdf +0 -0
- data/spec/fixtures/nfe/lib/dest#render-without-address-complement.pdf +0 -0
- data/spec/fixtures/nfe/lib/det_body#render-csosn.pdf +144 -82
- data/spec/fixtures/nfe/lib/det_body#render-cst.pdf +129 -81
- data/spec/fixtures/nfe/lib/det_body#render-fci.pdf +124 -85
- data/spec/fixtures/nfe/lib/det_body#render-icms_st.pdf +133 -89
- data/spec/fixtures/nfe/lib/det_body#render-quantity_with_custom_precision.pdf +122 -84
- data/spec/fixtures/nfe/lib/det_body#render-three_pages.pdf +140 -85
- data/spec/fixtures/nfe/lib/det_body#render-two_pages.pdf +140 -85
- data/spec/fixtures/nfe/lib/det_body#render-unit_price_with_custom_precision.pdf +122 -84
- data/spec/fixtures/nfe/lib/det_body#render-with_entrega.pdf +118 -64
- data/spec/fixtures/nfe/lib/det_body#render-with_infadprod.pdf +131 -76
- data/spec/fixtures/nfe/lib/det_body#render-with_issqn.pdf +140 -85
- data/spec/fixtures/nfe/lib/det_body#render-without_issqn.pdf +140 -85
- data/spec/fixtures/nfe/lib/document#lcnpj-blank.pdf +0 -0
- data/spec/fixtures/nfe/lib/document#lcnpj-invalid.pdf +0 -0
- data/spec/fixtures/nfe/lib/document#lcnpj-valid.pdf +0 -0
- data/spec/fixtures/nfe/lib/document#lie-blank-uf-invalid.pdf +0 -0
- data/spec/fixtures/nfe/lib/document#lie-blank.pdf +0 -0
- data/spec/fixtures/nfe/lib/document#lie-invalid.pdf +0 -0
- data/spec/fixtures/nfe/lib/document#lie-valid.pdf +0 -0
- data/spec/fixtures/nfe/lib/dup#render-with_entrega.pdf +0 -0
- data/spec/fixtures/nfe/lib/dup#render.pdf +0 -0
- data/spec/fixtures/nfe/lib/emit_header#render-nfe_key.pdf +283 -151
- data/spec/fixtures/nfe/lib/emit_header#render-second_page.pdf +283 -151
- data/spec/fixtures/nfe/lib/emit_header#render-with_logo.pdf +283 -151
- data/spec/fixtures/nfe/lib/emit_header#render-without_logo.pdf +264 -132
- data/spec/fixtures/nfe/lib/entrega#render-v2.00.pdf +0 -0
- data/spec/fixtures/nfe/lib/entrega#render-with-address-bigger.pdf +0 -0
- data/spec/fixtures/nfe/lib/entrega#render-with_cpf.pdf +0 -0
- data/spec/fixtures/nfe/lib/icmstot#render-with_entrega.pdf +0 -0
- data/spec/fixtures/nfe/lib/icmstot#render.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#render-all_the_informations.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#render-difal.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#render-extra_volume.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#render-with_complementary_information.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#render-with_dup_additional_information.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#render-with_fisco_additional_information.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#render-with_street_data.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#render-without_dup_additional_information.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic#render.pdf +0 -0
- data/spec/fixtures/nfe/lib/infadic_vol#render-extra_volume.pdf +0 -0
- data/spec/fixtures/nfe/lib/issqn#render-with_entrega.pdf +0 -0
- data/spec/fixtures/nfe/lib/issqn#render-with_issqn.pdf +0 -0
- data/spec/fixtures/nfe/lib/issqn#render-with_one_issqn_value.pdf +0 -0
- data/spec/fixtures/nfe/lib/issqn#render-without_issqn.pdf +14 -14
- data/spec/fixtures/nfe/lib/ticket#render.pdf +0 -0
- data/spec/fixtures/nfe/lib/ticket#render_with_dEmit.pdf +0 -0
- data/spec/fixtures/nfe/lib/ticket#render_with_dhEmit.pdf +0 -0
- data/spec/fixtures/nfe/lib/transp#render-modfrete_0.pdf +0 -0
- data/spec/fixtures/nfe/lib/transp#render-modfrete_1.pdf +0 -0
- data/spec/fixtures/nfe/lib/transp#render-modfrete_2.pdf +0 -0
- data/spec/fixtures/nfe/lib/transp#render-modfrete_3.pdf +0 -0
- data/spec/fixtures/nfe/lib/transp#render-modfrete_4.pdf +0 -0
- data/spec/fixtures/nfe/lib/transp#render-modfrete_9.pdf +0 -0
- data/spec/fixtures/nfe/lib/transp#render-with_entrega.pdf +0 -0
- data/spec/fixtures/nfe/lib/transp#render.pdf +0 -0
- data/spec/fixtures/nfe/lib/vol#render-blank-boxes.pdf +0 -0
- data/spec/fixtures/nfe/lib/vol#render-with_entrega.pdf +0 -0
- data/spec/fixtures/nfe/lib/vol#render.pdf +0 -0
- data/spec/fixtures/nfe/v2.00/custom_options.fixture.pdf +448 -355
- data/spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml.fixture.pdf +424 -331
- data/spec/fixtures/nfe/v2.00/nfe_with_entrega.xml.fixture.pdf +427 -331
- data/spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml.fixture.pdf +568 -251
- data/spec/fixtures/nfe/v2.00/nfe_with_fci.xml.fixture.pdf +468 -270
- data/spec/fixtures/nfe/v2.00/nfe_with_ns.xml.fixture.pdf +472 -284
- data/spec/fixtures/nfe/v2.00/nfe_without_ns.xml.fixture.pdf +458 -159
- data/spec/fixtures/nfe/v3.10/multiples.xmls.on.the.same.pdf.pdf +600 -340
- data/spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml.fixture.pdf +456 -280
- data/spec/fixtures/nfe/v3.10/with_footer.fixture.pdf +473 -311
- data/spec/fixtures/nfe/v3.10/with_issqn.fixture.pdf +458 -274
- data/spec/fixtures/nfe/v3.10/with_three_pages.fixture.pdf +485 -306
- data/spec/fixtures/nfe/v3.10/without_issqn.fixture.pdf +469 -290
- data/spec/fixtures/qr_code/qr_code#render.pdf +0 -0
- metadata +11 -9
@@ -6,14 +6,14 @@
|
|
6
6
|
>>
|
7
7
|
endobj
|
8
8
|
2 0 obj
|
9
|
-
<< /
|
10
|
-
/
|
9
|
+
<< /Pages 3 0 R
|
10
|
+
/Type /Catalog
|
11
11
|
>>
|
12
12
|
endobj
|
13
13
|
3 0 obj
|
14
|
-
<< /
|
15
|
-
/Count 1
|
14
|
+
<< /Count 1
|
16
15
|
/Kids [5 0 R]
|
16
|
+
/Type /Pages
|
17
17
|
>>
|
18
18
|
endobj
|
19
19
|
4 0 obj
|
@@ -487,17 +487,17 @@ Q
|
|
487
487
|
endstream
|
488
488
|
endobj
|
489
489
|
5 0 obj
|
490
|
-
<< /
|
491
|
-
/Parent 3 0 R
|
492
|
-
/MediaBox [0 0 595.28 841.89]
|
493
|
-
/CropBox [0 0 595.28 841.89]
|
490
|
+
<< /ArtBox [0 0 595.28 841.89]
|
494
491
|
/BleedBox [0 0 595.28 841.89]
|
495
|
-
/TrimBox [0 0 595.28 841.89]
|
496
|
-
/ArtBox [0 0 595.28 841.89]
|
497
492
|
/Contents 4 0 R
|
498
|
-
/
|
499
|
-
/
|
493
|
+
/CropBox [0 0 595.28 841.89]
|
494
|
+
/MediaBox [0 0 595.28 841.89]
|
495
|
+
/Parent 3 0 R
|
496
|
+
/Resources << /Font << >>
|
497
|
+
/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
|
500
498
|
>>
|
499
|
+
/TrimBox [0 0 595.28 841.89]
|
500
|
+
/Type /Page
|
501
501
|
>>
|
502
502
|
endobj
|
503
503
|
xref
|
@@ -509,9 +509,9 @@ xref
|
|
509
509
|
0000000215 00000 n
|
510
510
|
0000006108 00000 n
|
511
511
|
trailer
|
512
|
-
<< /
|
512
|
+
<< /Info 1 0 R
|
513
513
|
/Root 2 0 R
|
514
|
-
/
|
514
|
+
/Size 6
|
515
515
|
>>
|
516
516
|
startxref
|
517
517
|
6392
|
Binary file
|
@@ -6,14 +6,14 @@
|
|
6
6
|
>>
|
7
7
|
endobj
|
8
8
|
2 0 obj
|
9
|
-
<< /
|
10
|
-
/
|
9
|
+
<< /Pages 3 0 R
|
10
|
+
/Type /Catalog
|
11
11
|
>>
|
12
12
|
endobj
|
13
13
|
3 0 obj
|
14
|
-
<< /
|
15
|
-
/Count 1
|
14
|
+
<< /Count 1
|
16
15
|
/Kids [5 0 R]
|
16
|
+
/Type /Pages
|
17
17
|
>>
|
18
18
|
endobj
|
19
19
|
4 0 obj
|
@@ -29,17 +29,17 @@ Q
|
|
29
29
|
endstream
|
30
30
|
endobj
|
31
31
|
5 0 obj
|
32
|
-
<< /
|
33
|
-
/Parent 3 0 R
|
34
|
-
/MediaBox [0 0 595.28 841.89]
|
35
|
-
/CropBox [0 0 595.28 841.89]
|
32
|
+
<< /ArtBox [0 0 595.28 841.89]
|
36
33
|
/BleedBox [0 0 595.28 841.89]
|
37
|
-
/TrimBox [0 0 595.28 841.89]
|
38
|
-
/ArtBox [0 0 595.28 841.89]
|
39
34
|
/Contents 4 0 R
|
40
|
-
/
|
41
|
-
/
|
35
|
+
/CropBox [0 0 595.28 841.89]
|
36
|
+
/MediaBox [0 0 595.28 841.89]
|
37
|
+
/Parent 3 0 R
|
38
|
+
/Resources << /Font << >>
|
39
|
+
/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
|
42
40
|
>>
|
41
|
+
/TrimBox [0 0 595.28 841.89]
|
42
|
+
/Type /Page
|
43
43
|
>>
|
44
44
|
endobj
|
45
45
|
xref
|
@@ -51,9 +51,9 @@ xref
|
|
51
51
|
0000000215 00000 n
|
52
52
|
0000000304 00000 n
|
53
53
|
trailer
|
54
|
-
<< /
|
54
|
+
<< /Info 1 0 R
|
55
55
|
/Root 2 0 R
|
56
|
-
/
|
56
|
+
/Size 6
|
57
57
|
>>
|
58
58
|
startxref
|
59
59
|
588
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|