I have the following datatable in the view, which lists certain data:
<table id="table_listadoLineasComprobante" class="table table-striped table-bordered tableSection_2" style="margin-bottom: 0 !important;">
<thead>
<tr style="background-color: #ff6a00; color: #fff">
<th>Fecha</th>
<th>Tipo</th>
<th>numero</th>
<th>Rut</th>
<th>N° Doc.</th>
<th>Centro</th>
<th>Glosa</th>
<th>Debe</th>
<th>Haber</th>
</tr>
</thead>
<tbody>
<%
foreach (var item in Model.listadoLinea)
{ %>
<tr>
<td>
<%:item.fecha %>
</td>
<td>
<%:item.tipo %>
</td>
<td>
<%:item.numero %>
</td>
<td>
<%:item.rut %>
</td>
<td>
<%:item.nrodoc %>
</td>
<td>
<%:item.centro %>
</td>
<td>
<%:item.glosa %>
</td>
<td>
<%:item.debe %>
</td>
<td>
<%:item.haber %>
</td>
</tr>
<% } %>
</tbody>
</table>
I would like to know, that when the value of the current date , is different from the next date, show the amount of credit and debit by date. For example:
I would like to get the totals of the debit and credit, as the image looks.