[code]
function ver_pgto_parcela($par) {
$a = array();
sc_lookup(ss,'SELECT valor,emissao FROM contas_movimento WHERE pgto_boletos='.$par.' ORDER BY emissao DESC');
IF( !empty({ss}) ) {
$a = ['emissao' => {ss}[0][1],
'valor' => {ss}[0][0]
];
}
echo '<pre>';
print_r($a);
return $a;
}
[/code]