Currently I take all the values of the second column sums and I remove the "$" and ".", only works when they are 6-digit numbers by placing 7-digit numbers in the table the sum is wrong, What can be done? in my opinion I am doing wrong replace thank you.
var Total = 0;
$('#table_vehiculos tbody > tr').each(function() {
let precio = $(this).find('td:eq(1)').text().replace(/\$/, '').replace(/\./, '');
Total += Number(precio);
});
alert(Total);
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<table id="table_vehiculos">
<thead>
<tr>
<th>Modelo</th>
<th>Precio</th>
</tr>
</thead>
<tbody>
<tr>
<td>chevrolet</td>
<td>$2.000.000</td>
</tr>
<tr>
<td>suzuki</td>
<td>$6.000.000</td>
</tr>
</tbody>
</table>