Example #1
0
        private tpu_ComprobantesExDataset CommitMovimientosDeStock(tpu_ComprobantesExDataset data)
        {
            //Movimiento de Stock
            if (!this.ItemsComprobantes.Parent.Momento.Equals("PREPEDIR"))
            {
                string IdDeposito = ComprobantesRules.Momentos_Parametros(this.ItemsComprobantes.Parent.Momento, "Deposito");
                string IdSeccion  = ComprobantesRules.Momentos_Parametros(this.ItemsComprobantes.Parent.Momento, "Seccion");

                string IdEstadoStockOrigen  = string.Empty;
                string IdEstadoStockDestino = string.Empty;
                long   idMomentoDeStock     = tlg_TiposComprobantesOrigenDestino.GetMomento(this._idTipoComprobanteOrigen, this.ItemsComprobantes.Parent.TipoComprobanteDestino);
                //Stock.GetEstados( idMomentoDeStock, ref IdEstadoStockOrigen, ref IdEstadoStockDestino );

                if ((IdDeposito != string.Empty) && (IdSeccion != string.Empty))
                {
                    data = mz.erp.businessrules.tpu_ComprobantesEx.SetMovimientosDeStock(data, Security.IdSucursal, Security.IdEmpresa, IdDeposito, IdSeccion, null, IdEstadoStockOrigen, IdEstadoStockDestino, null, this._idProducto, this._cantidad);
                }
            }
            return(data);
        }
Example #2
0
    //Fin German 20100428

    public static string[] Comprobantes_Admitidos_Segun_Momento(string procesName, string taskName)
    {
        string valores = ComprobantesRules.Momentos_Parametros(procesName, taskName, "Comprobantes");

        return(valores.Split(new char[] { Convert.ToChar(",") }, 50));
    }