for each="quotation in records"
replace text:p="set_lang(quotation.supplier.lang)"
replace text:p="quotation.set_lang(quotation.supplier.lang)"
if test="quotation.supplier_address"
for each="line in quotation.supplier_address.full_address.splitlines()"
line
/for
/if
if test="quotation.supplier.tax_identifier"
quotation.supplier.tax_identifier.type_string: quotation.supplier.tax_identifier.code
/if
choose test=""
when test="quotation.state == 'draft'"
Draft Quotation
/when
otherwise test=""
Purchase Request for Quotation N°: quotation.number
/otherwise
/choose
Revision:quotation.revision or ''
Reference: quotation.reference or ''
Customer Code: quotation.supplier.get_multivalue('customer_code', company=quotation.company.id) or ''
Date: format_date(today, quotation.supplier.lang)
Delivery Address:
for each="line in quotation.delivery_full_address.splitlines()"
line
/for
Description	Quantity	Unit Price	Expected Supply Date
for each="quotation_line in quotation.lines"
if test="quotation_line.description" for each="description in quotation_line.description.split('\n')" description /for /if	format_number_symbol(quotation_line.quantity, quotation.supplier.lang, quotation_line.unit, digits=quotation_line.unit.digits) if quotation_line.unit else format_number(quotation_line.quantity, quotation.supplier.lang)	format_currency(quotation_line.unit_price, quotation.supplier.lang, quotation_line.currency, digits=quotation_line.__class__.unit_price.digits[1]) if quotation_line.unit_price else ""	format_date(quotation_line.supply_date, quotation.supplier.lang) if quotation_line.supply_date else ''
/for
/for
if test="company and company.header"
for each="line in company.header_used.split('\n')"
line
/for
/if
company.rec_name if company else ''
if test="company and company.footer"
for each="line in company.footer_used.split('\n')"