br_danfe 3.0.0 → 3.1.0
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 +1 -1
- data/config/locales/pt-BR.yml +4 -3
- data/fonts/Arimo-LICENSE.txt +118 -0
- data/fonts/arimo.ttf +0 -0
- data/fonts/arimo_bold.ttf +0 -0
- data/fonts/arimo_bold_italic.ttf +0 -0
- data/fonts/arimo_italic.ttf +0 -0
- data/lib/br_danfe/danfe_lib/nfe_lib/consts.rb +7 -0
- data/lib/br_danfe/danfe_lib/nfe_lib/dest.rb +3 -3
- data/lib/br_danfe/danfe_lib/nfe_lib/det_body.rb +12 -4
- data/lib/br_danfe/danfe_lib/nfe_lib/document.rb +27 -14
- data/lib/br_danfe/danfe_lib/nfe_lib/dup.rb +34 -20
- data/lib/br_danfe/danfe_lib/nfe_lib/emit_header.rb +34 -17
- data/lib/br_danfe/danfe_lib/nfe_lib/entrega.rb +3 -3
- data/lib/br_danfe/danfe_lib/nfe_lib/helper.rb +8 -0
- data/lib/br_danfe/danfe_lib/nfe_lib/infadic.rb +4 -4
- data/lib/br_danfe/danfe_lib/nfe_lib/ticket.rb +30 -6
- data/lib/br_danfe/danfe_lib/nfe_lib/transp.rb +2 -2
- data/lib/br_danfe/danfe_lib/nfe_lib/vol.rb +1 -1
- data/lib/br_danfe/document_builder.rb +7 -0
- data/lib/br_danfe/version.rb +1 -1
- 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 +1234 -1223
- data/spec/fixtures/nfe/lib/det_body#render-cst.pdf +836 -771
- data/spec/fixtures/nfe/lib/det_body#render-fci.pdf +613 -527
- data/spec/fixtures/nfe/lib/det_body#render-icms_st.pdf +619 -534
- data/spec/fixtures/nfe/lib/det_body#render-quantity_with_custom_precision.pdf +609 -522
- data/spec/fixtures/nfe/lib/det_body#render-three_pages.pdf +10032 -11157
- data/spec/fixtures/nfe/lib/det_body#render-two_pages.pdf +9834 -10928
- data/spec/fixtures/nfe/lib/det_body#render-unit_price_with_custom_precision.pdf +609 -522
- data/spec/fixtures/nfe/lib/det_body#render-with_entrega.pdf +620 -527
- data/spec/fixtures/nfe/lib/det_body#render-with_infadprod.pdf +614 -539
- data/spec/fixtures/nfe/lib/det_body#render-with_issqn.pdf +4812 -5222
- data/spec/fixtures/nfe/lib/det_body#render-without_issqn.pdf +4454 -5414
- data/spec/fixtures/nfe/lib/document#lcnpj_cpf-blank.pdf +0 -0
- data/spec/fixtures/nfe/lib/document#lcnpj_cpf-invalid.pdf +0 -0
- data/spec/fixtures/nfe/lib/document#lcnpj_cpf-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 +225 -251
- data/spec/fixtures/nfe/lib/emit_header#render-second_page.pdf +225 -251
- data/spec/fixtures/nfe/lib/emit_header#render-with_cpf.pdf +222 -249
- data/spec/fixtures/nfe/lib/emit_header#render-with_logo.pdf +225 -251
- data/spec/fixtures/nfe/lib/emit_header#render-without_logo.pdf +223 -249
- 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 +4 -4
- 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 +1484 -1417
- data/spec/fixtures/nfe/v2.00/nfe_simples_nacional.xml.fixture.pdf +1481 -1407
- data/spec/fixtures/nfe/v2.00/nfe_with_entrega.xml.fixture.pdf +1544 -1451
- data/spec/fixtures/nfe/v2.00/nfe_with_extra_volumes.xml.fixture.pdf +4604 -6164
- data/spec/fixtures/nfe/v2.00/nfe_with_fci.xml.fixture.pdf +1091 -1005
- data/spec/fixtures/nfe/v2.00/nfe_with_ns.xml.fixture.pdf +4657 -6185
- data/spec/fixtures/nfe/v2.00/nfe_without_ns.xml.fixture.pdf +1492 -1449
- data/spec/fixtures/nfe/v3.10/multiples.xmls.on.the.same.pdf.pdf +5190 -5309
- data/spec/fixtures/nfe/v3.10/nfe_simples_nacional.xml.fixture.pdf +2684 -2771
- data/spec/fixtures/nfe/v3.10/with_footer.fixture.pdf +4095 -5042
- data/spec/fixtures/nfe/v3.10/with_issqn.fixture.pdf +3704 -3901
- data/spec/fixtures/nfe/v3.10/with_three_pages.fixture.pdf +11692 -13493
- data/spec/fixtures/nfe/v3.10/without_issqn.fixture.pdf +4569 -5591
- metadata +12 -3
|
@@ -36,7 +36,7 @@ module BrDanfe
|
|
|
36
36
|
@pdf.ibox 0.85, 3.05, 6.22, @l1, I18n.t('danfe.vol.marca'), det.css('marca').text
|
|
37
37
|
@pdf.ibox 0.85, 4.83, 9.27, @l1, I18n.t('danfe.vol.nVol')
|
|
38
38
|
@pdf.inumeric 0.85, 3.43, 14.10, @l1, 'vol.pesoB', det.css('pesoB').text, decimals: 3
|
|
39
|
-
@pdf.inumeric 0.85, 2.
|
|
39
|
+
@pdf.inumeric 0.85, 2.78, 17.53, @l1, 'vol.pesoL', det.css('pesoL').text, decimals: 3
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
def render_blank_boxes
|
|
@@ -10,6 +10,13 @@ module BrDanfe
|
|
|
10
10
|
normal: "#{BrDanfe.root_path}/fonts/tinos.ttf"
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
document.font_families['arimo'] = {
|
|
14
|
+
bold: "#{BrDanfe.root_path}/fonts/arimo_bold.ttf",
|
|
15
|
+
italic: "#{BrDanfe.root_path}/fonts/arimo_italic.ttf",
|
|
16
|
+
bold_italic: "#{BrDanfe.root_path}/fonts/arimo_bold_italic.ttf",
|
|
17
|
+
normal: "#{BrDanfe.root_path}/fonts/arimo.ttf"
|
|
18
|
+
}
|
|
19
|
+
|
|
13
20
|
document
|
|
14
21
|
end
|
|
15
22
|
end
|
data/lib/br_danfe/version.rb
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|