function jssetUltimoCheque($banco, $tipo_de_pago)
{
    $cheque = 0;
    if ($tipo_de_pago == "cheque" or $tipo_de_pago == "descuento") {
        $cheque = getUltimoCheque($banco);
    }
    return $cheque;
}
function jssetUltimoCheque($banco, $tipo_de_pago)
{
    $cheque = 0;
    if ($tipo_de_pago == TESORERIA_PAGO_CHEQUE or $tipo_de_pago == TESORERIA_PAGO_DOCTO) {
        $cheque = getUltimoCheque($banco);
    }
    return $cheque;
}