if (date("Y-m-d", strtotime($fecha_primer_abono)) <= date("Y-m-d", strtotime($fecha_ministracion))) {
     $msgAlertas .= "ERROR\tLA FECHA DEL PRIMER ABONO({$fecha_primer_abono}) NO PUEDE SER LA MISMA O MENOR QUE LA FECHA DE MINISTRACION({$fecha_ministracion})\r\n";
     $sucess = false;
 }
 //----------------------------------  ELIMINAR EL PLAN DE PAGOS ANTERIOR
 $xPlan = new cPlanDePagos();
 if ($xCred->getNumeroDePlanDePagos() != false) {
     $xPlan->init($xCred->getNumeroDePlanDePagos());
     $xPlan->setEliminar();
 }
 if (MODO_CORRECION == true) {
     //my_query("DELETE FROM operaciones_mvtos WHERE socio_afectado=$socio AND docto_afectado=$solicitud AND (tipo_operacion=410 OR tipo_operacion=412 OR tipo_operacion=413)");
 }
 if ($sucess == true) {
     $FInteres_normal = new cFormula("interes_normal");
     $factor_interes = $xPlan->getFactorIVA($iva_incluido);
     $DatosDePagos = array();
     if ($xCred->initPagosEfectuados() == true) {
         $DatosDePagos = $xCred->getListadoDePagos();
     }
     //=========================== Corrige el Monto extra de bonificaciones ================================================================
     $bonificaciones = 0;
     $xB = new cBases(7022);
     //base son bonificaciones
     $xB->init();
     if ($xB->getIsMember($tipo_monto_extra) == true) {
         $msg .= "{$socio}\t{$solicitud}\tLa operacion {$tipo_monto_extra} es de Bonificaciones\r\n";
         $bonificaciones = round($monto_extra / $PAGOS_AUTORIZADOS, 2);
         $monto_extra = 0;
     }
     //=====================================================================================================================================