Skip to content

Commit

Permalink
Alterado campo para extrair o horário de saída.
Browse files Browse the repository at this point in the history
  • Loading branch information
ffscalco committed May 28, 2014
1 parent 13aa1b5 commit 140d05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby_danfe/danfe_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def render_titulo
@pdf.ibox 0.85, 1.14, 11.42, 10.28, "UF", @xml['enderDest/UF']
@pdf.ibox 0.85, 5.33, 12.56, 10.28, "INSCRIÇÃO ESTADUAL", @xml['dest/IE']
@pdf.ibox 0.85, 2.92, 17.90, 10.28, "HORA DE SAÍDA", Helper.format_time(@xml['ide/hSaiEnt']), {:align => :right}
@pdf.ibox 0.85, 2.92, 17.90, 10.28, "HORA DE SAÍDA", (not @xml['ide/hSaiEnt'].empty?) ? Helper.format_time(@xml['ide/hSaiEnt']) : Helper.extract_time_from_date(@xml['ide/dhEmi']) , {:align => :right}
@pdf.ibox 0.85, 2.92, 17.90, 10.28, "HORA DE SAÍDA", (not @xml['ide/hSaiEnt'].empty?) ? Helper.format_time(@xml['ide/hSaiEnt']) : Helper.extract_time_from_date(@xml['ide/dhSaiEnt']) , {:align => :right}
end

def render_faturas
Expand Down

0 comments on commit 140d05f

Please sign in to comment.