} if ($oData['presupuestos'] == 'true') { $expVta = new ExpertoVentas(); $text = $expVta->getTextForPrintVentasDeRepartoPresupuesto($id); $expPrint->imprimir(reemplazarCaracteresEspecialesPorAscii($text)); exit; } if ($oData['factb'] == 'true') { $expVta = new ExpertoVentas(); $text = $expVta->getTextForPrintVentasDeReparto_B($id); $expPrint->imprimir(reemplazarCaracteresEspecialesPorAscii($text)); exit; } if ($oData['facta'] == 'true') { $expVta = new ExpertoVentas(); $text = $expVta->getTextForPrintVentasDeReparto_A($id); $expPrint->imprimir(reemplazarCaracteresEspecialesPorAscii($text)); exit; } if ($oData['ficha'] == 'true') { $expVta = new ExpertoVentas(); $text = $expVta->getTextForPrintFichaDeReparto($id); $expPrint->imprimir(reemplazarCaracteresEspecialesPorAscii($text)); exit; } break; } ?> <html> <head> <!-- FORMS -->
} if ($oData["id_sd"]) { $vta = $exp->deleteSD($oData["id_sd"]); } if (!$vta) { $msge = "parent.showMsgeError(\"<div style='font-family:verdana'>Los cambios no pudieron ser aplicados</div>\");"; } else { $msge = "parent.showMsgeExito(\"<div style='font-family:verdana'>Éxito!!!</div>\");"; } break; case "imprimir": $expPrint = new ExpertoImpresion(); $text = ""; switch ($oData["tipo_vta"]) { case "A": $text = $exp->getTextForPrintVentasDeReparto_A($oData["id_reparto"], $oData["id_venta"]); $expPrint->imprimir(reemplazarCaracteresEspecialesPorAscii($text)); break; case "B": $text = $exp->getTextForPrintVentasDeReparto_B($oData["id_reparto"], $oData["id_venta"]); $expPrint->imprimir(reemplazarCaracteresEspecialesPorAscii($text)); break; case "P": $text = $exp->getTextForPrintVentasDeRepartoPresupuesto($oData["id_reparto"], $oData["id_venta"]); $expPrint->imprimir(reemplazarCaracteresEspecialesPorAscii($text)); break; case "SD": $text = $exp->getTextForPrintSaldoDeudorDeReparto($oData["id_reparto"], $oData["id_cliente"]); $expPrint->imprimir(reemplazarCaracteresEspecialesPorAscii($text)); break; }