Esempio n. 1
0
<?php

include_once '../../config.php';
include_once '../../_framework.php';
include_once '../impresion/ExpertoImpresion.php';
include_once 'ExpertoVentas.php';
$oData = $oRequestData = $_POST ? $_POST : $_GET;
$exp = new ExpertoVentas();
switch ($oData["behavior"]) {
    case "imprimible":
        if ($oData["id_venta"]) {
            $vta = $exp->setImprimible($oData["id_venta"]);
        }
        if ($oData["id_sd"]) {
            $vta = $exp->setImprimibleSD($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 "no_imprimible":
        if ($oData["id_venta"]) {
            $vta = $exp->setNoImprimible($oData["id_venta"]);
        }
        if ($oData["id_sd"]) {
            $vta = $exp->setNoImprimibleSD($oData["id_sd"]);
        }
        if (!$vta) {
            $msge = "parent.showMsgeError(\"<div style='font-family:verdana'>Los cambios no pudieron ser aplicados</div>\");";