function jsaCambiarFechaMinistracion($credito, $fechaNueva) { $xF = new cFecha(0); $fechaNueva = $xF->getFechaISO($fechaNueva); $xCred = new cCredito($credito); $xCred->init(); $msg = $xCred->setCambiarFechaMinistracion($fechaNueva); $msg .= "<br>CAMBIE EL PLAN DE PAGOS"; return $msg; }
function jsaSetCambiarFechaMinistracion($credito, $dia, $mes, $anno) { $fecha = "{$anno}-{$mes}-{$dia}"; $xCred = new cCredito($credito); $xCred->init(); $xCred->setCambiarFechaMinistracion($fecha); return "Credito {$credito} modificado al **{$dia}-{$mes}-{$anno}**"; //$xCred->getMessages(); }