{% extends 'report_html_purchase/reports/base.html' %} {% block title %} Purchase {{ records|join('# ', 'reference') }} {% endblock %} {% block report_header scoped %} {% set purchase = record %} {% if purchase.state == 'quotation' %} RFQ {% elif purchase.state == 'draft' %} Draft PO {% else %} Purchase Order {% endif %}
Purchase # | {{ purchase.reference }} |
Purchase Date | {{ purchase.purchase_date and purchase.purchase_date|dateformat }} |
Vendor |
{% for line in purchase.invoice_address.full_address.split('\n') %}
{{ line }} {% endfor %} |
{% endif %}
{% if purchase.warehouse and purchase.warehouse.address %}
Ship To |
{% for line in purchase.warehouse.address.full_address.split('\n') %}
{{ line }} {% endfor %} |
{% endif %}
# | Product | Description | Quantity | {% if purchase.state != 'quotation' %}Unit Price | Amount | {% endif %}|
---|---|---|---|---|---|---|
{{ loop.index }} | {% if line.product %} {{ line.product.code }} {% else %} - {% endif %} | {% if line.product %} {{ line.product.name }} {% else %} {{ line.description }} {% endif %} | {{ line.supplier_product_code }} | {% if line.quantity is not none %} {{ formatLang(line.quantity, purchase.party.lang, digits=line.unit_digits) }} {% if line.unit.symbol != 'u' %}{{ line.unit.symbol }}{% endif %} {% endif %} | {% if purchase.state != 'quotation' %}{% if line.unit_price is not none %} {{ line.unit_price|currencyformat(purchase.currency.code, format="\xa4#,##0.0000") }}{% if line.unit.symbol != 'u' %}/{{ line.unit.symbol }}{% endif %} {% endif %} | {{ line.amount|currencyformat(purchase.currency.code) }} | {% endif %}
Subtotal | {{ purchase.untaxed_amount|currencyformat(purchase.currency.code) }} | |
Tax | {{ purchase.tax_amount|currencyformat(purchase.currency.code) }} | |
Total | {{ purchase.total_amount|currencyformat(purchase.currency.code) }} |