Backend en NODE.js para generar tablas en HTML y posteriormente con ese DOM crear PDFs, con geaders, contenido de las tablas y headers de tablas en cada pagina, footer de paginacion.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
EJSTempletes/views/partials/Amazon/InvoiceFooter.ejs

43 lines
1.3 KiB

2 years ago
<!-- <tfoot>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td class="bolder"=>TOTAL QTY</td>
<td class="bolder" style="font-size:17px;"><%= InvoiceDetail.length %></td>
<th colspan="2" style="text-align: right;">TOTAL USD $</th>
<td class="bolder" style="font-size:17px;"><%= InvoiceHeader.TotalInvoiceValueMonetaryAmount %></td>
</tr>
</tfoot> -->
</table>
<table width="100%">
<tr>
<td width="20%">&nbsp;</td>
<td width="30%">
2 years ago
<table width="100%" style="text-align:right">
<tr class="bolder">
<td>Total Net Weight Kg:</td>
<td style="font-size:18px">
<% var TotalWeight=0; InvoiceDetail.forEach((item)=> { TotalWeight=TotalWeight+(item.Quantity * item.WeightValue) }); %>
<%= TotalWeight.toFixed(4) %>
</td>
</tr>
</table>
</td>
<td width="10%">&nbsp;</td>
<td width="30%">
<table width="100%" style="text-align:right">
<tr class="bolder">
<td style="text-align:right">TOTAL USD$:</td>
<td style="font-size:18px" style="text-align:left">
<% var Total=0; InvoiceDetail.forEach((item)=> { Total=Total+(item.Quantity * item.ActualUnitCostMonetaryAmount) }); %>
<%= Total.toFixed(4) %>
</td>
2 years ago
</tr>
</table>
</td>
</tr>
</table>
</html>