<#-- This is the meta-template used to generate the actual quote template. --> [=quoteTitle] ${quote.number} <#if enablePdfaCompliance> <#assign pdfaPart = pdfaCompliance?remove_beginning('pdfa')[0..0]> <#assign pdfaConformance = pdfaCompliance?remove_beginning('pdfa')[1..1]?upper_case> <#if !standard??> <#if enableAttachment> <#if useCharacterEncoding> <#if taggedPDF> <#if showPageBackground>

[=quoteTitle]

[=quoteHeader]
[=quoteIntro]
<@showLine td="th" columnNameValue="

[=columnName]

" columnCatalogItemValue="

[=columnCatalogItem]

" columnQuantityValue="

[=columnQuantity]

" columnMeasureValue="

[=columnMeasure]

" columnPriceValue="

[=columnPrice]

" columnTaxValue="

[=showItemTaxRate?then('${tax.name} ${tax.defaultRate}', '${tax.name}')]

" columnNonTaxableValue="

[=columnNonTaxable]

" columnTotalValue="

[=columnTotal]

" /> <@showQuoteItems/> <#if showSubtotalQuote> <@showLine class="table-total" columnNameValue="

[=subtotalQuoteName]

" columnTaxValue="

${quote.getTaxTotal(tax)}

" columnTotalValue="

${quote.total}

" /> <#if showSubtotalTax> <@showLine class="table-total" columnNameValue="[=showQuoteTaxRate?then('

${tax.name} ${tax.defaultRate}

', '

${tax.name}

')]" columnTotalValue="

${quote.getTaxTotal(tax)}

" /> <#if showSubtotalTaxes> <@showLine class="table-total" columnNameValue="

[=subtotalTaxesName]

" columnTotalValue="

${quote.taxesTotal}

" /> <#if showTotalQuote> <@showLine class="table-total" columnNameValue="

[=totalQuoteName]

" columnTotalValue="

${quote.grandTotal}

" />
[#if quote.taxable]
[#list quote.taxes?sort_by("name") as tax]
[/#list]
[/#if]
<#macro showLine class="" td="td" columnNameValue="" columnCatalogItemValue="" columnQuantityValue="" columnMeasureValue="" columnPriceValue="" columnTaxValue="" columnNonTaxableValue="" columnTotalValue=""> class="[=class]"> <[=td] class="table-column table-column-name">[=columnNameValue] <#if showColumnCatalogItem> <[=td] class="table-column table-column-catalogItem">[=columnCatalogItemValue] <#if showColumnQuantity> <[=td] class="table-column table-column-quantity">[=columnQuantityValue] <#if showColumnMeasure> <[=td] class="table-column table-column-measure">[=columnMeasureValue] <#if showColumnPrice> <[=td] class="table-column table-column-price">[=columnPriceValue] <#if showColumnTax> <[=td]>[#list quote.taxes?sort_by("name") as tax] <[=td] class="table-column table-column-tax">[=columnTaxValue] <[=td]>[/#list] <#if showColumnNonTaxable> <[=td]>[#if quote.taxes?size == 0] <#if showNonTaxable> <[=td] class="table-column table-column-tax">[=columnNonTaxableValue] <#else> <[=td] class="table-column table-column-tax"/> <[=td]>[/#if] <#if showColumnTotal> <[=td] class="table-column table-column-total">[=columnTotalValue] <#macro showQuoteItems> [#list quote.items?sort_by("name") as item] <@showLine class="table-row-item table-row-item-regular" columnNameValue="[=showItemDescription?then('

${item.name}

${item.description}

', '

${item.name}

')]" columnCatalogItemValue="

${item.catalogItem!\"-\"}

" columnQuantityValue="

${item.quantity}

[#if item.quantityDiscounted]

${item.regularQuantity}

[/#if]

" columnPriceValue="

${item.price}

[#if item.priceDiscounted]

${item.regularPrice}

[/#if]

" columnMeasureValue="

${item.unitOfMeasure}

" columnTaxValue="[=showNonTaxable?then('

[#if !item.taxable]

[=nonTaxable]

[#else]

${item.calculateTaxTotal(tax)}

[/#if]

', '

${item.calculateTaxTotal(tax)}

')]" columnNonTaxableValue="

[=nonTaxable]

" columnTotalValue="

${item.total}

" /> [/#list]