@@ -115,6 +115,22 @@ def render_faturas
115115 @pdf . inumeric 0.85 , 1.25 , x + 0.70 , y + 0.40 , '' , det . css ( 'vDup' ) . text , { :size => 6 , :border => 0 }
116116 x = x + 2.30
117117 end
118+
119+ @xml . collect ( 'xmlns' , 'fat' ) do |det |
120+ @pdf . ibox 0.85 , 2.12 , x , y , '' , 'Núm.:' , { :size => 4 , :border => 0 , :style => :italic }
121+ @pdf . ibox 0.85 , 2.12 , x + 0.70 , y , '' , det . css ( 'nFat' ) . text , { :size => 4 , :border => 0 }
122+
123+ @pdf . ibox 0.85 , 2.12 , x , y + 0.20 , '' , 'vOrig.: R$' , { :size => 4 , :border => 0 , :style => :italic }
124+ @pdf . inumeric 0.85 , 1.25 , x + 0.70 , y + 0.18 , '' , det . css ( 'vOrig' ) . text , { :size => 4 , :border => 0 }
125+
126+ @pdf . ibox 0.85 , 2.12 , x , y + 0.40 , '' , 'vDesc: R$' , { :size => 4 , :border => 0 , :style => :italic }
127+ @pdf . inumeric 0.85 , 1.25 , x + 0.70 , y + 0.36 , '' , det . css ( 'vDesc' ) . text , { :size => 4 , :border => 0 }
128+
129+ @pdf . ibox 0.85 , 2.12 , x , y + 0.55 , '' , 'vLiq: R$' , { :size => 4 , :border => 0 , :style => :italic }
130+ @pdf . inumeric 0.85 , 1.25 , x + 0.70 , y + 0.54 , '' , det . css ( 'vLiq' ) . text , { :size => 4 , :border => 0 }
131+
132+ x = x + 2.30
133+ end
118134 end
119135
120136 def render_calculo_do_imposto
@@ -209,7 +225,7 @@ def render_calculo_do_issqn
209225 @pdf . ititle 0.42 , 10.00 , 0.25 , 24.64 , "CÁLCULO DO ISSQN"
210226
211227 @pdf . ibox 0.85 , 5.08 , 0.25 , 25.06 , "INSCRIÇÃO MUNICIPAL" , @xml [ 'emit/IM' ]
212- @pdf . ibox 0.85 , 5.08 , 5.33 , 25.06 , "VALOR TOTAL DOS SERVIÇOS" , @xml [ 'total/vServ' ] . empty? ? @xml [ 'total/ISSQNtot/vServ' ] : @xml [ 'total/vServ' ]
228+ @pdf . ibox 0.85 , 5.08 , 5.33 , 25.06 , "VALOR TOTAL DOS SERVIÇOS" , @xml [ 'total/vServ' ] . empty? ? @xml [ 'total/ISSQNtot/vServ' ] : @xml [ 'total/vServ' ]
213229 @pdf . ibox 0.85 , 5.08 , 10.41 , 25.06 , "BASE DE CÁLCULO DO ISSQN" , @xml [ 'total/vBCISS' ] . empty? ? @xml [ 'total/ISSQNtot/vBC' ] : @xml [ 'total/vBCISS' ]
214230 @pdf . ibox 0.85 , 5.28 , 15.49 , 25.06 , "VALOR DO ISSQN" , @xml [ 'total/ISSTot' ] . empty? ? @xml [ 'total/ISSQNtot/vISS' ] : @xml [ 'total/ISSTot' ]
215231 end
@@ -253,7 +269,7 @@ def render_dados_adicionais
253269 "UF: " + @xml [ 'entrega/UF' ] + " " +
254270 "País: Brasil"
255271 end
256-
272+
257273 if @xml [ 'infAdic/infAdFisco' ] != ""
258274 info_adicional += "\n #{ @xml [ 'infAdic/infAdFisco' ] } "
259275 end
0 commit comments