Skip to content

Commit 44d62a0

Browse files
committed
fix position
1 parent 934d49c commit 44d62a0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/br_danfe/danfe_lib/nfe_lib/emit_header.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@ def cep
5252
BrDanfe::Helper.format_cep(@xml['enderEmit/CEP'])
5353
end
5454

55-
def cnpj_cpf
56-
if @xml['emit/CNPJ'].present?
57-
'emit/CNPJ'
58-
else
59-
'emit/CPF'
60-
end
61-
end
62-
6355
def logo
6456
bounding_box_size = 80
6557
logo_options = BrDanfe::Logo::Options.new(bounding_box_size, @logo_dimensions).options
@@ -118,6 +110,14 @@ def render_emit(y_position)
118110
@pdf.lie LINE_HEIGHT, 6.86, 7.11, y_second_line, @xml, 'enderDest/UF', 'emit/IEST'
119111
@pdf.lcnpj_cpf LINE_HEIGHT, 6.34, 13.97, y_second_line, @xml, cnpj_cpf
120112
end
113+
114+
def cnpj_cpf
115+
if @xml['emit/CNPJ'].present?
116+
'emit/CNPJ'
117+
else
118+
'emit/CPF'
119+
end
120+
end
121121
end
122122
end
123123
end

0 commit comments

Comments
 (0)