I have a screen that lists me some skills, they come from the bank in the following format.
ThelasttwoarethepaymentsthatareOKandsoonafteritstartstherest,where0219isFebruary2019,>0319March2019andsoon.ButinmylistingIneedittodisplaythenextcompetencythatwouldbe0219andnotthelastonethatis01/20(January2020).
Thecodethatmountsthesefieldsisthis.
$.each(json.ext,function(k,v){inpsel=(parseFloat(v.valor_pago)==0.0)?'<td><inputtype="checkbox" value="'+ v.seq_movimento_cobranca +'" name="seq_movimento_cobranca[]" onclick="verificaBaixaManual()" data-vlr="'+ v.valor_devido +'"/>' +'</td>'
: '<td> </td>';
v.data_pagamento = (v.data_pagamento == null) ? '-' : v.data_pagamento;
tbl += '<tr style="text-align:right" class="'+ v.tr_color +' tr-'+ v.seq_movimento_cobranca +'">'
+ inpsel
+ '<td>'+ v.data_vencimento +'</td>'
+ '<td>'+ v.competencia +'</td>'
+ '<td>'+ v.valor_devido.replace('.', ',') +'</td>'
+ '<td>'+ v.taxa +'</td>'
+ '<td>'+ v.data_pagamento +'</td>'
+ '<td style="">'+ v.valor_pago.replace('.', ',') +'</td>'
+ '</tr>';
});