Skip to content

Instantly share code, notes, and snippets.

@gvc
Created May 13, 2011 01:05
Show Gist options
  • Save gvc/969772 to your computer and use it in GitHub Desktop.
Save gvc/969772 to your computer and use it in GitHub Desktop.
View of a receit
#recibo.column.span-24
.column.span-16.prepend-4
%h1.titulo RECIBO
.column.span-4.last
%h2=number_to_currency @recibo.valor_total
.texto-recibo.column.span-24.last
%p
             
= "Recebi de #{@recibo.recebido_de}, a importância de #{number_to_currency @recibo.valor_total} "
= "(#{@recibo.valor_total.por_extenso_em_reais}) "
= "referente a #{@recibo.referente_a}."
.column.span-6
%table
%tbody
%tr
%td.descricao Valor bruto
%td.valor=number_to_currency @recibo.valor
%tr
%td.descricao Desconto
%td.valor=number_to_currency @recibo.desconto
%tr
%td.descricao.total Total
%td.valor.total=number_to_currency @recibo.valor_total
#rodape.span-10.prepend-7.append-7.last
%p= "#{Estabelecimento.first.try(:municipio).try(:nome)}, #{I18n.l(Date.today, format: :long)}"
%hr
%p.nome= Estabelecimento.first.nome_fantasia
%p= Estabelecimento.first.cnpj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment