%!
from stoqlib.lib.formatters import (get_formatted_price,
format_quantity)
f_price = get_formatted_price
f_quantity = format_quantity
f_date = lambda d: d.strftime('%x')
%>
<%inherit file="../base/base.html" />
<%namespace file="../base/base.html" import="header, setup_margin_labels" />
<%block name="title_head">
${ header(complete_header, title, subtitle, notes, logo_path) }
${ _("Code") } |
${ _("Category") } |
${ _("Item") } |
${ _("Quantity") } |
${ _("Price") } |
${ _("Total") } |
% for item in loan.get_items():
${ item.sellable.code } |
${ item.sellable.get_category_description() } |
${ item.sellable.get_description() } |
${ f_quantity(item.quantity) } |
${ f_price(item.price) } |
${ f_price(item.get_total()) } |
% endfor
${ _("Total: %s") % f_price(loan.get_total_amount()) }
|
${ _("I inform and sign up to receive the items in full "
"working order and I am aware of the responsability "
"that I have for returning them, as well as the "
"return of the amounts involved, in case of loss, "
"damage or any event that make the product unusable.") }
${ loan.client.person.name }
% if loan.client.person.individual:
% if loan.client.person.individual.rg_number:
RG: ${ loan.client.person.individual.rg_number }
% endif
% if loan.client.person.individual.cpf:
CPF: ${ loan.client.person.individual.cpf }
% endif
% elif loan.client.person.company:
% if loan.client.person.company.cnpj:
CNPJ: ${ loan.client.person.company.cnpj }
% endif
% endif
% if print_promissory_note: