First we create an object with the types you need:
const tipo = { tipo1: 'PAGADO', tipo2: 'ANULADO', tipo3: 'DEBE' };
Here is an example to assign a class to all the rows of your table that contain the word "PAID" which in our case is type1 of our object.
$("#tablon-ed-edd-yeddy").find('tr:contains("' + tipo.tipo1 + '")')
.attr('class', tipo.tipo1);
Then we simply search and add the rows that contain the class that we assigned previously.
var sumPagado = 0;
$('.PAGADO').each(function(){
sumPagado += parseFloat($(this).closest("tr").find(':eq(1)').text().replace(',', '.'));
});
Then you can insert that value where you want:).
$('#sumPagado').text(sumPagado.toFixed(2));
This way you can do with the other types.
I leave the example working:
const tipo = { tipo1: 'PAGADO', tipo2: 'ANULADO', tipo3: 'DEBE' };
$("#tablon-ed-edd-yeddy").find('tr:contains("' + tipo.tipo1 + '")')
.attr('class', tipo.tipo1);
var sumPagado = 0;
$('.PAGADO').each(function(){
sumPagado += parseFloat($(this).closest("tr").find(':eq(1)').text().replace(',', '.'));
});
$('#sumPagado').text(sumPagado.toFixed(2));
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<table id="tablon-ed-edd-yeddy">
<thead>
<th>Estado</th>
<th>Total</th>
</thead>
<tbody>
<tr>
<td>PAGADO</td>
<td>150</td>
</tr>
<tr>
<td>PAGADO</td>
<td>250</td>
</tr>
<tr>
<td>ANULADO</td>
<td>100</td>
</tr>
<tr>
<td>DEBE</td>
<td>300</td>
</tr>
<tr>
<td>ANULADO</td>
<td>400</td>
</tr>
</tbody>
</table>
<h1>Total Pagado: <span id="sumPagado"></span></h1>