%page args="b" /> <%! from stoqlib.lib.formatters import get_formatted_price f_currency = lambda p: get_formatted_price(p) if p else '' f_date = lambda d: d.strftime('%x') %>
${ _("Drawee") } ${ b.drawee } | ${ _("Due date") } ${ f_date(b.due_date) } | |||
${ _("Drawee's document") } ${ b.drawee_document } | ${ _("Drawee's phone number") } ${ b.drawee_phone_number } | ${ _("Installment") } ${ b.installment } | ||
${ _("Emission date") } ${ f_date(b.emission_date) } | ${ _("Sale") } # ${ b.order_identifier } | ${ _("Payment") } # ${ b.payment_number } | ${ _("Installments total") } ${ f_currency(b.total_value) } | (=) ${ _("Document value") } ${ f_currency(b.value) } |
${ _("Instructions") }
% for line in b.instructions:
${ line }
% for line in b.demonstrative:
${ line } |
(+) ${ _("Penalty") } | |||
(+) ${ _("Interest") } | ||||
(-) ${ _("Discount") } | ||||
(=) ${ _("Total value") } ${ f_currency(b.value) } |