Template di stampa preventivo

Qui ti riportiamo il codice HTML del template di stampa di default


<div>
<div>{% pageheader 120 %}<div>{% header %}</div><table border="0" cellpadding="3" class="content"><tr class="header"><td class="friendly-name" style="width:100%"><h2>{{ quote }}</h2></td></tr></table>{% style %}{% endpageheader %}</div>
<table border="0" cellpadding="3" cellspacing="0" class="content">
<tr class="section">
<td class="column" width="50%">
<table cellpadding="3" cellspacing="0" class="slots" style="border:0">
<tr class="slot">
<td class="label">
<!--Richiesto da-->{% resource 'Tictxt38' %}</td>
<td class="value">{{ quote.crossId }}</td>
</tr>
<tr class="slot">
<td class="label">
<!--Indirizzo fatturazione-->{% resource 'Quotxt14' %}</td>
<td class="value">{{ quote.address | empty_cell | newline_to_br }}</td>
</tr>
<tr class="slot">
<td class="label">
<!--Indirizzo spedizione-->{% resource 'Quotxt31' %}</td>
<td class="value">{{ quote.shipAddress | empty_cell | newline_to_br }}</td>
</tr>
</table>
</td>
<td class="column" width="50%">
<table cellpadding="3" cellspacing="0" class="slots" style="border:0">
<tr class="slot">
<td class="label">
<!--Oggetto preventivo-->{% resource 'Quotxt10' %}</td>
<td class="value">{{ quote.subject | empty_cell | newline_to_br }}</td>
</tr>
<tr class="slot">
<td class="label">
<!--Numero preventivo-->{% resource 'Quotxt11' %}</td>
<td class="value">{{ quote.number | empty_cell | newline_to_br }}</td>
</tr>
<tr class="slot">
<td class="label">
<!--Termine di pagamento-->{% resource 'BoTxt023' %}</td>
<td class="value">{{ quote.paymentId }}</td>
</tr>
<tr class="slot">
<td class="label">
<!--Modalità di pagamento-->{% resource 'BoTxt187' %}</td>
<td class="value">{{ quote.paymentMode }}</td>
</tr>
<tr class="slot">
<td class="label">
<!--Data-->{% resource 'Quotxt35' %}</td>
<td class="value">{{ quote.quoteDate | format_date, 'd' }}</td>
</tr>
<tr class="slot">
<td class="label">
<!--Commerciale-->{% resource 'Quotxt102' %}</td>
<td class="value">{{ quote.salesPersonAccount }}</td>
</tr>
<tr class="slot">
<td class="label">
<!--Data validità-->{% resource 'Quotxt4' %}</td>
<td class="value">{{ quote.expirationDate | format_date, 'd' }}</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellpadding="3" cellspacing="0" class="content">
<tr class="section">
<td class="column" width="100%">
<table cellpadding="3" cellspacing="0" class="slots" style="border:0">
<table class="erp-row">
<tbody>
<tr>
<th style="text-align:left;width:auto">
<!--Prodotto-->{% resource 'CRMcontxt65' %}</th>
<th style="text-align:center;width:40px">
<!--UM-->{% resource 'CRMcontxt66' %}</th>
<th style="text-align:right;width:60px">
<!--Qtà-->{% resource 'CRMcontxt67' %}</th>
<th style="text-align:right;width:80px">
<!--Prezzo di listino-->{% resource 'CRMcontxt70' %}</th>
<th style="text-align:center;width:80px">
<!--Sconto-->{% resource 'Esttxt39' %}</th>
<th style="text-align:right;width:80px">
<!--Prezzo unit.-->{% resource 'CRMcontxt68' %}</th>
<th style="text-align:center;width:60px">
<!--IVA-->{% resource 'ErpTxt013' %}</th>
<th style="text-align:right;width:80px">
<!--Totale-->{% resource 'ErpTxt015' %}</th>
</tr>
<!--{% for row in quote.rows %}-->
<tr class="row">
<td style="text-align:left">{{ row.productCode | empty_cell | newline_to_br }} - {{ row.description | empty_cell | newline_to_br }}</td>
<td style="text-align:center">{{ row.unitMeasureId }}</td>
<td style="text-align:right">{{ row.qta | format_decimal, 2 }}</td>
<td style="text-align:right">{{ row.listPrice | format_as_money, 'it', 'EUR' }}</td>
<td style="text-align:center">{{ row.discountFormula | empty_cell | newline_to_br | format_discount_formula, 'it', 'EUR' }}</td>
<td style="text-align:right">{{ row.unitPrice | format_as_money, 'it', 'EUR' }}</td>
<td style="text-align:center">{{ row.taxCode | empty_cell | newline_to_br }}</td>
<td style="text-align:right">{{ row.totalPrice | format_as_money, 'it', 'EUR' }}</td>
</tr>
<!--{% endfor %}-->
</tbody>
</table>
<table class="totals">
<tbody>
<!--{% if quote.footerDiscount != 0 %}-->
<tr class="footerDiscount">
<td class="label">
<!--Sconto incondizionato-->{% resource 'CRMcontxt176' %}</td>
<td class="value">{{ quote.footerDiscount | format_as_money, 'it', 'EUR' }}</td>
</tr>
<!--{% endif %}-->
<tr class="subTotal">
<td class="label">
<!--Imponibile-->{% resource 'Quotxt20' %}</td>
<td class="value">{{ quote.subTotal | format_as_money, 'it', 'EUR' }}</td>
</tr>
<tr class="taxTotal">
<td class="label">
<!--IVA totale-->{% resource 'Quotxt21' %}</td>
<td class="value">{{ quote.taxTotal | format_as_money, 'it', 'EUR' }}</td>
</tr>
<tr class="grandTotal">
<td class="label">
<!--Totale-->{% resource 'Quotxt23' %}</td>
<td class="value">{{ quote.grandTotal | format_as_money, 'it', 'EUR' }}</td>
</tr>
</tbody>
</table>
</table>
</td>
</tr>
</table>
<table border="0" cellpadding="3" cellspacing="0" class="content">
<tr class="section">
<td class="column" width="100%">
<table cellpadding="3" cellspacing="0" class="slots" style="border:0"></table>
</td>
</tr>
</table>
<div>{% pagefooter 80 %}<div>{% footer %}</div>{% style %}{% endpagefooter %}</div>{% style %}<style type="text/css">.erp-row { width: 100%; border-collapse: collapse }
.erp-row th { color: #146391; font-size: 12px; padding: 2px; }
.erp-row tr.row td { font-size: 12px; border-bottom: 1px solid; padding: 4px; }
.totals { width: 100%; }
.totals {
width: 100%;
margin-top: 10px;
}
.totals td {
padding: 4px;
font-size: 16px;
}
.totals td.label { text-align: right; color: #146391; width: 100%; }
.totals td.value {
text-align: right;
color: #146391;
white-space: nowrap;
}
.totals tr.grandTotal td {
font-size: 18px;
padding-top: 8px;
padding-bottom: 8px;
}
.totals tr.grandTotal td.value {
border-bottom: 2px solid;
}</style></div>

Aggiornato il: 22/08/2022

È stato utile questo articolo?

Condividi il tuo feedback

Annulla

Grazie!