\n\n\n\t\n\t\n\t\t[=invoiceTitle] ${invoice.number}<\/title>\n\n\t\t<meta name=\"generator\" content=\"[=generator]\"\/>\n\t<#if enablePdfaCompliance>\n\t\t<#assign pdfaPart = pdfaCompliance?remove_beginning('pdfa')[0..0]>\n\t\t<#assign pdfaConformance = pdfaCompliance?remove_beginning('pdfa')[1..1]?upper_case>\n\t\t<#if !standard??>\n\t\t<meta name=\"fanurio-pdf-xmpmetadata\" content=\"pdfaid.part:[=pdfaPart], pdfaid.conformance:[=pdfaConformance]\">\n\t\t<#elseif standard?starts_with(\"zugferd\")>\n\t\t\t<#assign zugferdConformance = standard?split('-')[2]?replace('_', ' ')?upper_case>\n\t\t\t<#if standard?starts_with(\"zugferd-1p0-\")>\n\t\t<meta name=\"fanurio-pdf-xmpmetadata\" content=\"pdfaid.part:[=pdfaPart], pdfaid.conformance:[=pdfaConformance], zf.Version:1.0, zf.ConformanceLevel:[=zugferdConformance]\">\n\t\t\t<#elseif standard?starts_with(\"zugferd-2p0-\")>\n\t\t<meta name=\"fanurio-pdf-xmpmetadata\" content=\"pdfaid.part:[=pdfaPart], pdfaid.conformance:[=pdfaConformance], fx.Version:2p0, fx.ConformanceLevel:[=zugferdConformance]\">\n\t\t\t<#elseif standard?starts_with(\"zugferd-2p1-\")>\n\t\t<meta name=\"fanurio-pdf-xmpmetadata\" content=\"pdfaid.part:[=pdfaPart], pdfaid.conformance:[=pdfaConformance], fx.Version:1.0, fx.ConformanceLevel:[=zugferdConformance]\">\n\t\t\t<\/#if>\n\t\t<\/#if>\n\t<\/#if>\n\t<#if enableAttachment>\n\t\t<meta name=\"fanurio-pdf-attachedfile\" content=\"name:[=attachment.name], mime:[=attachment.mime], relationship:[=attachment.relationship], description:[=attachment.description], data:[=attachment.data]\">\n\t<\/#if>\n\t<#if useCharacterEncoding>\n\t\t<meta name=\"fanurio-pdf-encoding\" content=\"[=characterEncoding]\">\n\t<\/#if>\n\t<#if taggedPDF>\n\t\t<meta name=\"fanurio-pdf-tagged\" content=\"true\">\n\t<\/#if>\n\t<#if showPageBackground>\n\t\t<meta name=\"fanurio-pdf-background\" content=\"[=pageBackgroundFileName]\">\n\t<\/#if>\n\n\t\t<style>\n\t\t\t\/* Global *\/\n\t\t\t* {\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\tword-wrap: break-word;\n\t\t\t\tfont-size: 10pt;\n\t\t\t\tfont-family: <#if enableEmbeddedFont>'[=embeddedFont]', <\/#if>SansSerif, Helvetica, Arial;\n\t\t\t}\n\n\t\t\tp {\n\t\t\t line-height: 1.5;\n\t\t\t}\n\n\t\t\t\/* Page *\/\n\t\t\t@page {\n\t\t\t\tsize: [=pageSize] [=pageOrientation];\n\t\t\t\tpadding: 0.0in;\n\t\t\t\tmargin-left: 0.6in;\n\t\t\t\tmargin-right: 0.6in;\n\t\t\t\tmargin-top: [=pageHeaderHeight]in;\n\t\t\t\tmargin-bottom: [=pageFooterHeight]in;\n\n\t\t\t\t@bottom-center {\n\t\t\t\t\tcontent: element(footer);\n\t\t\t\t}\n\n\t\t\t\t@top-center {\n\t\t\t\t\tcontent: element(header);\n\t\t\t\t\tpadding-top: 0.5in;\n\t\t\t\t\tpadding-bottom: 0.1in;\n\t\t\t\t}\n\t\t\t}\n\n\t<#if showQRbill>\n\t\t\t@page qrbill {\n\t\t\t\tsize: A4 Portrait;\n\t\t\t\tpadding: 0mm;\n\t\t\t\tmargin: 0mm;\n\t\t\t}\n\t<\/#if>\n\n\t\t\t#page-header {\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: running(header);\n\t\t\t}\n\n\t\t\t#page-footer {\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: running(footer);\n\t\t\t}\n\n\t\t\t.page-number:before {\n\t\t\t\tcontent: counter(page);\n\t\t\t}\n\n\t\t\t.page-count:before {\n\t\t\t\tcontent: counter(pages);\n\t\t\t}\n\n\t\t\t\/* Content *\/\n\t\t\t#page-content {\n\t\t\t\tpage-break-inside: avoid;\n\t\t\t}\n\n\t\t\t#page-content-header {\n\t\t\t\toverflow: hidden;\n\t\t\t\tmargin-top: 5px;\n\t\t\t\tmargin-bottom: 15px;\n\t\t\t}\n\n\t\t\t#page-content-title {\n\t\t\t\ttext-align: center;\n\t\t\t\tfont-size: 26pt;\n\t\t\t\tfont-weight: bold;\n\t\t\t\tmargin: 0.2in 0in;\n\t\t\t}\n\n\t\t\t#page-content-header-left {\n\t\t\t\tfloat: left;\n\t\t\t\ttext-align: left;\n\t\t\t\twidth: 50%;\n\t\t\t}\n\n\t\t\t#page-content-header-right {\n\t\t\t\tfloat: right;\n\t\t\t\ttext-align: right;\n\t\t\t\twidth: 50%;\n\t\t\t}\n\n\t\t\t.table {\n\t\t\t\tborder-collapse: separate;\n\t\t\t\tborder-spacing: 0px;\n\t\t\t\twidth: 100%;\n\t\t\t\t-fs-table-paginate: paginate;\n\t\t\t\tmargin-top: 1.7em;\n\t\t\t\tmargin-bottom: 1.7em;\n\t\t\t\tpage-break-inside: auto;\n\n\t\t\t\tborder: 1px solid [=tableBorderColor];\n\t\t\t\tbackground: [=tableBackgroundColor];\n\t\t\t}\n\n\t\t\t.table thead {\n\t\t\t\tbackground: [=tableHeaderBackgroundColor];\n\t\t\t\tcolor: [=tableHeaderForegroundColor];\n\t\t\t}\n\n\t\t\t.table tfoot {\n\t\t\t\tdisplay: table-row-group;\n\t\t\t}\n\n\t\t\t.table tr * {\n\t\t\t\tvertical-align: top;\n\t\t\t}\n\n\t\t\t.table th, .table td {\n\t\t\t\tpadding: 5px;\n\t\t\t}\n\n\t\t\tth.table-column-date, th.table-column-name, th.table-column-catalogItem, th.table-column-measure {\n\t\t\t\ttext-align: left;\n\t\t\t}\n\n\t\t\t.table-column {\n\t\t\t\twidth: 10px;\n\t\t\t\twhite-space: nowrap;\n\t\t\t\ttext-align: right;\n\t\t\t}\n\n\t\t\t.table-column-name {\n\t\t\t\twidth: auto;\n\t\t\t\twhite-space: normal;\n\t\t\t\ttext-align: left;\n\t\t\t}\n\n\t\t\t.table-column-catalogItem, .table-column-measure {\n\t\t\t\ttext-align: left;\n\t\t\t}\n\n\t\t\t.table-row-time td, .table-row-mileage td {\n\t\t\t\tcolor: #666;\n\t\t\t\tpadding-top: 3px!important;\n\t\t\t\tpadding-bottom: 0px!important;\n\t\t\t}\n\n\t\t\t.table-total {\n\t \t\t\tfont-weight: bold;\n\t \t\t}\n\n\t \t\t#statement {\n\t \t\t\tpage-break-after: avoid;\n\t \t\t\tmargin-top: 10px;\n\t \t\t}\n\n\t \t\t.discount {\n\t \t\t\tfont-size: 8pt!important;\n\t \t\t\tcolor: #666;\n\t \t\t\ttext-decoration: line-through;\n\t \t\t}\n\n\t\t<#if showBusinessLogo>\n\t \t\t#page-header {\n\t \t\t\toverflow: hidden;\n\t \t\t}\n\n\t \t\t#page-header-logo {\n\t \t\t\tfloat: left;\n\t \t\t\ttext-align: left;\n\t \t\t}\n\n\t \t\t#page-header-content {\n\t \t\t\tfloat: right;\n\t \t\t\ttext-align: right;\n\t \t\t}\n\t\t<#else>\n\t \t\t#page-header-content {\n\t \t\t\tfloat: left;\n\t \t\t\ttext-align: left;\n\t \t\t}\n\t\t<\/#if>\n\n\t\t\t[=pageCSS]\n\t\t<\/style>\n\t<\/head>\n\t<body>\n\t\t<div id=\"page-header\">\n\t\t<#if showBusinessLogo>\n\t\t\t<div id=\"page-header-logo\">\n\t\t\t\t<img src=\"[=businessLogoName]\" height=\"[=businessLogoHeight]px\"><\/img>\n\t\t\t<\/div>\n\t\t<\/#if>\n\n\t\t\t<div id=\"page-header-content\">\n\t\t\t\t[=pageHeader]\n\t\t\t<\/div>\n\t\t<\/div>\n\n\t\t<div id=\"page-footer\">\n\t\t\t[=pageFooter]\n\t\t<\/div>\n\n\t\t<div id=\"page-content\">\n\t\t\t<p id=\"page-content-title\">[=invoiceTitle]<\/p>\n\n\t\t\t<div id=\"page-content-header\">\n\t\t\t\t[=invoiceHeader]\n\t\t\t<\/div>\n\n\t\t\t<table class=\"table\">\n\t\t\t\t<thead>\n\t\t\t\t<@showLine td=\"th\" columnDateValue=\"<p>[=columnDate]<\/p>\" columnNameValue=\"<p>[=columnName]<\/p>\" columnCatalogItemValue=\"<p>[=columnCatalogItem]<\/p>\" columnTimeValue=\"<p>[=columnTime]<\/p>\" columnQuantityValue=\"<p>[=columnQuantity]<\/p>\" columnMeasureValue=\"<p>[=columnMeasure]<\/p>\" columnPriceValue=\"<p>[=columnPrice]<\/p>\" columnTaxValue=\"<p>[=showItemTaxRate?then('${tax.name} ${tax.defaultRate}', '${tax.name}')]<\/p>\" columnNonTaxableValue=\"<p>[=columnNonTaxable]<\/p>\" columnTotalValue=\"<p>[=columnTotal]<\/p>\" \/>\n\t\t\t\t<\/thead>\n\n\t\t\t\t<tbody>\n\t\t\t\t<@showInvoiceItemsByProject\/>\n\t\t\t\t<\/tbody>\n\n\t\t\t\t<tfoot>\n\t\t\t\t<#if showSubtotalInvoice>\n\t\t\t\t\t<@showLine class=\"table-total\" colspanName=true columnNameValue=\"<p>[=subtotalInvoiceName]<\/p>\" columnTimeValue=\"[=useDecimalTimeFormat?then('<p>[#if invoice.timeEntries?size != 0]${invoice.billableTimeAsDecimal}[\/#if]<\/p>', '<p>[#if invoice.timeEntries?size != 0]${invoice.billableTimeAsHour}[\/#if]<\/p>')]\" columnTaxValue=\"<p>${invoice.getTaxTotal(tax)}<\/p>\" columnTotalValue=\"<p>${invoice.total}<\/p><p>[#if invoice.totalDiscounted]<\/p><p class=\\\"discount\\\">${invoice.regularTotal}<\/p><p>[\/#if]<\/p>\" \/>\n\t\t\t\t<\/#if>\n\n\t\t\t\t<tr>\n\t\t\t\t\t<td>[#if invoice.taxable]<\/td>\n\t\t\t\t<\/tr>\n\n\t\t\t\t<#if showSubtotalTax>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>[#list invoice.taxes?sort_by(\"name\") as tax]<\/td>\n\t\t\t\t\t<\/tr>\n\n\t\t\t\t\t<@showLine class=\"table-total\" colspanName=true columnNameValue=\"[=showInvoiceTaxRate?then('<p>${tax.name} <span>${tax.defaultRate}<\/span><\/p>', '<p>${tax.name}<\/p>')]\" columnTotalValue=\"<p>${invoice.getTaxTotal(tax)}<\/p>\" \/>\n\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>[\/#list]<\/td>\n\t\t\t\t\t<\/tr>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showSubtotalTaxes>\n\t\t\t\t\t<@showLine class=\"table-total\" colspanName=true columnNameValue=\"<p>[=subtotalTaxesName]<\/p>\" columnTotalValue=\"<p>${invoice.taxesTotal}<\/p>\" \/>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showTotalInvoice>\n\t\t\t\t\t<@showLine class=\"table-total\" colspanName=true columnNameValue=\"<p>[=totalInvoiceName]<\/p>\" columnTotalValue=\"<p>${invoice.grandTotal}<\/p>\" \/>\n\t\t\t\t<\/#if>\n\n\t\t\t\t<tr>\n\t\t\t\t\t<td>[\/#if]<\/td>\n\t\t\t\t<\/tr>\n\n\t\t\t\t<#if showSubtotalPayments>\n\t\t\t\t\t<@showLine class=\"table-total\" colspanName=true columnNameValue=\"<p>[=subtotalPaymentsName]<\/p>\" columnTotalValue=\"<p>${invoice.paymentsTotal}<\/p>\" \/>\n\t\t\t\t<\/#if>\n\n\t\t\t\t<#if showSubtotalPayment>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>[#list invoice.payments?sort_by(\"date\") as payment]<\/td>\n\t\t\t\t\t<\/tr>\n\n\t\t\t\t\t<@showLine class=\"table-total\" columnDateValue=\"<p>${payment.date?date?string.short}<\/p>\" columnTotalValue=\"<p>${payment.amount}<\/p>\" \/>\n\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>[\/#list]<\/td>\n\t\t\t\t\t<\/tr>\n\t\t\t\t<\/#if>\n\n\t\t\t\t<#if showInvoiceBalance>\n\t\t\t\t\t<@showLine class=\"table-total\" colspanName=true columnNameValue=\"<p>[=invoiceBalanceName]<\/p>\" columnTotalValue=\"<p>${invoice.balance}<\/p>\" \/>\n\t\t\t\t<\/#if>\n\n\t\t\t\t<#if showOtherInvoicesBalance>\n\t\t\t\t\t<@showLine class=\"table-total\" colspanName=true columnNameValue=\"<p>[=otherInvoicesBalanceName]<\/p>\" columnTotalValue=\"<p>${client.otherInvoicesBalance}<\/p>\" \/>\n\t\t\t\t<\/#if>\n\n\t\t\t\t<#if showClientBalance>\n\t\t\t\t\t<@showLine class=\"table-total\" colspanName=true columnNameValue=\"<p>[=clientBalanceName]<\/p>\" columnTotalValue=\"<p>${client.balance}<\/p>\" \/>\n\t\t\t\t<\/#if>\n\n\t\t\t\t<#if showDepositsBalance>\n\t\t\t\t\t<@showLine class=\"table-total\" colspanName=true columnNameValue=\"<p>[=depositsBalanceName]<\/p>\" columnTotalValue=\"<p>${client.depositsBalance}<\/p>\" \/>\n\t\t\t\t<\/#if>\n\t\t\t\t<\/tfoot>\n\t\t\t<\/table>\n\n\t\t<#if showPaidStamp>\n\t\t\t<p>[#if invoice.paid]<\/p>\n\t\t\t<img src=\"[=paidStampFileName]\" style=\"position:absolute; left:[=paidStampLeft]px; top:[=paidStampTop]px;\"\/>\n\t\t\t<p>[\/#if]<\/p>\n\t\t<\/#if>\n\n\t\t<#if showClientStatement>\n\t\t\t<@showClientStatementMacro\/>\n\t\t<\/#if>\n\n\t\t\t<br\/>\n\n\t\t\t<div id=\"page-content-footer\">\n\t\t\t\t[=invoiceFooter]\n\t\t\t<\/div>\n\t\t<\/div>\n\t<#if showQRbill>\n\t\t<div style=\"page: qrbill;\">\n\t\t\t<img src=\"[@qrbill bill=invoice\/]\" width=\"210mm\" \/>\n\t\t<\/div>\n\t<\/#if>\n\t<\/body>\n<\/html>\n\n<#macro showClientStatementMacro>\n\t<p>[#if client.openInvoices?size != 0]<\/p>\n\n\t<div id=\"statement\">\n\t\t[=clientStatementHeader]\n\n\t\t<table class=\"table\">\n\t\t\t<thead>\n\t\t\t<tr>\n\t\t\t\t<#if showClientStatementColumnNumber>\n\t\t\t\t\t<th>[=clientStatementColumnNumber]<\/th>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnDate>\n\t\t\t\t\t<th>[=clientStatementColumnDate]<\/th>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnDueDate>\n\t\t\t\t\t<th>[=clientStatementColumnDueDate]<\/th>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnAge>\n\t\t\t\t\t<th>[=clientStatementColumnAge]<\/th>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnGrandTotal>\n\t\t\t\t\t<th style=\"text-align: right;\">[=clientStatementColumnGrandTotal]<\/th>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnPayments>\n\t\t\t\t\t<th style=\"text-align: right;\">[=clientStatementColumnPayments]<\/th>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnBalance>\n\t\t\t\t\t<th style=\"text-align: right;\">[=clientStatementColumnBalance]<\/th>\n\t\t\t\t<\/#if>\n\t\t\t<\/tr>\n\t\t\t<\/thead>\n\t\t\t<tbody>\n\t\t\t<tr>\n\t\t\t\t<td>[#list client.openInvoices?sort_by(\"ageInDays\") as invoice]<\/td>\n\t\t\t<\/tr>\n\t\t\t<tr>\n\t\t\t\t<#if showClientStatementColumnNumber>\n\t\t\t\t\t<td>${invoice.number}<\/td>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnDate>\n\t\t\t\t\t<td>${invoice.date?date?string.short}<\/td>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnDueDate>\n\t\t\t\t\t<td>${invoice.dueDate?date?string.short}<\/td>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnAge>\n\t\t\t\t\t<td style=\"text-align: right; width: 30px; white-space: nowrap;\">${invoice.ageInDays?string(\"#0\")}<\/td>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnGrandTotal>\n\t\t\t\t\t<td style=\"text-align: right;\">${invoice.grandTotal}<\/td>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnPayments>\n\t\t\t\t\t<td style=\"text-align: right;\">${invoice.paymentsTotal}<\/td>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnBalance>\n\t\t\t\t\t<td style=\"text-align: right;\">${invoice.balance}<\/td>\n\t\t\t\t<\/#if>\n\t\t\t<\/tr>\n\t\t\t<tr>\n\t\t\t\t<td>[\/#list]<\/td>\n\t\t\t<\/tr>\n\t\t\t<\/tbody>\n\t\t\t<tfoot>\n\t\t\t<tr>\n\t\t\t\t<#if showClientStatementColumnNumber>\n\t\t\t\t\t<th\/>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnDate>\n\t\t\t\t\t<th\/>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnDueDate>\n\t\t\t\t\t<th\/>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnAge>\n\t\t\t\t\t<th\/>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnGrandTotal>\n\t\t\t\t\t<th\/>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnPayments>\n\t\t\t\t\t<th\/>\n\t\t\t\t<\/#if>\n\t\t\t\t<#if showClientStatementColumnBalance>\n\t\t\t\t\t<th style=\"text-align: right;\">${client.balance}<\/th>\n\t\t\t\t<\/#if>\n\t\t\t<\/tr>\n\t\t\t<\/tfoot>\n\t\t<\/table>\n\n\t\t[=clientStatementFooter]\n\t<\/div>\n\n\t<p>[\/#if]<\/p>\n<\/#macro>\n\n<#macro showLine class=\"\" td=\"td\" colspanName=false columnDateValue=\"\" columnNameValue=\"\" columnCatalogItemValue=\"\" columnTimeValue=\"\" columnQuantityValue=\"\" columnMeasureValue=\"\" columnPriceValue=\"\" columnTaxValue=\"\" columnNonTaxableValue=\"\" columnTotalValue=\"\">\n\t<tr<#if class?length != 0> class=\"[=class]\"<\/#if>>\n\t<#if colspanName && showColumnDate>\n\t\t<[=td] class=\"table-column table-column-name\" colspan=\"2\">[=columnNameValue]<\/[=td]>\n\t<#else>\n\t\t<#if showColumnDate>\n\t\t<[=td] class=\"table-column table-column-date\">[=columnDateValue]<\/[=td]>\n\t\t<\/#if>\n\t\t<[=td] class=\"table-column table-column-name\">[=columnNameValue]<\/[=td]>\n\t<\/#if>\n\t<#if showColumnCatalogItem>\n\t\t<[=td] class=\"table-column table-column-catalogItem\">[=columnCatalogItemValue]<\/[=td]>\n\t<\/#if>\n\t<#if showColumnTime>\n\t\t<[=td] class=\"table-column table-column-time\">[=columnTimeValue]<\/[=td]>\n\t<\/#if>\n\t<#if showColumnQuantity>\n\t\t<[=td] class=\"table-column table-column-quantity\">[=columnQuantityValue]<\/[=td]>\n\t<\/#if>\n\t<#if showColumnMeasure>\n\t\t<[=td] class=\"table-column table-column-measure\">[=columnMeasureValue]<\/[=td]>\n\t<\/#if>\n\t<#if showColumnPrice>\n\t\t<[=td] class=\"table-column table-column-price\">[=columnPriceValue]<\/[=td]>\n\t<\/#if>\n\t<#if showColumnTax>\n\t\t<[=td]>[#list invoice.taxes?sort_by(\"name\") as tax]<\/[=td]>\n\t\t<[=td] class=\"table-column table-column-tax\">[=columnTaxValue]<\/[=td]>\n\t\t<[=td]>[\/#list]<\/[=td]>\n\t<\/#if>\n\t<#if showColumnNonTaxable>\n\t\t<[=td]>[#if invoice.taxes?size == 0]<\/[=td]>\n\t\t\t<#if showNonTaxable>\n\t\t<[=td] class=\"table-column table-column-tax\">[=columnNonTaxableValue]<\/[=td]>\n\t\t\t<#else>\n\t\t<[=td] class=\"table-column table-column-tax\"\/>\n\t\t\t<\/#if>\n\t\t<[=td]>[\/#if]<\/[=td]>\n\t<\/#if>\n\t<#if showColumnTotal>\n\t\t<[=td] class=\"table-column table-column-total\">[=columnTotalValue]<\/[=td]>\n\t<\/#if>\n\t<\/tr>\n<\/#macro>\n\n<#macro showRegularItems items>\n\t<#if showRegularItemsHeader>\n\t\t<tr id=\"table-row-regular\">\n\t\t\t<td colspan=\"2\"><p style=\"font-weight: bold;\">[=regularItemsHeaderName]<\/p><\/td>\n\t\t<\/tr>\n\t<\/#if>\n\n\t<tr>\n\t\t<td>[#list [=items]?sort_by(\"date\") as item]<\/td>\n\t<\/tr>\n\n\t<@showLine\n\t\tclass=\"table-row-item table-row-item-regular\"\n\t\tcolumnDateValue=\"<p>${item.date?date?string.short}<\/p>\"\n\t\tcolumnNameValue=\"[=showItemDescription?then('<p>${item.name}<\/p><p style=\\\"color: #666;\\\">${item.description}<\/p>', '<p>${item.name}<\/p>')]\"\n\t\tcolumnCatalogItemValue=\"<p>${item.catalogItem!\\\"-\\\"}<\/p>\"\n\t\tcolumnQuantityValue=\"<p>${item.quantity}<\/p> <p>[#if item.quantityDiscounted]<\/p> <p class=\\\"discount\\\">${item.regularQuantity}<\/p> <p>[\/#if]<\/p>\"\n\t\tcolumnPriceValue=\"<p>${item.price}<\/p> <p>[#if item.priceDiscounted]<\/p> <p class=\\\"discount\\\">${item.regularPrice}<\/p> <p>[\/#if]<\/p>\"\n\t\tcolumnMeasureValue=\"<p>${item.unitOfMeasure}<\/p>\"\n\t\tcolumnTaxValue=\"[=showNonTaxable?then('<p>[#if !item.taxable]<\/p><p>[=nonTaxable]<\/p><p>[#else]<\/p><p>${item.calculateTaxTotal(tax)}<\/p><p>[\/#if]<\/p>', '<p>${item.calculateTaxTotal(tax)}<\/p>')]\"\n\t\tcolumnNonTaxableValue=\"<p>[=nonTaxable]<\/p>\"\n\t\tcolumnTotalValue=\"<p>${item.total}<\/p>\"\n\t\/>\n\n\t<tr>\n\t\t<td>[\/#list]<\/td>\n\t<\/tr>\n<\/#macro>\n\n<#macro showProductItems items>\n\t<#if showProductsHeader>\n\t\t<tr id=\"table-row-products\">\n\t\t\t<td colspan=\"2\"><p style=\"font-weight: bold;\">[=productsHeaderName]<\/p><\/td>\n\t\t<\/tr>\n\t<\/#if>\n\n\t<tr>\n\t\t<td>[#list [=items]?sort_by(\"date\") as item]<\/td>\n\t<\/tr>\n\n\t<@showLine\n\t\tclass=\"table-row-item table-row-item-product\"\n\t\tcolumnDateValue=\"<p>${item.date?date?string.short}<\/p>\"\n\t\tcolumnNameValue=\"[=showItemDescription?then('<p>${item.name}<\/p><p style=\\\"color: #666;\\\">${item.description}<\/p>', '<p>${item.name}<\/p>')]\"\n\t\tcolumnCatalogItemValue=\"<p>${item.catalogItem!\\\"-\\\"}<\/p>\"\n\t\tcolumnQuantityValue=\"<p>${item.quantity}<\/p> <p>[#if item.quantityDiscounted]<\/p> <p class=\\\"discount\\\">${item.regularQuantity}<\/p> <p>[\/#if]<\/p>\"\n\t\tcolumnPriceValue=\"<p>${item.price}<\/p> <p>[#if item.priceDiscounted]<\/p> <p class=\\\"discount\\\">${item.regularPrice}<\/p> <p>[\/#if]<\/p>\"\n\t\tcolumnMeasureValue=\"<p>${item.unitOfMeasure}<\/p>\"\n\t\tcolumnTaxValue=\"[=showNonTaxable?then('<p>[#if !item.taxable]<\/p><p>[=nonTaxable]<\/p><p>[#else]<\/p><p>${item.calculateTaxTotal(tax)}<\/p><p>[\/#if]<\/p>', '<p>${item.calculateTaxTotal(tax)}<\/p>')]\"\n\t\tcolumnNonTaxableValue=\"<p>[=nonTaxable]<\/p>\"\n\t\tcolumnTotalValue=\"<p>${item.total}<\/p>\"\n\t\/>\n\n\t<tr>\n\t\t<td>[\/#list]<\/td>\n\t<\/tr>\n<\/#macro>\n\n<#macro showExpenseItems items>\n\t<#if showExpensesHeader>\n\t\t<tr id=\"table-row-expenses\">\n\t\t\t<td colspan=\"2\"><p style=\"font-weight: bold;\">[=expensesHeaderName]<\/p><\/td>\n\t\t<\/tr>\n\t<\/#if>\n\n\t<tr>\n\t\t<td>[#list [=items]?sort_by(\"date\") as item]<\/td>\n\t<\/tr>\n\n\t<@showLine\n\t\tclass=\"table-row-item table-row-item-expense\"\n\t\tcolumnDateValue=\"<p>${item.date?date?string.short}<\/p>\"\n\t\tcolumnNameValue=\"[=showItemDescription?then('<p>${item.name}<\/p><p style=\\\"color: #666;\\\">${item.description}<\/p>', '<p>${item.name}<\/p>')]\"\n\t\tcolumnCatalogItemValue=\"<p>${item.catalogItem!\\\"-\\\"}<\/p>\"\n\t\tcolumnQuantityValue=\"<p>${item.quantity}<\/p>\"\n\t\tcolumnPriceValue=\"<p>${item.price}<\/p>\"\n\t\tcolumnMeasureValue=\"<p>${item.unitOfMeasure}<\/p>\"\n\t\tcolumnTaxValue=\"[=showNonTaxable?then('<p>[#if !item.taxable]<\/p><p>[=nonTaxable]<\/p><p>[#else]<\/p><p>${item.calculateTaxTotal(tax)}<\/p><p>[\/#if]<\/p>', '<p>${item.calculateTaxTotal(tax)}<\/p>')]\"\n\t\tcolumnNonTaxableValue=\"<p>[=nonTaxable]<\/p>\"\n\t\tcolumnTotalValue=\"<p>${item.total}<\/p>\"\n\t\/>\n\n\t<tr>\n\t\t<td>[\/#list]<\/td>\n\t<\/tr>\n<\/#macro>\n\n<#macro showMileageItems items>\n\t<#if showMileageHeader>\n\t\t<tr id=\"table-row-mileage\">\n\t\t\t<td colspan=\"2\"><p style=\"font-weight: bold;\">[=mileageHeaderName]<\/p><\/td>\n\t\t<\/tr>\n\t<\/#if>\n\n\t<tr>\n\t\t<td>[#list [=items]?sort_by(\"name\") as item]<\/td>\n\t<\/tr>\n\n\t<@showLine\n\t\tclass=\"table-row-item table-row-item-mileage\"\n\t\tcolumnNameValue=\"[=showItemDescription?then('<p>${item.name}<\/p><p style=\\\"color: #666;\\\">${item.description}<\/p>', '<p>${item.name}<\/p>')]\"\n\t\tcolumnCatalogItemValue=\"<p>${item.catalogItem!\\\"-\\\"}<\/p>\"\n\t\tcolumnQuantityValue=\"<p>${item.quantity}<\/p>\"\n\t\tcolumnPriceValue=\"<p>${item.price}<\/p>\"\n\t\tcolumnMeasureValue=\"<p>${item.unitOfMeasure}<\/p>\"\n\t\tcolumnTaxValue=\"[=showNonTaxable?then('<p>[#if !item.taxable]<\/p><p>[=nonTaxable]<\/p><p>[#else]<\/p><p>${item.calculateTaxTotal(tax)}<\/p><p>[\/#if]<\/p>', '<p>${item.calculateTaxTotal(tax)}<\/p>')]\"\n\t\tcolumnNonTaxableValue=\"<p>[=nonTaxable]<\/p>\"\n\t\tcolumnTotalValue=\"<p>${item.total}<\/p>\"\n\t\/>\n\n\t<#if showMileageTrips && showColumnQuantity>\n\t\t<tr>\n\t\t\t<td>[#list item.trips?sort_by(\"startTime\") as trip]<\/td>\n\t\t<\/tr>\n\n\t\t<@showLine class=\"table-row-mileage\" columnNameValue=\"<p>${trip.description}<\/p>\" columnQuantityValue=\"<p>${trip.startTime?string(\\\"MMM dd\\\")} - ${trip.distance}<\/p>\" \/>\n\n\t\t<tr>\n\t\t\t<td>[\/#list]<\/td>\n\t\t<\/tr>\n\t<\/#if>\n\n\t<tr>\n\t\t<td>[\/#list]<\/td>\n\t<\/tr>\n<\/#macro>\n\n<#macro showServiceItems items>\n\t<#if showServicesHeader>\n\t\t<tr id=\"table-row-services\">\n\t\t\t<td colspan=\"2\"><p style=\"font-weight: bold;\">[=servicesHeaderName]<\/p><\/td>\n\t\t<\/tr>\n\t<\/#if>\n\n\t<tr>\n\t\t<td>[#list [=items]?sort_by(\"date\") as item]<\/td>\n\t<\/tr>\n\n\t<@showLine\n\t\tclass=\"table-row-item table-row-item-service\"\n\t\tcolumnDateValue=\"<p>${item.date?date?string.short}<\/p>\"\n\t\tcolumnNameValue=\"[=showItemDescription?then('<p>${item.name}<\/p><p style=\\\"color: #666;\\\">${item.description}<\/p>', '<p>${item.name}<\/p>')]\"\n\t\tcolumnCatalogItemValue=\"<p>${item.catalogItem!\\\"-\\\"}<\/p>\"\n\t\tcolumnTimeValue=\"<p>[=useDecimalTimeFormat?then('${item.billableTimeAsDecimal}', '${item.billableTimeAsHour}')]<\/p>\"\n\t\tcolumnQuantityValue=\"<p>${item.quantity}<\/p> <p>[#if item.quantityDiscounted]<\/p> <p class=\\\"discount\\\">${item.regularQuantity}<\/p> <p>[\/#if]<\/p>\"\n\t\tcolumnPriceValue=\"<p>${item.price}<\/p> <p>[#if item.priceDiscounted]<\/p> <p class=\\\"discount\\\">${item.regularPrice}<\/p> <p>[\/#if]<\/p>\"\n\t\tcolumnMeasureValue=\"<p>${item.unitOfMeasure}<\/p>\"\n\t\tcolumnTaxValue=\"[=showNonTaxable?then('<p>[#if !item.taxable]<\/p><p>[=nonTaxable]<\/p><p>[#else]<\/p><p>${item.calculateTaxTotal(tax)}<\/p><p>[\/#if]<\/p>', '<p>${item.calculateTaxTotal(tax)}<\/p>')]\"\n\t\tcolumnNonTaxableValue=\"<p>[=nonTaxable]<\/p>\"\n\t\tcolumnTotalValue=\"<p>${item.total}<\/p>\"\n\t\/>\n\n\t<#if showServiceTime && showColumnTime>\n\t\t<#if groupServiceTimeByDate>\n\t\t\t<tr>\n\t\t\t\t<td>[#list invoice.groupDatesByDate(item.timeEntries)?sort as date][#assign dateTimeEntries = invoice.filterByDate(item.timeEntries, date)]<\/td>\n\t\t\t<\/tr>\n\n\t\t\t<@showLine class=\"table-row-time\" columnNameValue=\"<p>[#list dateTimeEntries?sort as timeEntry]${timeEntry.description} [\/#list]<\/p>\" columnTimeValue=\"[=useDecimalTimeFormat?then('<p>${date?date.iso?string(\\\"MMM dd\\\")} - ${invoice.calculateBillableTimeAsDecimal(dateTimeEntries)}<\/p>', '<p>${date?date.iso?string(\\\"MMM dd\\\")} - ${invoice.calculateBillableTimeAsHour(dateTimeEntries)}<\/p>')]\" \/>\n\n\t\t\t<tr>\n\t\t\t\t<td>[\/#list]<\/td>\n\t\t\t<\/tr>\n\t\t<#else>\n\t\t\t<tr>\n\t\t\t\t<td>[#list item.timeEntries?sort_by(\"date\") as timeEntry]<\/td>\n\t\t\t<\/tr>\n\n\t\t\t<@showLine class=\"table-row-time\" columnNameValue=\"<p>${timeEntry.description}<\/p>\" columnTimeValue=\"<p>[=useDecimalTimeFormat?then('${timeEntry.date?string(\\\"MMM dd\\\")} - ${timeEntry.billableTimeAsDecimal}', '${timeEntry.date?string(\\\"MMM dd\\\")} - ${timeEntry.billableTimeAsHour}')]<\/p>\" \/>\n\n\t\t\t<tr>\n\t\t\t\t<td>[\/#list]<\/td>\n\t\t\t<\/tr>\n\t\t<\/#if>\n\t<\/#if>\n\n\t<tr>\n\t\t<td>[\/#list]<\/td>\n\t<\/tr>\n<\/#macro>\n\n<#macro showInvoiceItemsByProject>\n\t<tr>\n\t\t<td>[#list invoice.projects?sort_by(\"name\") as project]<\/td>\n\t<\/tr>\n\n\t<tr class=\"table-row-project\">\n\t\t<td colspan=\"2\"><p style=\"font-weight: bold;\">${project.name}<\/p><\/td>\n\t<\/tr>\n\n\t<tr>\n\t\t<td>[#if project.serviceItems?size != 0]<\/td>\n\t<\/tr>\n\n\t<@showServiceItems items=\"project.serviceItems\"\/>\n\n\t<#if showSubtotalServices>\n\t\t<@showLine class=\"table-total\" columnTotalValue=\"<p>${project.serviceItemsSubtotal}<\/p>\" \/>\n\t<\/#if>\n\n\t<tr>\n\t\t<td>[\/#if]<\/td>\n\t<\/tr>\n\n\t<tr>\n\t\t<td>[#if project.productItems?size != 0]<\/td>\n\t<\/tr>\n\n\t<@showProductItems items=\"project.productItems\"\/>\n\n\t<#if showSubtotalProducts>\n\t\t<@showLine class=\"table-total\" columnTotalValue=\"<p>${project.productItemsSubtotal}<\/p>\" \/>\n\t<\/#if>\n\n\t<tr>\n\t\t<td>[\/#if]<\/td>\n\t<\/tr>\n\n\t<tr>\n\t\t<td>[#if project.expenseItems?size != 0]<\/td>\n\t<\/tr>\n\n\t<@showExpenseItems items=\"project.expenseItems\"\/>\n\n\t<#if showSubtotalExpenses>\n\t\t<@showLine class=\"table-total\" columnTotalValue=\"<p>${project.expenseItemsSubtotal}<\/p>\" \/>\n\t<\/#if>\n\n\t<tr>\n\t\t<td>[\/#if]<\/td>\n\t<\/tr>\n\n\t<tr>\n\t\t<td>[#if project.mileageItems?size != 0]<\/td>\n\t<\/tr>\n\n\t<@showMileageItems items=\"project.mileageItems\"\/>\n\n\t<#if showSubtotalMileage>\n\t\t<@showLine class=\"table-total\" columnTotalValue=\"<p>${project.mileageItemsSubtotal}<\/p>\"\n\t\t\/>\n\t<\/#if>\n\n\t<tr>\n\t\t<td>[\/#if]<\/td>\n\t<\/tr>\n\n\t<#if showSubtotalProject>\n\t\t<tr>\n\t\t\t<td>[#if invoice.projects?size != 1]<\/td>\n\t\t<\/tr>\n\n\t\t<@showLine class=\"table-total\" columnTimeValue=\"[=useDecimalTimeFormat?then('<p>[#if invoice.timeEntries?size != 0]${project.billableTimeAsDecimal}[\/#if]<\/p>', '<p>[#if invoice.timeEntries?size != 0]${project.billableTimeAsHour}[\/#if]<\/p>')]\" columnTotalValue=\"<p>${project.total}<\/p>\" \/>\n\n\t\t<tr>\n\t\t\t<td>[\/#if]<\/td>\n\t\t<\/tr>\n\t<\/#if>\n\n\t<tr>\n\t\t<td>[\/#list]<\/td>\n\t<\/tr>\n\n\t<tr>\n\t\t<td>[#if invoice.regularItems?size != 0]<\/td>\n\t<\/tr>\n\n\t<@showRegularItems items=\"invoice.regularItems\"\/>\n\n\t<#if showSubtotalRegular>\n\t<@showLine class=\"table-total\" columnTotalValue=\"<p>${invoice.regularItemsSubtotal}<\/p>\"\n\t\/>\n\t<\/#if>\n\n\t<tr>\n\t\t<td>[\/#if]<\/td>\n\t<\/tr>\n<\/#macro>\n","showSubtotalPayment":false,"showQRbill":false,"characterEncoding":"Cp1252","columnTime":"Time","businessLogoName":"logo.png","subtotalTaxesName":"Taxes","columnCatalogItem":"Catalog Item","regularItemsHeaderName":"Regular","attachment":"none^^^^^^Unspecified^^","showClientBalance":false,"pageHeaderHeight":"2","columnMeasure":"Unit","groupServiceTimeByDate":false,"untaggedPDF":true,"tableHeaderBackgroundColor":"#666666","pageHeader":"<p><b>${business.name}<\/b><\/p>\n<p>${business.address}<\/p>\n<p>${business.city}, ${business.state} ${business.zip}<\/p>\n[#if business.phone?trim?has_content]<p>${business.phone}<\/p>[\/#if]\n[#if business.fax?trim?has_content]<p>${business.fax}<\/p>[\/#if]\n[#if business.mobile?trim?has_content]<p>${business.mobile}<\/p>[\/#if]\n[#if business.email?trim?has_content]<p>${business.email}<\/p>[\/#if]\n[#if business.website?trim?has_content]<p>${business.website}<\/p>[\/#if]\n[#if business.businessNumber?trim?has_content]<p>${business.businessNumber}<\/p>[\/#if]\n[#if business.otherNumber?trim?has_content]<p>${business.otherNumber}<\/p>[\/#if]\n[#if business.taxNumber?trim?has_content]<p>${business.taxNumber}<\/p>[\/#if]","showClientStatement":false,"pageCSS":"","subtotalPaymentsName":"Payments","invoiceHeader":"<div id=\"page-content-header-left\">\n\t<p><b>${client.name}<\/b><\/p>\n\t<p>${client.attention}<\/p>\n\t<p>${client.address}<\/p>\n\t<p>${client.city}, ${client.state} ${client.zip}<\/p>\n\t[#if client.phone?trim?has_content]<p>${client.phone}<\/p>[\/#if]\n\t[#if client.fax?trim?has_content]<p>${client.fax}<\/p>[\/#if]\n\t[#if client.mobile?trim?has_content]<p>${client.mobile}<\/p>[\/#if]\n\t[#if client.email?trim?has_content]<p>${client.email}<\/p>[\/#if]\n\t[#if client.website?trim?has_content]<p>${client.website}<\/p>[\/#if]\n\t[#if client.businessNumber?trim?has_content]<p>${client.businessNumber}<\/p>[\/#if]\n\t[#if client.otherNumber?trim?has_content]<p>${client.otherNumber}<\/p>[\/#if]\n\t[#if client.taxNumber?trim?has_content]<p>${client.taxNumber}<\/p>[\/#if]\n<\/div>\n\n<div id=\"page-content-header-right\">\n\t<p><b>Invoice #:<\/b> ${invoice.number}<\/p>\n\t<p><b>Date:<\/b> ${invoice.date?date}<\/p>\n\t<p><b>Due Date:<\/b> ${invoice.dueDate?date}<\/p>\n\t[#if invoice.reference?trim?has_content]<p><b>PO #:<\/b> ${invoice.reference}<\/p>[\/#if]\n<\/div>","showExpensesHeader":true,"showSubtotalPayments":false,"showMileageTrips":false,"showSubtotalRegular":true,"columnPrice":"Price","columnQuantity":"Quantity","showSubtotalServices":true,"enableAttachment":false,"showSubtotalProducts":true} //END-SETTINGS [/#comment] --> <head> <title>Invoice ${invoice.number}

Invoice

${client.name}

${client.attention}

${client.address}

${client.city}, ${client.state} ${client.zip}

[#if client.phone?trim?has_content]

${client.phone}

[/#if] [#if client.fax?trim?has_content]

${client.fax}

[/#if] [#if client.mobile?trim?has_content]

${client.mobile}

[/#if] [#if client.email?trim?has_content]

${client.email}

[/#if] [#if client.website?trim?has_content]

${client.website}

[/#if] [#if client.businessNumber?trim?has_content]

${client.businessNumber}

[/#if] [#if client.otherNumber?trim?has_content]

${client.otherNumber}

[/#if] [#if client.taxNumber?trim?has_content]

${client.taxNumber}

[/#if]

Invoice #: ${invoice.number}

Date: ${invoice.date?date}

Due Date: ${invoice.dueDate?date}

[#if invoice.reference?trim?has_content]

PO #: ${invoice.reference}

[/#if]

Description

Quantity

Unit

Price

Total

[#list invoice.projects?sort_by("name") as project]

${project.name}

[#if project.serviceItems?size != 0]

Services

[#list project.serviceItems?sort_by("date") as item]

${item.name}

${item.description}

${item.quantity}

[#if item.quantityDiscounted]

${item.regularQuantity}

[/#if]

${item.unitOfMeasure}

${item.price}

[#if item.priceDiscounted]

${item.regularPrice}

[/#if]

${item.total}

[/#list]

${project.serviceItemsSubtotal}

[/#if]
[#if project.productItems?size != 0]

Products

[#list project.productItems?sort_by("date") as item]

${item.name}

${item.description}

${item.quantity}

[#if item.quantityDiscounted]

${item.regularQuantity}

[/#if]

${item.unitOfMeasure}

${item.price}

[#if item.priceDiscounted]

${item.regularPrice}

[/#if]

${item.total}

[/#list]

${project.productItemsSubtotal}

[/#if]
[#if project.expenseItems?size != 0]

Expenses

[#list project.expenseItems?sort_by("date") as item]

${item.name}

${item.description}

${item.quantity}

${item.unitOfMeasure}

${item.price}

${item.total}

[/#list]

${project.expenseItemsSubtotal}

[/#if]
[#if project.mileageItems?size != 0]

Mileage

[#list project.mileageItems?sort_by("name") as item]

${item.name}

${item.description}

${item.quantity}

${item.unitOfMeasure}

${item.price}

${item.total}

[/#list]

${project.mileageItemsSubtotal}

[/#if]
[/#list]
[#if invoice.regularItems?size != 0]

Regular

[#list invoice.regularItems?sort_by("date") as item]

${item.name}

${item.description}

${item.quantity}

[#if item.quantityDiscounted]

${item.regularQuantity}

[/#if]

${item.unitOfMeasure}

${item.price}

[#if item.priceDiscounted]

${item.regularPrice}

[/#if]

${item.total}

[/#list]

${invoice.regularItemsSubtotal}

[/#if]

Total

${invoice.total}

[#if invoice.totalDiscounted]

${invoice.regularTotal}

[/#if]

[#if invoice.taxable]

Taxes

${invoice.taxesTotal}

Grand Total

${invoice.grandTotal}

[/#if]