#--
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>
#if>
<#if enableAttachment>
#if>
<#if useCharacterEncoding>
#if>
<#if taggedPDF>
#if>
<#if showPageBackground>
#if>
[=quoteTitle]
[=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>
| [#if quote.taxable] |
<#if showSubtotalTax>
| [#list quote.taxes?sort_by("name") as tax] |
<@showLine class="table-total" columnNameValue="[=showQuoteTaxRate?then('${tax.name} ${tax.defaultRate}
', '${tax.name}
')]" columnTotalValue="${quote.getTaxTotal(tax)}
" />
| [/#list] |
#if>
<#if showSubtotalTaxes>
<@showLine class="table-total" columnNameValue="[=subtotalTaxesName]
" columnTotalValue="${quote.taxesTotal}
" />
#if>
<#if showTotalQuote>
<@showLine class="table-total" columnNameValue="[=totalQuoteName]
" columnTotalValue="${quote.grandTotal}
" />
#if>
| [/#if] |
<#macro showLine class="" td="td" columnNameValue="" columnCatalogItemValue="" columnQuantityValue="" columnMeasureValue="" columnPriceValue="" columnTaxValue="" columnNonTaxableValue="" columnTotalValue="">
class="[=class]"#if>>
<[=td] class="table-column table-column-name">[=columnNameValue][=td]>
<#if showColumnCatalogItem>
<[=td] class="table-column table-column-catalogItem">[=columnCatalogItemValue][=td]>
#if>
<#if showColumnQuantity>
<[=td] class="table-column table-column-quantity">[=columnQuantityValue][=td]>
#if>
<#if showColumnMeasure>
<[=td] class="table-column table-column-measure">[=columnMeasureValue][=td]>
#if>
<#if showColumnPrice>
<[=td] class="table-column table-column-price">[=columnPriceValue][=td]>
#if>
<#if showColumnTax>
<[=td]>[#list quote.taxes?sort_by("name") as tax][=td]>
<[=td] class="table-column table-column-tax">[=columnTaxValue][=td]>
<[=td]>[/#list][=td]>
#if>
<#if showColumnNonTaxable>
<[=td]>[#if quote.taxes?size == 0][=td]>
<#if showNonTaxable>
<[=td] class="table-column table-column-tax">[=columnNonTaxableValue][=td]>
<#else>
<[=td] class="table-column table-column-tax"/>
#if>
<[=td]>[/#if][=td]>
#if>
<#if showColumnTotal>
<[=td] class="table-column table-column-total">[=columnTotalValue][=td]>
#if>
#macro>
<#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] |
#macro>