module.exports = { doctype: "PrintFormat", name: "Standard Invoice Format", for: "SalesInvoice", template: `

{{ doc.name }}

{{ frappe._("Customer") }}
{{ doc.customer }}
{{ frappe._("Date") }}
{{ frappe.format(doc.date, 'Date') }}
{% for row in doc.items %} {% endfor %}
{{ frappe._("Item") }} {{ frappe._("Qty") }} {{ frappe._("Rate") }} {{ frappe._("Amount") }}
{{ row.idx + 1 }} {{ row.item }}
{{ frappe.format(row.description, 'Text') }}
{{ row.quantity }} {{ frappe.format(row.rate, 'Currency') }} {{ frappe.format(row.amount, 'Currency') }}
{{ frappe._("Total") }}
{{ frappe.format(doc.netTotal, 'Currency')}}
{% for tax in doc.taxes %}
{{ tax.account }} ({{ tax.rate }}%)
{{ frappe.format(tax.amount, 'Currency')}}
{% endfor %}
{{ frappe._("Grand Total") }}
{{ frappe.format(doc.grandTotal, 'Currency')}}
{{ frappe.format(doc.terms, 'Text') }}
` }