$arrUp = array("saldo_actual" => $sdo); $cFC->setUpdate($arrUp); } if ($cFC->getEstadoActual() != CREDITO_ESTADO_AUTORIZADO and $cFC->getEstadoActual() != CREDITO_ESTADO_SOLICITADO) { if ($output != OUT_EXCEL) { //echo "<style> body { background-image: url(\"../images/error_saldos.png\"); background-repeat: repeat; } </style>"; } } } $tSdos += $sdo; @mysql_free_result($rs); //Imprime la Tabla de Mvtos if ($PieInts != SYS_NINGUNO) { $IntAct = $cFC->getInteresDevengado(); $IntDevNorm = $cFC->getInteresNormalDevengado(); $IntDevMor = $cFC->getInteresMoratorioDev(); $IntPerNom = $IntAct[SYS_INTERES_NORMAL]; $IntPerMor = $IntAct[SYS_INTERES_MORATORIO]; $ints = $IntDevMor + $IntDevNorm + $IntPerMor + $IntPerNom; $trs .= "<tr><td /><td /><td /><td class='ajustar'>INTS. NORMALES DEVENGADOS</td><td /><td class='mny'>" . getFMoney($IntDevNorm) . "</td><td /><td /><td class='mny' /><td class='ajustar' /></tr>"; $trs .= "<tr><td /><td /><td /><td class='ajustar'>INT. NORMAL DEL PERIODO</td><td /><td class='mny'>" . getFMoney($IntPerNom) . "</td><td /><td /><td class='mny' /><td class='ajustar' /></tr>"; $trs .= "<tr><td /><td /><td /><td class='ajustar'>INTS. MORATORIO DEVENGADOS</td><td /><td class='mny'>" . getFMoney($IntDevMor) . "</td><td /><td /><td class='mny' /><td class='ajustar' /></tr>"; $trs .= "<tr><td /><td /><td /><td class='ajustar'>INT. MORATORIO DEL PERIODO</td><td /><td class='mny'>" . getFMoney($IntPerMor) . "</td><td /><td /><td class='mny' /><td class='ajustar' /></tr>"; } echo "<table class='info'>\n\t\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th width='4%'>Fecha</th><th width='4%'>CI</th><th width='3%'>Parc.</th><th width='25%'>Operacion</th>\n\t\t\t\t\t<th width='9%'>Capital</th><th width='9%'>Intereses</th><th width='9%'>IVA</th><th width='9%'>Otros</th>\n\t\t\t\t\t<th width='9%'>Saldo De Capital</th><th width='19%'>Observaciones</th>\n\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t{$trs}\n\t\t\t\t</tbody>\n\t\t\t\t\n\t\t\t\t<tfoot>\n\t\t\t\t<tr>\n\t\t\t\t\t<td> </td>\n\t\t\t\t\t<td> </td>\n\t\t\t\t\t<td> </td>\n\t\t\t\t\t<th>SUMA DE PAGOS</th>\n\t\t\t\t\t<th class='sumas'>" . getFMoney($cap) . "</th>\n\t\t\t\t\t<th class='sumas'>" . getFMoney($ints) . "</th>\n\t\t\t\t\t<th class='sumas'>" . getFMoney($iva) . "</th>\n\t\t\t\t\t<th class='sumas'>" . getFMoney($otros) . "</th>\n\t\t\t\t\t<td> </td>\n\t\t\t\t\t<td> </td>\n\t\t\t\t</tr>\n\t\t\t\t</tfoot>\n\t\t</table>"; $trs = ""; $tCap += $cap; $tOtros += $otros; $tInts += $ints; if ($porSocio == true) { echo "<br /><hr class='divisor'/><br />";
$fecha_ult_mvto = $xCred->getFechaUltimoDePago(); $fecha_vencimiento = $xCred->getFechaDeVencimiento(); // $dcredito["fecha_vencimiento"]; $numero_de_pagos = $xCred->getPagosAutorizados(); $estatus_del_credito = $xCred->getEstadoActual(); $saldo_actual = $xCred->getSaldoActual(); $saldo_del_credito = $saldo_actual; $interes_anticipado = $dcredito["sdo_int_ant"]; $grupo = $xCred->getClaveDeGrupo(); $OProducto = $xCred->getOProductoDeCredito(); //$OEstado = $xCred->getOEstado(); $tasa_iva = $generarIVA == false ? 0 : $xCred->getTasaIVA(); $interes_normal_devengado = $xCred->getInteresNormalDevengado(); $interes_normal_pagado = $xCred->getInteresNormalPagado(); $interes_moratorio_pagado = $xCred->getInteresMoratorioPagado(); $interes_moratorio_devengado = $xCred->getInteresMoratorioDev(); $periocidad = $xCred->getPeriocidadDePago(); $ByLetra = ""; $solo_mora_corriente = $pago_total == true ? true : false; //Corrige calculo de Interes.- Si es primer pago $DInteres = $xCred->getInteresDevengado($fecha_operacion, $parcialidad, false, $solo_mora_corriente); $interes_normal_calculado = $DInteres[SYS_INTERES_NORMAL]; $interes_moratorio_calculado = $DInteres[SYS_INTERES_MORATORIO]; $gastos_de_cobranza_calculado = $DInteres[SYS_GASTOS_DE_COBRANZA]; $fecha_de_pago = $fecha_vencimiento; if ($xCred->getPeriocidadDePago() != CREDITO_TIPO_PERIOCIDAD_FINAL_DE_PLAZO) { $xLetra = new cParcialidadDeCredito(); if ($xLetra->init($xCred->getClaveDePersona(), $xCred->getNumeroDeCredito(), $parcialidad) == true) { $fecha_de_pago = $xLetra->getFechaDePago(); $xLog->add("OK\tFecha de Pago establecida a {$fecha_de_pago}\r\n", $xLog->DEVELOPER); } else {