LibreOffice/6.4.6.2$Linux_X86_64 LibreOffice_project/40$Build-22008-06-07T15:28:222009-01-10T16:03:321PT0S
21167
0
26301
24026
true
false
view2
4355
33754
0
21167
26300
45191
0
0
false
100
false
false
false
true
true
true
0
true
true
false
false
false
false
false
false
false
false
true
true
true
false
false
false
false
false
false
false
false
false
true
false
true
true
947783
false
false
true
false
false
false
true
false
false
false
true
3903666
true
false
true
false
false
true
true
false
true
false
false
false
0
false
true
high-resolution
false
false
false
false
false
false
true
true
true
true
false
false
true
false
false
false
false
false
false
1
true
false
false
0
false
false
false
<if test="company and company.header">
<for each="line in company.header.split('\n')">
<line>
</for>
</if>
<company.rec_name if company else ''>
<if test="company and company.footer">
<for each="line in company.footer.split('\n')">
<line>
</for>
</if>
<for each="purchase in records">
<replace text:p="set_lang(purchase.party.lang)">
<replace text:p="purchase.set_lang(purchase.party.lang)">
<for each="line in purchase.report_address.splitlines()">
<line>
</for>
<if test="purchase.party.tax_identifier">
<purchase.party.tax_identifier.type_string>: <purchase.party.tax_identifier.code>
</if>
<choose test="">
<when test="purchase.state == 'draft'">
Draft Purchase Order
</when>
<when test="purchase.state == 'quotation'">
Request for Quotation N°: <purchase.full_number>
</when>
<otherwise test="">
Purchase Order N°: <purchase.full_number>
</otherwise>
</choose>
Description: <purchase.description or ''>
Reference: <purchase.reference or ''>
Customer Code: <purchase.party.get_multivalue('customer_code', company=purchase.company.id) or ''>
Date: <format_date(purchase.purchase_date or today, purchase.party.lang)>
Delivery Address:
<for each="line in purchase.delivery_full_address.splitlines()">
<line>
</for>
Description
Quantity
Unit Price
Taxes
Amount
<for each="line in purchase.lines">
<choose test="">
<when test="line.type == 'line'">
<choose>
<when test="line.product_supplier">
<line.product_supplier.rec_name>
</when>
<when test="line.product">
<line.product.rec_name>
</when>
</choose>
<if test="line.description">
<for each="description in line.description.split('\n')">
<description>
</for>
</if>
<(format_number(line.quantity, purchase.party.lang, digits=line.unit_digits) + (line.unit and (' ' + line.unit.symbol) or '')) or ''>
<format_currency(line.unit_price, purchase.party.lang, purchase.currency, digits=line.__class__.unit_price.digits[1])>
<for each="tax in line.taxes">
<tax.description>
</for>
<format_currency(line.amount, purchase.party.lang, purchase.currency)>
</when>
<when test="line.type == 'subtotal'">
<for each="description in (line.description or '').split('\n')">
<description>
</for>
<format_currency(line.amount, purchase.party.lang, purchase.currency)>
</when>
<when test="line.type == 'title'">
<for each="description in (line.description or '').split('\n')">
<description>
</for>
</when>
<otherwise test="">
<for each="description in (line.description or '').split('\n')">
<description>
</for>
</otherwise>
</choose>
</for>
Total (excl. taxes):
<format_currency(purchase.untaxed_amount, purchase.party.lang, purchase.currency)>
Taxes:
<format_currency(purchase.tax_amount, purchase.party.lang, purchase.currency)>
Total:
<format_currency(purchase.total_amount, purchase.party.lang, purchase.currency)>
<for each="comment in (purchase.comment or '').split('\n')">
<comment>
</for>
</for>