GRANT EXECUTE ON PROCEDURE REDONDEE TO PROCEDURE CAUSA_NOMINA_VACACIONES;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE CERTIFICADOS_RETENCION;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE CERTIFICADOS_RETENCION;
GRANT SELECT ON CUENTAS TO PROCEDURE CERTIFICADOS_RETENCION;
GRANT SELECT ON SALDOS_INICIALES TO PROCEDURE CERTIFICADOS_RETENCION;
GRANT SELECT ON TERCEROS TO PROCEDURE CERTIFICADOS_RETENCION;
GRANT EXECUTE ON PROCEDURE COMPLETA_CEROS TO PROCEDURE CERTIFICADOS_RETENCION;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA_CONTA TO PROCEDURE CERTIFICADOS_RETENCION;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CERTIFICADOS_RETENCION;
GRANT SELECT ON CIUDADES TO PROCEDURE CERTIFICADOS_RETENCION_LABORAL;
GRANT SELECT ON NOMINA_CONCEPTOS TO PROCEDURE CERTIFICADOS_RETENCION_LABORAL;
GRANT SELECT ON NOMINA_NOVEDADES TO PROCEDURE CERTIFICADOS_RETENCION_LABORAL;
GRANT SELECT ON TERCEROS TO PROCEDURE CERTIFICADOS_RETENCION_LABORAL;
GRANT EXECUTE ON PROCEDURE DV TO PROCEDURE CERTIFICADOS_RETENCION_LABORAL;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CERTIFICADOS_RETENCION_LABORAL;
GRANT SELECT, UPDATE ON MOVIMIENTO_PROVEEDOR TO PROCEDURE CHEQUEA_VENCIMIENTOS_CARGOS;
GRANT SELECT ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE CHEQUEA_VENCIMIENTOS_CARGOS;
GRANT SELECT, DELETE ON COSTOS TO PROCEDURE CHEQUEO_COSTOS;
GRANT SELECT ON MOVIMIENTO_ARTICULO TO PROCEDURE CHEQUEO_COSTOS;
GRANT EXECUTE ON PROCEDURE ACTUALICE_COSTO TO PROCEDURE CHEQUEO_COSTOS;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE CHEQUEO_INVENTARIO;
GRANT SELECT, DELETE ON COSTOS TO PROCEDURE CHEQUEO_INVENTARIO;
GRANT SELECT, DELETE ON EXISTENCIA TO PROCEDURE CHEQUEO_INVENTARIO;
GRANT ALL ON EXISTENCIA_LOTE TO PROCEDURE CHEQUEO_INVENTARIO;
GRANT SELECT, INSERT, UPDATE, DELETE ON LOTES TO PROCEDURE CHEQUEO_INVENTARIO;
GRANT SELECT, UPDATE, REFERENCES ON MOVIMIENTO_ARTICULO TO PROCEDURE CHEQUEO_INVENTARIO;
GRANT EXECUTE ON PROCEDURE ACTUALICE_COSTO TO PROCEDURE CHEQUEO_INVENTARIO;
GRANT EXECUTE ON PROCEDURE RESTE_EXISTENCIA TO PROCEDURE CHEQUEO_INVENTARIO;
GRANT EXECUTE ON PROCEDURE SUME_EXISTENCIA TO PROCEDURE CHEQUEO_INVENTARIO;
GRANT SELECT, DELETE ON ANTICIPOS_CLIENTE TO PROCEDURE CHEQUEO_MOVIMIENTO_CLIENTES;
GRANT SELECT ON APLICACION_CLIENTE TO PROCEDURE CHEQUEO_MOVIMIENTO_CLIENTES;
GRANT SELECT ON APLICACION_CLIENTE_DETALLE TO PROCEDURE CHEQUEO_MOVIMIENTO_CLIENTES;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE CHEQUEO_MOVIMIENTO_CLIENTES;
GRANT SELECT ON FACTURAS TO PROCEDURE CHEQUEO_MOVIMIENTO_CLIENTES;
GRANT SELECT, INSERT, UPDATE, DELETE ON MOVIMIENTO_CLIENTES TO PROCEDURE CHEQUEO_MOVIMIENTO_CLIENTES;
GRANT SELECT ON NOTAS_CREDITO_CLIENTES TO PROCEDURE CHEQUEO_MOVIMIENTO_CLIENTES;
GRANT SELECT ON NOTAS_DEBITO_CLIENTES TO PROCEDURE CHEQUEO_MOVIMIENTO_CLIENTES;
GRANT SELECT ON RECIBOS_CAJA TO PROCEDURE CHEQUEO_MOVIMIENTO_CLIENTES;
GRANT SELECT ON RECIBOS_CAJA_DETALLE TO PROCEDURE CHEQUEO_MOVIMIENTO_CLIENTES;
GRANT SELECT, DELETE ON SALDOS_DOC_CARTERA TO PROCEDURE CHEQUEO_MOVIMIENTO_CLIENTES;
GRANT SELECT, DELETE ON ANTICIPOS_PROVEEDOR TO PROCEDURE CHEQUEO_MOVIMIENTO_CXPAGAR;
GRANT SELECT ON APLICACION_PROVEDOR TO PROCEDURE CHEQUEO_MOVIMIENTO_CXPAGAR;
GRANT SELECT ON APLICACION_PROVEEDOR_DETALLE TO PROCEDURE CHEQUEO_MOVIMIENTO_CXPAGAR;
GRANT SELECT ON DEVOLUCIONES_COMPRAS TO PROCEDURE CHEQUEO_MOVIMIENTO_CXPAGAR;
GRANT SELECT ON EGRESOS TO PROCEDURE CHEQUEO_MOVIMIENTO_CXPAGAR;
GRANT SELECT ON EGRESOS_DETALLE TO PROCEDURE CHEQUEO_MOVIMIENTO_CXPAGAR;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE CHEQUEO_MOVIMIENTO_CXPAGAR;
GRANT SELECT, INSERT, UPDATE, DELETE ON MOVIMIENTO_PROVEEDOR TO PROCEDURE CHEQUEO_MOVIMIENTO_CXPAGAR;
GRANT SELECT ON NOTAS_CREDITO_PROVEEDOR TO PROCEDURE CHEQUEO_MOVIMIENTO_CXPAGAR;
GRANT SELECT ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE CHEQUEO_MOVIMIENTO_CXPAGAR;
GRANT SELECT, DELETE ON SALDOS_DOC_CXPAGAR TO PROCEDURE CHEQUEO_MOVIMIENTO_CXPAGAR;
GRANT SELECT ON PUNTOS_VENDEDOR TO PROCEDURE CHEQUEO_PUNTOS_VENDEDOR;
GRANT SELECT, REFERENCES ON MOVIMIENTO_BANCO TO PROCEDURE CHEQUEO_SALDOS_BANCOS;
GRANT SELECT, DELETE ON SALDO_BANCOS TO PROCEDURE CHEQUEO_SALDOS_BANCOS;
GRANT EXECUTE ON PROCEDURE RESTE_SALDO_BANCO TO PROCEDURE CHEQUEO_SALDOS_BANCOS;
GRANT EXECUTE ON PROCEDURE SUME_SALDO_BANCO TO PROCEDURE CHEQUEO_SALDOS_BANCOS;
GRANT SELECT, DELETE ON ANTICIPOS_CLIENTE TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT, DELETE ON ANTICIPOS_PROVEEDOR TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT ON CAMBIODOC_ENTRADAS TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT ON CAMBIODOC_SALIDAS TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT ON CAMBIO_DOCUMENTOS TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT ON CONSIGNA TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT ON CONSIGNA_DETALLE TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT ON DEVOLUCION_CHEQUES TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT, INSERT, UPDATE, DELETE ON DOCUMENTOS_PAGO_CAJA TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT ON EGRESOS TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT ON EGRESOS_CAJA TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT, INSERT, UPDATE, DELETE ON MOVIMIENTO_CAJA TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT ON RECIBOS_CAJA TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT ON RECIBOS_CAJA_PAGO TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT, DELETE ON SALDO_CAJA TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT, DELETE ON SALDO_EFECTIVO TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT ON TRASLADOS_CAJA TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT ON TRASLADOS_CAJA_DET TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT EXECUTE ON PROCEDURE RESTE_SALDO_EFECTIVO TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT EXECUTE ON PROCEDURE SUME_SALDO_EFECTIVO TO PROCEDURE CHEQUEO_SALDOS_CAJAS;
GRANT SELECT ON AJUSTES TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON CHEQUES TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT, UPDATE, DELETE, REFERENCES ON COMPROBANTE_DETALLE TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT, DELETE, REFERENCES ON COMPROBANTE_ENCABEZADO TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON CONSIGNA TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON CONSIGNA_TARJETAS TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON DESENSAMBLES TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON DEVOLUCIONES_COMPRAS TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON DEVOLUCION_CHEQUES TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON EGRESOS TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON ENSAMBLES TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON ENTRADAS TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON FACTURAS TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON NOTAS_CREDITO TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON NOTAS_CREDITO_CLIENTES TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON NOTAS_CREDITO_PROVEEDOR TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON NOTAS_DEBITO TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON NOTAS_DEBITO_CLIENTES TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON RECIBOS_CAJA TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON RETIROS TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT ALL ON SALDOS_ARTICULO TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT ALL ON SALDOS_CENTROS TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT ALL ON SALDOS_CENTROS_TERCERO TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT ALL ON SALDOS_CUENTAS TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT, REFERENCES ON SALDOS_INICIALES TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT ALL ON SALDOS_TERCEROS TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON SALIDAS TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON TRASLADOS TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT SELECT ON TRASLADOS_CAJA TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_ARTICULO TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_CENTRO TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_CENTRO_TERCERO TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_CUENTA TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_TERCERO TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA_CONTA TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT EXECUTE ON PROCEDURE PADRE TO PROCEDURE CHEQUEO_SALDOS_CONTA;
GRANT INSERT ON AUDITORIA TO PROCEDURE CHEQUEO_SALDOS_CONTA_NIIF;
GRANT SELECT, UPDATE ON COMPROBANTE_DETALLE_NIIF TO PROCEDURE CHEQUEO_SALDOS_CONTA_NIIF;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE CHEQUEO_SALDOS_CONTA_NIIF;
GRANT SELECT, INSERT, UPDATE, DELETE ON SALDOS_ARTICULO_NIIF TO PROCEDURE CHEQUEO_SALDOS_CONTA_NIIF;
GRANT SELECT, INSERT, UPDATE, DELETE ON SALDOS_CENTROS_NIIF TO PROCEDURE CHEQUEO_SALDOS_CONTA_NIIF;
GRANT SELECT, INSERT, UPDATE, DELETE ON SALDOS_CENTROS_TERCERO_NIIF TO PROCEDURE CHEQUEO_SALDOS_CONTA_NIIF;
GRANT SELECT, INSERT, UPDATE, DELETE ON SALDOS_CUENTAS_NIIF TO PROCEDURE CHEQUEO_SALDOS_CONTA_NIIF;
GRANT SELECT ON SALDOS_INICIALES_NIIF TO PROCEDURE CHEQUEO_SALDOS_CONTA_NIIF;
GRANT SELECT, INSERT, UPDATE, DELETE ON SALDOS_TERCEROS_NIIF TO PROCEDURE CHEQUEO_SALDOS_CONTA_NIIF;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_ARTICULO_NIIF TO PROCEDURE CHEQUEO_SALDOS_CONTA_NIIF;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_CENTRO_NIIF TO PROCEDURE CHEQUEO_SALDOS_CONTA_NIIF;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_CENT_TERC_NIIF TO PROCEDURE CHEQUEO_SALDOS_CONTA_NIIF;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_CUENTA_NIIF TO PROCEDURE CHEQUEO_SALDOS_CONTA_NIIF;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_TERCERO_NIIF TO PROCEDURE CHEQUEO_SALDOS_CONTA_NIIF;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA_CONTA TO PROCEDURE CHEQUEO_SALDOS_CONTA_NIIF;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CHEQUEO_SALDOS_CONTA_NIIF;
GRANT SELECT, DELETE ON ANTICIPOS_CLIENTE TO PROCEDURE CHEQUEO_SALDOS_DOC_CARTERA;
GRANT SELECT ON APLICACION_CLIENTE TO PROCEDURE CHEQUEO_SALDOS_DOC_CARTERA;
GRANT SELECT ON APLICACION_CLIENTE_DETALLE TO PROCEDURE CHEQUEO_SALDOS_DOC_CARTERA;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE CHEQUEO_SALDOS_DOC_CARTERA;
GRANT SELECT ON DEVOLUCION_CHEQUES TO PROCEDURE CHEQUEO_SALDOS_DOC_CARTERA;
GRANT SELECT ON FACTURAS TO PROCEDURE CHEQUEO_SALDOS_DOC_CARTERA;
GRANT SELECT ON NOTAS_CREDITO_CLIENTES TO PROCEDURE CHEQUEO_SALDOS_DOC_CARTERA;
GRANT SELECT ON NOTAS_DEBITO_CLIENTES TO PROCEDURE CHEQUEO_SALDOS_DOC_CARTERA;
GRANT SELECT ON RECIBOS_CAJA TO PROCEDURE CHEQUEO_SALDOS_DOC_CARTERA;
GRANT SELECT ON RECIBOS_CAJA_DETALLE TO PROCEDURE CHEQUEO_SALDOS_DOC_CARTERA;
GRANT SELECT, INSERT, UPDATE, DELETE ON SALDOS_DOC_CARTERA TO PROCEDURE CHEQUEO_SALDOS_DOC_CARTERA;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CARTERA TO PROCEDURE CHEQUEO_SALDOS_DOC_CARTERA;
GRANT SELECT, DELETE ON ANTICIPOS_PROVEEDOR TO PROCEDURE CHEQUEO_SALDOS_DOC_CXPAGAR;
GRANT SELECT ON APLICACION_PROVEDOR TO PROCEDURE CHEQUEO_SALDOS_DOC_CXPAGAR;
GRANT SELECT ON APLICACION_PROVEEDOR_DETALLE TO PROCEDURE CHEQUEO_SALDOS_DOC_CXPAGAR;
GRANT SELECT ON DEVOLUCIONES_COMPRAS TO PROCEDURE CHEQUEO_SALDOS_DOC_CXPAGAR;
GRANT SELECT ON EGRESOS TO PROCEDURE CHEQUEO_SALDOS_DOC_CXPAGAR;
GRANT SELECT ON EGRESOS_DETALLE TO PROCEDURE CHEQUEO_SALDOS_DOC_CXPAGAR;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE CHEQUEO_SALDOS_DOC_CXPAGAR;
GRANT SELECT, INSERT, UPDATE, DELETE ON MOVIMIENTO_PROVEEDOR TO PROCEDURE CHEQUEO_SALDOS_DOC_CXPAGAR;
GRANT SELECT ON NOTAS_CREDITO_PROVEEDOR TO PROCEDURE CHEQUEO_SALDOS_DOC_CXPAGAR;
GRANT SELECT ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE CHEQUEO_SALDOS_DOC_CXPAGAR;
GRANT SELECT, INSERT, UPDATE, DELETE ON SALDOS_DOC_CXPAGAR TO PROCEDURE CHEQUEO_SALDOS_DOC_CXPAGAR;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CXPAGAR TO PROCEDURE CHEQUEO_SALDOS_DOC_CXPAGAR;
GRANT SELECT ON CHEQUES TO PROCEDURE CHEQUES_SIN_CONTABILIDAD;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE CHEQUES_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_BANCOS TO PROCEDURE CHEQUES_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE CHEQUES_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_CHEQUE TO PROCEDURE CHEQUES_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CHEQUES_SIN_CONTABILIDAD;
GRANT SELECT, INSERT ON AUDITORIA TO PROCEDURE CIERRE_FACTURACION;
GRANT SELECT ON AUTORIZACIONES TO PROCEDURE CIERRE_FACTURACION;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE CIERRE_FACTURACION;
GRANT SELECT ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE CIERRE_FACTURACION;
GRANT SELECT ON FACTURAS TO PROCEDURE CIERRE_FACTURACION;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE CIERRE_FACTURACION;
GRANT SELECT ON PUNTO_VENTA TO PROCEDURE CIERRE_FACTURACION;
GRANT SELECT ON RECIBOS_CAJA TO PROCEDURE CIERRE_FACTURACION;
GRANT SELECT ON RECIBOS_CAJA_DETALLE TO PROCEDURE CIERRE_FACTURACION;
GRANT SELECT ON RECIBOS_CAJA_PAGO TO PROCEDURE CIERRE_FACTURACION;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE CIERRE_FACTURACION;
GRANT SELECT ON VENDEDORES TO PROCEDURE CIERRE_FACTURACION;
GRANT SELECT ON MOVIMIENTO_ARTICULO TO PROCEDURE CLASIFICA_INVENTARIO;
GRANT SELECT, INSERT ON CLIENTES TO PROCEDURE CLIENTES_SIN_REGISTRO;
GRANT SELECT ON TERCEROS TO PROCEDURE CLIENTES_SIN_REGISTRO;
GRANT SELECT ON CLIENTES TO PROCEDURE CLIENTES_SUCURSAL_MED;
GRANT SELECT ON TERCEROS TO PROCEDURE CLIENTES_SUCURSAL_MED;
GRANT SELECT ON TERCEROS_CONTACTOS TO PROCEDURE CLIENTES_SUCURSAL_MED;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE COBRADOR_NOTAS;
GRANT SELECT, UPDATE ON NOTAS_DEBITO_CLIENTES TO PROCEDURE COBRADOR_NOTAS;
GRANT SELECT ON ARTICULO TO PROCEDURE COMISIONES_ARTICULO;
GRANT SELECT ON COMISIONES TO PROCEDURE COMISIONES_ARTICULO;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE COMISIONES_ARTICULO;
GRANT SELECT ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE COMISIONES_ARTICULO;
GRANT SELECT ON FACTURAS TO PROCEDURE COMISIONES_ARTICULO;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE COMISIONES_ARTICULO;
GRANT SELECT ON GRUPO TO PROCEDURE COMISIONES_ARTICULO;
GRANT SELECT ON MARCAS TO PROCEDURE COMISIONES_ARTICULO;
GRANT SELECT ON PRECIOS_ARTICULO TO PROCEDURE COMISIONES_ARTICULO;
GRANT SELECT ON SUBGRUPO TO PROCEDURE COMISIONES_ARTICULO;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE COMISIONES_ARTICULO;
GRANT SELECT ON VENDEDORES TO PROCEDURE COMISIONES_ARTICULO;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE COMISIONES_ARTICULO;
GRANT SELECT ON ANTICIPOS_CLIENTE TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON APLICACION_CLIENTE TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON APLICACION_CLIENTE_DETALLE TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON ARTICULO TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON CLIENTES TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON CLIENTE_SUCURSALES TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON COBRADORES TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON COMISIONES TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON COMISION_COBRO TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON CONSOLIDADO_FALTANTES TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON DEVOLUCION_CHEQUES TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON EGRESOS TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON EGRESOS_CRUCEC TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON EVENTOS_VENTAS TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON FACTURAS TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON GRUPO TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON MARCAS TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON MOVIMIENTO_CLIENTES TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON NOTAS_CREDITO_CLIENTES TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON NOTAS_DEBITO_CLIENTES TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON PEDIDOS TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON PRECIOS_ARTICULO TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON RECIBOS_CAJA TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON RECIBOS_CAJA_DETALLE TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT, INSERT ON REPORTES_AUX TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON TERCEROS TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE COMISIONES_COBRO;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE COMISIONES_COBRO;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CARTERA TO PROCEDURE COMISIONES_COBRO;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE COMISIONES_DOCUMENTO;
GRANT SELECT ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE COMISIONES_DOCUMENTO;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE COMISIONES_DOCUMENTO;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE COMISIONES_DOCUMENTO;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE COMISIONES_DOCUMENTO;
GRANT SELECT, REFERENCES ON VENDEDORES TO PROCEDURE COMISIONES_DOCUMENTO;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE COMISIONES_DOCUMENTO;
GRANT EXECUTE ON PROCEDURE REDONDEE TO PROCEDURE COMISIONES_DOCUMENTO;
GRANT SELECT ON CUENTAS TO PROCEDURE COMPARA_CENTROS;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_CENTRO_MES TO PROCEDURE COMPARA_CENTROS;
GRANT EXECUTE ON PROCEDURE SALDO_CENTRO_MES TO PROCEDURE COMPARA_CENTROS;
GRANT SELECT ON ARTICULO TO PROCEDURE COMPARA_MOVIMIENTO_ARTICULO;
GRANT SELECT ON BODEGA TO PROCEDURE COMPARA_MOVIMIENTO_ARTICULO;
GRANT SELECT ON GRUPO TO PROCEDURE COMPARA_MOVIMIENTO_ARTICULO;
GRANT SELECT ON MARCAS TO PROCEDURE COMPARA_MOVIMIENTO_ARTICULO;
GRANT SELECT ON MOVIMIENTO_ARTICULO TO PROCEDURE COMPARA_MOVIMIENTO_ARTICULO;
GRANT SELECT ON SUBGRUPO TO PROCEDURE COMPARA_MOVIMIENTO_ARTICULO;
GRANT EXECUTE ON PROCEDURE SALDO_INICIAL_INVENTARIO TO PROCEDURE COMPARA_MOVIMIENTO_ARTICULO;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS TO PROCEDURE COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS_DET TO PROCEDURE COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRA TO PROCEDURE COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE COMPRAS_ARTICULO;
GRANT SELECT ON PREFIJOS TO PROCEDURE COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE COMPRAS_ARTICULO_MES;
GRANT SELECT ON GRUPO TO PROCEDURE COMPRAS_ARTICULO_MES;
GRANT SELECT ON MARCAS TO PROCEDURE COMPRAS_ARTICULO_MES;
GRANT SELECT ON SUBGRUPO TO PROCEDURE COMPRAS_ARTICULO_MES;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA TO PROCEDURE COMPRAS_ARTICULO_MES;
GRANT EXECUTE ON PROCEDURE COMPRAS_ARTICULO TO PROCEDURE COMPRAS_ARTICULO_MES;
GRANT SELECT ON DEVOLUCIONES_COMPRAS TO PROCEDURE COMPRAS_PROVEEDOR;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE COMPRAS_PROVEEDOR;
GRANT SELECT ON PREFIJOS TO PROCEDURE COMPRAS_PROVEEDOR;
GRANT SELECT ON TERCEROS TO PROCEDURE COMPRAS_PROVEEDOR_MES;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA TO PROCEDURE COMPRAS_PROVEEDOR_MES;
GRANT EXECUTE ON PROCEDURE COMPRAS_PROVEEDOR TO PROCEDURE COMPRAS_PROVEEDOR_MES;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE COMPROBANTES_ACTIVO;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE COMPROBANTES_ACTIVO;
GRANT SELECT ON CUENTAS TO PROCEDURE COMPROBANTES_ACTIVO;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE COMPROBANTES_DIARIO;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE COMPROBANTES_DIARIO;
GRANT SELECT, REFERENCES ON COMPROBANTE_DETALLE TO PROCEDURE COMPROBANTES_TERCERO;
GRANT SELECT, REFERENCES ON COMPROBANTE_ENCABEZADO TO PROCEDURE COMPROBANTES_TERCERO;
GRANT SELECT ON CUENTAS TO PROCEDURE CONCILIACION_PATRIMONIAL;
GRANT SELECT ON CUENTAS_NIIF TO PROCEDURE CONCILIACION_PATRIMONIAL;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_MES TO PROCEDURE CONCILIACION_PATRIMONIAL;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_MES_NIIF TO PROCEDURE CONCILIACION_PATRIMONIAL;
GRANT SELECT, INSERT, UPDATE ON CONCILIACION_BANCARIA TO PROCEDURE CONCILIA_BANCO;
GRANT SELECT ON CONCILIACION_ENCABEZADO TO PROCEDURE CONCILIA_BANCO;
GRANT SELECT ON MOVIMIENTO_BANCO TO PROCEDURE CONCILIA_BANCO;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE CONCILIA_BANCO;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE CONCILIA_INVENTARIO;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE CONCILIA_INVENTARIO;
GRANT SELECT ON COSTOS TO PROCEDURE CONCILIA_INVENTARIO;
GRANT SELECT ON INTERFAZ_COMPRAS TO PROCEDURE CONCILIA_INVENTARIO;
GRANT SELECT ON INTERFAZ_INVENTARIO TO PROCEDURE CONCILIA_INVENTARIO;
GRANT SELECT ON INTERFAZ_VENTAS TO PROCEDURE CONCILIA_INVENTARIO;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE CONCILIA_INVENTARIO;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONCILIA_INVENTARIO;
GRANT SELECT ON FACTURAS TO PROCEDURE CONFIRMA_RUTERO_FAC;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE CONFIRMA_RUTERO_FAC;
GRANT SELECT ON RUTERO_FAC TO PROCEDURE CONFIRMA_RUTERO_FAC;
GRANT SELECT, REFERENCES ON COMPROBANTE_DETALLE TO PROCEDURE CONSECUTIVOS_CONTA;
GRANT SELECT, REFERENCES ON COMPROBANTE_ENCABEZADO TO PROCEDURE CONSECUTIVOS_CONTA;
GRANT SELECT, REFERENCES ON TIPO_COMPROBANTE TO PROCEDURE CONSECUTIVOS_CONTA;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE CONSIGNA_SIN_CONTABILIDAD;
GRANT SELECT ON CONSIGNA TO PROCEDURE CONSIGNA_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_BANCOS TO PROCEDURE CONSIGNA_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE CONSIGNA_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_CONSIGNA TO PROCEDURE CONSIGNA_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONSIGNA_SIN_CONTABILIDAD;
GRANT INSERT ON CONSOLIDADO_FALTANTES TO PROCEDURE CONSOLIDE_PENDIENTES;
GRANT SELECT ON CONSOLIDE_FALTANTES TO PROCEDURE CONSOLIDE_PENDIENTES;
GRANT SELECT ON COTIZACIONES_DETALLE TO PROCEDURE CONSOLIDE_PENDIENTES;
GRANT SELECT ON COTIZACIONES_PROVEEDOR_DET TO PROCEDURE CONSOLIDE_PENDIENTES;
GRANT SELECT ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE CONSOLIDE_PENDIENTES;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE CONSOLIDE_PENDIENTES;
GRANT SELECT ON ORDENES_COMPRA_DETALLE TO PROCEDURE CONSOLIDE_PENDIENTES;
GRANT SELECT ON PEDIDOS_DETALLE TO PROCEDURE CONSOLIDE_PENDIENTES;
GRANT SELECT ON REMISIONES_VENTA_DETALLE TO PROCEDURE CONSOLIDE_PENDIENTES;
GRANT SELECT ON REMISION_PROVEEDOR_DET TO PROCEDURE CONSOLIDE_PENDIENTES;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE CONSOLIDE_PENDIENTES;
GRANT SELECT ON ARTICULO TO PROCEDURE CONSULTA_ARTICULOS_MOVIL;
GRANT SELECT ON GRUPO TO PROCEDURE CONSULTA_ARTICULOS_MOVIL;
GRANT SELECT ON LISTA_PRECIOS TO PROCEDURE CONSULTA_ARTICULOS_MOVIL;
GRANT SELECT ON MARCAS TO PROCEDURE CONSULTA_ARTICULOS_MOVIL;
GRANT SELECT ON PRECIOS_ARTICULO TO PROCEDURE CONSULTA_ARTICULOS_MOVIL;
GRANT SELECT ON SUBGRUPO TO PROCEDURE CONSULTA_ARTICULOS_MOVIL;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE CONSULTA_ARTICULOS_MOVIL;
GRANT SELECT ON UNIDAD_ARTICULO TO PROCEDURE CONSULTA_ARTICULOS_MOVIL;
GRANT SELECT ON USUARIO TO PROCEDURE CONSULTA_ARTICULOS_MOVIL;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CONSULTA_ARTICULOS_MOVIL;
GRANT EXECUTE ON PROCEDURE REDONDEE TO PROCEDURE CONSULTA_ARTICULOS_MOVIL;
GRANT EXECUTE ON PROCEDURE SALDO_TOTAL_INVENTARIO TO PROCEDURE CONSULTA_ARTICULOS_MOVIL;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE CONSULTA_ARTICULOS_VTAS;
GRANT SELECT ON BARRAS_ARTICULO TO PROCEDURE CONSULTA_ARTICULOS_VTAS;
GRANT SELECT, REFERENCES ON ESTADO_ARTICULO TO PROCEDURE CONSULTA_ARTICULOS_VTAS;
GRANT SELECT, REFERENCES ON GRUPO TO PROCEDURE CONSULTA_ARTICULOS_VTAS;
GRANT SELECT, REFERENCES ON PRECIOS_ARTICULO TO PROCEDURE CONSULTA_ARTICULOS_VTAS;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE CONSULTA_ARTICULOS_VTAS;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CONSULTA_ARTICULOS_VTAS;
GRANT EXECUTE ON PROCEDURE REDONDEE TO PROCEDURE CONSULTA_ARTICULOS_VTAS;
GRANT EXECUTE ON PROCEDURE SALDO_TOTAL_INVENTARIO TO PROCEDURE CONSULTA_ARTICULOS_VTAS;
GRANT SELECT ON CLIENTES TO PROCEDURE CONSULTA_CLIENTES;
GRANT SELECT ON COBRADORES TO PROCEDURE CONSULTA_CLIENTES;
GRANT SELECT ON TERCEROS TO PROCEDURE CONSULTA_CLIENTES;
GRANT SELECT ON VENDEDORES TO PROCEDURE CONSULTA_CLIENTES;
GRANT SELECT ON ZONAS TO PROCEDURE CONSULTA_CLIENTES;
GRANT SELECT ON CLIENTES TO PROCEDURE CONSULTA_CLIENTES_RR;
GRANT SELECT ON COBRADORES TO PROCEDURE CONSULTA_CLIENTES_RR;
GRANT SELECT ON TERCEROS TO PROCEDURE CONSULTA_CLIENTES_RR;
GRANT SELECT ON VENDEDORES TO PROCEDURE CONSULTA_CLIENTES_RR;
GRANT SELECT ON ZONAS TO PROCEDURE CONSULTA_CLIENTES_RR;
GRANT SELECT ON PREFIJOS TO PROCEDURE CONSULTA_PREFIJO_RR;
GRANT SELECT ON PUNTOS_VENDEDOR TO PROCEDURE CONSULTA_PUNTOS_VENDEDOR;
GRANT SELECT ON USUARIO TO PROCEDURE CONSULTA_USUARIO_CORREO;
GRANT SELECT ON ARTICULO TO PROCEDURE CONSUMO_PRECIOS;
GRANT SELECT, UPDATE ON PRECIOS_ARTICULO TO PROCEDURE CONSUMO_PRECIOS;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE CONTABILICE_COMP_SIMPLIFICADO;
GRANT SELECT ON PROVEEDORES TO PROCEDURE CONTABILICE_COMP_SIMPLIFICADO;
GRANT EXECUTE ON PROCEDURE CONTABIL_FACTCOMP TO PROCEDURE CONTABILICE_COMP_SIMPLIFICADO;
GRANT SELECT ON BODEGA TO PROCEDURE CONTABILICE_COSTO_VENTAS;
GRANT SELECT, INSERT, UPDATE ON COMPROBANTE_DETALLE TO PROCEDURE CONTABILICE_COSTO_VENTAS;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE CONTABILICE_COSTO_VENTAS;
GRANT SELECT ON COSTO_VENTAS TO PROCEDURE CONTABILICE_COSTO_VENTAS;
GRANT SELECT ON CUENTAS TO PROCEDURE CONTABILICE_COSTO_VENTAS;
GRANT SELECT ON FACTURAS TO PROCEDURE CONTABILICE_COSTO_VENTAS;
GRANT SELECT ON INTERFAZ_VENTAS TO PROCEDURE CONTABILICE_COSTO_VENTAS;
GRANT SELECT ON PUNTO_VENTA TO PROCEDURE CONTABILICE_COSTO_VENTAS;
GRANT EXECUTE ON PROCEDURE COSTO_EN_VENTAS TO PROCEDURE CONTABILICE_COSTO_VENTAS;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABILICE_COSTO_VENTAS;
GRANT INSERT ON COMPROBANTE_DETALLE TO PROCEDURE CONTABILIZA_PENDIENTE;
GRANT INSERT ON COMPROBANTE_ENCABEZADO TO PROCEDURE CONTABILIZA_PENDIENTE;
GRANT SELECT, UPDATE, REFERENCES ON CONTABILIZACION TO PROCEDURE CONTABILIZA_PENDIENTE;
GRANT SELECT, REFERENCES ON CONTABILIZACION_DET TO PROCEDURE CONTABILIZA_PENDIENTE;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_COMPROBA TO PROCEDURE CONTABILIZA_PENDIENTE;
GRANT SELECT ON AJUSTES TO PROCEDURE CONTABIL_AJUSTE;
GRANT SELECT ON AJUSTES_DETALLE TO PROCEDURE CONTABIL_AJUSTE;
GRANT SELECT ON ARTICULO TO PROCEDURE CONTABIL_AJUSTE;
GRANT SELECT ON BODEGA TO PROCEDURE CONTABIL_AJUSTE;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_AJUSTE;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_AJUSTE;
GRANT SELECT ON CONTABIL_ARTICULO TO PROCEDURE CONTABIL_AJUSTE;
GRANT SELECT ON CUENTAS TO PROCEDURE CONTABIL_AJUSTE;
GRANT SELECT ON INTERFAZ_INVENTARIO TO PROCEDURE CONTABIL_AJUSTE;
GRANT SELECT ON INTERFAZ_INVENTARIO_CTAS TO PROCEDURE CONTABIL_AJUSTE;
GRANT SELECT ON PREFIJOS TO PROCEDURE CONTABIL_AJUSTE;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_AJUSTE;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_AJUSTE;
GRANT SELECT, REFERENCES ON CHEQUES TO PROCEDURE CONTABIL_CHEQUE;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_CHEQUE;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_CHEQUE;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE CONTABIL_CHEQUE;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE CONTABIL_CHEQUE;
GRANT SELECT, REFERENCES ON INTERFAZ_BANCOS TO PROCEDURE CONTABIL_CHEQUE;
GRANT SELECT, REFERENCES ON INTERFAZ_BANCOS_CTAS TO PROCEDURE CONTABIL_CHEQUE;
GRANT SELECT, REFERENCES ON PREFIJOS_BANCOS TO PROCEDURE CONTABIL_CHEQUE;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_CHEQUE;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_CHEQUE;
GRANT SELECT ON BANCOS TO PROCEDURE CONTABIL_CONSIGNA;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE CONTABIL_CONSIGNA;
GRANT SELECT, REFERENCES ON CAJAS TO PROCEDURE CONTABIL_CONSIGNA;
GRANT SELECT, REFERENCES ON CONSIGNA TO PROCEDURE CONTABIL_CONSIGNA;
GRANT SELECT, REFERENCES ON CONSIGNA_DETALLE TO PROCEDURE CONTABIL_CONSIGNA;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_CONSIGNA;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_CONSIGNA;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE CONTABIL_CONSIGNA;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE CONTABIL_CONSIGNA;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE CONTABIL_CONSIGNA;
GRANT SELECT, REFERENCES ON INTERFAZ_BANCOS TO PROCEDURE CONTABIL_CONSIGNA;
GRANT SELECT, REFERENCES ON INTERFAZ_BANCOS_CTAS TO PROCEDURE CONTABIL_CONSIGNA;
GRANT SELECT, REFERENCES ON PREFIJOS_BANCOS TO PROCEDURE CONTABIL_CONSIGNA;
GRANT SELECT, REFERENCES ON PUNTO_VENTA TO PROCEDURE CONTABIL_CONSIGNA;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_CONSIGNA;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_CONSIGNA;
GRANT SELECT ON CAJAS TO PROCEDURE CONTABIL_CONSIGNATAR;
GRANT SELECT ON CONSIGNA_TARJETAS TO PROCEDURE CONTABIL_CONSIGNATAR;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_CONSIGNATAR;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_CONSIGNATAR;
GRANT SELECT ON CUENTAS TO PROCEDURE CONTABIL_CONSIGNATAR;
GRANT SELECT ON CUENTAS_BANCO TO PROCEDURE CONTABIL_CONSIGNATAR;
GRANT SELECT ON INTERFAZ_CAJA TO PROCEDURE CONTABIL_CONSIGNATAR;
GRANT SELECT ON INTERFAZ_CAJA_CTAS TO PROCEDURE CONTABIL_CONSIGNATAR;
GRANT SELECT ON PREFIJOS TO PROCEDURE CONTABIL_CONSIGNATAR;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_CONSIGNATAR;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_CONSIGNATAR;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CONTABIL_CONSIGNATAR;
GRANT SELECT ON ARTICULO TO PROCEDURE CONTABIL_DESENSAMBLE;
GRANT SELECT ON BODEGA TO PROCEDURE CONTABIL_DESENSAMBLE;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_DESENSAMBLE;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_DESENSAMBLE;
GRANT SELECT ON CONTABIL_ARTICULO TO PROCEDURE CONTABIL_DESENSAMBLE;
GRANT SELECT ON CUENTAS TO PROCEDURE CONTABIL_DESENSAMBLE;
GRANT SELECT ON DESENSAMBLES TO PROCEDURE CONTABIL_DESENSAMBLE;
GRANT SELECT ON DESENSAMBLES_DETALLE TO PROCEDURE CONTABIL_DESENSAMBLE;
GRANT SELECT ON INTERFAZ_INVENTARIO TO PROCEDURE CONTABIL_DESENSAMBLE;
GRANT SELECT ON INTERFAZ_INVENTARIO_CTAS TO PROCEDURE CONTABIL_DESENSAMBLE;
GRANT SELECT ON PREFIJOS TO PROCEDURE CONTABIL_DESENSAMBLE;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_DESENSAMBLE;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_DESENSAMBLE;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CONTABIL_DESENSAMBLE;
GRANT SELECT, REFERENCES ON CAJAS TO PROCEDURE CONTABIL_DEVOLCHEQ;
GRANT SELECT, REFERENCES ON CHEQUES TO PROCEDURE CONTABIL_DEVOLCHEQ;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_DEVOLCHEQ;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_DEVOLCHEQ;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE CONTABIL_DEVOLCHEQ;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE CONTABIL_DEVOLCHEQ;
GRANT SELECT, REFERENCES ON DEVOLUCION_CHEQUES TO PROCEDURE CONTABIL_DEVOLCHEQ;
GRANT SELECT, REFERENCES ON INTERFAZ_BANCOS TO PROCEDURE CONTABIL_DEVOLCHEQ;
GRANT SELECT, REFERENCES ON INTERFAZ_BANCOS_CTAS TO PROCEDURE CONTABIL_DEVOLCHEQ;
GRANT SELECT, REFERENCES ON PREFIJOS_BANCOS TO PROCEDURE CONTABIL_DEVOLCHEQ;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE CONTABIL_DEVOLCHEQ;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_DEVOLCHEQ;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_DEVOLCHEQ;
GRANT SELECT ON ARTICULO TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT SELECT ON BODEGA TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT SELECT ON CAJAS TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT SELECT ON CONFIGURACION TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT SELECT ON CONTABIL_ARTICULO TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT SELECT ON COSTO_VENTAS TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT SELECT ON CUENTAS TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT SELECT ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT SELECT ON INTERFAZ_VENTAS TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT SELECT ON INTERFAZ_VENTAS_CTAS TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT SELECT ON PREFIJOS TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT SELECT ON PUNTO_VENTA TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT SELECT ON TERCEROS TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT SELECT ON VENDEDORES TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT EXECUTE ON PROCEDURE COSTO_EN_VENTAS TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT EXECUTE ON PROCEDURE REDONDEE TO PROCEDURE CONTABIL_DEVOLCLI;
GRANT SELECT ON ARTICULO TO PROCEDURE CONTABIL_DEVOLCOMP;
GRANT SELECT ON BODEGA TO PROCEDURE CONTABIL_DEVOLCOMP;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_DEVOLCOMP;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_DEVOLCOMP;
GRANT SELECT ON CONTABIL_ARTICULO TO PROCEDURE CONTABIL_DEVOLCOMP;
GRANT SELECT ON CUENTAS TO PROCEDURE CONTABIL_DEVOLCOMP;
GRANT SELECT ON DEVOLUCIONES_COMPRAS TO PROCEDURE CONTABIL_DEVOLCOMP;
GRANT SELECT ON DEVOLUCIONES_COMPRAS_DET TO PROCEDURE CONTABIL_DEVOLCOMP;
GRANT SELECT ON INTERFAZ_COMPRAS TO PROCEDURE CONTABIL_DEVOLCOMP;
GRANT SELECT ON INTERFAZ_COMPRAS_CTAS TO PROCEDURE CONTABIL_DEVOLCOMP;
GRANT SELECT ON PREFIJOS TO PROCEDURE CONTABIL_DEVOLCOMP;
GRANT SELECT ON PROVEEDORES TO PROCEDURE CONTABIL_DEVOLCOMP;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE CONTABIL_DEVOLCOMP;
GRANT SELECT ON TERCEROS TO PROCEDURE CONTABIL_DEVOLCOMP;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_DEVOLCOMP;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_DEVOLCOMP;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CONTABIL_DEVOLCOMP;
GRANT SELECT ON ANTICIPOS_PROVEEDOR TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT ON BANCOS TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT, REFERENCES ON CAJAS TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT ON CLIENTES TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT, REFERENCES ON EGRESOS TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT, REFERENCES ON EGRESOS_BANCO TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT, REFERENCES ON EGRESOS_CAJA TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT, REFERENCES ON EGRESOS_CONTABILIDAD TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT ON EGRESOS_CRUCEC TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT ON EGRESOS_DETALLE TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT ON GRUPOS_PROVEEDORES TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT, REFERENCES ON INTERFAZ_CAJA TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT, REFERENCES ON INTERFAZ_CAJA_CTAS TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT ON MOVIMIENTO_PROVEEDOR TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT ON PAGO_NOMINA TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT ON PAGO_NOMINA_DET TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT ON PAGO_NOMINA_EGRESOS TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT, REFERENCES ON PREFIJOS TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT, REFERENCES ON PROVEEDORES TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA_DETALLE TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE CONTABIL_EGRESO;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_EGRESO;
GRANT EXECUTE ON PROCEDURE ERRORINT TO PROCEDURE CONTABIL_EGRESO;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_EGRESO;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CONTABIL_EGRESO;
GRANT EXECUTE ON PROCEDURE REDONDEE TO PROCEDURE CONTABIL_EGRESO;
GRANT EXECUTE ON PROCEDURE VALIDE_CUENTA_C TO PROCEDURE CONTABIL_EGRESO;
GRANT SELECT ON ARTICULO TO PROCEDURE CONTABIL_ENSAMBLE;
GRANT SELECT ON BODEGA TO PROCEDURE CONTABIL_ENSAMBLE;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_ENSAMBLE;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_ENSAMBLE;
GRANT SELECT ON CONTABIL_ARTICULO TO PROCEDURE CONTABIL_ENSAMBLE;
GRANT SELECT ON CUENTAS TO PROCEDURE CONTABIL_ENSAMBLE;
GRANT SELECT ON ENSAMBLES TO PROCEDURE CONTABIL_ENSAMBLE;
GRANT SELECT ON ENSAMBLES_DETALLE TO PROCEDURE CONTABIL_ENSAMBLE;
GRANT SELECT ON INTERFAZ_INVENTARIO TO PROCEDURE CONTABIL_ENSAMBLE;
GRANT SELECT ON INTERFAZ_INVENTARIO_CTAS TO PROCEDURE CONTABIL_ENSAMBLE;
GRANT SELECT ON PREFIJOS TO PROCEDURE CONTABIL_ENSAMBLE;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_ENSAMBLE;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_ENSAMBLE;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CONTABIL_ENSAMBLE;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE CONTABIL_ENTRADA;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE CONTABIL_ENTRADA;
GRANT INSERT ON COMPROBANTE_DETALLE TO PROCEDURE CONTABIL_ENTRADA;
GRANT INSERT ON COMPROBANTE_ENCABEZADO TO PROCEDURE CONTABIL_ENTRADA;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_ENTRADA;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_ENTRADA;
GRANT SELECT, REFERENCES ON CONTABIL_ARTICULO TO PROCEDURE CONTABIL_ENTRADA;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE CONTABIL_ENTRADA;
GRANT SELECT, REFERENCES ON ENTRADAS TO PROCEDURE CONTABIL_ENTRADA;
GRANT SELECT, REFERENCES ON ENTRADAS_DETALLE TO PROCEDURE CONTABIL_ENTRADA;
GRANT SELECT, REFERENCES ON INTERFAZ_INVENTARIO TO PROCEDURE CONTABIL_ENTRADA;
GRANT SELECT ON INTERFAZ_INVENTARIO_CTAS TO PROCEDURE CONTABIL_ENTRADA;
GRANT SELECT ON PREFIJOS TO PROCEDURE CONTABIL_ENTRADA;
GRANT SELECT ON PROVEEDORES TO PROCEDURE CONTABIL_ENTRADA;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE CONTABIL_ENTRADA;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE CONTABIL_ENTRADA;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_ENTRADA;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_ENTRADA;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE CONTABIL_FACTCOMP;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE CONTABIL_FACTCOMP;
GRANT INSERT ON COMPROBANTE_DETALLE TO PROCEDURE CONTABIL_FACTCOMP;
GRANT SELECT ON CONFIGURACION TO PROCEDURE CONTABIL_FACTCOMP;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_FACTCOMP;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_FACTCOMP;
GRANT SELECT, REFERENCES ON CONTABIL_ARTICULO TO PROCEDURE CONTABIL_FACTCOMP;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE CONTABIL_FACTCOMP;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRA TO PROCEDURE CONTABIL_FACTCOMP;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE CONTABIL_FACTCOMP;
GRANT SELECT, REFERENCES ON INTERFAZ_COMPRAS TO PROCEDURE CONTABIL_FACTCOMP;
GRANT SELECT, REFERENCES ON INTERFAZ_COMPRAS_CTAS TO PROCEDURE CONTABIL_FACTCOMP;
GRANT SELECT ON PREFIJOS TO PROCEDURE CONTABIL_FACTCOMP;
GRANT SELECT, REFERENCES ON PROVEEDORES TO PROCEDURE CONTABIL_FACTCOMP;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE CONTABIL_FACTCOMP;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE CONTABIL_FACTCOMP;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_FACTCOMP;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_FACTCOMP;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CONTABIL_FACTCOMP;
GRANT EXECUTE ON PROCEDURE REDONDEE TO PROCEDURE CONTABIL_FACTCOMP;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE CONTABIL_FACTURA;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE CONTABIL_FACTURA;
GRANT SELECT ON CAJAS TO PROCEDURE CONTABIL_FACTURA;
GRANT INSERT ON COMPROBANTE_DETALLE TO PROCEDURE CONTABIL_FACTURA;
GRANT INSERT ON COMPROBANTE_ENCABEZADO TO PROCEDURE CONTABIL_FACTURA;
GRANT SELECT ON CONFIGURACION TO PROCEDURE CONTABIL_FACTURA;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_FACTURA;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_FACTURA;
GRANT SELECT, REFERENCES ON CONTABIL_ARTICULO TO PROCEDURE CONTABIL_FACTURA;
GRANT SELECT, REFERENCES ON COSTO_VENTAS TO PROCEDURE CONTABIL_FACTURA;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE CONTABIL_FACTURA;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE CONTABIL_FACTURA;
GRANT SELECT, REFERENCES ON FACTURAS_DETALLE TO PROCEDURE CONTABIL_FACTURA;
GRANT SELECT, REFERENCES ON INTERFAZ_VENTAS TO PROCEDURE CONTABIL_FACTURA;
GRANT SELECT, REFERENCES ON INTERFAZ_VENTAS_CTAS TO PROCEDURE CONTABIL_FACTURA;
GRANT SELECT ON PREFIJOS TO PROCEDURE CONTABIL_FACTURA;
GRANT SELECT, REFERENCES ON PUNTO_VENTA TO PROCEDURE CONTABIL_FACTURA;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE CONTABIL_FACTURA;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE CONTABIL_FACTURA;
GRANT SELECT ON VENDEDORES TO PROCEDURE CONTABIL_FACTURA;
GRANT EXECUTE ON PROCEDURE COSTO_EN_VENTAS TO PROCEDURE CONTABIL_FACTURA;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_FACTURA;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_FACTURA;
GRANT EXECUTE ON PROCEDURE REDONDEE TO PROCEDURE CONTABIL_FACTURA;
GRANT SELECT ON ARTICULO TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT SELECT ON BODEGA TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT SELECT ON CAJAS TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT SELECT ON CONFIGURACION TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT SELECT ON CONTABIL_ARTICULO TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT SELECT ON COSTO_VENTAS TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT SELECT ON CUENTAS TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT SELECT ON FACTURAS TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT SELECT ON INTERFAZ_VENTAS TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT SELECT ON INTERFAZ_VENTAS_CTAS TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT SELECT ON PREFIJOS TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT SELECT ON PUNTO_VENTA TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT SELECT ON TERCEROS TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT SELECT ON VENDEDORES TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT EXECUTE ON PROCEDURE COSTO_EN_VENTAS_CONTADO TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT EXECUTE ON PROCEDURE REDONDEE TO PROCEDURE CONTABIL_FACTURAS_CONTADO;
GRANT SELECT ON CARGA_REMESA TO PROCEDURE CONTABIL_MANIFIESTO;
GRANT SELECT ON CONCEPTOS_PLANILLA TO PROCEDURE CONTABIL_MANIFIESTO;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_MANIFIESTO;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_MANIFIESTO;
GRANT SELECT ON CUENTAS TO PROCEDURE CONTABIL_MANIFIESTO;
GRANT SELECT ON FORMA_PAGO_REMESA TO PROCEDURE CONTABIL_MANIFIESTO;
GRANT SELECT ON INTERFAZ_TRANSPORTE TO PROCEDURE CONTABIL_MANIFIESTO;
GRANT SELECT ON MANIFIESTOS_CARGA_CONC TO PROCEDURE CONTABIL_MANIFIESTO;
GRANT SELECT ON MANIFIESTO_CARGA TO PROCEDURE CONTABIL_MANIFIESTO;
GRANT SELECT ON MANIFIESTO_CARGA_DET TO PROCEDURE CONTABIL_MANIFIESTO;
GRANT SELECT ON PREFIJOS TO PROCEDURE CONTABIL_MANIFIESTO;
GRANT SELECT ON TERCEROS TO PROCEDURE CONTABIL_MANIFIESTO;
GRANT SELECT ON VEHICULOS TO PROCEDURE CONTABIL_MANIFIESTO;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_MANIFIESTO;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_MANIFIESTO;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CONTABIL_MANIFIESTO;
GRANT SELECT ON BANCOS TO PROCEDURE CONTABIL_NOTACRBC;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_NOTACRBC;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_NOTACRBC;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE CONTABIL_NOTACRBC;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE CONTABIL_NOTACRBC;
GRANT SELECT, REFERENCES ON INTERFAZ_BANCOS TO PROCEDURE CONTABIL_NOTACRBC;
GRANT SELECT, REFERENCES ON INTERFAZ_BANCOS_CTAS TO PROCEDURE CONTABIL_NOTACRBC;
GRANT SELECT, REFERENCES ON NOTAS_CREDITO TO PROCEDURE CONTABIL_NOTACRBC;
GRANT SELECT, REFERENCES ON PREFIJOS_BANCOS TO PROCEDURE CONTABIL_NOTACRBC;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_NOTACRBC;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_NOTACRBC;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_NOTACRCL;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_NOTACRCL;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE CONTABIL_NOTACRCL;
GRANT SELECT, REFERENCES ON INTERFAZ_CARTERA TO PROCEDURE CONTABIL_NOTACRCL;
GRANT SELECT ON INTERFAZ_CARTERA_CTAS TO PROCEDURE CONTABIL_NOTACRCL;
GRANT SELECT, REFERENCES ON NOTAS_CREDITO_CLIENTES TO PROCEDURE CONTABIL_NOTACRCL;
GRANT SELECT, REFERENCES ON PREFIJOS TO PROCEDURE CONTABIL_NOTACRCL;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE CONTABIL_NOTACRCL;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_NOTACRCL;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_NOTACRCL;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_NOTACRPR;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_NOTACRPR;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE CONTABIL_NOTACRPR;
GRANT SELECT, REFERENCES ON INTERFAZ_CXPAGAR TO PROCEDURE CONTABIL_NOTACRPR;
GRANT SELECT, REFERENCES ON INTERFAZ_CXPAGAR_CTAS TO PROCEDURE CONTABIL_NOTACRPR;
GRANT SELECT, REFERENCES ON NOTAS_CREDITO_PROVEEDOR TO PROCEDURE CONTABIL_NOTACRPR;
GRANT SELECT, REFERENCES ON PREFIJOS TO PROCEDURE CONTABIL_NOTACRPR;
GRANT SELECT, REFERENCES ON PROVEEDORES TO PROCEDURE CONTABIL_NOTACRPR;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE CONTABIL_NOTACRPR;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_NOTACRPR;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_NOTACRPR;
GRANT SELECT ON BANCOS TO PROCEDURE CONTABIL_NOTADBBC;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_NOTADBBC;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_NOTADBBC;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE CONTABIL_NOTADBBC;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE CONTABIL_NOTADBBC;
GRANT SELECT, REFERENCES ON INTERFAZ_BANCOS TO PROCEDURE CONTABIL_NOTADBBC;
GRANT SELECT, REFERENCES ON INTERFAZ_BANCOS_CTAS TO PROCEDURE CONTABIL_NOTADBBC;
GRANT SELECT, REFERENCES ON NOTAS_DEBITO TO PROCEDURE CONTABIL_NOTADBBC;
GRANT SELECT, REFERENCES ON PREFIJOS_BANCOS TO PROCEDURE CONTABIL_NOTADBBC;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_NOTADBBC;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_NOTADBBC;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_NOTADBCL;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_NOTADBCL;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE CONTABIL_NOTADBCL;
GRANT SELECT, REFERENCES ON INTERFAZ_CARTERA TO PROCEDURE CONTABIL_NOTADBCL;
GRANT SELECT ON INTERFAZ_CARTERA_CTAS TO PROCEDURE CONTABIL_NOTADBCL;
GRANT SELECT, REFERENCES ON NOTAS_DEBITO_CLIENTES TO PROCEDURE CONTABIL_NOTADBCL;
GRANT SELECT, REFERENCES ON PREFIJOS TO PROCEDURE CONTABIL_NOTADBCL;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE CONTABIL_NOTADBCL;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_NOTADBCL;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_NOTADBCL;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_NOTADBPR;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_NOTADBPR;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE CONTABIL_NOTADBPR;
GRANT INSERT ON ERRORES TO PROCEDURE CONTABIL_NOTADBPR;
GRANT SELECT, REFERENCES ON INTERFAZ_CXPAGAR TO PROCEDURE CONTABIL_NOTADBPR;
GRANT SELECT, REFERENCES ON INTERFAZ_CXPAGAR_CTAS TO PROCEDURE CONTABIL_NOTADBPR;
GRANT SELECT, REFERENCES ON NOTAS_CREDITO_PROVEEDOR TO PROCEDURE CONTABIL_NOTADBPR;
GRANT SELECT, REFERENCES ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE CONTABIL_NOTADBPR;
GRANT SELECT, REFERENCES ON PREFIJOS TO PROCEDURE CONTABIL_NOTADBPR;
GRANT SELECT, REFERENCES ON PROVEEDORES TO PROCEDURE CONTABIL_NOTADBPR;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE CONTABIL_NOTADBPR;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_NOTADBPR;
GRANT SELECT ON CAJAS TO PROCEDURE CONTABIL_PLANILLA;
GRANT SELECT ON CARGA_REMESA TO PROCEDURE CONTABIL_PLANILLA;
GRANT SELECT ON CONCEPTOS_PLANILLA TO PROCEDURE CONTABIL_PLANILLA;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_PLANILLA;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_PLANILLA;
GRANT SELECT ON CUENTAS TO PROCEDURE CONTABIL_PLANILLA;
GRANT SELECT ON FORMA_PAGO_REMESA TO PROCEDURE CONTABIL_PLANILLA;
GRANT SELECT ON INTERFAZ_TRANSPORTE TO PROCEDURE CONTABIL_PLANILLA;
GRANT SELECT ON PLANILLA_PASAJEROS TO PROCEDURE CONTABIL_PLANILLA;
GRANT SELECT ON PLANILLA_PASAJEROS_CON TO PROCEDURE CONTABIL_PLANILLA;
GRANT SELECT ON PLANILLA_PASAJEROS_DET TO PROCEDURE CONTABIL_PLANILLA;
GRANT SELECT ON PLANILLA_PASAJEROS_REM TO PROCEDURE CONTABIL_PLANILLA;
GRANT SELECT ON PREFIJOS TO PROCEDURE CONTABIL_PLANILLA;
GRANT SELECT ON TERCEROS TO PROCEDURE CONTABIL_PLANILLA;
GRANT SELECT ON TIQUETE_PASAJERO TO PROCEDURE CONTABIL_PLANILLA;
GRANT SELECT ON VEHICULOS TO PROCEDURE CONTABIL_PLANILLA;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_PLANILLA;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_PLANILLA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CONTABIL_PLANILLA;
GRANT EXECUTE ON PROCEDURE REDONDEE TO PROCEDURE CONTABIL_PLANILLA;
GRANT SELECT ON CLIENTES TO PROCEDURE CONTABIL_RECICAJA;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_RECICAJA;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_RECICAJA;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE CONTABIL_RECICAJA;
GRANT SELECT, REFERENCES ON FORMAS_PAGO TO PROCEDURE CONTABIL_RECICAJA;
GRANT SELECT, REFERENCES ON INTERFAZ_CAJA TO PROCEDURE CONTABIL_RECICAJA;
GRANT SELECT, REFERENCES ON INTERFAZ_CAJA_CTAS TO PROCEDURE CONTABIL_RECICAJA;
GRANT SELECT, REFERENCES ON PREFIJOS TO PROCEDURE CONTABIL_RECICAJA;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA TO PROCEDURE CONTABIL_RECICAJA;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA_DETALLE TO PROCEDURE CONTABIL_RECICAJA;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA_PAGO TO PROCEDURE CONTABIL_RECICAJA;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE CONTABIL_RECICAJA;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_RECICAJA;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_RECICAJA;
GRANT SELECT ON CAJAS TO PROCEDURE CONTABIL_REMESA;
GRANT SELECT ON CARGA_REMESA TO PROCEDURE CONTABIL_REMESA;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_REMESA;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_REMESA;
GRANT SELECT ON CUENTAS TO PROCEDURE CONTABIL_REMESA;
GRANT SELECT ON FORMA_PAGO_REMESA TO PROCEDURE CONTABIL_REMESA;
GRANT SELECT ON INTERFAZ_TRANSPORTE TO PROCEDURE CONTABIL_REMESA;
GRANT SELECT ON PREFIJOS TO PROCEDURE CONTABIL_REMESA;
GRANT SELECT ON TERCEROS TO PROCEDURE CONTABIL_REMESA;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_REMESA;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_REMESA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CONTABIL_REMESA;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_RETIRO;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_RETIRO;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE CONTABIL_RETIRO;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE CONTABIL_RETIRO;
GRANT SELECT, REFERENCES ON INTERFAZ_BANCOS TO PROCEDURE CONTABIL_RETIRO;
GRANT SELECT, REFERENCES ON INTERFAZ_BANCOS_CTAS TO PROCEDURE CONTABIL_RETIRO;
GRANT SELECT, REFERENCES ON PREFIJOS_BANCOS TO PROCEDURE CONTABIL_RETIRO;
GRANT SELECT, REFERENCES ON RETIROS TO PROCEDURE CONTABIL_RETIRO;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_RETIRO;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_RETIRO;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE CONTABIL_SALIDA;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE CONTABIL_SALIDA;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_SALIDA;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_SALIDA;
GRANT SELECT, REFERENCES ON CONTABIL_ARTICULO TO PROCEDURE CONTABIL_SALIDA;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE CONTABIL_SALIDA;
GRANT SELECT, REFERENCES ON INTERFAZ_INVENTARIO TO PROCEDURE CONTABIL_SALIDA;
GRANT SELECT ON INTERFAZ_INVENTARIO_CTAS TO PROCEDURE CONTABIL_SALIDA;
GRANT SELECT ON PREFIJOS TO PROCEDURE CONTABIL_SALIDA;
GRANT SELECT ON PROVEEDORES TO PROCEDURE CONTABIL_SALIDA;
GRANT SELECT, REFERENCES ON SALIDAS TO PROCEDURE CONTABIL_SALIDA;
GRANT SELECT, REFERENCES ON SALIDAS_DETALLE TO PROCEDURE CONTABIL_SALIDA;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE CONTABIL_SALIDA;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE CONTABIL_SALIDA;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_SALIDA;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_SALIDA;
GRANT SELECT ON BANCOS TO PROCEDURE CONTABIL_TRASCUENTA;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_TRASCUENTA;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_TRASCUENTA;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE CONTABIL_TRASCUENTA;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE CONTABIL_TRASCUENTA;
GRANT SELECT, REFERENCES ON INTERFAZ_BANCOS TO PROCEDURE CONTABIL_TRASCUENTA;
GRANT SELECT, REFERENCES ON INTERFAZ_BANCOS_CTAS TO PROCEDURE CONTABIL_TRASCUENTA;
GRANT SELECT, REFERENCES ON PREFIJOS_BANCOS TO PROCEDURE CONTABIL_TRASCUENTA;
GRANT SELECT, REFERENCES ON TRASLADOS TO PROCEDURE CONTABIL_TRASCUENTA;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_TRASCUENTA;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_TRASCUENTA;
GRANT SELECT ON CAJAS TO PROCEDURE CONTABIL_TRASLACAJA;
GRANT SELECT, INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_TRASLACAJA;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_TRASLACAJA;
GRANT SELECT ON CUENTAS TO PROCEDURE CONTABIL_TRASLACAJA;
GRANT SELECT ON INTERFAZ_CAJA TO PROCEDURE CONTABIL_TRASLACAJA;
GRANT SELECT ON INTERFAZ_CAJA_CTAS TO PROCEDURE CONTABIL_TRASLACAJA;
GRANT SELECT ON PREFIJOS TO PROCEDURE CONTABIL_TRASLACAJA;
GRANT SELECT ON TRASLADOS_CAJA TO PROCEDURE CONTABIL_TRASLACAJA;
GRANT SELECT ON TRASLADOS_CAJA_DET TO PROCEDURE CONTABIL_TRASLACAJA;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_TRASLACAJA;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_TRASLACAJA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CONTABIL_TRASLACAJA;
GRANT SELECT ON ARTICULO TO PROCEDURE CONTABIL_TRASLAMERCANCIA;
GRANT SELECT ON BODEGA TO PROCEDURE CONTABIL_TRASLAMERCANCIA;
GRANT INSERT, DELETE ON CONTABILIZACION TO PROCEDURE CONTABIL_TRASLAMERCANCIA;
GRANT INSERT ON CONTABILIZACION_DET TO PROCEDURE CONTABIL_TRASLAMERCANCIA;
GRANT SELECT ON CONTABIL_ARTICULO TO PROCEDURE CONTABIL_TRASLAMERCANCIA;
GRANT SELECT ON CUENTAS TO PROCEDURE CONTABIL_TRASLAMERCANCIA;
GRANT SELECT ON INTERFAZ_INVENTARIO TO PROCEDURE CONTABIL_TRASLAMERCANCIA;
GRANT SELECT ON INTERFAZ_INVENTARIO_CTAS TO PROCEDURE CONTABIL_TRASLAMERCANCIA;
GRANT SELECT ON PREFIJOS TO PROCEDURE CONTABIL_TRASLAMERCANCIA;
GRANT SELECT ON PROVEEDORES TO PROCEDURE CONTABIL_TRASLAMERCANCIA;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE CONTABIL_TRASLAMERCANCIA;
GRANT SELECT ON TERCEROS TO PROCEDURE CONTABIL_TRASLAMERCANCIA;
GRANT SELECT ON TRASFERENCIAS TO PROCEDURE CONTABIL_TRASLAMERCANCIA;
GRANT SELECT ON TRASFERENCIAS_DETALLE TO PROCEDURE CONTABIL_TRASLAMERCANCIA;
GRANT EXECUTE ON PROCEDURE ERROR TO PROCEDURE CONTABIL_TRASLAMERCANCIA;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE CONTABIL_TRASLAMERCANCIA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CONTABIL_TRASLAMERCANCIA;
GRANT SELECT, INSERT ON INTERFAZ_BANCOS TO PROCEDURE COPIA_INTERFAZ_BANCOS;
GRANT SELECT ON PREFIJOS_BANCOS TO PROCEDURE COPIA_INTERFAZ_BANCOS;
GRANT SELECT, INSERT, DELETE ON LISTA_PRECIOS TO PROCEDURE COPIA_LISTA_PRECIOS;
GRANT SELECT, INSERT, DELETE ON PRECIOS_ARTICULO TO PROCEDURE COPIA_LISTA_PRECIOS;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE COSTO_EN_VENTAS;
GRANT SELECT, REFERENCES ON CONTABIL_ARTICULO TO PROCEDURE COSTO_EN_VENTAS;
GRANT SELECT, INSERT, DELETE ON COSTO_VENTAS TO PROCEDURE COSTO_EN_VENTAS;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE COSTO_EN_VENTAS;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE COSTO_EN_VENTAS;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE COSTO_EN_VENTAS;
GRANT SELECT, REFERENCES ON FACTURAS_DETALLE TO PROCEDURE COSTO_EN_VENTAS;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA TO PROCEDURE COSTO_EN_VENTAS;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA_DETALLE TO PROCEDURE COSTO_EN_VENTAS;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE COSTO_EN_VENTAS;
GRANT SELECT ON ARTICULO TO PROCEDURE COSTO_EN_VENTAS_CONTADO;
GRANT SELECT ON CONTABIL_ARTICULO TO PROCEDURE COSTO_EN_VENTAS_CONTADO;
GRANT SELECT, INSERT, DELETE ON COSTO_VENTAS TO PROCEDURE COSTO_EN_VENTAS_CONTADO;
GRANT SELECT ON FACTURAS TO PROCEDURE COSTO_EN_VENTAS_CONTADO;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE COSTO_EN_VENTAS_CONTADO;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE COSTO_EN_VENTAS_CONTADO;
GRANT SELECT ON COSTOS TO PROCEDURE COSTO_PROMEDIO;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE COSTO_PROMEDIO_UNIDAD;
GRANT EXECUTE ON PROCEDURE FACTOR_UNIDAD_CANT TO PROCEDURE COSTO_PROMEDIO_UNIDAD;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE COSTO_PROVEEDOR;
GRANT SELECT, REFERENCES ON PROVEEDOR_ARTICULO TO PROCEDURE COSTO_PROVEEDOR;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE COSTO_PROVEEDOR;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE COSTO_PROVEEDOR;
GRANT EXECUTE ON PROCEDURE ULTIMO_COSTO TO PROCEDURE COSTO_PROVEEDOR;
GRANT SELECT, INSERT ON CUENTAS TO PROCEDURE CREE_CUENTA_PUC;
GRANT SELECT ON PUC TO PROCEDURE CREE_CUENTA_PUC;
GRANT EXECUTE ON PROCEDURE CREE_CUENTA_PUC TO PROCEDURE CREE_CUENTA_PUC;
GRANT EXECUTE ON PROCEDURE PADRE TO PROCEDURE CREE_CUENTA_PUC;
GRANT EXECUTE ON PROCEDURE VALIDE_ESTRUCTURA TO PROCEDURE CREE_CUENTA_PUC;
GRANT SELECT, REFERENCES ON COMPROBANTE_DETALLE TO PROCEDURE CRONOLOGICO_CONTA;
GRANT SELECT, REFERENCES ON COMPROBANTE_ENCABEZADO TO PROCEDURE CRONOLOGICO_CONTA;
GRANT SELECT, REFERENCES ON TIPO_COMPROBANTE TO PROCEDURE CRONOLOGICO_CONTA;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE CUENTAS_ARTICULOS;
GRANT INSERT ON CONTABIL_ARTICULO TO PROCEDURE CUENTAS_ARTICULOS;
GRANT SELECT, REFERENCES ON GRUPO TO PROCEDURE CUENTAS_ARTICULOS;
GRANT SELECT ON CUENTAS TO PROCEDURE CUENTA_AFECTABLE;
GRANT EXECUTE ON PROCEDURE VALIDE_NIVEL TO PROCEDURE CUENTA_AFECTABLE;
GRANT SELECT ON CUENTAS_NIIF TO PROCEDURE CUENTA_INTERFAZ_NIIF;
GRANT EXECUTE ON PROCEDURE ERRORINT TO PROCEDURE CUENTA_INTERFAZ_NIIF;
GRANT SELECT, UPDATE ON CUENTAS TO PROCEDURE CUENTA_MAL_AFECTABLE;
GRANT SELECT ON CLIENTES TO PROCEDURE CUPO_DISPONIBLE;
GRANT EXECUTE ON PROCEDURE VENCIDO_CLIENTE TO PROCEDURE CUPO_DISPONIBLE;
GRANT SELECT, REFERENCES ON ANTICIPOS_PROVEEDOR TO PROCEDURE CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS TO PROCEDURE CXPAGAR_PROVEEDOR;
GRANT SELECT ON EGRESOS_DETALLE TO PROCEDURE CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRA TO PROCEDURE CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON MOVIMIENTO_PROVEEDOR TO PROCEDURE CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON NOTAS_CREDITO_PROVEEDOR TO PROCEDURE CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON SALDOS_DOC_CXPAGAR TO PROCEDURE CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE CXPAGAR_PROVEEDOR;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE CXPAGAR_PROVEEDOR;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CXPAGAR TO PROCEDURE CXPAGAR_PROVEEDOR;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE DESENSAMBLES_SIN_CONTABILIDAD;
GRANT SELECT ON DESENSAMBLES TO PROCEDURE DESENSAMBLES_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_INVENTARIO TO PROCEDURE DESENSAMBLES_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE DESENSAMBLES_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_DESENSAMBLE TO PROCEDURE DESENSAMBLES_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE DESENSAMBLES_SIN_CONTABILIDAD;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS TO PROCEDURE DETALLE_COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS_DET TO PROCEDURE DETALLE_COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRA TO PROCEDURE DETALLE_COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE DETALLE_COMPRAS_ARTICULO;
GRANT SELECT ON DEVOLUCIONES_COMPRAS TO PROCEDURE DETALLE_COMPRAS_PROVEEDOR;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE DETALLE_COMPRAS_PROVEEDOR;
GRANT EXECUTE ON PROCEDURE TOTAL_DOC_COMPRA TO PROCEDURE DETALLE_COMPRAS_PROVEEDOR;
GRANT SELECT ON ARTICULO TO PROCEDURE DETALLE_DEVOLUCIONES_POS;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE DETALLE_DEVOLUCIONES_POS;
GRANT SELECT ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE DETALLE_DEVOLUCIONES_POS;
GRANT SELECT ON FACTURAS TO PROCEDURE DETALLE_DEVOLUCIONES_POS;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE DETALLE_DEVOLUCIONES_POS;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE DETALLE_VENTAS_ARTICULO;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE DETALLE_VENTAS_ARTICULO;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE DETALLE_VENTAS_ARTICULO;
GRANT SELECT, REFERENCES ON FACTURAS_DETALLE TO PROCEDURE DETALLE_VENTAS_ARTICULO;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA TO PROCEDURE DETALLE_VENTAS_ARTICULO;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE DETALLE_VENTAS_ARTICULO_VEND;
GRANT SELECT ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE DETALLE_VENTAS_ARTICULO_VEND;
GRANT SELECT ON FACTURAS TO PROCEDURE DETALLE_VENTAS_ARTICULO_VEND;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE DETALLE_VENTAS_ARTICULO_VEND;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE DETALLE_VENTAS_CLIENTE;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE DETALLE_VENTAS_CLIENTE;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA TO PROCEDURE DETALLE_VENTAS_CLIENTE;
GRANT EXECUTE ON PROCEDURE TOTAL_DOC_VENTAS TO PROCEDURE DETALLE_VENTAS_CLIENTE;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE DETALLE_VENTAS_VENDEDOR;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE DETALLE_VENTAS_VENDEDOR;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA TO PROCEDURE DETALLE_VENTAS_VENDEDOR;
GRANT EXECUTE ON PROCEDURE TOTAL_DOC_VENTAS TO PROCEDURE DETALLE_VENTAS_VENDEDOR;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE DEVCOMPRA_SIN_CONTABILIDAD;
GRANT SELECT ON DEVOLUCIONES_COMPRAS TO PROCEDURE DEVCOMPRA_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_COMPRAS TO PROCEDURE DEVCOMPRA_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE DEVCOMPRA_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_DEVOLCOMP TO PROCEDURE DEVCOMPRA_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE DEVCOMPRA_SIN_CONTABILIDAD;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE DEVOLUCIONES_SIN_CONTABILIDAD;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE DEVOLUCIONES_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_VENTAS TO PROCEDURE DEVOLUCIONES_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE DEVOLUCIONES_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_DEVOLCLI TO PROCEDURE DEVOLUCIONES_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE DEVOLUCIONES_SIN_CONTABILIDAD;
GRANT SELECT ON AJUSTES TO PROCEDURE DIFERENCIAS_CONTEO;
GRANT SELECT ON AJUSTES_DETALLE TO PROCEDURE DIFERENCIAS_CONTEO;
GRANT SELECT ON ARTICULO TO PROCEDURE DIFERENCIAS_CONTEO;
GRANT SELECT ON ESTRUCTURA TO PROCEDURE DIGITOS_NIVEL;
GRANT EXECUTE ON PROCEDURE PROMEDIO_SALIDAS_ARTICULO TO PROCEDURE DISPONIBILIDAD_ARTICULO;
GRANT EXECUTE ON PROCEDURE SALDO_INVENTARIO TO PROCEDURE DISPONIBILIDAD_ARTICULO;
GRANT EXECUTE ON PROCEDURE PROMEDIO_TOTAL_ARTICULO TO PROCEDURE DISPONIBILIDAD_TOTAL_ARTICULO;
GRANT EXECUTE ON PROCEDURE SALDO_TOTAL_INVENTARIO TO PROCEDURE DISPONIBILIDAD_TOTAL_ARTICULO;
GRANT SELECT ON CONFIRMACION_DEPOSITO TO PROCEDURE DOCCOMPRA_X_IMPORT;
GRANT SELECT ON ORDEN_EMBARQUE TO PROCEDURE DOCCOMPRA_X_IMPORT;
GRANT SELECT ON SOLICITUD_IMPORTACION TO PROCEDURE DOCCOMPRA_X_IMPORT;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE DOCCOMPRA_X_IMPORT;
GRANT EXECUTE ON PROCEDURE TOTAL_DOC_IMPORT TO PROCEDURE DOCCOMPRA_X_IMPORT;
GRANT SELECT ON CONSOLIDE_FALTANTES TO PROCEDURE DOCCOMPRA_X_PROVEEDOR;
GRANT SELECT ON COTIZACIONES_PROVEEDOR_DET TO PROCEDURE DOCCOMPRA_X_PROVEEDOR;
GRANT SELECT, REFERENCES ON COTIZACION_PROVEEDOR TO PROCEDURE DOCCOMPRA_X_PROVEEDOR;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS TO PROCEDURE DOCCOMPRA_X_PROVEEDOR;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRA TO PROCEDURE DOCCOMPRA_X_PROVEEDOR;
GRANT SELECT ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE DOCCOMPRA_X_PROVEEDOR;
GRANT SELECT, REFERENCES ON ORDENES_COMPRA TO PROCEDURE DOCCOMPRA_X_PROVEEDOR;
GRANT SELECT ON ORDENES_COMPRA_DETALLE TO PROCEDURE DOCCOMPRA_X_PROVEEDOR;
GRANT SELECT, REFERENCES ON REMISION_PROVEEDOR TO PROCEDURE DOCCOMPRA_X_PROVEEDOR;
GRANT SELECT ON REMISION_PROVEEDOR_DET TO PROCEDURE DOCCOMPRA_X_PROVEEDOR;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE DOCCOMPRA_X_PROVEEDOR;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE DOCCOMPRA_X_PROVEEDOR;
GRANT EXECUTE ON PROCEDURE TOTAL_DOC_COMPRA TO PROCEDURE DOCCOMPRA_X_PROVEEDOR;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE DOCUMENTOS_INTERFAZ_SIN_CUENTAS;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE DOCUMENTOS_INTERFAZ_SIN_CUENTAS;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE DOCUMENTOS_INTERFAZ_SIN_CUENTAS;
GRANT SELECT ON AJUSTES TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON APLICACION_CLIENTE TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON APLICACION_PROVEDOR TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON AUTORIZACIONES TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON CONSIGNA TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON CONSIGNA_TARJETAS TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON DESENSAMBLES TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON DEVOLUCIONES_COMPRAS TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON DEVOLUCION_CHEQUES TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON EGRESOS TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON ENSAMBLES TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON ENTRADAS TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON FACTURAS TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON NOTAS_CREDITO TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON NOTAS_CREDITO_CLIENTES TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON NOTAS_CREDITO_PROVEEDOR TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON NOTAS_DEBITO TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON NOTAS_DEBITO_CLIENTES TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON RECIBOS_CAJA TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON SALIDAS TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON TRASFERENCIAS TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON TRASLADOS TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON TRASLADOS_CAJA TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR;
GRANT SELECT ON CONSOLIDE_FALTANTES TO PROCEDURE DOCVENTAS_X_CLIENTE;
GRANT SELECT, REFERENCES ON COTIZACIONES TO PROCEDURE DOCVENTAS_X_CLIENTE;
GRANT SELECT ON COTIZACIONES_DETALLE TO PROCEDURE DOCVENTAS_X_CLIENTE;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE DOCVENTAS_X_CLIENTE;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE DOCVENTAS_X_CLIENTE;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE DOCVENTAS_X_CLIENTE;
GRANT SELECT, REFERENCES ON PEDIDOS TO PROCEDURE DOCVENTAS_X_CLIENTE;
GRANT SELECT ON PEDIDOS_DETALLE TO PROCEDURE DOCVENTAS_X_CLIENTE;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA TO PROCEDURE DOCVENTAS_X_CLIENTE;
GRANT SELECT ON REMISIONES_VENTA_DETALLE TO PROCEDURE DOCVENTAS_X_CLIENTE;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE DOCVENTAS_X_CLIENTE;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE DOCVENTAS_X_CLIENTE;
GRANT EXECUTE ON PROCEDURE TOTAL_DOC_VENTAS TO PROCEDURE DOCVENTAS_X_CLIENTE;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE EGRESOS_SIN_CONTABILIDAD;
GRANT SELECT ON EGRESOS TO PROCEDURE EGRESOS_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_CAJA TO PROCEDURE EGRESOS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE EGRESOS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_EGRESO TO PROCEDURE EGRESOS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE EGRESOS_SIN_CONTABILIDAD;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE ENSAMBLES_SIN_CONTABILIDAD;
GRANT SELECT ON ENSAMBLES TO PROCEDURE ENSAMBLES_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_INVENTARIO TO PROCEDURE ENSAMBLES_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE ENSAMBLES_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_ENSAMBLE TO PROCEDURE ENSAMBLES_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE ENSAMBLES_SIN_CONTABILIDAD;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE ENTRADAS_SIN_CONTABILIDAD;
GRANT SELECT ON ENTRADAS TO PROCEDURE ENTRADAS_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_INVENTARIO TO PROCEDURE ENTRADAS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE ENTRADAS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_ENTRADA TO PROCEDURE ENTRADAS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE ENTRADAS_SIN_CONTABILIDAD;
GRANT INSERT ON ERRORES TO PROCEDURE ERROR;
GRANT EXECUTE ON PROCEDURE ESTADISTICA_VENTAS_VENDEDOR_MES TO PROCEDURE ESTADISTICA_VENTAS_VENDEDOR_ANO;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE ESTADISTICA_VENTAS_VENDEDOR_MES;
GRANT SELECT ON DEVOLUCION_CHEQUES TO PROCEDURE ESTADISTICA_VENTAS_VENDEDOR_MES;
GRANT SELECT ON FACTURAS TO PROCEDURE ESTADISTICA_VENTAS_VENDEDOR_MES;
GRANT SELECT ON MOVIMIENTO_CLIENTES TO PROCEDURE ESTADISTICA_VENTAS_VENDEDOR_MES;
GRANT SELECT ON NOTAS_CREDITO_CLIENTES TO PROCEDURE ESTADISTICA_VENTAS_VENDEDOR_MES;
GRANT SELECT ON NOTAS_DEBITO_CLIENTES TO PROCEDURE ESTADISTICA_VENTAS_VENDEDOR_MES;
GRANT SELECT ON PREFIJOS TO PROCEDURE ESTADISTICA_VENTAS_VENDEDOR_MES;
GRANT SELECT ON RECIBOS_CAJA TO PROCEDURE ESTADISTICA_VENTAS_VENDEDOR_MES;
GRANT SELECT ON RECIBOS_CAJA_DETALLE TO PROCEDURE ESTADISTICA_VENTAS_VENDEDOR_MES;
GRANT SELECT ON SUCURSALES TO PROCEDURE ESTADISTICA_VENTAS_VENDEDOR_MES;
GRANT SELECT ON VENDEDORES TO PROCEDURE ESTADISTICA_VENTAS_VENDEDOR_MES;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA TO PROCEDURE ESTADISTICA_VENTAS_VENDEDOR_MES;
GRANT SELECT, REFERENCES ON COMPROBANTE_DETALLE TO PROCEDURE ESTADO_FLUJO_EFECTIVO;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE ESTADO_FLUJO_EFECTIVO;
GRANT SELECT, REFERENCES ON FLUJO_EFECTIVO TO PROCEDURE ESTADO_FLUJO_EFECTIVO;
GRANT SELECT ON CUENTAS TO PROCEDURE ES_AFECTABLE;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE EXISTENCIAS;
GRANT SELECT, REFERENCES ON EXISTENCIA TO PROCEDURE EXISTENCIAS;
GRANT EXECUTE ON PROCEDURE SALDO_INVENTARIO TO PROCEDURE EXISTENCIAS;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE EXISTENCIAS_BAJO_MINIMO;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE EXISTENCIAS_BAJO_MINIMO;
GRANT SELECT, REFERENCES ON EXISTENCIA TO PROCEDURE EXISTENCIAS_BAJO_MINIMO;
GRANT SELECT ON GRUPO TO PROCEDURE EXISTENCIAS_BAJO_MINIMO;
GRANT SELECT ON MARCAS TO PROCEDURE EXISTENCIAS_BAJO_MINIMO;
GRANT SELECT, REFERENCES ON MOVIMIENTO_ARTICULO TO PROCEDURE EXISTENCIAS_BAJO_MINIMO;
GRANT SELECT ON SUBGRUPO TO PROCEDURE EXISTENCIAS_BAJO_MINIMO;
GRANT EXECUTE ON PROCEDURE SALDO_INICIAL_INVENTARIO TO PROCEDURE EXISTENCIAS_BAJO_MINIMO;
GRANT EXECUTE ON PROCEDURE ULTIMO_COSTO TO PROCEDURE EXISTENCIAS_BAJO_MINIMO;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT SELECT, REFERENCES ON EXISTENCIA TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT SELECT ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT SELECT ON ORDENES_COMPRA TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT SELECT ON ORDENES_COMPRA_DETALLE TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT SELECT, REFERENCES ON ORDENES_INVENTARIO TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT SELECT, REFERENCES ON ORDENINVENTARIO_DETALLE TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT SELECT ON PEDIDOS TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT SELECT ON PEDIDOS_DETALLE TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT SELECT ON PUNTO_VENTA TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT SELECT, REFERENCES ON RESERVAS TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT SELECT, REFERENCES ON RESERVAS_DETALLE TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT EXECUTE ON PROCEDURE FACTOR_UNIDAD_CANT TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT EXECUTE ON PROCEDURE PROMEDIO_SALIDAS_ARTICULO TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT EXECUTE ON PROCEDURE SALDO_INVENTARIO TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT EXECUTE ON PROCEDURE VENTAS_ARTICULO TO PROCEDURE EXISTENCIAS_COMPRAS;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT ON BARRAS_ARTICULO TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT, REFERENCES ON EXISTENCIA TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT, REFERENCES ON GRUPO TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT ON LOTES TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT, REFERENCES ON MARCAS TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT, REFERENCES ON MOVIMIENTO_ARTICULO TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT, REFERENCES ON ORDENES_COMPRA TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT, REFERENCES ON ORDENES_COMPRA_DETALLE TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT, REFERENCES ON ORDENES_INVENTARIO TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT, REFERENCES ON ORDENINVENTARIO_DETALLE TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT, REFERENCES ON PEDIDOS TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT, REFERENCES ON PEDIDOS_DETALLE TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT ON PUNTO_VENTA TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT, REFERENCES ON RESERVAS TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT, REFERENCES ON RESERVAS_DETALLE TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT, REFERENCES ON SUBGRUPO TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO_UNIDAD TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT EXECUTE ON PROCEDURE SALDO_INICIAL_INVENTARIO TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT EXECUTE ON PROCEDURE SALDO_INICIAL_TOTAL_INV TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT EXECUTE ON PROCEDURE ULTIMO_COSTO TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT EXECUTE ON PROCEDURE VALOR_INICIAL_INVENTARIO TO PROCEDURE EXISTENCIAS_DESDE_HASTA;
GRANT SELECT ON ARTICULO TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON AUDITORIA TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON BARRAS_ARTICULO TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON ENTRADAS TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON ENTRADAS_DETALLE TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON FACTURAS TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT, UPDATE ON LOG_EXISTENCIAS_Q TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON MOVIMIENTO_ARTICULO TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON PEDIDOS TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON PEDIDOS_DETALLE TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON REMISIONES_VENTA TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON REMISIONES_VENTA_DETALLE TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON REMISION_PROVEEDOR TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON REMISION_PROVEEDOR_DET TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON SALIDAS TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON SALIDAS_DETALLE TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT ON UNIDAD_ARTICULO TO PROCEDURE EXISTENCIAS_QUQO;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE EXISTENCIAS_QUQO;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE EXISTENCIAS_QUQO;
GRANT EXECUTE ON PROCEDURE TOTAL_INVENTARIO_FACTURABLE TO PROCEDURE EXISTENCIAS_QUQO;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE EXISTENCIAS_UNIDAD;
GRANT SELECT, REFERENCES ON EXISTENCIA TO PROCEDURE EXISTENCIAS_UNIDAD;
GRANT SELECT ON ORDENES_COMPRA TO PROCEDURE EXISTENCIAS_UNIDAD;
GRANT SELECT ON ORDENES_COMPRA_DETALLE TO PROCEDURE EXISTENCIAS_UNIDAD;
GRANT SELECT, REFERENCES ON ORDENES_INVENTARIO TO PROCEDURE EXISTENCIAS_UNIDAD;
GRANT SELECT, REFERENCES ON ORDENINVENTARIO_DETALLE TO PROCEDURE EXISTENCIAS_UNIDAD;
GRANT SELECT ON PEDIDOS TO PROCEDURE EXISTENCIAS_UNIDAD;
GRANT SELECT ON PEDIDOS_DETALLE TO PROCEDURE EXISTENCIAS_UNIDAD;
GRANT SELECT ON PUNTO_VENTA TO PROCEDURE EXISTENCIAS_UNIDAD;
GRANT SELECT, REFERENCES ON RESERVAS TO PROCEDURE EXISTENCIAS_UNIDAD;
GRANT SELECT, REFERENCES ON RESERVAS_DETALLE TO PROCEDURE EXISTENCIAS_UNIDAD;
GRANT EXECUTE ON PROCEDURE FACTOR_UNIDAD_CANT TO PROCEDURE EXISTENCIAS_UNIDAD;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE EXISTENCIAS_UNIDAD;
GRANT EXECUTE ON PROCEDURE SALDO_INVENTARIO TO PROCEDURE EXISTENCIAS_UNIDAD;
GRANT SELECT ON CENTROS TO PROCEDURE EXISTE_CENTRO;
GRANT SELECT ON CUENTAS TO PROCEDURE EXISTE_CUENTA;
GRANT SELECT ON TERCEROS TO PROCEDURE EXISTE_TERCERO;
GRANT SELECT ON TERCEROS TO PROCEDURE EXPORTAR_CLIENTES_MEDICOXRAVEN;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE EXPORTA_FACTURAS;
GRANT SELECT, REFERENCES ON CONTABIL_ARTICULO TO PROCEDURE EXPORTA_FACTURAS;
GRANT SELECT, REFERENCES ON COSTO_VENTAS TO PROCEDURE EXPORTA_FACTURAS;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE EXPORTA_FACTURAS;
GRANT SELECT, REFERENCES ON FACTURAS_DETALLE TO PROCEDURE EXPORTA_FACTURAS;
GRANT SELECT, REFERENCES ON INTERFAZ_VENTAS TO PROCEDURE EXPORTA_FACTURAS;
GRANT SELECT, REFERENCES ON PREFIJOS TO PROCEDURE EXPORTA_FACTURAS;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE EXPORTA_FACTURAS;
GRANT EXECUTE ON PROCEDURE COSTO_EN_VENTAS TO PROCEDURE EXPORTA_FACTURAS;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE EXPORTA_FACTURAS;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE FACTCOMP_SIN_CONTABILIDAD;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE FACTCOMP_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_COMPRAS TO PROCEDURE FACTCOMP_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE FACTCOMP_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_FACTCOMP TO PROCEDURE FACTCOMP_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE FACTCOMP_SIN_CONTABILIDAD;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE FACTOR_UNIDAD_CANT;
GRANT INSERT ON ERRORES TO PROCEDURE FACTOR_UNIDAD_CANT;
GRANT SELECT, REFERENCES ON UNIDAD_ARTICULO TO PROCEDURE FACTOR_UNIDAD_CANT;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE FACTOR_UNIDAD_PRE;
GRANT SELECT, REFERENCES ON UNIDAD_ARTICULO TO PROCEDURE FACTOR_UNIDAD_PRE;
GRANT SELECT ON AUTORIZACIONES TO PROCEDURE FACTURAR_REMISION;
GRANT SELECT ON CLIENTES TO PROCEDURE FACTURAR_REMISION;
GRANT SELECT ON CONSOLIDADO_FALTANTES TO PROCEDURE FACTURAR_REMISION;
GRANT INSERT ON CONSOLIDE_FALTANTES TO PROCEDURE FACTURAR_REMISION;
GRANT SELECT, INSERT, UPDATE ON FACTURAS TO PROCEDURE FACTURAR_REMISION;
GRANT SELECT, INSERT ON FACTURAS_DETALLE TO PROCEDURE FACTURAR_REMISION;
GRANT SELECT ON INTERFAZ_VENTAS TO PROCEDURE FACTURAR_REMISION;
GRANT SELECT ON PREFIJOS TO PROCEDURE FACTURAR_REMISION;
GRANT SELECT ON REMISIONES_VENTA TO PROCEDURE FACTURAR_REMISION;
GRANT SELECT ON REMISIONES_VENTA_DETALLE TO PROCEDURE FACTURAR_REMISION;
GRANT EXECUTE ON PROCEDURE CONSOLIDE_PENDIENTES TO PROCEDURE FACTURAR_REMISION;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE FACTURAR_REMISION;
GRANT EXECUTE ON PROCEDURE CONTABIL_FACTURA TO PROCEDURE FACTURAR_REMISION;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE FACTURAR_REMISION;
GRANT EXECUTE ON PROCEDURE REDONDEE TO PROCEDURE FACTURAR_REMISION;
GRANT EXECUTE ON PROCEDURE REGISTRA_RECIBO_FACTURA TO PROCEDURE FACTURAR_REMISION;
GRANT SELECT ON CONSOLIDADO_FALTANTES TO PROCEDURE FACTURAR_REMISIONES;
GRANT SELECT ON REMISIONES_VENTA TO PROCEDURE FACTURAR_REMISIONES;
GRANT EXECUTE ON PROCEDURE FACTURAR_REMISION TO PROCEDURE FACTURAR_REMISIONES;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE FACTURAS_SIN_CONTABILIDAD;
GRANT SELECT ON FACTURAS TO PROCEDURE FACTURAS_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_VENTAS TO PROCEDURE FACTURAS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE FACTURAS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_FACTURA TO PROCEDURE FACTURAS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE FACTURAS_SIN_CONTABILIDAD;
GRANT SELECT, UPDATE ON FACTURAS_DETALLE TO PROCEDURE FACTURAS_SIN_MOV;
GRANT SELECT ON MOVIMIENTO_ARTICULO TO PROCEDURE FACTURAS_SIN_MOV;
GRANT SELECT ON CONSOLIDADO_FALTANTES TO PROCEDURE FALTANTE;
GRANT SELECT ON COTIZACIONES_DETALLE TO PROCEDURE FALTANTE;
GRANT SELECT ON COTIZACIONES_PROVEEDOR_DET TO PROCEDURE FALTANTE;
GRANT SELECT ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE FALTANTE;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE FALTANTE;
GRANT SELECT ON ORDENES_COMPRA_DETALLE TO PROCEDURE FALTANTE;
GRANT SELECT ON PEDIDOS_DETALLE TO PROCEDURE FALTANTE;
GRANT SELECT ON REMISIONES_VENTA_DETALLE TO PROCEDURE FALTANTE;
GRANT SELECT ON REMISION_PROVEEDOR_DET TO PROCEDURE FALTANTE;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE FALTANTES_COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON COTIZACIONES_PROVEEDOR_DET TO PROCEDURE FALTANTES_COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON COTIZACION_PROVEEDOR TO PROCEDURE FALTANTES_COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS TO PROCEDURE FALTANTES_COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS_DET TO PROCEDURE FALTANTES_COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRA TO PROCEDURE FALTANTES_COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE FALTANTES_COMPRAS_ARTICULO;
GRANT SELECT ON GRUPO TO PROCEDURE FALTANTES_COMPRAS_ARTICULO;
GRANT SELECT ON MARCAS TO PROCEDURE FALTANTES_COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON ORDENES_COMPRA TO PROCEDURE FALTANTES_COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON ORDENES_COMPRA_DETALLE TO PROCEDURE FALTANTES_COMPRAS_ARTICULO;
GRANT SELECT ON PREFIJOS TO PROCEDURE FALTANTES_COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON REMISION_PROVEEDOR TO PROCEDURE FALTANTES_COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON REMISION_PROVEEDOR_DET TO PROCEDURE FALTANTES_COMPRAS_ARTICULO;
GRANT SELECT ON SUBGRUPO TO PROCEDURE FALTANTES_COMPRAS_ARTICULO;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE FALTANTES_COMPRAS_ARTICULO;
GRANT SELECT ON ARTICULO TO PROCEDURE FALTANTES_VENTAS_ARTICULO;
GRANT SELECT ON COTIZACIONES TO PROCEDURE FALTANTES_VENTAS_ARTICULO;
GRANT SELECT ON COTIZACIONES_DETALLE TO PROCEDURE FALTANTES_VENTAS_ARTICULO;
GRANT SELECT ON FACTURAS TO PROCEDURE FALTANTES_VENTAS_ARTICULO;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE FALTANTES_VENTAS_ARTICULO;
GRANT SELECT ON GRUPO TO PROCEDURE FALTANTES_VENTAS_ARTICULO;
GRANT SELECT ON MARCAS TO PROCEDURE FALTANTES_VENTAS_ARTICULO;
GRANT SELECT ON PEDIDOS TO PROCEDURE FALTANTES_VENTAS_ARTICULO;
GRANT SELECT ON PEDIDOS_DETALLE TO PROCEDURE FALTANTES_VENTAS_ARTICULO;
GRANT SELECT ON PREFIJOS TO PROCEDURE FALTANTES_VENTAS_ARTICULO;
GRANT SELECT ON REMISIONES_VENTA TO PROCEDURE FALTANTES_VENTAS_ARTICULO;
GRANT SELECT ON REMISIONES_VENTA_DETALLE TO PROCEDURE FALTANTES_VENTAS_ARTICULO;
GRANT SELECT ON SUBGRUPO TO PROCEDURE FALTANTES_VENTAS_ARTICULO;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE FALTANTES_VENTAS_ARTICULO;
GRANT SELECT ON COTIZACIONES_DETALLE TO PROCEDURE FALTANTE_DOCUMENTO;
GRANT SELECT ON COTIZACIONES_PROVEEDOR_DET TO PROCEDURE FALTANTE_DOCUMENTO;
GRANT SELECT ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE FALTANTE_DOCUMENTO;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE FALTANTE_DOCUMENTO;
GRANT SELECT ON ORDENES_COMPRA_DETALLE TO PROCEDURE FALTANTE_DOCUMENTO;
GRANT SELECT ON PEDIDOS_DETALLE TO PROCEDURE FALTANTE_DOCUMENTO;
GRANT SELECT ON REMISIONES_VENTA_DETALLE TO PROCEDURE FALTANTE_DOCUMENTO;
GRANT SELECT ON REMISION_PROVEEDOR_DET TO PROCEDURE FALTANTE_DOCUMENTO;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE FALTANTE_DOCUMENTO;
GRANT SELECT ON LOTES TO PROCEDURE FECHAS_ANTERIORES_LOTE;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA_CONTA TO PROCEDURE FECHA_Y_NUMERO_CONTA;
GRANT EXECUTE ON PROCEDURE DIAS_MES TO PROCEDURE FECHA_Y_NUMERO_CONTA;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA_CONTA TO PROCEDURE FIN_DE_MES;
GRANT EXECUTE ON PROCEDURE DIAS_MES TO PROCEDURE FIN_DE_MES;
GRANT SELECT ON ARTICULO TO PROCEDURE FORMULA_PRECIOS;
GRANT SELECT ON LISTA_PRECIOS TO PROCEDURE FORMULA_PRECIOS;
GRANT SELECT, UPDATE ON PRECIOS_ARTICULO TO PROCEDURE FORMULA_PRECIOS;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE FORMULA_PRECIOS;
GRANT EXECUTE ON PROCEDURE REDONDEE TO PROCEDURE FORMULA_PRECIOS;
GRANT SELECT ON EMPLEADOS TO PROCEDURE IBC_EMPLEADO;
GRANT SELECT ON MOVIMIENTO_SALARIO_EMPLEADO TO PROCEDURE IBC_EMPLEADO;
GRANT EXECUTE ON PROCEDURE FECHA_FINAL_PERIODO_PAGO TO PROCEDURE IBC_EMPLEADO;
GRANT EXECUTE ON PROCEDURE FECHA_INICIAL_PERIODO_PAGO TO PROCEDURE IBC_EMPLEADO;
GRANT SELECT, REFERENCES ON AJUSTES TO PROCEDURE IMPR_AJUSTE;
GRANT SELECT, REFERENCES ON AJUSTES_DETALLE TO PROCEDURE IMPR_AJUSTE;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_AJUSTE;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE IMPR_AJUSTE;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE IMPR_AJUSTE;
GRANT SELECT, REFERENCES ON ANTICIPOS_CLIENTE TO PROCEDURE IMPR_ANTICLIE;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE IMPR_ANTICLIE;
GRANT SELECT, REFERENCES ON COBRADORES TO PROCEDURE IMPR_ANTICLIE;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_ANTICLIE;
GRANT SELECT, REFERENCES ON ZONAS TO PROCEDURE IMPR_ANTICLIE;
GRANT SELECT ON ANTICIPOS_PROVEEDOR TO PROCEDURE IMPR_ANTIPROV;
GRANT SELECT ON PROVEEDORES TO PROCEDURE IMPR_ANTIPROV;
GRANT SELECT ON TERCEROS TO PROCEDURE IMPR_ANTIPROV;
GRANT SELECT, REFERENCES ON APLICACION_CLIENTE TO PROCEDURE IMPR_APLICLIE;
GRANT SELECT, REFERENCES ON APLICACION_CLIENTE_DETALLE TO PROCEDURE IMPR_APLICLIE;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE IMPR_APLICLIE;
GRANT SELECT, REFERENCES ON COBRADORES TO PROCEDURE IMPR_APLICLIE;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_APLICLIE;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE IMPR_APLICLIE;
GRANT SELECT, REFERENCES ON ZONAS TO PROCEDURE IMPR_APLICLIE;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CARTERA TO PROCEDURE IMPR_APLICLIE;
GRANT SELECT, REFERENCES ON APLICACION_PROVEDOR TO PROCEDURE IMPR_APLIPROV;
GRANT SELECT, REFERENCES ON APLICACION_PROVEEDOR_DETALLE TO PROCEDURE IMPR_APLIPROV;
GRANT SELECT, REFERENCES ON PROVEEDORES TO PROCEDURE IMPR_APLIPROV;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_APLIPROV;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE IMPR_APLIPROV;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CARTERA TO PROCEDURE IMPR_APLIPROV;
GRANT SELECT ON ARQUEO_CAJA TO PROCEDURE IMPR_ARQUEO;
GRANT SELECT ON ARQUEO_CAJA_DET TO PROCEDURE IMPR_ARQUEO;
GRANT SELECT ON DENOMINACIONES TO PROCEDURE IMPR_ARQUEO;
GRANT SELECT ON CAJAS TO PROCEDURE IMPR_CAMBDOCU;
GRANT SELECT ON CAMBIODOC_ENTRADAS TO PROCEDURE IMPR_CAMBDOCU;
GRANT SELECT ON CAMBIO_DOCUMENTOS TO PROCEDURE IMPR_CAMBDOCU;
GRANT SELECT ON FORMAS_PAGO TO PROCEDURE IMPR_CAMBDOCU;
GRANT SELECT ON ACTIVOS_FIJOS TO PROCEDURE IMPR_COMPROBANTE;
GRANT SELECT ON ARTICULO TO PROCEDURE IMPR_COMPROBANTE;
GRANT SELECT, REFERENCES ON CENTROS TO PROCEDURE IMPR_COMPROBANTE;
GRANT SELECT, REFERENCES ON COMPROBANTE_DETALLE TO PROCEDURE IMPR_COMPROBANTE;
GRANT SELECT, REFERENCES ON COMPROBANTE_ENCABEZADO TO PROCEDURE IMPR_COMPROBANTE;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE IMPR_COMPROBANTE;
GRANT SELECT, REFERENCES ON PROYECTOS TO PROCEDURE IMPR_COMPROBANTE;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_COMPROBANTE;
GRANT SELECT, REFERENCES ON TIPO_COMPROBANTE TO PROCEDURE IMPR_COMPROBANTE;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE IMPR_COMPROBANTE;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE IMPR_COMPROBANTE;
GRANT SELECT, REFERENCES ON BANCOS TO PROCEDURE IMPR_CONSIGNA;
GRANT SELECT, REFERENCES ON CAJAS TO PROCEDURE IMPR_CONSIGNA;
GRANT SELECT, REFERENCES ON CONSIGNA TO PROCEDURE IMPR_CONSIGNA;
GRANT SELECT, REFERENCES ON CONSIGNA_DETALLE TO PROCEDURE IMPR_CONSIGNA;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE IMPR_CONSIGNA;
GRANT SELECT, REFERENCES ON FORMAS_PAGO TO PROCEDURE IMPR_CONSIGNA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE IMPR_CONSIGNA;
GRANT SELECT ON BANCOS TO PROCEDURE IMPR_CONSIGNATAR;
GRANT SELECT ON CAJAS TO PROCEDURE IMPR_CONSIGNATAR;
GRANT SELECT ON CONSIGNA_TARJETAS TO PROCEDURE IMPR_CONSIGNATAR;
GRANT SELECT ON CONSIGNA_TARJETAS_DET TO PROCEDURE IMPR_CONSIGNATAR;
GRANT SELECT ON CUENTAS_BANCO TO PROCEDURE IMPR_CONSIGNATAR;
GRANT SELECT ON FORMAS_PAGO TO PROCEDURE IMPR_CONSIGNATAR;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE IMPR_CONTABILIZACION;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE IMPR_CONTABILIZACION;
GRANT SELECT ON CONTABILIZACION TO PROCEDURE IMPR_CONTABILIZACION;
GRANT SELECT ON CONTABILIZACION_DET TO PROCEDURE IMPR_CONTABILIZACION;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_COTIPROV;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE IMPR_COTIPROV;
GRANT SELECT, REFERENCES ON COTIZACIONES_PROVEEDOR_DET TO PROCEDURE IMPR_COTIPROV;
GRANT SELECT, REFERENCES ON COTIZACION_PROVEEDOR TO PROCEDURE IMPR_COTIPROV;
GRANT SELECT, REFERENCES ON GRUPOS_PROVEEDORES TO PROCEDURE IMPR_COTIPROV;
GRANT SELECT, REFERENCES ON PROVEEDORES TO PROCEDURE IMPR_COTIPROV;
GRANT SELECT, REFERENCES ON TARIFA_IVA TO PROCEDURE IMPR_COTIPROV;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_COTIPROV;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_COTIZACION;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE IMPR_COTIZACION;
GRANT SELECT, REFERENCES ON COTIZACIONES TO PROCEDURE IMPR_COTIZACION;
GRANT SELECT, REFERENCES ON COTIZACIONES_DETALLE TO PROCEDURE IMPR_COTIZACION;
GRANT SELECT, REFERENCES ON PUNTO_VENTA TO PROCEDURE IMPR_COTIZACION;
GRANT SELECT, REFERENCES ON TARIFA_IVA TO PROCEDURE IMPR_COTIZACION;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_COTIZACION;
GRANT SELECT, REFERENCES ON VENDEDORES TO PROCEDURE IMPR_COTIZACION;
GRANT SELECT, REFERENCES ON ZONAS TO PROCEDURE IMPR_COTIZACION;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE IMPR_COTIZACION;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_DESENSAMBLE;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE IMPR_DESENSAMBLE;
GRANT SELECT, REFERENCES ON DESENSAMBLES TO PROCEDURE IMPR_DESENSAMBLE;
GRANT SELECT, REFERENCES ON DESENSAMBLES_DETALLE TO PROCEDURE IMPR_DESENSAMBLE;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_DEVOLPROV;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE IMPR_DEVOLPROV;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS TO PROCEDURE IMPR_DEVOLPROV;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS_DET TO PROCEDURE IMPR_DEVOLPROV;
GRANT SELECT, REFERENCES ON GRUPOS_PROVEEDORES TO PROCEDURE IMPR_DEVOLPROV;
GRANT SELECT, REFERENCES ON PROVEEDORES TO PROCEDURE IMPR_DEVOLPROV;
GRANT SELECT, REFERENCES ON TARIFA_IVA TO PROCEDURE IMPR_DEVOLPROV;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_DEVOLPROV;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_DEVOLUCION;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE IMPR_DEVOLUCION;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE IMPR_DEVOLUCION;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE IMPR_DEVOLUCION;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE IMPR_DEVOLUCION;
GRANT SELECT, REFERENCES ON PUNTO_VENTA TO PROCEDURE IMPR_DEVOLUCION;
GRANT SELECT, REFERENCES ON TARIFA_IVA TO PROCEDURE IMPR_DEVOLUCION;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_DEVOLUCION;
GRANT SELECT, REFERENCES ON VENDEDORES TO PROCEDURE IMPR_DEVOLUCION;
GRANT SELECT, REFERENCES ON ZONAS TO PROCEDURE IMPR_DEVOLUCION;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE IMPR_DEVOLUCION;
GRANT SELECT ON AJUSTES TO PROCEDURE IMPR_DIFERENCIAS_CONTEO;
GRANT SELECT ON AJUSTES_DETALLE TO PROCEDURE IMPR_DIFERENCIAS_CONTEO;
GRANT SELECT ON ARTICULO TO PROCEDURE IMPR_DIFERENCIAS_CONTEO;
GRANT SELECT ON BODEGA TO PROCEDURE IMPR_DIFERENCIAS_CONTEO;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE IMPR_DIFERENCIAS_CONTEO;
GRANT SELECT, REFERENCES ON CAJAS TO PROCEDURE IMPR_EGRESO;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE IMPR_EGRESO;
GRANT SELECT, REFERENCES ON EGRESOS TO PROCEDURE IMPR_EGRESO;
GRANT SELECT, REFERENCES ON EGRESOS_BANCO TO PROCEDURE IMPR_EGRESO;
GRANT SELECT, REFERENCES ON EGRESOS_CAJA TO PROCEDURE IMPR_EGRESO;
GRANT SELECT, REFERENCES ON EGRESOS_DETALLE TO PROCEDURE IMPR_EGRESO;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE IMPR_EGRESO;
GRANT SELECT, REFERENCES ON FORMAS_PAGO TO PROCEDURE IMPR_EGRESO;
GRANT SELECT ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE IMPR_EGRESO;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_EGRESO;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE IMPR_EGRESO;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CXPAGAR TO PROCEDURE IMPR_EGRESO;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_ENSAMBLE;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE IMPR_ENSAMBLE;
GRANT SELECT, REFERENCES ON ENSAMBLES TO PROCEDURE IMPR_ENSAMBLE;
GRANT SELECT, REFERENCES ON ENSAMBLES_DETALLE TO PROCEDURE IMPR_ENSAMBLE;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_ENTRADA;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE IMPR_ENTRADA;
GRANT SELECT, REFERENCES ON ENTRADAS TO PROCEDURE IMPR_ENTRADA;
GRANT SELECT, REFERENCES ON ENTRADAS_DETALLE TO PROCEDURE IMPR_ENTRADA;
GRANT SELECT ON PRECIOS_ARTICULO TO PROCEDURE IMPR_ENTRADA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE IMPR_ENTRADA;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_FACTCOMP;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE IMPR_FACTCOMP;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRA TO PROCEDURE IMPR_FACTCOMP;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE IMPR_FACTCOMP;
GRANT SELECT, REFERENCES ON GRUPOS_PROVEEDORES TO PROCEDURE IMPR_FACTCOMP;
GRANT SELECT, REFERENCES ON PROVEEDORES TO PROCEDURE IMPR_FACTCOMP;
GRANT SELECT, REFERENCES ON TARIFA_IVA TO PROCEDURE IMPR_FACTCOMP;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_FACTCOMP;
GRANT SELECT ON ARTICULO TO PROCEDURE IMPR_FACTPRO;
GRANT SELECT ON BODEGA TO PROCEDURE IMPR_FACTPRO;
GRANT SELECT ON FACTURA_PROFORMA TO PROCEDURE IMPR_FACTPRO;
GRANT SELECT ON FACTURA_PROFORMA_DET TO PROCEDURE IMPR_FACTPRO;
GRANT SELECT ON GRUPOS_PROVEEDORES TO PROCEDURE IMPR_FACTPRO;
GRANT SELECT ON PROVEEDORES TO PROCEDURE IMPR_FACTPRO;
GRANT SELECT ON TERCEROS TO PROCEDURE IMPR_FACTPRO;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE IMPR_FACTPRO;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_FACTURA;
GRANT SELECT ON AUDITORIA TO PROCEDURE IMPR_FACTURA;
GRANT SELECT ON BARRAS_ARTICULO TO PROCEDURE IMPR_FACTURA;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE IMPR_FACTURA;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE IMPR_FACTURA;
GRANT SELECT ON CLIENTE_SUCURSALES TO PROCEDURE IMPR_FACTURA;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE IMPR_FACTURA;
GRANT SELECT, REFERENCES ON FACTURAS_DETALLE TO PROCEDURE IMPR_FACTURA;
GRANT SELECT ON FORMAS_PAGO TO PROCEDURE IMPR_FACTURA;
GRANT SELECT ON GRUPO TO PROCEDURE IMPR_FACTURA;
GRANT SELECT ON LOTES TO PROCEDURE IMPR_FACTURA;
GRANT SELECT ON MARCAS TO PROCEDURE IMPR_FACTURA;
GRANT SELECT ON NOMBRES_COPIAS TO PROCEDURE IMPR_FACTURA;
GRANT SELECT, REFERENCES ON PUNTO_VENTA TO PROCEDURE IMPR_FACTURA;
GRANT SELECT ON RECIBOS_CAJA TO PROCEDURE IMPR_FACTURA;
GRANT SELECT ON RECIBOS_CAJA_DETALLE TO PROCEDURE IMPR_FACTURA;
GRANT SELECT ON RECIBOS_CAJA_PAGO TO PROCEDURE IMPR_FACTURA;
GRANT SELECT ON SUBGRUPO TO PROCEDURE IMPR_FACTURA;
GRANT SELECT, REFERENCES ON TARIFA_IVA TO PROCEDURE IMPR_FACTURA;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_FACTURA;
GRANT SELECT, REFERENCES ON VENDEDORES TO PROCEDURE IMPR_FACTURA;
GRANT SELECT, REFERENCES ON ZONAS TO PROCEDURE IMPR_FACTURA;
GRANT EXECUTE ON PROCEDURE ACUMULA_PUNTOS_CLIENTE TO PROCEDURE IMPR_FACTURA;
GRANT EXECUTE ON PROCEDURE CONSULTA_PUNTOS_CLIENTE TO PROCEDURE IMPR_FACTURA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE IMPR_FACTURA;
GRANT SELECT, REFERENCES ON CAJAS TO PROCEDURE IMPR_FORMAPAGO;
GRANT SELECT ON CAMBIODOC_SALIDAS TO PROCEDURE IMPR_FORMAPAGO;
GRANT SELECT ON CAMBIO_DOCUMENTOS TO PROCEDURE IMPR_FORMAPAGO;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE IMPR_FORMAPAGO;
GRANT SELECT, REFERENCES ON EGRESOS TO PROCEDURE IMPR_FORMAPAGO;
GRANT SELECT, REFERENCES ON EGRESOS_BANCO TO PROCEDURE IMPR_FORMAPAGO;
GRANT SELECT, REFERENCES ON EGRESOS_CAJA TO PROCEDURE IMPR_FORMAPAGO;
GRANT SELECT, REFERENCES ON FORMAS_PAGO TO PROCEDURE IMPR_FORMAPAGO;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA TO PROCEDURE IMPR_FORMAPAGO;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA_PAGO TO PROCEDURE IMPR_FORMAPAGO;
GRANT SELECT ON RECIBO_PROVISIONAL TO PROCEDURE IMPR_FORMAPAGO;
GRANT SELECT ON RECIBO_PROVISIONAL_PAGO TO PROCEDURE IMPR_FORMAPAGO;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_FORMAPAGO;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE IMPR_FORMAPAGO;
GRANT SELECT ON CARGA_REMESA TO PROCEDURE IMPR_MANIFIESTO;
GRANT SELECT ON CIUDADES TO PROCEDURE IMPR_MANIFIESTO;
GRANT SELECT ON MANIFIESTO_CARGA TO PROCEDURE IMPR_MANIFIESTO;
GRANT SELECT ON MANIFIESTO_CARGA_DET TO PROCEDURE IMPR_MANIFIESTO;
GRANT SELECT ON TERCEROS TO PROCEDURE IMPR_MANIFIESTO;
GRANT SELECT ON VEHICULOS TO PROCEDURE IMPR_MANIFIESTO;
GRANT SELECT ON APLICACION_CLIENTE_DETALLE TO PROCEDURE IMPR_NOTACRCL;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE IMPR_NOTACRCL;
GRANT SELECT, REFERENCES ON COBRADORES TO PROCEDURE IMPR_NOTACRCL;
GRANT SELECT, REFERENCES ON NOTAS_CREDITO_CLIENTES TO PROCEDURE IMPR_NOTACRCL;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_NOTACRCL;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE IMPR_NOTACRCL;
GRANT SELECT, REFERENCES ON ZONAS TO PROCEDURE IMPR_NOTACRCL;
GRANT SELECT ON NOTAS_CREDITO_PROVEEDOR TO PROCEDURE IMPR_NOTACRPR;
GRANT SELECT ON PROVEEDORES TO PROCEDURE IMPR_NOTACRPR;
GRANT SELECT ON TERCEROS TO PROCEDURE IMPR_NOTACRPR;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE IMPR_NOTADBCL;
GRANT SELECT, REFERENCES ON COBRADORES TO PROCEDURE IMPR_NOTADBCL;
GRANT SELECT, REFERENCES ON NOTAS_DEBITO_CLIENTES TO PROCEDURE IMPR_NOTADBCL;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_NOTADBCL;
GRANT SELECT, REFERENCES ON ZONAS TO PROCEDURE IMPR_NOTADBCL;
GRANT SELECT ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE IMPR_NOTADBPR;
GRANT SELECT ON PROVEEDORES TO PROCEDURE IMPR_NOTADBPR;
GRANT SELECT ON TERCEROS TO PROCEDURE IMPR_NOTADBPR;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_ORDENCMP;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE IMPR_ORDENCMP;
GRANT SELECT, REFERENCES ON GRUPOS_PROVEEDORES TO PROCEDURE IMPR_ORDENCMP;
GRANT SELECT, REFERENCES ON ORDENES_COMPRA TO PROCEDURE IMPR_ORDENCMP;
GRANT SELECT, REFERENCES ON ORDENES_COMPRA_DETALLE TO PROCEDURE IMPR_ORDENCMP;
GRANT SELECT, REFERENCES ON PROVEEDORES TO PROCEDURE IMPR_ORDENCMP;
GRANT SELECT, REFERENCES ON TARIFA_IVA TO PROCEDURE IMPR_ORDENCMP;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_ORDENCMP;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_ORDENINV;
GRANT SELECT ON BODEGA TO PROCEDURE IMPR_ORDENINV;
GRANT SELECT, REFERENCES ON ORDENES_INVENTARIO TO PROCEDURE IMPR_ORDENINV;
GRANT SELECT, REFERENCES ON ORDENINVENTARIO_DETALLE TO PROCEDURE IMPR_ORDENINV;
GRANT SELECT ON PARQUEADERO TO PROCEDURE IMPR_PARQUEADERO;
GRANT SELECT ON TERCEROS TO PROCEDURE IMPR_PARQUEADERO;
GRANT SELECT ON TIPO_VEHICULO TO PROCEDURE IMPR_PARQUEADERO;
GRANT SELECT ON VEHICULOS TO PROCEDURE IMPR_PARQUEADERO;
GRANT SELECT ON VEHICULO_LINEA TO PROCEDURE IMPR_PARQUEADERO;
GRANT SELECT ON VEHICULO_MARCA TO PROCEDURE IMPR_PARQUEADERO;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_PEDIDO;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE IMPR_PEDIDO;
GRANT SELECT, REFERENCES ON PEDIDOS TO PROCEDURE IMPR_PEDIDO;
GRANT SELECT, REFERENCES ON PEDIDOS_DETALLE TO PROCEDURE IMPR_PEDIDO;
GRANT SELECT, REFERENCES ON PUNTO_VENTA TO PROCEDURE IMPR_PEDIDO;
GRANT SELECT, REFERENCES ON TARIFA_IVA TO PROCEDURE IMPR_PEDIDO;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_PEDIDO;
GRANT SELECT, REFERENCES ON VENDEDORES TO PROCEDURE IMPR_PEDIDO;
GRANT SELECT, REFERENCES ON ZONAS TO PROCEDURE IMPR_PEDIDO;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE IMPR_PEDIDO;
GRANT SELECT ON CARGA_REMESA TO PROCEDURE IMPR_PLANREMESA;
GRANT SELECT ON CIUDADES TO PROCEDURE IMPR_PLANREMESA;
GRANT SELECT ON PLANILLA_PASAJEROS_REM TO PROCEDURE IMPR_PLANREMESA;
GRANT SELECT, REFERENCES ON CAJAS TO PROCEDURE IMPR_RECICAJA;
GRANT SELECT, REFERENCES ON COBRADORES TO PROCEDURE IMPR_RECICAJA;
GRANT SELECT, REFERENCES ON FORMAS_PAGO TO PROCEDURE IMPR_RECICAJA;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA TO PROCEDURE IMPR_RECICAJA;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA_DETALLE TO PROCEDURE IMPR_RECICAJA;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA_PAGO TO PROCEDURE IMPR_RECICAJA;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_RECICAJA;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE IMPR_RECICAJA;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CARTERA TO PROCEDURE IMPR_RECICAJA;
GRANT SELECT, REFERENCES ON FORMAS_PAGO TO PROCEDURE IMPR_RECICJPAGO;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA_PAGO TO PROCEDURE IMPR_RECICJPAGO;
GRANT SELECT, REFERENCES ON CAJAS TO PROCEDURE IMPR_RECIPROV;
GRANT SELECT, REFERENCES ON COBRADORES TO PROCEDURE IMPR_RECIPROV;
GRANT SELECT, REFERENCES ON RECIBO_PROVISIONAL TO PROCEDURE IMPR_RECIPROV;
GRANT SELECT, REFERENCES ON RECIBO_PROVISIONAL_DETALLE TO PROCEDURE IMPR_RECIPROV;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_RECIPROV;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE IMPR_RECIPROV;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CARTERA TO PROCEDURE IMPR_RECIPROV;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_REMIPROV;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE IMPR_REMIPROV;
GRANT SELECT, REFERENCES ON GRUPOS_PROVEEDORES TO PROCEDURE IMPR_REMIPROV;
GRANT SELECT, REFERENCES ON PROVEEDORES TO PROCEDURE IMPR_REMIPROV;
GRANT SELECT, REFERENCES ON REMISION_PROVEEDOR TO PROCEDURE IMPR_REMIPROV;
GRANT SELECT, REFERENCES ON REMISION_PROVEEDOR_DET TO PROCEDURE IMPR_REMIPROV;
GRANT SELECT, REFERENCES ON TARIFA_IVA TO PROCEDURE IMPR_REMIPROV;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_REMIPROV;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_REMISION;
GRANT SELECT ON BARRAS_ARTICULO TO PROCEDURE IMPR_REMISION;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE IMPR_REMISION;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE IMPR_REMISION;
GRANT SELECT ON CLIENTE_SUCURSALES TO PROCEDURE IMPR_REMISION;
GRANT SELECT ON GRUPO TO PROCEDURE IMPR_REMISION;
GRANT SELECT ON LOTES TO PROCEDURE IMPR_REMISION;
GRANT SELECT ON MARCAS TO PROCEDURE IMPR_REMISION;
GRANT SELECT, REFERENCES ON PUNTO_VENTA TO PROCEDURE IMPR_REMISION;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA TO PROCEDURE IMPR_REMISION;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA_DETALLE TO PROCEDURE IMPR_REMISION;
GRANT SELECT ON SUBGRUPO TO PROCEDURE IMPR_REMISION;
GRANT SELECT, REFERENCES ON TARIFA_IVA TO PROCEDURE IMPR_REMISION;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPR_REMISION;
GRANT SELECT, REFERENCES ON VENDEDORES TO PROCEDURE IMPR_REMISION;
GRANT SELECT, REFERENCES ON ZONAS TO PROCEDURE IMPR_REMISION;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE IMPR_REMISION;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_RESERVA;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE IMPR_RESERVA;
GRANT SELECT ON PRECIOS_ARTICULO TO PROCEDURE IMPR_RESERVA;
GRANT SELECT, REFERENCES ON RESERVAS TO PROCEDURE IMPR_RESERVA;
GRANT SELECT, REFERENCES ON RESERVAS_DETALLE TO PROCEDURE IMPR_RESERVA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE IMPR_RESERVA;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_SALIDA;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE IMPR_SALIDA;
GRANT SELECT ON PRECIOS_ARTICULO TO PROCEDURE IMPR_SALIDA;
GRANT SELECT, REFERENCES ON SALIDAS TO PROCEDURE IMPR_SALIDA;
GRANT SELECT, REFERENCES ON SALIDAS_DETALLE TO PROCEDURE IMPR_SALIDA;
GRANT SELECT ON STANDS TO PROCEDURE IMPR_SALIDA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE IMPR_SALIDA;
GRANT EXECUTE ON PROCEDURE ULTIMO_COSTO TO PROCEDURE IMPR_SALIDA;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE IMPR_TRASFERENCIA;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE IMPR_TRASFERENCIA;
GRANT SELECT ON LOTES TO PROCEDURE IMPR_TRASFERENCIA;
GRANT SELECT ON PRECIOS_ARTICULO TO PROCEDURE IMPR_TRASFERENCIA;
GRANT SELECT, REFERENCES ON TRASFERENCIAS TO PROCEDURE IMPR_TRASFERENCIA;
GRANT SELECT, REFERENCES ON TRASFERENCIAS_DETALLE TO PROCEDURE IMPR_TRASFERENCIA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE IMPR_TRASFERENCIA;
GRANT SELECT ON CAJAS TO PROCEDURE IMPR_TRASLACAJA;
GRANT SELECT ON FORMAS_PAGO TO PROCEDURE IMPR_TRASLACAJA;
GRANT SELECT ON TRASLADOS_CAJA TO PROCEDURE IMPR_TRASLACAJA;
GRANT SELECT ON TRASLADOS_CAJA_DET TO PROCEDURE IMPR_TRASLACAJA;
GRANT SELECT ON BANCOS TO PROCEDURE IMPR_TRASLADOBCO;
GRANT SELECT ON CUENTAS_BANCO TO PROCEDURE IMPR_TRASLADOBCO;
GRANT SELECT ON TRASLADOS TO PROCEDURE IMPR_TRASLADOBCO;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS TO PROCEDURE IMPUESTOS_COMPRAS;
GRANT SELECT ON DEVOLUCIONES_COMPRAS_DET TO PROCEDURE IMPUESTOS_COMPRAS;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRA TO PROCEDURE IMPUESTOS_COMPRAS;
GRANT SELECT ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE IMPUESTOS_COMPRAS;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE IMPUESTOS_COMPRAS;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE IMPUESTOS_COMPRAS;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE IMPUESTOS_COMPRAS;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE IMPUESTOS_VENTAS;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE IMPUESTOS_VENTAS;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE IMPUESTOS_VENTAS;
GRANT SELECT, REFERENCES ON FACTURAS_DETALLE TO PROCEDURE IMPUESTOS_VENTAS;
GRANT SELECT, REFERENCES ON TARIFA_IVA TO PROCEDURE IMPUESTOS_VENTAS;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE IMPUESTOS_VENTAS;
GRANT INSERT ON SALDOS_INICIALES TO PROCEDURE INSERTE_SALDO_INICIAL;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE INVENTARIO_Y_BALANCE;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE INVENTARIO_Y_BALANCE;
GRANT EXECUTE ON PROCEDURE ES_AFECTABLE TO PROCEDURE INVENTARIO_Y_BALANCE;
GRANT EXECUTE ON PROCEDURE SALDO_ARTICULO_MES TO PROCEDURE INVENTARIO_Y_BALANCE;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_MES TO PROCEDURE INVENTARIO_Y_BALANCE;
GRANT EXECUTE ON PROCEDURE VALIDE_ESTRUCTURA TO PROCEDURE INVENTARIO_Y_BALANCE;
GRANT SELECT, REFERENCES ON COSTOS TO PROCEDURE KARDEX_ARTICULO_MES;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA TO PROCEDURE KARDEX_ARTICULO_MES;
GRANT EXECUTE ON PROCEDURE VALOR_INICIAL_INVENTARIO TO PROCEDURE KARDEX_ARTICULO_MES;
GRANT SELECT, REFERENCES ON COSTOS TO PROCEDURE KARDEX_DESDE_HASTA;
GRANT SELECT, REFERENCES ON MOVIMIENTO_ARTICULO TO PROCEDURE KARDEX_DESDE_HASTA;
GRANT EXECUTE ON PROCEDURE SALDO_INICIAL_TOTAL_INV TO PROCEDURE KARDEX_DESDE_HASTA;
GRANT EXECUTE ON PROCEDURE VALOR_INICIAL_INVENTARIO TO PROCEDURE KARDEX_DESDE_HASTA;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE KARDEX_INVENTARIO_MES;
GRANT EXECUTE ON PROCEDURE KARDEX_ARTICULO_MES TO PROCEDURE KARDEX_INVENTARIO_MES;
GRANT SELECT ON CONFIGURACION TO PROCEDURE LEE_CONFIGURACION;
GRANT SELECT ON REPORT_CONFIGURACION TO PROCEDURE LEE_CONFIGURACION_REPORT;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE LIBRO_DIARIO;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE LIBRO_DIARIO;
GRANT SELECT ON CUENTAS TO PROCEDURE LIBRO_DIARIO;
GRANT SELECT ON TIPO_COMPROBANTE TO PROCEDURE LIBRO_DIARIO;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA_CONTA TO PROCEDURE LIBRO_DIARIO;
GRANT EXECUTE ON PROCEDURE DIGITOS_NIVEL TO PROCEDURE LIBRO_DIARIO;
GRANT EXECUTE ON PROCEDURE FIN_DE_MES TO PROCEDURE LIBRO_DIARIO;
GRANT EXECUTE ON PROCEDURE VALIDE_ESTRUCTURA TO PROCEDURE LIBRO_DIARIO;
GRANT SELECT, REFERENCES ON COMPROBANTE_DETALLE TO PROCEDURE LIBRO_DIARIO_CUENTA;
GRANT SELECT, REFERENCES ON COMPROBANTE_ENCABEZADO TO PROCEDURE LIBRO_DIARIO_CUENTA;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE LIBRO_DIARIO_CUENTA;
GRANT SELECT, REFERENCES ON TIPO_COMPROBANTE TO PROCEDURE LIBRO_DIARIO_CUENTA;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA_CONTA TO PROCEDURE LIBRO_DIARIO_CUENTA;
GRANT EXECUTE ON PROCEDURE FIN_DE_MES TO PROCEDURE LIBRO_DIARIO_CUENTA;
GRANT SELECT ON PARQUEADERO TO PROCEDURE LIQ_PARQUEADERO;
GRANT SELECT ON TIPO_VEHICULO TO PROCEDURE LIQ_PARQUEADERO;
GRANT SELECT, REFERENCES ON LISTA_PRECIOS TO PROCEDURE LISTAS_ARTICULO;
GRANT SELECT, REFERENCES ON PRECIOS_ARTICULO TO PROCEDURE LISTAS_ARTICULO;
GRANT SELECT ON LOTES TO PROCEDURE LISTA_LOTES;
GRANT SELECT ON ESTRUCTURA TO PROCEDURE MAX_NIVEL;
GRANT SELECT ON LOTES TO PROCEDURE MAYOR_SALDO_LOTE;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE MAYOR_Y_BALANCE;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_CUENTA_MES TO PROCEDURE MAYOR_Y_BALANCE;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_MES TO PROCEDURE MAYOR_Y_BALANCE;
GRANT EXECUTE ON PROCEDURE VALIDE_ESTRUCTURA TO PROCEDURE MAYOR_Y_BALANCE;
GRANT SELECT, REFERENCES ON CIUDADES TO PROCEDURE MEDIOS_MAGNETICOS;
GRANT SELECT, REFERENCES ON COMPROBANTE_DETALLE TO PROCEDURE MEDIOS_MAGNETICOS;
GRANT SELECT, REFERENCES ON COMPROBANTE_ENCABEZADO TO PROCEDURE MEDIOS_MAGNETICOS;
GRANT SELECT, REFERENCES ON CONFIGURA_MEDIOSMAG TO PROCEDURE MEDIOS_MAGNETICOS;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE MEDIOS_MAGNETICOS;
GRANT SELECT, REFERENCES ON SALDOS_TERCEROS TO PROCEDURE MEDIOS_MAGNETICOS;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE MEDIOS_MAGNETICOS;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_MES TO PROCEDURE MEDIOS_MAGNETICOS;
GRANT EXECUTE ON PROCEDURE SALDO_TERCERO_MES TO PROCEDURE MEDIOS_MAGNETICOS;
GRANT SELECT, REFERENCES ON CIUDADES TO PROCEDURE MEDIOS_MAGNETICOS2;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE MEDIOS_MAGNETICOS2;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE MEDIOS_MAGNETICOS2;
GRANT EXECUTE ON PROCEDURE ES_AFECTABLE TO PROCEDURE MEDIOS_MAGNETICOS2;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE MEDIOS_MAGNETICOS2;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_CUENTA_DESDE_HASTA TO PROCEDURE MEDIOS_MAGNETICOS2;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_MES TO PROCEDURE MEDIOS_MAGNETICOS2;
GRANT EXECUTE ON PROCEDURE SALDO_TERCERO_MES TO PROCEDURE MEDIOS_MAGNETICOS2;
GRANT SELECT ON ARTICULO TO PROCEDURE MERCANCIA_EN_TRANSITO;
GRANT SELECT ON BODEGA TO PROCEDURE MERCANCIA_EN_TRANSITO;
GRANT SELECT ON GRUPO TO PROCEDURE MERCANCIA_EN_TRANSITO;
GRANT SELECT ON MARCAS TO PROCEDURE MERCANCIA_EN_TRANSITO;
GRANT SELECT ON SUBGRUPO TO PROCEDURE MERCANCIA_EN_TRANSITO;
GRANT SELECT ON TRASFERENCIAS TO PROCEDURE MERCANCIA_EN_TRANSITO;
GRANT SELECT ON TRASFERENCIAS_DETALLE TO PROCEDURE MERCANCIA_EN_TRANSITO;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE MINIMO_ARTICULO;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE MINIMO_ARTICULO;
GRANT EXECUTE ON PROCEDURE PROMEDIO_SALIDAS_ARTICULO TO PROCEDURE MINIMO_ARTICULO;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE MM_1001;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE MM_1001;
GRANT SELECT ON CONFIGURA_MEDIOSMAG TO PROCEDURE MM_1001;
GRANT INSERT ON MEDIOS_MAGNETICOS_DATOS TO PROCEDURE MM_1001;
GRANT SELECT ON TERCEROS TO PROCEDURE MM_1001;
GRANT SELECT ON TIPO_ID TO PROCEDURE MM_1001;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE MM_1001_10;
GRANT SELECT ON COMPROBANTE_DETALLE_NIIF TO PROCEDURE MM_1001_10;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE MM_1001_10;
GRANT SELECT ON CONFIGURA_MEDIOSMAG TO PROCEDURE MM_1001_10;
GRANT SELECT ON MEDIOSMAG_CUENTAS TO PROCEDURE MM_1001_10;
GRANT SELECT, INSERT ON MEDIOS_MAGNETICOS_DATOS TO PROCEDURE MM_1001_10;
GRANT SELECT ON TERCEROS TO PROCEDURE MM_1001_10;
GRANT SELECT ON TIPO_ID TO PROCEDURE MM_1001_10;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE MM_1001_10;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE MM_1001_8;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE MM_1001_8;
GRANT SELECT ON CONFIGURA_MEDIOSMAG TO PROCEDURE MM_1001_8;
GRANT SELECT ON MEDIOSMAG_CUENTAS TO PROCEDURE MM_1001_8;
GRANT INSERT ON MEDIOS_MAGNETICOS_DATOS TO PROCEDURE MM_1001_8;
GRANT SELECT ON TERCEROS TO PROCEDURE MM_1001_8;
GRANT SELECT ON TIPO_ID TO PROCEDURE MM_1001_8;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE MM_1001_8;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE MM_1002;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE MM_1002;
GRANT SELECT ON CONFIGURA_MEDIOSMAG TO PROCEDURE MM_1002;
GRANT INSERT ON MEDIOS_MAGNETICOS_DATOS TO PROCEDURE MM_1002;
GRANT SELECT ON TERCEROS TO PROCEDURE MM_1002;
GRANT SELECT ON TIPO_ID TO PROCEDURE MM_1002;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE MM_1003;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE MM_1003;
GRANT SELECT ON CONFIGURA_MEDIOSMAG TO PROCEDURE MM_1003;
GRANT INSERT ON MEDIOS_MAGNETICOS_DATOS TO PROCEDURE MM_1003;
GRANT SELECT ON TERCEROS TO PROCEDURE MM_1003;
GRANT SELECT ON TIPO_ID TO PROCEDURE MM_1003;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE MM_1005;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE MM_1005;
GRANT INSERT ON MEDIOS_MAGNETICOS_DATOS TO PROCEDURE MM_1005;
GRANT SELECT ON TERCEROS TO PROCEDURE MM_1005;
GRANT SELECT ON TIPO_ID TO PROCEDURE MM_1005;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE MM_1006;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE MM_1006;
GRANT INSERT ON MEDIOS_MAGNETICOS_DATOS TO PROCEDURE MM_1006;
GRANT SELECT ON TERCEROS TO PROCEDURE MM_1006;
GRANT SELECT ON TIPO_ID TO PROCEDURE MM_1006;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE MM_1007;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE MM_1007;
GRANT SELECT ON CONFIGURA_MEDIOSMAG TO PROCEDURE MM_1007;
GRANT INSERT ON MEDIOS_MAGNETICOS_DATOS TO PROCEDURE MM_1007;
GRANT SELECT ON TERCEROS TO PROCEDURE MM_1007;
GRANT SELECT ON TIPO_ID TO PROCEDURE MM_1007;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE MM_10079;
GRANT SELECT ON COMPROBANTE_DETALLE_NIIF TO PROCEDURE MM_10079;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE MM_10079;
GRANT SELECT ON CONFIGURA_MEDIOSMAG TO PROCEDURE MM_10079;
GRANT SELECT ON MEDIOSMAG_CUENTAS TO PROCEDURE MM_10079;
GRANT INSERT ON MEDIOS_MAGNETICOS_DATOS TO PROCEDURE MM_10079;
GRANT SELECT ON TERCEROS TO PROCEDURE MM_10079;
GRANT SELECT ON TIPO_ID TO PROCEDURE MM_10079;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE MM_10079;
GRANT SELECT ON CONFIGURA_MEDIOSMAG TO PROCEDURE MM_1008;
GRANT INSERT ON MEDIOS_MAGNETICOS_DATOS TO PROCEDURE MM_1008;
GRANT SELECT ON SALDOS_TERCEROS TO PROCEDURE MM_1008;
GRANT SELECT ON TERCEROS TO PROCEDURE MM_1008;
GRANT SELECT ON TIPO_ID TO PROCEDURE MM_1008;
GRANT EXECUTE ON PROCEDURE SALDO_TERCERO_MES TO PROCEDURE MM_1008;
GRANT SELECT ON CONFIGURA_MEDIOSMAG TO PROCEDURE MM_1009;
GRANT INSERT ON MEDIOS_MAGNETICOS_DATOS TO PROCEDURE MM_1009;
GRANT SELECT ON SALDOS_TERCEROS TO PROCEDURE MM_1009;
GRANT SELECT ON TERCEROS TO PROCEDURE MM_1009;
GRANT SELECT ON TIPO_ID TO PROCEDURE MM_1009;
GRANT EXECUTE ON PROCEDURE SALDO_TERCERO_MES TO PROCEDURE MM_1009;
GRANT SELECT ON CONFIGURA_MEDIOSMAG TO PROCEDURE MM_1011;
GRANT INSERT ON MEDIOS_MAGNETICOS_DATOS TO PROCEDURE MM_1011;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA TO PROCEDURE MM_1011;
GRANT SELECT ON CONFIGURA_MEDIOSMAG TO PROCEDURE MM_1012;
GRANT INSERT ON MEDIOS_MAGNETICOS_DATOS TO PROCEDURE MM_1012;
GRANT SELECT ON SALDOS_TERCEROS TO PROCEDURE MM_1012;
GRANT SELECT ON TERCEROS TO PROCEDURE MM_1012;
GRANT SELECT ON TIPO_ID TO PROCEDURE MM_1012;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA TO PROCEDURE MM_1012;
GRANT EXECUTE ON PROCEDURE SALDO_TERCERO_MES TO PROCEDURE MM_1012;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE MM_22761;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE MM_22761;
GRANT SELECT ON CONFIGURA_MEDIOSMAG TO PROCEDURE MM_22761;
GRANT SELECT ON MEDIOSMAG_CUENTAS TO PROCEDURE MM_22761;
GRANT INSERT ON MEDIOS_MAGNETICOS_DATOS TO PROCEDURE MM_22761;
GRANT SELECT ON TERCEROS TO PROCEDURE MM_22761;
GRANT SELECT ON TIPO_ID TO PROCEDURE MM_22761;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE MM_22761;
GRANT SELECT ON MOVIMIENTO_ARTICULO TO PROCEDURE MOVARTI_CANTIDADES;
GRANT SELECT ON PREFIJOS TO PROCEDURE MOVARTI_CANTIDADES;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE MOVARTI_CANTIDADES;
GRANT SELECT ON SALDOS_ARTICULO TO PROCEDURE MOVIMIENTO_ARTICULOC_MES;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE MOVIMIENTO_ARTICULO_DESDE_HASTA;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE MOVIMIENTO_ARTICULO_DESDE_HASTA;
GRANT SELECT ON GRUPO TO PROCEDURE MOVIMIENTO_ARTICULO_DESDE_HASTA;
GRANT SELECT ON MARCAS TO PROCEDURE MOVIMIENTO_ARTICULO_DESDE_HASTA;
GRANT SELECT, REFERENCES ON MOVIMIENTO_ARTICULO TO PROCEDURE MOVIMIENTO_ARTICULO_DESDE_HASTA;
GRANT SELECT ON SUBGRUPO TO PROCEDURE MOVIMIENTO_ARTICULO_DESDE_HASTA;
GRANT EXECUTE ON PROCEDURE SALDO_INICIAL_INVENTARIO TO PROCEDURE MOVIMIENTO_ARTICULO_DESDE_HASTA;
GRANT SELECT ON MOVIMIENTO_ARTICULO TO PROCEDURE MOVIMIENTO_ARTICULO_MES;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA TO PROCEDURE MOVIMIENTO_ARTICULO_MES;
GRANT EXECUTE ON PROCEDURE SALDO_INICIAL_INVENTARIO TO PROCEDURE MOVIMIENTO_ARTICULO_MES;
GRANT SELECT, REFERENCES ON MOVIMIENTO_BANCO TO PROCEDURE MOVIMIENTO_BANCO_MES;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE MOVIMIENTO_BANCO_MES;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_BANCO TO PROCEDURE MOVIMIENTO_BANCO_MES;
GRANT SELECT, REFERENCES ON EGRESOS TO PROCEDURE MOVIMIENTO_CAJA_MES;
GRANT SELECT, REFERENCES ON MOVIMIENTO_CAJA TO PROCEDURE MOVIMIENTO_CAJA_MES;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA TO PROCEDURE MOVIMIENTO_CAJA_MES;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE MOVIMIENTO_CAJA_MES;
GRANT EXECUTE ON PROCEDURE SALDO_EN_CAJA TO PROCEDURE MOVIMIENTO_CAJA_MES;
GRANT SELECT ON MOVIMIENTO_CLIENTES TO PROCEDURE MOVIMIENTO_CARTERA_DESDE_HASTA;
GRANT SELECT ON RECIBO_PROVISIONAL_DETALLE TO PROCEDURE MOVIMIENTO_CARTERA_DESDE_HASTA;
GRANT SELECT ON TERCEROS TO PROCEDURE MOVIMIENTO_CARTERA_DESDE_HASTA;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE MOVIMIENTO_CARTERA_DESDE_HASTA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE MOVIMIENTO_CARTERA_DESDE_HASTA;
GRANT SELECT ON AUTORIZACIONES TO PROCEDURE MOVIMIENTO_CARTERA_MES;
GRANT SELECT, REFERENCES ON MOVIMIENTO_CLIENTES TO PROCEDURE MOVIMIENTO_CARTERA_MES;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE MOVIMIENTO_CARTERA_MES;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA TO PROCEDURE MOVIMIENTO_CARTERA_MES;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE MOVIMIENTO_CARTERA_MES;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CARTERA TO PROCEDURE MOVIMIENTO_CARTERA_MES;
GRANT SELECT ON SALDOS_CENTROS TO PROCEDURE MOVIMIENTO_CENTRO_MES;
GRANT EXECUTE ON PROCEDURE CADENA_MES TO PROCEDURE MOVIMIENTO_CENTRO_MES;
GRANT SELECT ON SALDOS_CUENTAS TO PROCEDURE MOVIMIENTO_CUENTA_DESDE_HASTA;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA_CONTA TO PROCEDURE MOVIMIENTO_CUENTA_DESDE_HASTA;
GRANT EXECUTE ON PROCEDURE DIAS_MES TO PROCEDURE MOVIMIENTO_CUENTA_DESDE_HASTA;
GRANT SELECT ON SALDOS_CUENTAS TO PROCEDURE MOVIMIENTO_CUENTA_MES;
GRANT EXECUTE ON PROCEDURE CADENA_MES TO PROCEDURE MOVIMIENTO_CUENTA_MES;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE MOVIMIENTO_CXPAGAR_DESDE_HASTA;
GRANT SELECT ON MOVIMIENTO_PROVEEDOR TO PROCEDURE MOVIMIENTO_CXPAGAR_DESDE_HASTA;
GRANT SELECT ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE MOVIMIENTO_CXPAGAR_DESDE_HASTA;
GRANT SELECT ON TERCEROS TO PROCEDURE MOVIMIENTO_CXPAGAR_DESDE_HASTA;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE MOVIMIENTO_CXPAGAR_DESDE_HASTA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE MOVIMIENTO_CXPAGAR_DESDE_HASTA;
GRANT EXECUTE ON PROCEDURE SALDO_PROVEEDOR TO PROCEDURE MOVIMIENTO_CXPAGAR_DESDE_HASTA;
GRANT SELECT ON MOVIMIENTO_PROVEEDOR TO PROCEDURE MOVIMIENTO_CXPAGAR_MES;
GRANT SELECT ON TERCEROS TO PROCEDURE MOVIMIENTO_CXPAGAR_MES;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA TO PROCEDURE MOVIMIENTO_CXPAGAR_MES;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE MOVIMIENTO_CXPAGAR_MES;
GRANT EXECUTE ON PROCEDURE SALDO_PROVEEDOR TO PROCEDURE MOVIMIENTO_CXPAGAR_MES;
GRANT SELECT ON ARTICULO TO PROCEDURE MOVIMIENTO_INVENTARIO_MES;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_TOTAL_ARTICULO_MES TO PROCEDURE MOVIMIENTO_INVENTARIO_MES;
GRANT SELECT ON SALDOS_CUENTAS TO PROCEDURE MOVIMIENTO_NETO_CUENTA_MES;
GRANT SELECT ON SALDOS_TERCEROS TO PROCEDURE MOVIMIENTO_TERCERO_MES;
GRANT SELECT ON BODEGA TO PROCEDURE MOVIMIENTO_TOTAL_ARTICULO_MES;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_ARTICULO_MES TO PROCEDURE MOVIMIENTO_TOTAL_ARTICULO_MES;
GRANT SELECT ON MOVIMIENTO_ARTICULO TO PROCEDURE MOVLOTES_DESDE_HASTA;
GRANT SELECT ON PREFIJOS TO PROCEDURE MOVLOTES_DESDE_HASTA;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE MOVLOTES_DESDE_HASTA;
GRANT SELECT, REFERENCES ON CHEQUES TO PROCEDURE MOV_DETALLE_BANCOS;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE MOV_DETALLE_BANCOS;
GRANT SELECT, REFERENCES ON MOVIMIENTO_BANCO TO PROCEDURE MOV_DETALLE_BANCOS;
GRANT SELECT, REFERENCES ON RETIROS TO PROCEDURE MOV_DETALLE_BANCOS;
GRANT SELECT, REFERENCES ON SALDO_BANCOS TO PROCEDURE MOV_DETALLE_BANCOS;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE MOV_DETALLE_BANCOS;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_BANCO TO PROCEDURE MOV_DETALLE_BANCOS;
GRANT SELECT, REFERENCES ON CAJAS TO PROCEDURE MOV_DETALLE_CAJAS;
GRANT SELECT, REFERENCES ON CAMBIODOC_ENTRADAS TO PROCEDURE MOV_DETALLE_CAJAS;
GRANT SELECT, REFERENCES ON CAMBIODOC_SALIDAS TO PROCEDURE MOV_DETALLE_CAJAS;
GRANT SELECT, REFERENCES ON CONSIGNA_DETALLE TO PROCEDURE MOV_DETALLE_CAJAS;
GRANT SELECT ON EGRESOS TO PROCEDURE MOV_DETALLE_CAJAS;
GRANT SELECT, REFERENCES ON EGRESOS_CAJA TO PROCEDURE MOV_DETALLE_CAJAS;
GRANT SELECT, REFERENCES ON MOVIMIENTO_CAJA TO PROCEDURE MOV_DETALLE_CAJAS;
GRANT SELECT ON RECIBOS_CAJA TO PROCEDURE MOV_DETALLE_CAJAS;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA_PAGO TO PROCEDURE MOV_DETALLE_CAJAS;
GRANT SELECT ON RECIBO_PROVISIONAL TO PROCEDURE MOV_DETALLE_CAJAS;
GRANT SELECT, REFERENCES ON RECIBO_PROVISIONAL_PAGO TO PROCEDURE MOV_DETALLE_CAJAS;
GRANT SELECT, REFERENCES ON SALDO_CAJA TO PROCEDURE MOV_DETALLE_CAJAS;
GRANT SELECT ON TERCEROS TO PROCEDURE MOV_DETALLE_CAJAS;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE MOV_DETALLE_CAJAS;
GRANT SELECT, REFERENCES ON TRASLADOS_CAJA_DET TO PROCEDURE MOV_DETALLE_CAJAS;
GRANT EXECUTE ON PROCEDURE SALDO_EN_CAJA TO PROCEDURE MOV_DETALLE_CAJAS;
GRANT SELECT ON CONFIGURACION TO PROCEDURE NOMBRE_COMPANIA;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE NOTACRCL_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_CARTERA TO PROCEDURE NOTACRCL_SIN_CONTABILIDAD;
GRANT SELECT ON NOTAS_CREDITO_CLIENTES TO PROCEDURE NOTACRCL_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE NOTACRCL_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_NOTACRCL TO PROCEDURE NOTACRCL_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE NOTACRCL_SIN_CONTABILIDAD;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE NOTACRPR_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_CARTERA TO PROCEDURE NOTACRPR_SIN_CONTABILIDAD;
GRANT SELECT ON NOTAS_CREDITO_PROVEEDOR TO PROCEDURE NOTACRPR_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE NOTACRPR_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_NOTACRPR TO PROCEDURE NOTACRPR_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE NOTACRPR_SIN_CONTABILIDAD;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE NOTADBCL_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_CARTERA TO PROCEDURE NOTADBCL_SIN_CONTABILIDAD;
GRANT SELECT ON NOTAS_DEBITO_CLIENTES TO PROCEDURE NOTADBCL_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE NOTADBCL_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_NOTADBCL TO PROCEDURE NOTADBCL_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE NOTADBCL_SIN_CONTABILIDAD;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE NOTADBPR_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_CARTERA TO PROCEDURE NOTADBPR_SIN_CONTABILIDAD;
GRANT SELECT ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE NOTADBPR_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE NOTADBPR_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_NOTADBPR TO PROCEDURE NOTADBPR_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE NOTADBPR_SIN_CONTABILIDAD;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE NOTASCRBC_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_BANCOS TO PROCEDURE NOTASCRBC_SIN_CONTABILIDAD;
GRANT SELECT ON NOTAS_CREDITO TO PROCEDURE NOTASCRBC_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE NOTASCRBC_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_NOTACRBC TO PROCEDURE NOTASCRBC_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE NOTASCRBC_SIN_CONTABILIDAD;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE NOTASDBBC_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_BANCOS TO PROCEDURE NOTASDBBC_SIN_CONTABILIDAD;
GRANT SELECT ON NOTAS_DEBITO TO PROCEDURE NOTASDBBC_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE NOTASDBBC_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_NOTADBBC TO PROCEDURE NOTASDBBC_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE NOTASDBBC_SIN_CONTABILIDAD;
GRANT SELECT, UPDATE ON COMPROBANTE_DETALLE TO PROCEDURE NROBANCO_REF_EGRESOS;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE NROBANCO_REF_EGRESOS;
GRANT SELECT ON EGRESOS_BANCO TO PROCEDURE NROBANCO_REF_EGRESOS;
GRANT SELECT ON ENTRADAS TO PROCEDURE NUM_ENT;
GRANT SELECT, UPDATE ON MOVIMIENTO_ARTICULO TO PROCEDURE NUM_ENT;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE ORDENES_ARTICULO;
GRANT SELECT ON GRUPO TO PROCEDURE ORDENES_ARTICULO;
GRANT SELECT ON MARCAS TO PROCEDURE ORDENES_ARTICULO;
GRANT SELECT, REFERENCES ON ORDENES_COMPRA TO PROCEDURE ORDENES_ARTICULO;
GRANT SELECT, REFERENCES ON ORDENES_COMPRA_DETALLE TO PROCEDURE ORDENES_ARTICULO;
GRANT SELECT, REFERENCES ON ORDENES_INVENTARIO TO PROCEDURE ORDENES_ARTICULO;
GRANT SELECT, REFERENCES ON ORDENINVENTARIO_DETALLE TO PROCEDURE ORDENES_ARTICULO;
GRANT SELECT ON SUBGRUPO TO PROCEDURE ORDENES_ARTICULO;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE ORDENES_ARTICULO;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE ORDENES_ARTICULO;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE ORDENES_ARTICULO;
GRANT EXECUTE ON PROCEDURE SALDO_TOTAL_INVENTARIO TO PROCEDURE ORDENES_ARTICULO;
GRANT SELECT ON ORDENES_COMPRA TO PROCEDURE ORDENES_ARTICULO_FECHA;
GRANT SELECT ON ORDENES_COMPRA_DETALLE TO PROCEDURE ORDENES_ARTICULO_FECHA;
GRANT SELECT, REFERENCES ON ORDENES_INVENTARIO TO PROCEDURE ORDENES_ARTICULO_FECHA;
GRANT SELECT, REFERENCES ON ORDENINVENTARIO_DETALLE TO PROCEDURE ORDENES_ARTICULO_FECHA;
GRANT SELECT ON TERCEROS TO PROCEDURE ORDENES_ARTICULO_FECHA;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE ORDENES_ARTICULO_FECHA;
GRANT SELECT ON ARTICULO TO PROCEDURE ORDEN_SUGERIDA;
GRANT SELECT ON BODEGA TO PROCEDURE ORDEN_SUGERIDA;
GRANT SELECT ON EXISTENCIA TO PROCEDURE ORDEN_SUGERIDA;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE ORDEN_SUGERIDA;
GRANT SELECT ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE ORDEN_SUGERIDA;
GRANT SELECT ON ORDENES_COMPRA TO PROCEDURE ORDEN_SUGERIDA;
GRANT SELECT ON ORDENES_COMPRA_DETALLE TO PROCEDURE ORDEN_SUGERIDA;
GRANT SELECT ON ORDENES_INVENTARIO TO PROCEDURE ORDEN_SUGERIDA;
GRANT SELECT ON ORDENINVENTARIO_DETALLE TO PROCEDURE ORDEN_SUGERIDA;
GRANT SELECT ON PEDIDOS TO PROCEDURE ORDEN_SUGERIDA;
GRANT SELECT ON PEDIDOS_DETALLE TO PROCEDURE ORDEN_SUGERIDA;
GRANT SELECT ON PROVEEDOR_ARTICULO TO PROCEDURE ORDEN_SUGERIDA;
GRANT SELECT ON RESERVAS TO PROCEDURE ORDEN_SUGERIDA;
GRANT SELECT ON RESERVAS_DETALLE TO PROCEDURE ORDEN_SUGERIDA;
GRANT EXECUTE ON PROCEDURE FACTOR_UNIDAD_CANT TO PROCEDURE ORDEN_SUGERIDA;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE ORDEN_SUGERIDA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE ORDEN_SUGERIDA;
GRANT EXECUTE ON PROCEDURE PROMEDIO_SALIDAS_ARTICULO TO PROCEDURE ORDEN_SUGERIDA;
GRANT EXECUTE ON PROCEDURE SALDO_INVENTARIO TO PROCEDURE ORDEN_SUGERIDA;
GRANT EXECUTE ON PROCEDURE VENTAS_ARTICULO TO PROCEDURE ORDEN_SUGERIDA;
GRANT EXECUTE ON PROCEDURE DIGITOS_NIVEL TO PROCEDURE PADRE;
GRANT EXECUTE ON PROCEDURE VALIDE_ESTRUCTURA TO PROCEDURE PADRE;
GRANT SELECT ON CLIENTES TO PROCEDURE PEDIDOSVSFACTURAS;
GRANT SELECT ON FACTURAS TO PROCEDURE PEDIDOSVSFACTURAS;
GRANT SELECT ON PEDIDOS TO PROCEDURE PEDIDOSVSFACTURAS;
GRANT SELECT ON TERCEROS TO PROCEDURE PEDIDOSVSFACTURAS;
GRANT SELECT, REFERENCES ON PRECIOS_ARTICULO TO PROCEDURE PRECIOS_UNIDAD;
GRANT EXECUTE ON PROCEDURE FACTOR_UNIDAD_PRE TO PROCEDURE PRECIOS_UNIDAD;
GRANT SELECT, REFERENCES ON PRECIOS_ARTICULO TO PROCEDURE PRECIOS_Y_EXISTENCIA;
GRANT EXECUTE ON PROCEDURE SALDO_INVENTARIO TO PROCEDURE PRECIOS_Y_EXISTENCIA;
GRANT SELECT ON ARTICULO TO PROCEDURE PRESENTACIONES_QUQO;
GRANT SELECT ON AUDITORIA TO PROCEDURE PRESENTACIONES_QUQO;
GRANT SELECT ON BARRAS_ARTICULO TO PROCEDURE PRESENTACIONES_QUQO;
GRANT SELECT, UPDATE ON LOG_PRESENTACIONES_Q TO PROCEDURE PRESENTACIONES_QUQO;
GRANT SELECT ON PRECIOS_ARTICULO TO PROCEDURE PRESENTACIONES_QUQO;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE PRESENTACIONES_QUQO;
GRANT SELECT ON UNIDAD_ARTICULO TO PROCEDURE PRESENTACIONES_QUQO;
GRANT EXECUTE ON PROCEDURE NOMBRE_ASCII TO PROCEDURE PRESENTACIONES_QUQO;
GRANT EXECUTE ON PROCEDURE SALDO_TOTAL_INVENTARIO TO PROCEDURE PRESENTACIONES_QUQO;
GRANT SELECT, UPDATE ON LOG_PRESENTACIONES_Q TO PROCEDURE PRESENTACIONES_Q_OK;
GRANT SELECT, REFERENCES ON CUENTAS TO PROCEDURE PRESUPUESTO_MES;
GRANT SELECT, REFERENCES ON PRESUPUESTO TO PROCEDURE PRESUPUESTO_MES;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_CUENTA_MES TO PROCEDURE PRESUPUESTO_MES;
GRANT SELECT ON ARTICULO TO PROCEDURE PROMEDIO_SALIDAS_ARTICULO;
GRANT SELECT, REFERENCES ON MOVIMIENTO_ARTICULO TO PROCEDURE PROMEDIO_SALIDAS_ARTICULO;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE PROMEDIO_SALIDAS_ARTICULO;
GRANT EXECUTE ON PROCEDURE SALDO_INVENTARIO TO PROCEDURE PROMEDIO_SALIDAS_ARTICULO;
GRANT SELECT, REFERENCES ON MOVIMIENTO_ARTICULO TO PROCEDURE PROMEDIO_TOTAL_ARTICULO;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE PROMEDIO_TOTAL_ARTICULO;
GRANT SELECT, INSERT ON PROVEEDORES TO PROCEDURE PROVEEDORES_SIN_REGISTRO;
GRANT SELECT ON TERCEROS TO PROCEDURE PROVEEDORES_SIN_REGISTRO;
GRANT SELECT ON COMISIONES TO PROCEDURE RECALCULO_COMISIONES_VENTAS;
GRANT SELECT, UPDATE ON FACTURAS TO PROCEDURE RECALCULO_COMISIONES_VENTAS;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE RECALCULO_COMISIONES_VENTAS;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE RECIBOS_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_CAJA TO PROCEDURE RECIBOS_SIN_CONTABILIDAD;
GRANT SELECT ON RECIBOS_CAJA TO PROCEDURE RECIBOS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE RECIBOS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_RECICAJA TO PROCEDURE RECIBOS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE RECIBOS_SIN_CONTABILIDAD;
GRANT SELECT ON FACTURAS TO PROCEDURE RECONTABILICE_COSTOS_VENTAS;
GRANT SELECT ON INTERFAZ_VENTAS TO PROCEDURE RECONTABILICE_COSTOS_VENTAS;
GRANT EXECUTE ON PROCEDURE CONTABILICE_COSTO_VENTAS TO PROCEDURE RECONTABILICE_COSTOS_VENTAS;
GRANT SELECT ON CIUDADES TO PROCEDURE RECUPERACION_CARTERA;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE RECUPERACION_CARTERA;
GRANT SELECT ON CLIENTE_SUCURSALES TO PROCEDURE RECUPERACION_CARTERA;
GRANT SELECT ON COBRADORES TO PROCEDURE RECUPERACION_CARTERA;
GRANT SELECT, REFERENCES ON MOVIMIENTO_CLIENTES TO PROCEDURE RECUPERACION_CARTERA;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE RECUPERACION_CARTERA;
GRANT SELECT ON ZONAS TO PROCEDURE RECUPERACION_CARTERA;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CARTERA TO PROCEDURE RECUPERACION_CARTERA;
GRANT SELECT, UPDATE ON CHEQUES TO PROCEDURE RECUPERA_NUMERO_CHEQUE;
GRANT SELECT ON MOVIMIENTO_BANCO TO PROCEDURE RECUPERA_NUMERO_CHEQUE;
GRANT SELECT, UPDATE ON MOVIMIENTO_PROVEEDOR TO PROCEDURE REDONDEE_NOTAS_PROVEEDOR;
GRANT SELECT, UPDATE ON NOTAS_CREDITO_PROVEEDOR TO PROCEDURE REDONDEE_NOTAS_PROVEEDOR;
GRANT SELECT, UPDATE ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE REDONDEE_NOTAS_PROVEEDOR;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE REDONDEE_NOTAS_PROVEEDOR;
GRANT EXECUTE ON PROCEDURE REDONDEE TO PROCEDURE REDONDEE_NOTAS_PROVEEDOR;
GRANT INSERT ON COMPROBANTE_DETALLE TO PROCEDURE REGISTRE_REGIAUTO;
GRANT INSERT ON COMPROBANTE_ENCABEZADO TO PROCEDURE REGISTRE_REGIAUTO;
GRANT SELECT ON CONCEPTOS TO PROCEDURE REGISTRE_REGIAUTO;
GRANT SELECT ON CONCEPTOS_CUENTAS TO PROCEDURE REGISTRE_REGIAUTO;
GRANT SELECT ON REGISTRO_AUTOMATICO TO PROCEDURE REGISTRE_REGIAUTO;
GRANT SELECT ON REGISTRO_CONCEPTOS TO PROCEDURE REGISTRE_REGIAUTO;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_COMPROBA TO PROCEDURE REGISTRE_REGIAUTO;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA_CONTA TO PROCEDURE REGISTRE_REGIAUTO;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_CUENTA_MES TO PROCEDURE REGISTRE_REGIAUTO;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_MES TO PROCEDURE REGISTRE_REGIAUTO;
GRANT SELECT ON ARTICULO TO PROCEDURE REPORT_ARTICULOS_CREADOS;
GRANT SELECT ON AUDITORIA TO PROCEDURE REPORT_ARTICULOS_CREADOS;
GRANT SELECT ON REPORT_TICKETS TO PROCEDURE REPORT_BUSCADOC;
GRANT SELECT ON REPORT_ENVIOS_DOMICILIO TO PROCEDURE REPORT_BUSCAFAC;
GRANT SELECT ON ARTICULO TO PROCEDURE REPORT_BUSQUEDA_ARTICULOS;
GRANT SELECT ON EXISTENCIA TO PROCEDURE REPORT_BUSQUEDA_ARTICULOS;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE REPORT_BUSQUEDA_ARTICULOS;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO_Y_ULTIMO_UNIDAD TO PROCEDURE REPORT_BUSQUEDA_ARTICULOS;
GRANT SELECT ON ARTICULO TO PROCEDURE REPORT_CATALOGO_ARTICULOS;
GRANT SELECT ON EXISTENCIA TO PROCEDURE REPORT_CATALOGO_ARTICULOS;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE REPORT_CATALOGO_ARTICULOS;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO_Y_ULTIMO_UNIDAD TO PROCEDURE REPORT_CATALOGO_ARTICULOS;
GRANT EXECUTE ON PROCEDURE EXISTENCIAS TO PROCEDURE REPORT_CATALOGO_ARTICULOS;
GRANT SELECT ON AUDITORIA TO PROCEDURE REPORT_CLIENTES_TIEMPO;
GRANT SELECT ON CLIENTES TO PROCEDURE REPORT_CLIENTES_TIEMPO;
GRANT SELECT ON TERCEROS TO PROCEDURE REPORT_CLIENTES_TIEMPO;
GRANT SELECT ON REPORT_LOGO TO PROCEDURE REPORT_CRONOLOGICO;
GRANT SELECT ON REPORT_TICKETS TO PROCEDURE REPORT_CRONOLOGICO;
GRANT SELECT ON CLIENTES TO PROCEDURE REPORT_DATOS_CLIENTES;
GRANT SELECT ON CLIENTE_SUCURSALES TO PROCEDURE REPORT_DATOS_CLIENTES;
GRANT SELECT ON FACTURAS TO PROCEDURE REPORT_DATOS_CLIENTES;
GRANT SELECT ON TERCEROS TO PROCEDURE REPORT_DATOS_CLIENTES;
GRANT SELECT ON ARTICULO TO PROCEDURE REPORT_FACTURAS_DETALLE;
GRANT SELECT ON FACTURAS TO PROCEDURE REPORT_FACTURAS_DETALLE;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE REPORT_FACTURAS_DETALLE;
GRANT SELECT ON LOTES TO PROCEDURE REPORT_FACTURAS_DETALLE;
GRANT SELECT ON FACTURAS TO PROCEDURE REPORT_FACTURAS_USUARIO;
GRANT SELECT ON TERCEROS TO PROCEDURE REPORT_FACTURAS_USUARIO;
GRANT SELECT, UPDATE ON REPORT_ENVIOS_FALTANTES TO PROCEDURE REPORT_FALTANTES;
GRANT SELECT ON REPORT_FALTANTES_TEMP TO PROCEDURE REPORT_FALTANTES;
GRANT EXECUTE ON PROCEDURE REPORT_PENDIENTES TO PROCEDURE REPORT_FALTANTES;
GRANT SELECT ON ARTICULO TO PROCEDURE REPORT_FALTANTESPED;
GRANT SELECT ON FACTURAS TO PROCEDURE REPORT_FALTANTESPED;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE REPORT_FALTANTESPED;
GRANT SELECT ON MARCAS TO PROCEDURE REPORT_FALTANTESPED;
GRANT SELECT ON PEDIDOS TO PROCEDURE REPORT_FALTANTESPED;
GRANT SELECT ON PEDIDOS_DETALLE TO PROCEDURE REPORT_FALTANTESPED;
GRANT SELECT ON PROVEEDOR_ARTICULO TO PROCEDURE REPORT_FALTANTESPED;
GRANT SELECT ON TERCEROS TO PROCEDURE REPORT_FALTANTESPED;
GRANT EXECUTE ON PROCEDURE EXISTENCIAS TO PROCEDURE REPORT_FALTANTESPED;
GRANT EXECUTE ON PROCEDURE SALDO_INVENTARIO TO PROCEDURE REPORT_FALTANTESPED;
GRANT SELECT ON REPORT_CHAT TO PROCEDURE REPORT_HISTORIAL_CHAT;
GRANT SELECT ON RECIBOS_CAJA TO PROCEDURE REPORT_HISTORIAL_RECIBOS;
GRANT SELECT ON USUARIO TO PROCEDURE REPORT_MENSAJES_USUARIOS;
GRANT SELECT ON REPORT_LOGO TO PROCEDURE REPORT_NOTAS_IMPR;
GRANT SELECT ON REPORT_NOTAS TO PROCEDURE REPORT_NOTAS_IMPR;
GRANT SELECT ON TERCEROS TO PROCEDURE REPORT_NOTAS_IMPR;
GRANT SELECT ON NOTAS_DOCUMENTO TO PROCEDURE REPORT_PEDIDOS_DCG;
GRANT SELECT ON PEDIDOS TO PROCEDURE REPORT_PEDIDOS_DCG;
GRANT SELECT ON NOTAS_DOCUMENTO TO PROCEDURE REPORT_PEDIDOS_DES;
GRANT SELECT ON PEDIDOS TO PROCEDURE REPORT_PEDIDOS_DES;
GRANT SELECT ON PEDIDOS_DETALLE TO PROCEDURE REPORT_PENDIENTES;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE REPORT_PENDIENTES;
GRANT SELECT ON PROVEEDORES TO PROCEDURE REPORT_PROVEEDORES;
GRANT SELECT ON TERCEROS TO PROCEDURE REPORT_PROVEEDORES;
GRANT SELECT ON PROVEEDORES TO PROCEDURE REPORT_PROVEEDORES_CONSULTA;
GRANT SELECT ON TERCEROS TO PROCEDURE REPORT_PROVEEDORES_CONSULTA;
GRANT SELECT ON TERCEROS TO PROCEDURE REPORT_PRO_CONTACTOS;
GRANT SELECT ON TERCEROS_CONTACTOS TO PROCEDURE REPORT_PRO_CONTACTOS;
GRANT EXECUTE ON PROCEDURE REPORT_ENVIOSF_CORREO TO PROCEDURE REPORT_RESULTADCORREO;
GRANT SELECT ON AUDITORIA TO PROCEDURE REPORT_TERCEROS_CREADOS;
GRANT SELECT ON PROVEEDORES TO PROCEDURE REPORT_TERCEROS_CREADOS;
GRANT SELECT ON TERCEROS TO PROCEDURE REPORT_TERCEROS_CREADOS;
GRANT SELECT ON REPORT_LOGO TO PROCEDURE REPORT_TICKET_IMPR;
GRANT SELECT ON REPORT_TICKETS TO PROCEDURE REPORT_TICKET_IMPR;
GRANT SELECT, INSERT, DELETE ON ANALISIS_ABCINVEN TO PROCEDURE REP_ABC_INVENTARIO;
GRANT SELECT ON ARTICULO TO PROCEDURE REP_ABC_INVENTARIO;
GRANT SELECT ON GRUPO TO PROCEDURE REP_ABC_INVENTARIO;
GRANT SELECT ON MARCAS TO PROCEDURE REP_ABC_INVENTARIO;
GRANT SELECT ON MOVIMIENTO_ARTICULO TO PROCEDURE REP_ABC_INVENTARIO;
GRANT SELECT ON SUBGRUPO TO PROCEDURE REP_ABC_INVENTARIO;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE REP_ABC_INVENTARIO;
GRANT EXECUTE ON PROCEDURE ULTIMO_COSTO TO PROCEDURE REP_ABC_INVENTARIO;
GRANT SELECT ON CIUDADES TO PROCEDURE REP_ANALISIS_CARTERA;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE REP_ANALISIS_CARTERA;
GRANT SELECT ON CLIENTE_SUCURSALES TO PROCEDURE REP_ANALISIS_CARTERA;
GRANT SELECT ON COBRADORES TO PROCEDURE REP_ANALISIS_CARTERA;
GRANT SELECT ON GRUPO_CARTERA TO PROCEDURE REP_ANALISIS_CARTERA;
GRANT SELECT, REFERENCES ON MOVIMIENTO_CLIENTES TO PROCEDURE REP_ANALISIS_CARTERA;
GRANT SELECT ON RECIBO_PROVISIONAL TO PROCEDURE REP_ANALISIS_CARTERA;
GRANT SELECT ON RECIBO_PROVISIONAL_PAGO TO PROCEDURE REP_ANALISIS_CARTERA;
GRANT SELECT, REFERENCES ON SALDOS_DOC_CARTERA TO PROCEDURE REP_ANALISIS_CARTERA;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE REP_ANALISIS_CARTERA;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_ANALISIS_CARTERA;
GRANT SELECT ON ZONAS TO PROCEDURE REP_ANALISIS_CARTERA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE REP_ANALISIS_CARTERA;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CARTERA TO PROCEDURE REP_ANALISIS_CARTERA;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE REP_ANALISIS_CXPAGAR;
GRANT SELECT ON GRUPOS_PROVEEDORES TO PROCEDURE REP_ANALISIS_CXPAGAR;
GRANT SELECT, REFERENCES ON MOVIMIENTO_PROVEEDOR TO PROCEDURE REP_ANALISIS_CXPAGAR;
GRANT SELECT ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE REP_ANALISIS_CXPAGAR;
GRANT SELECT, REFERENCES ON PROVEEDORES TO PROCEDURE REP_ANALISIS_CXPAGAR;
GRANT SELECT, REFERENCES ON SALDOS_DOC_CXPAGAR TO PROCEDURE REP_ANALISIS_CXPAGAR;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE REP_ANALISIS_CXPAGAR;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_ANALISIS_CXPAGAR;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE REP_ANALISIS_CXPAGAR;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CXPAGAR TO PROCEDURE REP_ANALISIS_CXPAGAR;
GRANT SELECT ON APLICACION_CLIENTE TO PROCEDURE REP_APLICACLI;
GRANT SELECT ON APLICACION_CLIENTE_DETALLE TO PROCEDURE REP_APLICACLI;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_APLICACLI;
GRANT SELECT ON APLICACION_PROVEDOR TO PROCEDURE REP_APLICAPROV;
GRANT SELECT ON APLICACION_PROVEEDOR_DETALLE TO PROCEDURE REP_APLICAPROV;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_APLICAPROV;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT, REFERENCES ON COTIZACIONES TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT, REFERENCES ON COTIZACIONES_DETALLE TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT, REFERENCES ON FACTURAS_DETALLE TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT ON GRUPO TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT ON MARCAS TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT, REFERENCES ON PEDIDOS TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT, REFERENCES ON PEDIDOS_DETALLE TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA_DETALLE TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT ON SUBGRUPO TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT ON ZONAS TO PROCEDURE REP_ARTICULOS_CLIENTE;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT, REFERENCES ON COTIZACIONES_PROVEEDOR_DET TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT, REFERENCES ON COTIZACION_PROVEEDOR TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS_DET TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRA TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT ON GRUPO TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT ON GRUPOS_PROVEEDORES TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT ON MARCAS TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT, REFERENCES ON ORDENES_COMPRA TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT, REFERENCES ON ORDENES_COMPRA_DETALLE TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT, REFERENCES ON PROVEEDORES TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT, REFERENCES ON REMISION_PROVEEDOR TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT, REFERENCES ON REMISION_PROVEEDOR_DET TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT ON SUBGRUPO TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_ARTICULOS_PROVEEDOR;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT ON CLIENTES TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT, REFERENCES ON COTIZACIONES TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT, REFERENCES ON COTIZACIONES_DETALLE TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT, REFERENCES ON FACTURAS_DETALLE TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT ON GRUPO TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT ON MARCAS TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT, REFERENCES ON PEDIDOS TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT, REFERENCES ON PEDIDOS_DETALLE TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA_DETALLE TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT ON SUBGRUPO TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT, REFERENCES ON VENDEDORES TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT ON ZONAS TO PROCEDURE REP_ARTICULOS_VENDEDOR;
GRANT SELECT ON ARTICULO TO PROCEDURE REP_ARTICULO_BARRAS;
GRANT SELECT ON BARRAS_ARTICULO TO PROCEDURE REP_ARTICULO_BARRAS;
GRANT SELECT ON GRUPO TO PROCEDURE REP_ARTICULO_BARRAS;
GRANT SELECT ON MARCAS TO PROCEDURE REP_ARTICULO_BARRAS;
GRANT SELECT ON SUBGRUPO TO PROCEDURE REP_ARTICULO_BARRAS;
GRANT SELECT ON AUDITORIA TO PROCEDURE REP_AUDITORIA;
GRANT SELECT ON TERMINALES_NOMBRES TO PROCEDURE REP_AUDITORIA;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE REP_AUDITORIA;
GRANT SELECT, REFERENCES ON ANTICIPOS_CLIENTE TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT, REFERENCES ON CIUDADES TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT ON CLIENTE_SUCURSALES TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT, REFERENCES ON COBRADORES TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT ON GRUPO_CARTERA TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT, REFERENCES ON MOVIMIENTO_CLIENTES TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT ON NOTAS_CLIENTES TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT, REFERENCES ON NOTAS_CREDITO_CLIENTES TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT, REFERENCES ON NOTAS_DEBITO_CLIENTES TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT ON RECIBOS_CAJA_DETALLE TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT ON RECIBO_PROVISIONAL TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT ON RECIBO_PROVISIONAL_PAGO TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT, REFERENCES ON SALDOS_DOC_CARTERA TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT, REFERENCES ON ZONAS TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CARTERA TO PROCEDURE REP_CARTERA_CLIENTES;
GRANT SELECT, REFERENCES ON ANTICIPOS_CLIENTE TO PROCEDURE REP_CARTERA_CONSOLIDADA;
GRANT SELECT, REFERENCES ON CIUDADES TO PROCEDURE REP_CARTERA_CONSOLIDADA;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE REP_CARTERA_CONSOLIDADA;
GRANT SELECT ON CLIENTE_SUCURSALES TO PROCEDURE REP_CARTERA_CONSOLIDADA;
GRANT SELECT, REFERENCES ON COBRADORES TO PROCEDURE REP_CARTERA_CONSOLIDADA;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE REP_CARTERA_CONSOLIDADA;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE REP_CARTERA_CONSOLIDADA;
GRANT SELECT ON GRUPO_CARTERA TO PROCEDURE REP_CARTERA_CONSOLIDADA;
GRANT SELECT, REFERENCES ON MOVIMIENTO_CLIENTES TO PROCEDURE REP_CARTERA_CONSOLIDADA;
GRANT SELECT, REFERENCES ON NOTAS_CREDITO_CLIENTES TO PROCEDURE REP_CARTERA_CONSOLIDADA;
GRANT SELECT, REFERENCES ON NOTAS_DEBITO_CLIENTES TO PROCEDURE REP_CARTERA_CONSOLIDADA;
GRANT SELECT ON RECIBOS_CAJA_DETALLE TO PROCEDURE REP_CARTERA_CONSOLIDADA;
GRANT SELECT ON RECIBO_PROVISIONAL TO PROCEDURE REP_CARTERA_CONSOLIDADA;
GRANT SELECT, REFERENCES ON SALDOS_DOC_CARTERA TO PROCEDURE REP_CARTERA_CONSOLIDADA;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE REP_CARTERA_CONSOLIDADA;
GRANT SELECT, REFERENCES ON ZONAS TO PROCEDURE REP_CARTERA_CONSOLIDADA;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CARTERA TO PROCEDURE REP_CARTERA_CONSOLIDADA;
GRANT SELECT ON CIUDADES TO PROCEDURE REP_CARTERA_NOTAS;
GRANT SELECT ON CLIENTES TO PROCEDURE REP_CARTERA_NOTAS;
GRANT SELECT ON CLIENTE_SUCURSALES TO PROCEDURE REP_CARTERA_NOTAS;
GRANT SELECT ON COBRADORES TO PROCEDURE REP_CARTERA_NOTAS;
GRANT SELECT ON GRUPO_CARTERA TO PROCEDURE REP_CARTERA_NOTAS;
GRANT SELECT ON MOVIMIENTO_CLIENTES TO PROCEDURE REP_CARTERA_NOTAS;
GRANT SELECT ON NOTAS_CLIENTES TO PROCEDURE REP_CARTERA_NOTAS;
GRANT SELECT ON RECIBO_PROVISIONAL TO PROCEDURE REP_CARTERA_NOTAS;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_CARTERA_NOTAS;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE REP_CARTERA_NOTAS;
GRANT SELECT ON ZONAS TO PROCEDURE REP_CARTERA_NOTAS;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CARTERA TO PROCEDURE REP_CARTERA_NOTAS;
GRANT SELECT ON CIUDADES TO PROCEDURE REP_CLIENTES;
GRANT SELECT ON CLIENTES TO PROCEDURE REP_CLIENTES;
GRANT SELECT ON COBRADORES TO PROCEDURE REP_CLIENTES;
GRANT SELECT ON LISTA_PRECIOS TO PROCEDURE REP_CLIENTES;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_CLIENTES;
GRANT SELECT ON VENDEDORES TO PROCEDURE REP_CLIENTES;
GRANT SELECT ON ZONAS TO PROCEDURE REP_CLIENTES;
GRANT SELECT ON CIUDADES TO PROCEDURE REP_CLIENTES_ULTVENTA;
GRANT SELECT ON CLIENTES TO PROCEDURE REP_CLIENTES_ULTVENTA;
GRANT SELECT ON CLIENTE_SUCURSALES TO PROCEDURE REP_CLIENTES_ULTVENTA;
GRANT SELECT ON COBRADORES TO PROCEDURE REP_CLIENTES_ULTVENTA;
GRANT SELECT ON FACTURAS TO PROCEDURE REP_CLIENTES_ULTVENTA;
GRANT SELECT ON GRUPO_CARTERA TO PROCEDURE REP_CLIENTES_ULTVENTA;
GRANT SELECT ON LISTA_PRECIOS TO PROCEDURE REP_CLIENTES_ULTVENTA;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_CLIENTES_ULTVENTA;
GRANT SELECT ON VENDEDORES TO PROCEDURE REP_CLIENTES_ULTVENTA;
GRANT SELECT ON ZONAS TO PROCEDURE REP_CLIENTES_ULTVENTA;
GRANT SELECT ON ARTICULO TO PROCEDURE REP_COMPRAS_ARTICULO;
GRANT SELECT ON COTIZACIONES_PROVEEDOR_DET TO PROCEDURE REP_COMPRAS_ARTICULO;
GRANT SELECT ON COTIZACION_PROVEEDOR TO PROCEDURE REP_COMPRAS_ARTICULO;
GRANT SELECT ON DEVOLUCIONES_COMPRAS TO PROCEDURE REP_COMPRAS_ARTICULO;
GRANT SELECT ON DEVOLUCIONES_COMPRAS_DET TO PROCEDURE REP_COMPRAS_ARTICULO;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE REP_COMPRAS_ARTICULO;
GRANT SELECT ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE REP_COMPRAS_ARTICULO;
GRANT SELECT ON GRUPO TO PROCEDURE REP_COMPRAS_ARTICULO;
GRANT SELECT ON MARCAS TO PROCEDURE REP_COMPRAS_ARTICULO;
GRANT SELECT ON ORDENES_COMPRA TO PROCEDURE REP_COMPRAS_ARTICULO;
GRANT SELECT ON ORDENES_COMPRA_DETALLE TO PROCEDURE REP_COMPRAS_ARTICULO;
GRANT SELECT ON REMISION_PROVEEDOR TO PROCEDURE REP_COMPRAS_ARTICULO;
GRANT SELECT ON REMISION_PROVEEDOR_DET TO PROCEDURE REP_COMPRAS_ARTICULO;
GRANT SELECT ON SUBGRUPO TO PROCEDURE REP_COMPRAS_ARTICULO;
GRANT SELECT, REFERENCES ON COTIZACION_PROVEEDOR TO PROCEDURE REP_COMPRAS_PROVEEDOR;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS TO PROCEDURE REP_COMPRAS_PROVEEDOR;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRA TO PROCEDURE REP_COMPRAS_PROVEEDOR;
GRANT SELECT ON GRUPOS_PROVEEDORES TO PROCEDURE REP_COMPRAS_PROVEEDOR;
GRANT SELECT, REFERENCES ON ORDENES_COMPRA TO PROCEDURE REP_COMPRAS_PROVEEDOR;
GRANT SELECT, REFERENCES ON PROVEEDORES TO PROCEDURE REP_COMPRAS_PROVEEDOR;
GRANT SELECT, REFERENCES ON REMISION_PROVEEDOR TO PROCEDURE REP_COMPRAS_PROVEEDOR;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE REP_COMPRAS_PROVEEDOR;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_COMPRAS_PROVEEDOR;
GRANT SELECT ON ARTICULO TO PROCEDURE REP_COMPROBANTES_ARTICULO;
GRANT SELECT ON GRUPO TO PROCEDURE REP_COMPROBANTES_ARTICULO;
GRANT SELECT ON MARCAS TO PROCEDURE REP_COMPROBANTES_ARTICULO;
GRANT SELECT ON MOVIMIENTO_ARTICULO TO PROCEDURE REP_COMPROBANTES_ARTICULO;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_COMPROBANTES_ARTICULO;
GRANT SELECT ON SUBGRUPO TO PROCEDURE REP_COMPROBANTES_ARTICULO;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_COMPROBANTES_ARTICULO;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE REP_COMPROBANTES_ARTICULO;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE REP_COMPROBANTES_ARTICULO;
GRANT SELECT, REFERENCES ON CHEQUES TO PROCEDURE REP_COMPROBANTES_BANCOS;
GRANT SELECT, REFERENCES ON CONSIGNA TO PROCEDURE REP_COMPROBANTES_BANCOS;
GRANT SELECT, REFERENCES ON CONSIGNA_DETALLE TO PROCEDURE REP_COMPROBANTES_BANCOS;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE REP_COMPROBANTES_BANCOS;
GRANT SELECT, REFERENCES ON DEVOLUCION_CHEQUES TO PROCEDURE REP_COMPROBANTES_BANCOS;
GRANT SELECT, REFERENCES ON FORMAS_PAGO TO PROCEDURE REP_COMPROBANTES_BANCOS;
GRANT SELECT, REFERENCES ON NOTAS_CREDITO TO PROCEDURE REP_COMPROBANTES_BANCOS;
GRANT SELECT, REFERENCES ON NOTAS_DEBITO TO PROCEDURE REP_COMPROBANTES_BANCOS;
GRANT SELECT, REFERENCES ON RETIROS TO PROCEDURE REP_COMPROBANTES_BANCOS;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_COMPROBANTES_BANCOS;
GRANT SELECT, REFERENCES ON TRASLADOS TO PROCEDURE REP_COMPROBANTES_BANCOS;
GRANT SELECT, REFERENCES ON CAJAS TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON CAMBIODOC_ENTRADAS TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON CAMBIODOC_SALIDAS TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON CAMBIO_DOCUMENTOS TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON CONSIGNA_TARJETAS TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON CONSIGNA_TARJETAS_DET TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON EGRESOS TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON EGRESOS_BANCO TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON EGRESOS_CAJA TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON FORMAS_PAGO TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA_PAGO TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON RECIBO_PROVISIONAL TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON RECIBO_PROVISIONAL_PAGO TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON TRASLADOS_CAJA TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON TRASLADOS_CAJA_DET TO PROCEDURE REP_COMPROBANTES_CAJA;
GRANT SELECT, REFERENCES ON ANTICIPOS_CLIENTE TO PROCEDURE REP_COMPROBANTES_CARTERA;
GRANT SELECT, REFERENCES ON APLICACION_CLIENTE TO PROCEDURE REP_COMPROBANTES_CARTERA;
GRANT SELECT, REFERENCES ON APLICACION_CLIENTE_DETALLE TO PROCEDURE REP_COMPROBANTES_CARTERA;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE REP_COMPROBANTES_CARTERA;
GRANT SELECT, REFERENCES ON COBRADORES TO PROCEDURE REP_COMPROBANTES_CARTERA;
GRANT SELECT, REFERENCES ON NOTAS_CREDITO_CLIENTES TO PROCEDURE REP_COMPROBANTES_CARTERA;
GRANT SELECT, REFERENCES ON NOTAS_DEBITO_CLIENTES TO PROCEDURE REP_COMPROBANTES_CARTERA;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_COMPROBANTES_CARTERA;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE REP_COMPROBANTES_CARTERA;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_COMPROBANTES_CARTERA;
GRANT SELECT, REFERENCES ON ZONAS TO PROCEDURE REP_COMPROBANTES_CARTERA;
GRANT SELECT ON BODEGA TO PROCEDURE REP_COMPROBANTES_CMP;
GRANT SELECT ON COTIZACIONES_PROVEEDOR_DET TO PROCEDURE REP_COMPROBANTES_CMP;
GRANT SELECT ON COTIZACION_PROVEEDOR TO PROCEDURE REP_COMPROBANTES_CMP;
GRANT SELECT ON DEVOLUCIONES_COMPRAS TO PROCEDURE REP_COMPROBANTES_CMP;
GRANT SELECT ON DEVOLUCIONES_COMPRAS_DET TO PROCEDURE REP_COMPROBANTES_CMP;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE REP_COMPROBANTES_CMP;
GRANT SELECT ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE REP_COMPROBANTES_CMP;
GRANT SELECT ON ORDENES_COMPRA TO PROCEDURE REP_COMPROBANTES_CMP;
GRANT SELECT ON ORDENES_COMPRA_DETALLE TO PROCEDURE REP_COMPROBANTES_CMP;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_COMPROBANTES_CMP;
GRANT SELECT ON REMISION_PROVEEDOR TO PROCEDURE REP_COMPROBANTES_CMP;
GRANT SELECT ON REMISION_PROVEEDOR_DET TO PROCEDURE REP_COMPROBANTES_CMP;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_COMPROBANTES_CMP;
GRANT SELECT ON ANTICIPOS_PROVEEDOR TO PROCEDURE REP_COMPROBANTES_CXPAGAR;
GRANT SELECT ON APLICACION_PROVEDOR TO PROCEDURE REP_COMPROBANTES_CXPAGAR;
GRANT SELECT ON APLICACION_PROVEEDOR_DETALLE TO PROCEDURE REP_COMPROBANTES_CXPAGAR;
GRANT SELECT ON GRUPOS_PROVEEDORES TO PROCEDURE REP_COMPROBANTES_CXPAGAR;
GRANT SELECT ON NOTAS_CREDITO_PROVEEDOR TO PROCEDURE REP_COMPROBANTES_CXPAGAR;
GRANT SELECT ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE REP_COMPROBANTES_CXPAGAR;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_COMPROBANTES_CXPAGAR;
GRANT SELECT ON PROVEEDORES TO PROCEDURE REP_COMPROBANTES_CXPAGAR;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_COMPROBANTES_CXPAGAR;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE REP_COMPROBANTES_CXPAGAR;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE REP_COMPROBANTES_FAC;
GRANT SELECT, REFERENCES ON COTIZACIONES TO PROCEDURE REP_COMPROBANTES_FAC;
GRANT SELECT, REFERENCES ON COTIZACIONES_DETALLE TO PROCEDURE REP_COMPROBANTES_FAC;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE REP_COMPROBANTES_FAC;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE REP_COMPROBANTES_FAC;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE REP_COMPROBANTES_FAC;
GRANT SELECT, REFERENCES ON FACTURAS_DETALLE TO PROCEDURE REP_COMPROBANTES_FAC;
GRANT SELECT, REFERENCES ON PEDIDOS TO PROCEDURE REP_COMPROBANTES_FAC;
GRANT SELECT, REFERENCES ON PEDIDOS_DETALLE TO PROCEDURE REP_COMPROBANTES_FAC;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_COMPROBANTES_FAC;
GRANT SELECT, REFERENCES ON PUNTO_VENTA TO PROCEDURE REP_COMPROBANTES_FAC;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA TO PROCEDURE REP_COMPROBANTES_FAC;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA_DETALLE TO PROCEDURE REP_COMPROBANTES_FAC;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE REP_COMPROBANTES_FAC;
GRANT SELECT, REFERENCES ON VENDEDORES TO PROCEDURE REP_COMPROBANTES_FAC;
GRANT SELECT ON AJUSTES TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON AJUSTES_DETALLE TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON ARTICULO TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON BODEGA TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON DESENSAMBLES TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON DESENSAMBLES_DETALLE TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON ENSAMBLES TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON ENSAMBLES_DETALLE TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON ENTRADAS TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON ENTRADAS_DETALLE TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON ORDENES_INVENTARIO TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON ORDENINVENTARIO_DETALLE TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON RESERVAS TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON RESERVAS_DETALLE TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON SALIDAS TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON SALIDAS_DETALLE TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON TRASFERENCIAS TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT ON TRASFERENCIAS_DETALLE TO PROCEDURE REP_COMPROBANTES_INV;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE REP_COMPROBANTES_INV;
GRANT SELECT, REFERENCES ON CHEQUES TO PROCEDURE REP_CONSECUTIVOS_BANCOS;
GRANT SELECT, REFERENCES ON CONSIGNA TO PROCEDURE REP_CONSECUTIVOS_BANCOS;
GRANT SELECT, REFERENCES ON CONSIGNA_DETALLE TO PROCEDURE REP_CONSECUTIVOS_BANCOS;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE REP_CONSECUTIVOS_BANCOS;
GRANT SELECT, REFERENCES ON DEVOLUCION_CHEQUES TO PROCEDURE REP_CONSECUTIVOS_BANCOS;
GRANT SELECT, REFERENCES ON FORMAS_PAGO TO PROCEDURE REP_CONSECUTIVOS_BANCOS;
GRANT SELECT, REFERENCES ON NOTAS_CREDITO TO PROCEDURE REP_CONSECUTIVOS_BANCOS;
GRANT SELECT, REFERENCES ON NOTAS_DEBITO TO PROCEDURE REP_CONSECUTIVOS_BANCOS;
GRANT SELECT, REFERENCES ON RETIROS TO PROCEDURE REP_CONSECUTIVOS_BANCOS;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_CONSECUTIVOS_BANCOS;
GRANT SELECT, REFERENCES ON TRASLADOS TO PROCEDURE REP_CONSECUTIVOS_BANCOS;
GRANT SELECT, REFERENCES ON CAJAS TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON CAMBIODOC_ENTRADAS TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON CAMBIODOC_SALIDAS TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON CAMBIO_DOCUMENTOS TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON CONSIGNA_TARJETAS TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON CONSIGNA_TARJETAS_DET TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON EGRESOS TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON EGRESOS_BANCO TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON EGRESOS_CAJA TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON FORMAS_PAGO TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA_PAGO TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON RECIBO_PROVISIONAL TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON RECIBO_PROVISIONAL_PAGO TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON TRASLADOS_CAJA TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON TRASLADOS_CAJA_DET TO PROCEDURE REP_CONSECUTIVOS_CAJA;
GRANT SELECT, REFERENCES ON ANTICIPOS_CLIENTE TO PROCEDURE REP_CONSECUTIVOS_CARTERA;
GRANT SELECT, REFERENCES ON APLICACION_CLIENTE TO PROCEDURE REP_CONSECUTIVOS_CARTERA;
GRANT SELECT, REFERENCES ON APLICACION_CLIENTE_DETALLE TO PROCEDURE REP_CONSECUTIVOS_CARTERA;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE REP_CONSECUTIVOS_CARTERA;
GRANT SELECT, REFERENCES ON COBRADORES TO PROCEDURE REP_CONSECUTIVOS_CARTERA;
GRANT SELECT, REFERENCES ON NOTAS_CREDITO_CLIENTES TO PROCEDURE REP_CONSECUTIVOS_CARTERA;
GRANT SELECT, REFERENCES ON NOTAS_DEBITO_CLIENTES TO PROCEDURE REP_CONSECUTIVOS_CARTERA;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_CONSECUTIVOS_CARTERA;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE REP_CONSECUTIVOS_CARTERA;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_CONSECUTIVOS_CARTERA;
GRANT SELECT, REFERENCES ON ZONAS TO PROCEDURE REP_CONSECUTIVOS_CARTERA;
GRANT SELECT ON BODEGA TO PROCEDURE REP_CONSECUTIVOS_CMP;
GRANT SELECT ON COTIZACIONES_PROVEEDOR_DET TO PROCEDURE REP_CONSECUTIVOS_CMP;
GRANT SELECT ON COTIZACION_PROVEEDOR TO PROCEDURE REP_CONSECUTIVOS_CMP;
GRANT SELECT ON DEVOLUCIONES_COMPRAS TO PROCEDURE REP_CONSECUTIVOS_CMP;
GRANT SELECT ON DEVOLUCIONES_COMPRAS_DET TO PROCEDURE REP_CONSECUTIVOS_CMP;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE REP_CONSECUTIVOS_CMP;
GRANT SELECT ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE REP_CONSECUTIVOS_CMP;
GRANT SELECT ON ORDENES_COMPRA TO PROCEDURE REP_CONSECUTIVOS_CMP;
GRANT SELECT ON ORDENES_COMPRA_DETALLE TO PROCEDURE REP_CONSECUTIVOS_CMP;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_CONSECUTIVOS_CMP;
GRANT SELECT ON REMISION_PROVEEDOR TO PROCEDURE REP_CONSECUTIVOS_CMP;
GRANT SELECT ON REMISION_PROVEEDOR_DET TO PROCEDURE REP_CONSECUTIVOS_CMP;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_CONSECUTIVOS_CMP;
GRANT SELECT ON ANTICIPOS_PROVEEDOR TO PROCEDURE REP_CONSECUTIVOS_CXPAGAR;
GRANT SELECT ON APLICACION_PROVEDOR TO PROCEDURE REP_CONSECUTIVOS_CXPAGAR;
GRANT SELECT ON APLICACION_PROVEEDOR_DETALLE TO PROCEDURE REP_CONSECUTIVOS_CXPAGAR;
GRANT SELECT ON NOTAS_CREDITO_PROVEEDOR TO PROCEDURE REP_CONSECUTIVOS_CXPAGAR;
GRANT SELECT ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE REP_CONSECUTIVOS_CXPAGAR;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_CONSECUTIVOS_CXPAGAR;
GRANT SELECT ON PROVEEDORES TO PROCEDURE REP_CONSECUTIVOS_CXPAGAR;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_CONSECUTIVOS_CXPAGAR;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE REP_CONSECUTIVOS_CXPAGAR;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE REP_CONSECUTIVOS_FAC;
GRANT SELECT, REFERENCES ON COTIZACIONES TO PROCEDURE REP_CONSECUTIVOS_FAC;
GRANT SELECT, REFERENCES ON COTIZACIONES_DETALLE TO PROCEDURE REP_CONSECUTIVOS_FAC;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE REP_CONSECUTIVOS_FAC;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE REP_CONSECUTIVOS_FAC;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE REP_CONSECUTIVOS_FAC;
GRANT SELECT, REFERENCES ON FACTURAS_DETALLE TO PROCEDURE REP_CONSECUTIVOS_FAC;
GRANT SELECT, REFERENCES ON PEDIDOS TO PROCEDURE REP_CONSECUTIVOS_FAC;
GRANT SELECT, REFERENCES ON PEDIDOS_DETALLE TO PROCEDURE REP_CONSECUTIVOS_FAC;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_CONSECUTIVOS_FAC;
GRANT SELECT, REFERENCES ON PUNTO_VENTA TO PROCEDURE REP_CONSECUTIVOS_FAC;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA TO PROCEDURE REP_CONSECUTIVOS_FAC;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA_DETALLE TO PROCEDURE REP_CONSECUTIVOS_FAC;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE REP_CONSECUTIVOS_FAC;
GRANT SELECT, REFERENCES ON VENDEDORES TO PROCEDURE REP_CONSECUTIVOS_FAC;
GRANT SELECT, REFERENCES ON AJUSTES TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON AJUSTES_DETALLE TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON DESENSAMBLES TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON DESENSAMBLES_DETALLE TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON ENSAMBLES TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON ENSAMBLES_DETALLE TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON ENTRADAS TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON ENTRADAS_DETALLE TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON ORDENES_INVENTARIO TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON ORDENINVENTARIO_DETALLE TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON RESERVAS TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON RESERVAS_DETALLE TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON SALIDAS TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON SALIDAS_DETALLE TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON TRASFERENCIAS TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON TRASFERENCIAS_DETALLE TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE REP_CONSECUTIVOS_INV;
GRANT SELECT, REFERENCES ON BANCOS TO PROCEDURE REP_CONSIGNACIONES;
GRANT SELECT, REFERENCES ON CONSIGNA TO PROCEDURE REP_CONSIGNACIONES;
GRANT SELECT, REFERENCES ON CONSIGNA_DETALLE TO PROCEDURE REP_CONSIGNACIONES;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE REP_CONSIGNACIONES;
GRANT SELECT, REFERENCES ON FORMAS_PAGO TO PROCEDURE REP_CONSIGNACIONES;
GRANT SELECT, REFERENCES ON ANTICIPOS_PROVEEDOR TO PROCEDURE REP_CXPAGAR_CONSOLIDADAS;
GRANT SELECT, REFERENCES ON CIUDADES TO PROCEDURE REP_CXPAGAR_CONSOLIDADAS;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS TO PROCEDURE REP_CXPAGAR_CONSOLIDADAS;
GRANT SELECT ON EGRESOS_DETALLE TO PROCEDURE REP_CXPAGAR_CONSOLIDADAS;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRA TO PROCEDURE REP_CXPAGAR_CONSOLIDADAS;
GRANT SELECT, REFERENCES ON GRUPOS_PROVEEDORES TO PROCEDURE REP_CXPAGAR_CONSOLIDADAS;
GRANT SELECT, REFERENCES ON MOVIMIENTO_PROVEEDOR TO PROCEDURE REP_CXPAGAR_CONSOLIDADAS;
GRANT SELECT, REFERENCES ON NOTAS_CREDITO_PROVEEDOR TO PROCEDURE REP_CXPAGAR_CONSOLIDADAS;
GRANT SELECT, REFERENCES ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE REP_CXPAGAR_CONSOLIDADAS;
GRANT SELECT, REFERENCES ON PROVEEDORES TO PROCEDURE REP_CXPAGAR_CONSOLIDADAS;
GRANT SELECT, REFERENCES ON SALDOS_DOC_CXPAGAR TO PROCEDURE REP_CXPAGAR_CONSOLIDADAS;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE REP_CXPAGAR_CONSOLIDADAS;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CXPAGAR TO PROCEDURE REP_CXPAGAR_CONSOLIDADAS;
GRANT SELECT, REFERENCES ON ANTICIPOS_PROVEEDOR TO PROCEDURE REP_CXPAGAR_PROVEEDOR;
GRANT SELECT ON CIUDADES TO PROCEDURE REP_CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS TO PROCEDURE REP_CXPAGAR_PROVEEDOR;
GRANT SELECT ON EGRESOS_DETALLE TO PROCEDURE REP_CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRA TO PROCEDURE REP_CXPAGAR_PROVEEDOR;
GRANT SELECT ON GRUPOS_PROVEEDORES TO PROCEDURE REP_CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON MOVIMIENTO_PROVEEDOR TO PROCEDURE REP_CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON NOTAS_CREDITO_PROVEEDOR TO PROCEDURE REP_CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE REP_CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON PROVEEDORES TO PROCEDURE REP_CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON SALDOS_DOC_CXPAGAR TO PROCEDURE REP_CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE REP_CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_CXPAGAR_PROVEEDOR;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE REP_CXPAGAR_PROVEEDOR;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CXPAGAR TO PROCEDURE REP_CXPAGAR_PROVEEDOR;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE REP_DISPONIBILIDAD;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE REP_DISPONIBILIDAD;
GRANT SELECT ON FACTURAS_COMPRA TO PROCEDURE REP_DISPONIBILIDAD;
GRANT SELECT ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE REP_DISPONIBILIDAD;
GRANT SELECT, REFERENCES ON GRUPO TO PROCEDURE REP_DISPONIBILIDAD;
GRANT SELECT, REFERENCES ON MARCAS TO PROCEDURE REP_DISPONIBILIDAD;
GRANT SELECT ON MOVIMIENTO_ARTICULO TO PROCEDURE REP_DISPONIBILIDAD;
GRANT SELECT, REFERENCES ON SUBGRUPO TO PROCEDURE REP_DISPONIBILIDAD;
GRANT EXECUTE ON PROCEDURE DISPONIBILIDAD_ARTICULO TO PROCEDURE REP_DISPONIBILIDAD;
GRANT EXECUTE ON PROCEDURE DISPONIBILIDAD_TOTAL_ARTICULO TO PROCEDURE REP_DISPONIBILIDAD;
GRANT EXECUTE ON PROCEDURE ULTIMO_COSTO TO PROCEDURE REP_DISPONIBILIDAD;
GRANT SELECT, REFERENCES ON ANTICIPOS_CLIENTE TO PROCEDURE REP_DOCUMENTOS_CLIENTE;
GRANT SELECT, REFERENCES ON APLICACION_CLIENTE TO PROCEDURE REP_DOCUMENTOS_CLIENTE;
GRANT SELECT, REFERENCES ON APLICACION_CLIENTE_DETALLE TO PROCEDURE REP_DOCUMENTOS_CLIENTE;
GRANT SELECT ON CIUDADES TO PROCEDURE REP_DOCUMENTOS_CLIENTE;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE REP_DOCUMENTOS_CLIENTE;
GRANT SELECT ON COBRADORES TO PROCEDURE REP_DOCUMENTOS_CLIENTE;
GRANT SELECT, REFERENCES ON NOTAS_CREDITO_CLIENTES TO PROCEDURE REP_DOCUMENTOS_CLIENTE;
GRANT SELECT, REFERENCES ON NOTAS_DEBITO_CLIENTES TO PROCEDURE REP_DOCUMENTOS_CLIENTE;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_DOCUMENTOS_CLIENTE;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE REP_DOCUMENTOS_CLIENTE;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_DOCUMENTOS_CLIENTE;
GRANT SELECT ON ZONAS TO PROCEDURE REP_DOCUMENTOS_CLIENTE;
GRANT SELECT, REFERENCES ON CAJAS TO PROCEDURE REP_DOCUMENTOS_ENCAJA;
GRANT SELECT, REFERENCES ON DEVOLUCION_CHEQUES TO PROCEDURE REP_DOCUMENTOS_ENCAJA;
GRANT SELECT, REFERENCES ON DOCUMENTOS_PAGO_CAJA TO PROCEDURE REP_DOCUMENTOS_ENCAJA;
GRANT SELECT, REFERENCES ON FORMAS_PAGO TO PROCEDURE REP_DOCUMENTOS_ENCAJA;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA TO PROCEDURE REP_DOCUMENTOS_ENCAJA;
GRANT SELECT, REFERENCES ON RECIBO_PROVISIONAL TO PROCEDURE REP_DOCUMENTOS_ENCAJA;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_DOCUMENTOS_ENCAJA;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_DOCUMENTOS_ENCAJA;
GRANT EXECUTE ON PROCEDURE SALDO_EN_EFECTIVO TO PROCEDURE REP_DOCUMENTOS_ENCAJA;
GRANT SELECT ON ANTICIPOS_PROVEEDOR TO PROCEDURE REP_DOCUMENTOS_PROVEEDOR;
GRANT SELECT ON APLICACION_PROVEDOR TO PROCEDURE REP_DOCUMENTOS_PROVEEDOR;
GRANT SELECT ON APLICACION_PROVEEDOR_DETALLE TO PROCEDURE REP_DOCUMENTOS_PROVEEDOR;
GRANT SELECT ON CIUDADES TO PROCEDURE REP_DOCUMENTOS_PROVEEDOR;
GRANT SELECT ON GRUPOS_PROVEEDORES TO PROCEDURE REP_DOCUMENTOS_PROVEEDOR;
GRANT SELECT ON NOTAS_CREDITO_PROVEEDOR TO PROCEDURE REP_DOCUMENTOS_PROVEEDOR;
GRANT SELECT ON NOTAS_DEBITO_PROVEEDOR TO PROCEDURE REP_DOCUMENTOS_PROVEEDOR;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_DOCUMENTOS_PROVEEDOR;
GRANT SELECT ON PROVEEDORES TO PROCEDURE REP_DOCUMENTOS_PROVEEDOR;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_DOCUMENTOS_PROVEEDOR;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE REP_DOCUMENTOS_PROVEEDOR;
GRANT SELECT ON CLASE_EGRESO TO PROCEDURE REP_EGRESOS;
GRANT SELECT ON BANCOS TO PROCEDURE REP_ESTADO_CUENTA_BANCO;
GRANT SELECT, REFERENCES ON CUENTAS_BANCO TO PROCEDURE REP_ESTADO_CUENTA_BANCO;
GRANT SELECT, REFERENCES ON MOVIMIENTO_BANCO TO PROCEDURE REP_ESTADO_CUENTA_BANCO;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_ESTADO_CUENTA_BANCO;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_BANCO TO PROCEDURE REP_ESTADO_CUENTA_BANCO;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE REP_EXISTENCIAS_PRECIOS;
GRANT SELECT, REFERENCES ON BODEGA TO PROCEDURE REP_EXISTENCIAS_PRECIOS;
GRANT SELECT, REFERENCES ON GRUPO TO PROCEDURE REP_EXISTENCIAS_PRECIOS;
GRANT SELECT, REFERENCES ON LISTA_PRECIOS TO PROCEDURE REP_EXISTENCIAS_PRECIOS;
GRANT SELECT, REFERENCES ON MARCAS TO PROCEDURE REP_EXISTENCIAS_PRECIOS;
GRANT SELECT, REFERENCES ON PRECIOS_ARTICULO TO PROCEDURE REP_EXISTENCIAS_PRECIOS;
GRANT SELECT, REFERENCES ON SUBGRUPO TO PROCEDURE REP_EXISTENCIAS_PRECIOS;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE REP_EXISTENCIAS_PRECIOS;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE REP_EXISTENCIAS_PRECIOS;
GRANT EXECUTE ON PROCEDURE SALDO_INICIAL_INVENTARIO TO PROCEDURE REP_EXISTENCIAS_PRECIOS;
GRANT EXECUTE ON PROCEDURE SALDO_INICIAL_TOTAL_INV TO PROCEDURE REP_EXISTENCIAS_PRECIOS;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT ON CLIENTE_SUCURSALES TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT, REFERENCES ON COTIZACIONES TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT, REFERENCES ON COTIZACIONES_DETALLE TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT, REFERENCES ON FACTURAS_DETALLE TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT ON GRUPO TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT ON MARCAS TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT, REFERENCES ON PEDIDOS TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT, REFERENCES ON PEDIDOS_DETALLE TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA_DETALLE TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT ON SUBGRUPO TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT ON ZONAS TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE REP_FALTANTES_CLIENTES;
GRANT SELECT ON COTIZACIONES_PROVEEDOR_DET TO PROCEDURE REP_FALTANTES_COMPRA;
GRANT SELECT ON COTIZACION_PROVEEDOR TO PROCEDURE REP_FALTANTES_COMPRA;
GRANT SELECT ON ORDENES_COMPRA TO PROCEDURE REP_FALTANTES_COMPRA;
GRANT SELECT ON ORDENES_COMPRA_DETALLE TO PROCEDURE REP_FALTANTES_COMPRA;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_FALTANTES_COMPRA;
GRANT SELECT ON REMISION_PROVEEDOR TO PROCEDURE REP_FALTANTES_COMPRA;
GRANT SELECT ON REMISION_PROVEEDOR_DET TO PROCEDURE REP_FALTANTES_COMPRA;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_FALTANTES_COMPRA;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE REP_FALTANTES_COMPRA;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT, REFERENCES ON COTIZACIONES_PROVEEDOR_DET TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT, REFERENCES ON COTIZACION_PROVEEDOR TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS_DET TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRA TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT ON GRUPO TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT, REFERENCES ON GRUPOS_PROVEEDORES TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT ON MARCAS TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT, REFERENCES ON ORDENES_COMPRA TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT, REFERENCES ON ORDENES_COMPRA_DETALLE TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT, REFERENCES ON PROVEEDORES TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT, REFERENCES ON REMISION_PROVEEDOR TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT, REFERENCES ON REMISION_PROVEEDOR_DET TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT ON SUBGRUPO TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE REP_FALTANTES_PROVEEDOR;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT SELECT, REFERENCES ON COTIZACIONES TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT SELECT, REFERENCES ON COTIZACIONES_DETALLE TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT SELECT, REFERENCES ON FACTURAS_DETALLE TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT SELECT ON GRUPO TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT SELECT ON MARCAS TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT SELECT, REFERENCES ON PEDIDOS TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT SELECT, REFERENCES ON PEDIDOS_DETALLE TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA_DETALLE TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT SELECT ON SUBGRUPO TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT SELECT, REFERENCES ON VENDEDORES TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE REP_FALTANTES_VENDEDOR;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE REP_FALTANTES_VENTA;
GRANT SELECT, REFERENCES ON COTIZACIONES TO PROCEDURE REP_FALTANTES_VENTA;
GRANT SELECT, REFERENCES ON COTIZACIONES_DETALLE TO PROCEDURE REP_FALTANTES_VENTA;
GRANT SELECT, REFERENCES ON PEDIDOS TO PROCEDURE REP_FALTANTES_VENTA;
GRANT SELECT, REFERENCES ON PEDIDOS_DETALLE TO PROCEDURE REP_FALTANTES_VENTA;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_FALTANTES_VENTA;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA TO PROCEDURE REP_FALTANTES_VENTA;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA_DETALLE TO PROCEDURE REP_FALTANTES_VENTA;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE REP_FALTANTES_VENTA;
GRANT SELECT ON ARTICULO TO PROCEDURE REP_KARDEX_ARTICULO;
GRANT SELECT ON COSTOS TO PROCEDURE REP_KARDEX_ARTICULO;
GRANT SELECT ON GRUPO TO PROCEDURE REP_KARDEX_ARTICULO;
GRANT SELECT ON MARCAS TO PROCEDURE REP_KARDEX_ARTICULO;
GRANT SELECT ON MOVIMIENTO_ARTICULO TO PROCEDURE REP_KARDEX_ARTICULO;
GRANT SELECT ON SUBGRUPO TO PROCEDURE REP_KARDEX_ARTICULO;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE REP_KARDEX_ARTICULO;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE REP_KARDEX_ARTICULO;
GRANT EXECUTE ON PROCEDURE SALDO_INICIAL_TOTAL_INV TO PROCEDURE REP_KARDEX_ARTICULO;
GRANT EXECUTE ON PROCEDURE VALOR_INICIAL_INVENTARIO TO PROCEDURE REP_KARDEX_ARTICULO;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE REP_LISTA_PRECIOS;
GRANT SELECT, REFERENCES ON GRUPO TO PROCEDURE REP_LISTA_PRECIOS;
GRANT SELECT, REFERENCES ON LISTA_PRECIOS TO PROCEDURE REP_LISTA_PRECIOS;
GRANT SELECT, REFERENCES ON MARCAS TO PROCEDURE REP_LISTA_PRECIOS;
GRANT SELECT, REFERENCES ON PRECIOS_ARTICULO TO PROCEDURE REP_LISTA_PRECIOS;
GRANT SELECT, REFERENCES ON SUBGRUPO TO PROCEDURE REP_LISTA_PRECIOS;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE REP_LISTA_PRECIOS;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE REP_LISTA_PRECIOS;
GRANT SELECT, REFERENCES ON CAJAS TO PROCEDURE REP_MOVCAJA_DOCUMENTOS;
GRANT SELECT, REFERENCES ON CAMBIODOC_ENTRADAS TO PROCEDURE REP_MOVCAJA_DOCUMENTOS;
GRANT SELECT, REFERENCES ON CAMBIODOC_SALIDAS TO PROCEDURE REP_MOVCAJA_DOCUMENTOS;
GRANT SELECT ON CONSIGNA_DETALLE TO PROCEDURE REP_MOVCAJA_DOCUMENTOS;
GRANT SELECT, REFERENCES ON DEVOLUCION_CHEQUES TO PROCEDURE REP_MOVCAJA_DOCUMENTOS;
GRANT SELECT ON EGRESOS TO PROCEDURE REP_MOVCAJA_DOCUMENTOS;
GRANT SELECT, REFERENCES ON EGRESOS_CAJA TO PROCEDURE REP_MOVCAJA_DOCUMENTOS;
GRANT SELECT, REFERENCES ON FORMAS_PAGO TO PROCEDURE REP_MOVCAJA_DOCUMENTOS;
GRANT SELECT, REFERENCES ON MOVIMIENTO_CAJA TO PROCEDURE REP_MOVCAJA_DOCUMENTOS;
GRANT SELECT, REFERENCES ON RECIBOS_CAJA_PAGO TO PROCEDURE REP_MOVCAJA_DOCUMENTOS;
GRANT SELECT, REFERENCES ON RECIBO_PROVISIONAL_PAGO TO PROCEDURE REP_MOVCAJA_DOCUMENTOS;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_MOVCAJA_DOCUMENTOS;
GRANT SELECT, REFERENCES ON TRASLADOS_CAJA TO PROCEDURE REP_MOVCAJA_DOCUMENTOS;
GRANT SELECT, REFERENCES ON TRASLADOS_CAJA_DET TO PROCEDURE REP_MOVCAJA_DOCUMENTOS;
GRANT SELECT ON CIUDADES TO PROCEDURE REP_MOVIMIENTO_CLIENTE;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE REP_MOVIMIENTO_CLIENTE;
GRANT SELECT ON CLIENTE_SUCURSALES TO PROCEDURE REP_MOVIMIENTO_CLIENTE;
GRANT SELECT ON COBRADORES TO PROCEDURE REP_MOVIMIENTO_CLIENTE;
GRANT SELECT, REFERENCES ON MOVIMIENTO_CLIENTES TO PROCEDURE REP_MOVIMIENTO_CLIENTE;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE REP_MOVIMIENTO_CLIENTE;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_MOVIMIENTO_CLIENTE;
GRANT SELECT ON ZONAS TO PROCEDURE REP_MOVIMIENTO_CLIENTE;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE REP_MOVIMIENTO_CLIENTE;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CARTERA TO PROCEDURE REP_MOVIMIENTO_CLIENTE;
GRANT SELECT ON CIUDADES TO PROCEDURE REP_MOVIMIENTO_PROVEEDOR;
GRANT SELECT ON GRUPOS_PROVEEDORES TO PROCEDURE REP_MOVIMIENTO_PROVEEDOR;
GRANT SELECT ON MOVIMIENTO_PROVEEDOR TO PROCEDURE REP_MOVIMIENTO_PROVEEDOR;
GRANT SELECT ON PROVEEDORES TO PROCEDURE REP_MOVIMIENTO_PROVEEDOR;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_MOVIMIENTO_PROVEEDOR;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE REP_MOVIMIENTO_PROVEEDOR;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE REP_MOVIMIENTO_PROVEEDOR;
GRANT EXECUTE ON PROCEDURE SALDO_PROVEEDOR TO PROCEDURE REP_MOVIMIENTO_PROVEEDOR;
GRANT SELECT ON ARTICULO TO PROCEDURE REP_MOVIMIENTO_X_ARTICULO;
GRANT SELECT ON BODEGA TO PROCEDURE REP_MOVIMIENTO_X_ARTICULO;
GRANT SELECT ON EXISTENCIA TO PROCEDURE REP_MOVIMIENTO_X_ARTICULO;
GRANT SELECT ON GRUPO TO PROCEDURE REP_MOVIMIENTO_X_ARTICULO;
GRANT SELECT ON LOTES TO PROCEDURE REP_MOVIMIENTO_X_ARTICULO;
GRANT SELECT ON MARCAS TO PROCEDURE REP_MOVIMIENTO_X_ARTICULO;
GRANT SELECT ON MOVIMIENTO_ARTICULO TO PROCEDURE REP_MOVIMIENTO_X_ARTICULO;
GRANT SELECT ON SUBGRUPO TO PROCEDURE REP_MOVIMIENTO_X_ARTICULO;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_MOVIMIENTO_X_ARTICULO;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE REP_MOVIMIENTO_X_ARTICULO;
GRANT EXECUTE ON PROCEDURE MOVLOTES_DESDE_HASTA TO PROCEDURE REP_MOVIMIENTO_X_ARTICULO;
GRANT EXECUTE ON PROCEDURE SALDO_INICIAL_INVENTARIO TO PROCEDURE REP_MOVIMIENTO_X_ARTICULO;
GRANT SELECT ON ARTICULO TO PROCEDURE REP_PRODUCTOS;
GRANT SELECT ON ARTICULOS_PRODUCTO TO PROCEDURE REP_PRODUCTOS;
GRANT SELECT ON ESTADO_ARTICULO TO PROCEDURE REP_PRODUCTOS;
GRANT SELECT ON GRUPO TO PROCEDURE REP_PRODUCTOS;
GRANT SELECT ON MARCAS TO PROCEDURE REP_PRODUCTOS;
GRANT SELECT ON SUBGRUPO TO PROCEDURE REP_PRODUCTOS;
GRANT EXECUTE ON PROCEDURE CANTIDAD_POR_FACTOR TO PROCEDURE REP_PRODUCTOS;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE REP_PRODUCTOS;
GRANT SELECT ON CIUDADES TO PROCEDURE REP_RETENCION_CLIENTE;
GRANT SELECT ON CLIENTES TO PROCEDURE REP_RETENCION_CLIENTE;
GRANT SELECT ON CLIENTE_SUCURSALES TO PROCEDURE REP_RETENCION_CLIENTE;
GRANT SELECT ON COBRADORES TO PROCEDURE REP_RETENCION_CLIENTE;
GRANT SELECT ON MOVIMIENTO_CLIENTES TO PROCEDURE REP_RETENCION_CLIENTE;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_RETENCION_CLIENTE;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE REP_RETENCION_CLIENTE;
GRANT SELECT ON ZONAS TO PROCEDURE REP_RETENCION_CLIENTE;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE REP_RETENCION_CLIENTE;
GRANT SELECT ON CIUDADES TO PROCEDURE REP_RETENCION_PROVEEDOR;
GRANT SELECT ON GRUPOS_PROVEEDORES TO PROCEDURE REP_RETENCION_PROVEEDOR;
GRANT SELECT ON MOVIMIENTO_PROVEEDOR TO PROCEDURE REP_RETENCION_PROVEEDOR;
GRANT SELECT ON PROVEEDORES TO PROCEDURE REP_RETENCION_PROVEEDOR;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_RETENCION_PROVEEDOR;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE REP_RETENCION_PROVEEDOR;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE REP_RETENCION_PROVEEDOR;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE REP_TERCEROS;
GRANT SELECT ON ARTICULO TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON CLIENTES TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON COTIZACIONES TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON COTIZACIONES_DETALLE TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON FACTURAS TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON GRUPO TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON MARCAS TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON PEDIDOS TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON PEDIDOS_DETALLE TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON REMISIONES_VENTA TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON REMISIONES_VENTA_DETALLE TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON SUBGRUPO TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON ZONAS TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE REP_UTILIDAD_CLIENTE;
GRANT SELECT ON ARTICULO TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT SELECT ON COTIZACIONES TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT SELECT ON COTIZACIONES_DETALLE TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT SELECT ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT SELECT ON FACTURAS TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT SELECT ON GRUPO TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT SELECT ON MARCAS TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT SELECT ON PEDIDOS TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT SELECT ON PEDIDOS_DETALLE TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT SELECT ON REMISIONES_VENTA TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT SELECT ON REMISIONES_VENTA_DETALLE TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT SELECT ON SUBGRUPO TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT SELECT ON VENDEDORES TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE REP_UTILIDAD_VENDEDOR;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT ON COSTOS TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON COTIZACIONES TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON COTIZACIONES_DETALLE TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON FACTURAS_DETALLE TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT ON GRUPO TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT ON MARCAS TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT ON MOVIMIENTO_ARTICULO TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON PEDIDOS TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON PEDIDOS_DETALLE TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA_DETALLE TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT, INSERT, DELETE ON REPORTES_AUX TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT ON SUBGRUPO TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE REP_UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE REP_VENTAS_ARTICULO;
GRANT SELECT, REFERENCES ON COTIZACIONES TO PROCEDURE REP_VENTAS_ARTICULO;
GRANT SELECT, REFERENCES ON COTIZACIONES_DETALLE TO PROCEDURE REP_VENTAS_ARTICULO;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE REP_VENTAS_ARTICULO;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE REP_VENTAS_ARTICULO;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE REP_VENTAS_ARTICULO;
GRANT SELECT, REFERENCES ON FACTURAS_DETALLE TO PROCEDURE REP_VENTAS_ARTICULO;
GRANT SELECT ON GRUPO TO PROCEDURE REP_VENTAS_ARTICULO;
GRANT SELECT ON MARCAS TO PROCEDURE REP_VENTAS_ARTICULO;
GRANT SELECT, REFERENCES ON PEDIDOS TO PROCEDURE REP_VENTAS_ARTICULO;
GRANT SELECT, REFERENCES ON PEDIDOS_DETALLE TO PROCEDURE REP_VENTAS_ARTICULO;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_VENTAS_ARTICULO;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA TO PROCEDURE REP_VENTAS_ARTICULO;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA_DETALLE TO PROCEDURE REP_VENTAS_ARTICULO;
GRANT SELECT ON SUBGRUPO TO PROCEDURE REP_VENTAS_ARTICULO;
GRANT SELECT, REFERENCES ON CLIENTES TO PROCEDURE REP_VENTAS_CLIENTE;
GRANT SELECT, REFERENCES ON COTIZACIONES TO PROCEDURE REP_VENTAS_CLIENTE;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE REP_VENTAS_CLIENTE;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE REP_VENTAS_CLIENTE;
GRANT SELECT, REFERENCES ON PEDIDOS TO PROCEDURE REP_VENTAS_CLIENTE;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_VENTAS_CLIENTE;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA TO PROCEDURE REP_VENTAS_CLIENTE;
GRANT SELECT, REFERENCES ON TERCEROS TO PROCEDURE REP_VENTAS_CLIENTE;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE REP_VENTAS_CLIENTE;
GRANT SELECT ON ZONAS TO PROCEDURE REP_VENTAS_CLIENTE;
GRANT SELECT ON ARTICULO TO PROCEDURE REP_VENTAS_DECRETO551JL;
GRANT SELECT ON FACTURAS TO PROCEDURE REP_VENTAS_DECRETO551JL;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE REP_VENTAS_DECRETO551JL;
GRANT SELECT ON TERCEROS TO PROCEDURE REP_VENTAS_DECRETO551JL;
GRANT SELECT ON TIPO_ID TO PROCEDURE REP_VENTAS_DECRETO551JL;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE REP_VENTAS_DECRETO551JL;
GRANT SELECT ON COTIZACIONES TO PROCEDURE REP_VENTAS_VENDEDOR;
GRANT SELECT ON COTIZACIONES_DETALLE TO PROCEDURE REP_VENTAS_VENDEDOR;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE REP_VENTAS_VENDEDOR;
GRANT SELECT ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE REP_VENTAS_VENDEDOR;
GRANT SELECT ON FACTURAS TO PROCEDURE REP_VENTAS_VENDEDOR;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE REP_VENTAS_VENDEDOR;
GRANT SELECT ON PEDIDOS TO PROCEDURE REP_VENTAS_VENDEDOR;
GRANT SELECT ON PEDIDOS_DETALLE TO PROCEDURE REP_VENTAS_VENDEDOR;
GRANT SELECT ON PREFIJOS TO PROCEDURE REP_VENTAS_VENDEDOR;
GRANT SELECT ON REMISIONES_VENTA TO PROCEDURE REP_VENTAS_VENDEDOR;
GRANT SELECT ON REMISIONES_VENTA_DETALLE TO PROCEDURE REP_VENTAS_VENDEDOR;
GRANT SELECT ON TIPO_DOCUMENTO TO PROCEDURE REP_VENTAS_VENDEDOR;
GRANT SELECT ON VENDEDORES TO PROCEDURE REP_VENTAS_VENDEDOR;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE RESERVAS_ARTICULO;
GRANT SELECT ON GRUPO TO PROCEDURE RESERVAS_ARTICULO;
GRANT SELECT ON MARCAS TO PROCEDURE RESERVAS_ARTICULO;
GRANT SELECT, REFERENCES ON PEDIDOS TO PROCEDURE RESERVAS_ARTICULO;
GRANT SELECT, REFERENCES ON PEDIDOS_DETALLE TO PROCEDURE RESERVAS_ARTICULO;
GRANT SELECT, REFERENCES ON RESERVAS TO PROCEDURE RESERVAS_ARTICULO;
GRANT SELECT, REFERENCES ON RESERVAS_DETALLE TO PROCEDURE RESERVAS_ARTICULO;
GRANT SELECT ON SUBGRUPO TO PROCEDURE RESERVAS_ARTICULO;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE RESERVAS_ARTICULO;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE RESERVAS_ARTICULO;
GRANT EXECUTE ON PROCEDURE SALDO_TOTAL_INVENTARIO TO PROCEDURE RESERVAS_ARTICULO;
GRANT SELECT ON PEDIDOS TO PROCEDURE RESERVAS_ARTICULO_FECHA;
GRANT SELECT ON PEDIDOS_DETALLE TO PROCEDURE RESERVAS_ARTICULO_FECHA;
GRANT SELECT, REFERENCES ON RESERVAS TO PROCEDURE RESERVAS_ARTICULO_FECHA;
GRANT SELECT, REFERENCES ON RESERVAS_DETALLE TO PROCEDURE RESERVAS_ARTICULO_FECHA;
GRANT EXECUTE ON PROCEDURE FALTANTE TO PROCEDURE RESERVAS_ARTICULO_FECHA;
GRANT SELECT ON ARTICULO TO PROCEDURE RESTE_EXISTENCIA;
GRANT SELECT, INSERT, UPDATE ON EXISTENCIA TO PROCEDURE RESTE_EXISTENCIA;
GRANT EXECUTE ON PROCEDURE SALDO_INVENTARIO TO PROCEDURE RESTE_EXISTENCIA;
GRANT SELECT, INSERT, UPDATE, REFERENCES ON SALDO_BANCOS TO PROCEDURE RESTE_SALDO_BANCO;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_BANCO TO PROCEDURE RESTE_SALDO_BANCO;
GRANT SELECT, INSERT, UPDATE, REFERENCES ON SALDO_CAJA TO PROCEDURE RESTE_SALDO_CAJA;
GRANT EXECUTE ON PROCEDURE SALDO_EN_CAJA TO PROCEDURE RESTE_SALDO_CAJA;
GRANT SELECT, INSERT, UPDATE ON SALDO_EFECTIVO TO PROCEDURE RESTE_SALDO_EFECTIVO;
GRANT EXECUTE ON PROCEDURE SALDO_EN_EFECTIVO TO PROCEDURE RESTE_SALDO_EFECTIVO;
GRANT SELECT ON CUENTAS_BANCOS TO PROCEDURE RESUMEN_SALDOS_BANCO;
GRANT SELECT, REFERENCES ON MOVIMIENTO_BANCO TO PROCEDURE RESUMEN_SALDOS_BANCO;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_BANCO TO PROCEDURE RESUMEN_SALDOS_BANCO;
GRANT EXECUTE ON PROCEDURE SALDO_FINAL_CUENTA_BANCO TO PROCEDURE RESUMEN_SALDOS_BANCO;
GRANT SELECT, REFERENCES ON CAJAS TO PROCEDURE RESUMEN_SALDOS_CAJA;
GRANT SELECT, REFERENCES ON MOVIMIENTO_CAJA TO PROCEDURE RESUMEN_SALDOS_CAJA;
GRANT EXECUTE ON PROCEDURE SALDO_EN_CAJA TO PROCEDURE RESUMEN_SALDOS_CAJA;
GRANT EXECUTE ON PROCEDURE SALDO_FINAL_CAJA TO PROCEDURE RESUMEN_SALDOS_CAJA;
GRANT SELECT ON FACTURAS TO PROCEDURE RESUMEN_VENTAS_ARTICULO;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE RESUMEN_VENTAS_ARTICULO;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE RETIROS_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_BANCOS TO PROCEDURE RETIROS_SIN_CONTABILIDAD;
GRANT SELECT ON RETIROS TO PROCEDURE RETIROS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE RETIROS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_RETIRO TO PROCEDURE RETIROS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE RETIROS_SIN_CONTABILIDAD;
GRANT SELECT ON ARTICULO TO PROCEDURE REVISA_PRECIOS;
GRANT SELECT ON LISTA_PRECIOS TO PROCEDURE REVISA_PRECIOS;
GRANT SELECT ON PRECIOS_ARTICULO TO PROCEDURE REVISA_PRECIOS;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE REVISA_PRECIOS;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE REVISA_PRECIOS;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE REVISA_PRECIOS;
GRANT EXECUTE ON PROCEDURE REDONDEE TO PROCEDURE REVISA_PRECIOS;
GRANT EXECUTE ON PROCEDURE ULTIMO_COSTO TO PROCEDURE REVISA_PRECIOS;
GRANT SELECT ON CONCEPTOS_NOMINA TO PROCEDURE SALARIO_PROMEDIO_VACACIONES;
GRANT SELECT ON EMPLEADOS TO PROCEDURE SALARIO_PROMEDIO_VACACIONES;
GRANT SELECT ON EMPLEADO_CONCEPTOS TO PROCEDURE SALARIO_PROMEDIO_VACACIONES;
GRANT SELECT ON MOVIMIENTO_SALARIO_EMPLEADO TO PROCEDURE SALARIO_PROMEDIO_VACACIONES;
GRANT SELECT ON NOMINA_COMISIONES TO PROCEDURE SALARIO_PROMEDIO_VACACIONES;
GRANT SELECT ON NOMINA_CONCEPTOS TO PROCEDURE SALARIO_PROMEDIO_VACACIONES;
GRANT SELECT ON NOMINA_HORASEXT TO PROCEDURE SALARIO_PROMEDIO_VACACIONES;
GRANT SELECT ON NOMINA_NOVEDADES TO PROCEDURE SALARIO_PROMEDIO_VACACIONES;
GRANT SELECT ON NOMINA_NOVEDADES_DETALLE TO PROCEDURE SALARIO_PROMEDIO_VACACIONES;
GRANT EXECUTE ON PROCEDURE DIAS_ENTRE_NOMINA TO PROCEDURE SALARIO_PROMEDIO_VACACIONES;
GRANT EXECUTE ON PROCEDURE FECHA_INICIAL_PERIODO_PAGO TO PROCEDURE SALARIO_PROMEDIO_VACACIONES;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE SALARIO_PROMEDIO_VACACIONES;
GRANT EXECUTE ON PROCEDURE PERIODO_NOM_FECHA TO PROCEDURE SALARIO_PROMEDIO_VACACIONES;
GRANT EXECUTE ON PROCEDURE PERIODO_NOM_FECHAF TO PROCEDURE SALARIO_PROMEDIO_VACACIONES;
GRANT EXECUTE ON PROCEDURE REDONDEE TO PROCEDURE SALARIO_PROMEDIO_VACACIONES;
GRANT SELECT ON CUENTAS TO PROCEDURE SALDOS_ARTICULO_CUENTA;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_ARTICULOC_MES TO PROCEDURE SALDOS_ARTICULO_CUENTA;
GRANT EXECUTE ON PROCEDURE SALDO_ARTICULO_MES TO PROCEDURE SALDOS_ARTICULO_CUENTA;
GRANT SELECT ON SALDOS_ACTIVO TO PROCEDURE SALDO_ACTIVO;
GRANT SELECT ON SALDOS_ARTICULO TO PROCEDURE SALDO_ARTICULO;
GRANT SELECT ON SALDOS_ARTICULO TO PROCEDURE SALDO_ARTICULO_MES;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA_CONTA TO PROCEDURE SALDO_ARTICULO_MES;
GRANT EXECUTE ON PROCEDURE FECHA_Y_NUMERO_CONTA TO PROCEDURE SALDO_ARTICULO_MES;
GRANT SELECT, REFERENCES ON SALDOS_CENTROS TO PROCEDURE SALDO_CENTRO;
GRANT SELECT ON SALDOS_CENTROS TO PROCEDURE SALDO_CENTRO_MES;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA_CONTA TO PROCEDURE SALDO_CENTRO_MES;
GRANT EXECUTE ON PROCEDURE FECHA_Y_NUMERO_CONTA TO PROCEDURE SALDO_CENTRO_MES;
GRANT SELECT ON SALDOS_CENTROS_TERCERO TO PROCEDURE SALDO_CENTRO_TERCERO;
GRANT SELECT ON SALDOS_CUENTAS TO PROCEDURE SALDO_CUENTA;
GRANT SELECT, REFERENCES ON SALDO_BANCOS TO PROCEDURE SALDO_CUENTA_BANCO;
GRANT SELECT, REFERENCES ON SALDOS_CUENTAS TO PROCEDURE SALDO_CUENTA_MES;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA_CONTA TO PROCEDURE SALDO_CUENTA_MES;
GRANT EXECUTE ON PROCEDURE FECHA_Y_NUMERO_CONTA TO PROCEDURE SALDO_CUENTA_MES;
GRANT SELECT, REFERENCES ON SALDOS_DOC_CARTERA TO PROCEDURE SALDO_DOC_CARTERA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE SALDO_DOC_CARTERA;
GRANT SELECT, REFERENCES ON SALDOS_DOC_CXPAGAR TO PROCEDURE SALDO_DOC_CXPAGAR;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE SALDO_DOC_CXPAGAR;
GRANT SELECT, REFERENCES ON SALDO_CAJA TO PROCEDURE SALDO_EN_CAJA;
GRANT SELECT ON SALDO_EFECTIVO TO PROCEDURE SALDO_EN_EFECTIVO;
GRANT SELECT, REFERENCES ON SALDO_CAJA TO PROCEDURE SALDO_FINAL_CAJA;
GRANT SELECT ON SALDO_BANCOS TO PROCEDURE SALDO_FINAL_CUENTA_BANCO;
GRANT SELECT ON EXISTENCIA TO PROCEDURE SALDO_INICIAL_INVENTARIO;
GRANT SELECT ON BODEGA TO PROCEDURE SALDO_INICIAL_TOTAL_INV;
GRANT EXECUTE ON PROCEDURE SALDO_INICIAL_INVENTARIO TO PROCEDURE SALDO_INICIAL_TOTAL_INV;
GRANT SELECT ON EXISTENCIA TO PROCEDURE SALDO_INVENTARIO;
GRANT SELECT ON LOTES TO PROCEDURE SALDO_LOTE;
GRANT SELECT ON EXISTENCIA_LOTE TO PROCEDURE SALDO_LOTE_FECHA;
GRANT SELECT ON SALDOS_TERCEROS TO PROCEDURE SALDO_TERCERO;
GRANT SELECT ON SALDOS_TERCEROS TO PROCEDURE SALDO_TERCERO_MES;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA_CONTA TO PROCEDURE SALDO_TERCERO_MES;
GRANT EXECUTE ON PROCEDURE FECHA_Y_NUMERO_CONTA TO PROCEDURE SALDO_TERCERO_MES;
GRANT SELECT ON BODEGA TO PROCEDURE SALDO_TOTAL_INVENTARIO;
GRANT EXECUTE ON PROCEDURE SALDO_INVENTARIO TO PROCEDURE SALDO_TOTAL_INVENTARIO;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE SALIDAS_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_INVENTARIO TO PROCEDURE SALIDAS_SIN_CONTABILIDAD;
GRANT SELECT ON SALIDAS TO PROCEDURE SALIDAS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE SALIDAS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_SALIDA TO PROCEDURE SALIDAS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE SALIDAS_SIN_CONTABILIDAD;
GRANT SELECT ON LOTES TO PROCEDURE SELECCIONE_LOTE;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE SELECCIONE_LOTE;
GRANT SELECT ON ARTICULO TO PROCEDURE SUME_EXISTENCIA;
GRANT SELECT, INSERT, UPDATE ON EXISTENCIA TO PROCEDURE SUME_EXISTENCIA;
GRANT EXECUTE ON PROCEDURE SALDO_INVENTARIO TO PROCEDURE SUME_EXISTENCIA;
GRANT SELECT, INSERT, UPDATE, REFERENCES ON SALDO_BANCOS TO PROCEDURE SUME_SALDO_BANCO;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_BANCO TO PROCEDURE SUME_SALDO_BANCO;
GRANT SELECT, INSERT, UPDATE, REFERENCES ON SALDO_CAJA TO PROCEDURE SUME_SALDO_CAJA;
GRANT EXECUTE ON PROCEDURE SALDO_EN_CAJA TO PROCEDURE SUME_SALDO_CAJA;
GRANT SELECT, INSERT, UPDATE ON SALDO_EFECTIVO TO PROCEDURE SUME_SALDO_EFECTIVO;
GRANT EXECUTE ON PROCEDURE SALDO_EN_EFECTIVO TO PROCEDURE SUME_SALDO_EFECTIVO;
GRANT SELECT ON ARTICULO TO PROCEDURE TARIFAS_ENSAMBLE;
GRANT SELECT ON ARTICULOS_PRODUCTO TO PROCEDURE TARIFAS_ENSAMBLE;
GRANT EXECUTE ON PROCEDURE CANTIDAD_POR_FACTOR TO PROCEDURE TARIFAS_ENSAMBLE;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE TARIFAS_ENSAMBLE;
GRANT SELECT, REFERENCES ON COTIZACIONES_PROVEEDOR_DET TO PROCEDURE TOTAL_DOC_COMPRA;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_COMPRAS_DET TO PROCEDURE TOTAL_DOC_COMPRA;
GRANT SELECT, REFERENCES ON FACTURAS_COMPRAS_DETALLE TO PROCEDURE TOTAL_DOC_COMPRA;
GRANT SELECT, REFERENCES ON ORDENES_COMPRA_DETALLE TO PROCEDURE TOTAL_DOC_COMPRA;
GRANT SELECT, REFERENCES ON REMISION_PROVEEDOR_DET TO PROCEDURE TOTAL_DOC_COMPRA;
GRANT SELECT ON COTIZACIONES_DETALLE TO PROCEDURE TOTAL_DOC_VENTAS;
GRANT SELECT ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE TOTAL_DOC_VENTAS;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE TOTAL_DOC_VENTAS;
GRANT SELECT ON PEDIDOS_DETALLE TO PROCEDURE TOTAL_DOC_VENTAS;
GRANT SELECT ON REMISIONES_VENTA_DETALLE TO PROCEDURE TOTAL_DOC_VENTAS;
GRANT SELECT ON ARTICULO TO PROCEDURE TRAE_ARTICULO_MOVIL;
GRANT SELECT ON CLIENTES TO PROCEDURE TRAE_ARTICULO_MOVIL;
GRANT SELECT ON GRUPO TO PROCEDURE TRAE_ARTICULO_MOVIL;
GRANT SELECT ON LISTA_PRECIOS TO PROCEDURE TRAE_ARTICULO_MOVIL;
GRANT SELECT ON MARCAS TO PROCEDURE TRAE_ARTICULO_MOVIL;
GRANT SELECT ON PRECIOS_ARTICULO TO PROCEDURE TRAE_ARTICULO_MOVIL;
GRANT SELECT ON PUNTO_VENTA TO PROCEDURE TRAE_ARTICULO_MOVIL;
GRANT SELECT ON SUBGRUPO TO PROCEDURE TRAE_ARTICULO_MOVIL;
GRANT SELECT ON TARIFA_IVA TO PROCEDURE TRAE_ARTICULO_MOVIL;
GRANT SELECT ON UNIDAD_ARTICULO TO PROCEDURE TRAE_ARTICULO_MOVIL;
GRANT SELECT ON USUARIO TO PROCEDURE TRAE_ARTICULO_MOVIL;
GRANT SELECT ON VENDEDORES TO PROCEDURE TRAE_ARTICULO_MOVIL;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE TRAE_ARTICULO_MOVIL;
GRANT EXECUTE ON PROCEDURE REDONDEE TO PROCEDURE TRAE_ARTICULO_MOVIL;
GRANT EXECUTE ON PROCEDURE SALDO_INVENTARIO TO PROCEDURE TRAE_ARTICULO_MOVIL;
GRANT SELECT ON PEDIDOS TO PROCEDURE TRAE_PEDIDOS_VEND;
GRANT EXECUTE ON PROCEDURE NOMBRE_ASCII TO PROCEDURE TRAE_PEDIDOS_VEND;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE TRASCUENTAS_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_BANCOS TO PROCEDURE TRASCUENTAS_SIN_CONTABILIDAD;
GRANT SELECT ON TRASLADOS TO PROCEDURE TRASCUENTAS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE TRASCUENTAS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_TRASCUENTA TO PROCEDURE TRASCUENTAS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE TRASCUENTAS_SIN_CONTABILIDAD;
GRANT SELECT ON COMPROBANTE_ENCABEZADO TO PROCEDURE TRASLACAJAS_SIN_CONTABILIDAD;
GRANT SELECT ON INTERFAZ_CAJA TO PROCEDURE TRASLACAJAS_SIN_CONTABILIDAD;
GRANT SELECT ON TRASLADOS_CAJA TO PROCEDURE TRASLACAJAS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE TO PROCEDURE TRASLACAJAS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE CONTABIL_TRASLACAJA TO PROCEDURE TRASLACAJAS_SIN_CONTABILIDAD;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA TO PROCEDURE TRASLACAJAS_SIN_CONTABILIDAD;
GRANT SELECT ON COSTOS TO PROCEDURE ULTIMO_COSTO;
GRANT EXECUTE ON PROCEDURE FACTOR_UNIDAD_CANT TO PROCEDURE ULTIMO_COSTO;
GRANT SELECT ON ARTICULO TO PROCEDURE UNIDADES;
GRANT SELECT ON UNIDAD_ARTICULO TO PROCEDURE UNIDADES;
GRANT SELECT, REFERENCES ON COTIZACIONES TO PROCEDURE UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON COTIZACIONES_DETALLE TO PROCEDURE UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON FACTURAS_DETALLE TO PROCEDURE UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON PEDIDOS TO PROCEDURE UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON PEDIDOS_DETALLE TO PROCEDURE UTILIDAD_VENTAS;
GRANT SELECT ON PREFIJOS TO PROCEDURE UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA TO PROCEDURE UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON REMISIONES_VENTA_DETALLE TO PROCEDURE UTILIDAD_VENTAS;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO TO PROCEDURE UTILIDAD_VENTAS;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE VALIDE_ARTICULO;
GRANT SELECT, REFERENCES ON BARRAS_ARTICULO TO PROCEDURE VALIDE_ARTICULO;
GRANT EXECUTE ON PROCEDURE CUENTA_AFECTABLE TO PROCEDURE VALIDE_CUENTA;
GRANT EXECUTE ON PROCEDURE EXISTE_CUENTA TO PROCEDURE VALIDE_CUENTA;
GRANT SELECT ON CUENTAS TO PROCEDURE VALIDE_CUENTA_C;
GRANT SELECT ON ESTRUCTURA TO PROCEDURE VALIDE_CUENTA_C;
GRANT EXECUTE ON PROCEDURE EXISTE_CUENTA TO PROCEDURE VALIDE_CUENTA_C;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE VALIDE_CUENTA_C;
GRANT SELECT ON ESTRUCTURA TO PROCEDURE VALIDE_ESTRUCTURA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE VALIDE_EXISTENCIA;
GRANT EXECUTE ON PROCEDURE SALDO_INVENTARIO TO PROCEDURE VALIDE_EXISTENCIA;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION TO PROCEDURE VALIDE_NIVEL;
GRANT EXECUTE ON PROCEDURE VALIDE_ESTRUCTURA TO PROCEDURE VALIDE_NIVEL;
GRANT SELECT ON COMPROBANTE_DETALLE TO PROCEDURE VALIDE_PADRE;
GRANT EXECUTE ON PROCEDURE DIGITOS_NIVEL TO PROCEDURE VALIDE_PADRE;
GRANT EXECUTE ON PROCEDURE EXISTE_CUENTA TO PROCEDURE VALIDE_PADRE;
GRANT EXECUTE ON PROCEDURE VALIDE_ESTRUCTURA TO PROCEDURE VALIDE_PADRE;
GRANT SELECT, REFERENCES ON COSTOS TO PROCEDURE VALOR_INICIAL_INVENTARIO;
GRANT SELECT, REFERENCES ON ANTICIPOS_CLIENTE TO PROCEDURE VENCIDO_CLIENTE;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE VENCIDO_CLIENTE;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE VENCIDO_CLIENTE;
GRANT SELECT, REFERENCES ON MOVIMIENTO_CLIENTES TO PROCEDURE VENCIDO_CLIENTE;
GRANT SELECT, REFERENCES ON NOTAS_CREDITO_CLIENTES TO PROCEDURE VENCIDO_CLIENTE;
GRANT SELECT, REFERENCES ON NOTAS_DEBITO_CLIENTES TO PROCEDURE VENCIDO_CLIENTE;
GRANT SELECT, REFERENCES ON SALDOS_DOC_CARTERA TO PROCEDURE VENCIDO_CLIENTE;
GRANT SELECT, REFERENCES ON TIPO_DOCUMENTO TO PROCEDURE VENCIDO_CLIENTE;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CARTERA TO PROCEDURE VENCIDO_CLIENTE;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE VENTAS_ARTICULO;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE VENTAS_ARTICULO;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE VENTAS_ARTICULO;
GRANT SELECT, REFERENCES ON FACTURAS_DETALLE TO PROCEDURE VENTAS_ARTICULO;
GRANT SELECT ON PREFIJOS TO PROCEDURE VENTAS_ARTICULO;
GRANT SELECT ON ARTICULO TO PROCEDURE VENTAS_ARTICULO_CLIENTE;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE VENTAS_ARTICULO_CLIENTE;
GRANT SELECT ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE VENTAS_ARTICULO_CLIENTE;
GRANT SELECT ON FACTURAS TO PROCEDURE VENTAS_ARTICULO_CLIENTE;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE VENTAS_ARTICULO_CLIENTE;
GRANT SELECT ON GRUPO TO PROCEDURE VENTAS_ARTICULO_CLIENTE;
GRANT SELECT ON MARCAS TO PROCEDURE VENTAS_ARTICULO_CLIENTE;
GRANT SELECT ON PREFIJOS TO PROCEDURE VENTAS_ARTICULO_CLIENTE;
GRANT SELECT ON SUBGRUPO TO PROCEDURE VENTAS_ARTICULO_CLIENTE;
GRANT SELECT, REFERENCES ON ARTICULO TO PROCEDURE VENTAS_ARTICULO_MES;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE VENTAS_ARTICULO_MES;
GRANT SELECT ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE VENTAS_ARTICULO_MES;
GRANT SELECT ON FACTURAS TO PROCEDURE VENTAS_ARTICULO_MES;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE VENTAS_ARTICULO_MES;
GRANT SELECT ON GRUPO TO PROCEDURE VENTAS_ARTICULO_MES;
GRANT SELECT ON MARCAS TO PROCEDURE VENTAS_ARTICULO_MES;
GRANT SELECT ON PREFIJOS TO PROCEDURE VENTAS_ARTICULO_MES;
GRANT SELECT ON SUBGRUPO TO PROCEDURE VENTAS_ARTICULO_MES;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA TO PROCEDURE VENTAS_ARTICULO_MES;
GRANT EXECUTE ON PROCEDURE VENTAS_ARTICULO TO PROCEDURE VENTAS_ARTICULO_MES;
GRANT SELECT ON ARTICULO TO PROCEDURE VENTAS_ARTICULO_VENDEDOR;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE VENTAS_ARTICULO_VENDEDOR;
GRANT SELECT ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE VENTAS_ARTICULO_VENDEDOR;
GRANT SELECT ON FACTURAS TO PROCEDURE VENTAS_ARTICULO_VENDEDOR;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE VENTAS_ARTICULO_VENDEDOR;
GRANT SELECT ON GRUPO TO PROCEDURE VENTAS_ARTICULO_VENDEDOR;
GRANT SELECT ON MARCAS TO PROCEDURE VENTAS_ARTICULO_VENDEDOR;
GRANT SELECT ON PREFIJOS TO PROCEDURE VENTAS_ARTICULO_VENDEDOR;
GRANT SELECT ON SUBGRUPO TO PROCEDURE VENTAS_ARTICULO_VENDEDOR;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE VENTAS_CLIENTE;
GRANT SELECT ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE VENTAS_CLIENTE;
GRANT SELECT ON FACTURAS TO PROCEDURE VENTAS_CLIENTE;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE VENTAS_CLIENTE;
GRANT SELECT ON PREFIJOS TO PROCEDURE VENTAS_CLIENTE;
GRANT SELECT ON TERCEROS TO PROCEDURE VENTAS_CLIENTE_MES;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA TO PROCEDURE VENTAS_CLIENTE_MES;
GRANT EXECUTE ON PROCEDURE VENTAS_CLIENTE TO PROCEDURE VENTAS_CLIENTE_MES;
GRANT SELECT ON DEVOLUCIONES_VENTAS TO PROCEDURE VENTAS_CLIENTE_VENDEDOR;
GRANT SELECT ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE VENTAS_CLIENTE_VENDEDOR;
GRANT SELECT ON FACTURAS TO PROCEDURE VENTAS_CLIENTE_VENDEDOR;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE VENTAS_CLIENTE_VENDEDOR;
GRANT SELECT ON PREFIJOS TO PROCEDURE VENTAS_CLIENTE_VENDEDOR;
GRANT SELECT, REFERENCES ON DEVOLUCIONES_VENTAS TO PROCEDURE VENTAS_VENDEDOR;
GRANT SELECT ON DEVOLUCIONES_VENTAS_DETALLE TO PROCEDURE VENTAS_VENDEDOR;
GRANT SELECT, REFERENCES ON FACTURAS TO PROCEDURE VENTAS_VENDEDOR;
GRANT SELECT ON FACTURAS_DETALLE TO PROCEDURE VENTAS_VENDEDOR;
GRANT SELECT ON PREFIJOS TO PROCEDURE VENTAS_VENDEDOR;
GRANT SELECT, REFERENCES ON VENDEDORES TO PROCEDURE VENTAS_VENDEDOR_MES;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA TO PROCEDURE VENTAS_VENDEDOR_MES;
GRANT EXECUTE ON PROCEDURE VENTAS_VENDEDOR TO PROCEDURE VENTAS_VENDEDOR_MES;


INSERT INTO REPORT_DOCUMENTOS (REPDOC_ID, REPDOC_NOMC, REPDOC_NOML) VALUES (1, 'AGENDA', 'AGENDA COMPANIA');

SET TERM ^ ;

CREATE OR ALTER trigger report_prefijos_bi0 for report_prefijos
active before insert position 0
AS
DECLARE VARIABLE CANT INTEGER;
begin
BEGIN
    IF (NEW.TIDO_COD IS NOT NULL) THEN
    BEGIN
       SELECT COUNT(*)
       FROM   REPORT_DOCUMENTOS
       WHERE  REPORT_DOCUMENTOS.repdoc_id = NEW.tido_cod
       INTO   :CANT;
       IF (CANT = 0) THEN
       BEGIN
          EXCEPTION TIPODOC_NO_EXISTE;
       END
    END
END
end^

SET TERM ; ^

SET TERM ^ ;

CREATE OR ALTER trigger report_prefijos_bip for report_prefijos
active before insert position 0
AS
begin
 if (NEW.tido_cod = 999 or NEW.tido_cod = 1001 or NEW.tido_cod = 1  ) then
    EXECUTE PROCEDURE completa_ceros8 (NEW.numero_prefijo) returning_values (NEW.numero_prefijo);
end^

SET TERM ; ^


CREATE TABLE REPORT_AGENDA_CLIENTE (
    ID_AGENDA INTEGER NOT NULL,
    TERC_NIT VARCHAR(20) NOT NULL,
    AGENDA_NOMBREC VARCHAR(60),
    AGENDA_FECHA DATE,
    AGENDA_HORA TIME,
    AGENDA_OBSERVACION OBSERVACIONT,
    AGENDA_PEDIDOS VARCHAR(30),
    AGENDA_COTIZACION VARCHAR(30),
    AGENDA_FACTURAS VARCHAR(30),
    AGENDA_ANULADO BOOLEANO,
    AGENDA_LLEGADA TIME,
    AGENDA_CUMPLIO BOOLEANO,
    AGENDA_ITEMS INTEGER,
    AGENDA_FACTURADO TIME,
    AGENDA_FACTFEC DATE,
    FOPA_ID INTEGER,
    AGENDA_SALIDA TIME,
    AGENDA_PROCESO BOOLEANO);

ALTER TABLE REPORT_AGENDA_CLIENTE
ADD CONSTRAINT PK_REPORT_AGENDA_CLIENTE
PRIMARY KEY (ID_AGENDA);

CREATE SEQUENCE GEN_REPORT_AGENDA_CLIENTE_ID;

SET TERM ^ ;

create trigger report_agenda_cliente_bi for report_agenda_cliente
active before insert position 0
as
begin
  if (new.id_agenda is null) then
    new.id_agenda = gen_id(gen_report_agenda_cliente_id,1);
end^

SET TERM ; ^

GRANT ALL ON REPORT_AGENDA_CLIENTE TO PUBLIC;

ALTER TABLE REPORT_AGENDA_CLIENTE
ADD PREF_PRE PREFIJO;

ALTER TABLE REPORT_AGENDA_CLIENTE
ADD AGENDA_NUMERO T_NUMDOC;

ALTER TABLE REPORT_AGENDA_CLIENTE
ADD CONSTRAINT FK_REPORT_AGENDA_CLIENTE_1
FOREIGN KEY (TERC_NIT)
REFERENCES TERCEROS(TERC_NIT);

ALTER TABLE REPORT_AGENDA_CLIENTE
ADD CONSTRAINT FK_REPORT_AGENDA_CLIENTE_2
FOREIGN KEY (FOPA_ID)
REFERENCES FORMAS_PAGO(FOPA_ID);

ALTER TABLE REPORT_AGENDA_CLIENTE
ADD AGENDA_USUARIO T_USUARIO;

SET TERM ^ ;

create or alter procedure REPORT_CONSULTA_PREFIJO (
    PREFIJO varchar(20),
    DOCUMENTO integer)
returns (
    PREFIJOS varchar(4),
    CONSECUTIVO varchar(10),
    AUTOMATICO char(1),
    ESTADO char(1))
as
declare variable CANTIDAD integer;
BEGIN
FOR SELECT count(*) FROM REPORT_PREFIJOS S WHERE S.pref_prefijo =:PREFIJO AND S.tido_cod = :DOCUMENTO INTO :CANTIDAD
DO
begin
if (CANTIDAD >0) then
SELECT C.pref_prefijo, C.numero_prefijo, C.calculo_prefijo, C.activo_prefijo FROM REPORT_PREFIJOS C WHERE C.pref_prefijo =:PREFIJO AND C.TIDO_COD = :DOCUMENTO INTO :PREFIJOS,:CONSECUTIVO, :AUTOMATICO, :ESTADO;
ELSE
exception PREFIJO_NO_EXISTE ' Es necesario verificar los prefijos en la tabla de PREFIJOS';
suspend;
   END
END^

SET TERM ; ^

/* Following GRANT statetements are generated automatically */

GRANT SELECT ON PREFIJOS TO PROCEDURE REPORT_CONSULTA_PREFIJO;

/* Existing privileges on this procedure */

GRANT EXECUTE ON PROCEDURE REPORT_CONSULTA_PREFIJO TO "PUBLIC";
GRANT EXECUTE ON PROCEDURE REPORT_CONSULTA_PREFIJO TO SYSDBA;

ALTER TABLE REPORT_AGENDA_CLIENTE
ADD AGENDA_MOTIVO EXPLICA;

ALTER TABLE REPORT_AGENDA_CLIENTE
ADD AGENDA_TIPO VARCHAR(10);

ALTER TABLE REPORT_AGENDA_CLIENTE ALTER COLUMN AGENDA_TIPO
SET DEFAULT 'Agendado';

SET TERM ^ ;

CREATE OR ALTER trigger report_agenda_cliente_bi for report_agenda_cliente
active before insert position 0
as
DECLARE VARIABLE NUMERO VARCHAR(8);
DECLARE VARIABLE AUTOM CHAR(1);
DECLARE VARIABLE EXISTE CHAR(1);
DECLARE VARIABLE ESTADO CHAR(1);
begin
  if (new.id_agenda is null) then
    new.id_agenda = gen_id(gen_report_agenda_cliente_id,1);

      /*VACIO USUARIO*/
  IF (NEW.AGENDA_USUARIO IS NULL) THEN
     NEW.AGENDA_USUARIO = USER;

       /* VALIDE EL ESTADO DEL CLIENTE */
  BEGIN
    SELECT C.CLIE_ESTADO
    FROM CLIENTES C
    WHERE TERC_NIT = NEW.TERC_NIT
    INTO :ESTADO;
    IF (ESTADO <> 'A') THEN
      EXCEPTION CLIENTE_INACTIVO 'El cliente ' || NEW.TERC_NIT || ' esta inactivo o en No vender.';
  END

    /* Verifique que el numero no existe previamente */
  EXISTE = 'N';
  SELECT 'S'
  FROM REPORT_AGENDA_CLIENTE
  WHERE PREF_PRE = NEW.PREF_PRE AND
        AGENDA_NUMERO = NEW.AGENDA_NUMERO
  INTO :EXISTE;
  IF (EXISTE = 'S') THEN
    EXCEPTION DOCUMENTO_REGISTRADO 'Ya existe un agendamiento con el numero ' || NEW.PREF_PRE || NEW.AGENDA_NUMERO;

    BEGIN
    /* Actualice el contador del prefijo */
    SELECT NUMERO_PREFIJO, CALCULO_PREFIJO
    FROM REPORT_PREFIJOS
    WHERE TIDO_COD = 1 AND
          PREF_PREFIJO = NEW.PREF_PRE
    INTO :NUMERO, :AUTOM;
    /* ACTUALICE EL NUMERO EN ENCABEZADO  */
    IF (AUTOM = 'S') THEN
    BEGIN
      NEW.AGENDA_NUMERO = NUMERO;
      NUMERO = CAST((CAST(NUMERO AS INTEGER) + 1) AS CHAR(8));
      UPDATE REPORT_PREFIJOS
      SET NUMERO_PREFIJO = :NUMERO
      WHERE TIDO_COD = 1 AND
            PREF_PREFIJO = NEW.PREF_PRE;
    END
    ELSE
    BEGIN
      IF (CAST(NUMERO AS INTEGER) = CAST(NEW.AGENDA_NUMERO AS INTEGER)) THEN
        UPDATE REPORT_PREFIJOS
        SET NUMERO_PREFIJO = CAST((CAST(NUMERO_PREFIJO AS INTEGER) + 1) AS CHAR(8))
        WHERE TIDO_COD = 1 AND
              PREF_PREFIJO = NEW.PREF_PRE;
    END
    EXECUTE PROCEDURE COMPLETA_CEROS8(NEW.AGENDA_NUMERO)
        RETURNING_VALUES (NEW.AGENDA_NUMERO);
  END

end^

SET TERM ; ^

SET TERM ^ ;

CREATE OR ALTER trigger report_prefijos_bi for report_prefijos
active before insert position 0
AS
BEGIN
    IF (NEW.TIDO_COD <> 0 ) THEN
    EXECUTE PROCEDURE COMPLETA_CEROS8 (NEW.PREF_PREFIJO) RETURNING_VALUES (NEW.PREF_PREFIJO);
END^

SET TERM ; ^


SET TERM ^ ;

CREATE OR ALTER trigger report_prefijos_bi0 for report_prefijos
active before insert position 0
AS
DECLARE VARIABLE CANT INTEGER;
begin
BEGIN
    IF (NEW.TIDO_COD IS NOT NULL) THEN
    BEGIN
       SELECT COUNT(*)
       FROM   REPORT_DOCUMENTOS
       WHERE  REPORT_DOCUMENTOS.repdoc_id = NEW.tido_cod
       INTO   :CANT;
       IF (CANT = 0) THEN
       BEGIN
          EXCEPTION TIPODOC_NO_EXISTE;
       END
    END
END
end^

SET TERM ; ^

SET TERM ^ ;

CREATE OR ALTER trigger report_prefijos_bip for report_prefijos
active before insert position 0
AS
begin
 if (NEW.tido_cod <> 0 ) then
    EXECUTE PROCEDURE completa_ceros8 (NEW.numero_prefijo) returning_values (NEW.numero_prefijo);
end^

SET TERM ; ^

SET TERM ^ ;

CREATE OR ALTER trigger report_prefijos_bu for report_prefijos
active before update position 0
AS
begin
if (NEW.tido_cod <> 0 ) then
    EXECUTE PROCEDURE completa_ceros8 (NEW.NUMERO_PREFIJO) returning_values (NEW.NUMERO_PREFIJO);
end^

SET TERM ; ^

ALTER TABLE REPORT_AGENDA_CLIENTE ALTER COLUMN AGENDA_PROCESO
SET DEFAULT 'N';
ALTER TABLE REPORT_CONEXION
ADD HORA_CONEXION TIME;

SET TERM ^ ;

CREATE OR ALTER trigger report_conexion_bi for report_conexion
active before insert position 0
as
begin
  if (new.id_conexion is null) then
    new.id_conexion = gen_id(gen_report_conexion_id,1);
  if (NEW.hora_conexion IS NULL ) then
  NEW.hora_conexion = current_time;
end^

SET TERM ; ^

ALTER TABLE REPORT_AGENDA_CLIENTE
ADD AGENDA_EVENTO VARCHAR(10);


INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'AGENDA', 'INSERTAR NOTIFICACION DE LLEGADA DE CLIENTE', 'SI', 'SI,NO', 'SI: Envi notificacion al usuario de bodega NO:NO envia notificacion de llegada de cliente');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AJUSTES', 'GENERAL', 'COLOR FINAL VENTANA PRINCIPAL REPORT', '0,0,0', '0x00000-0xFFFFFF', 'Indique el color en formato RGB que quiere de fondo en la ventana final del módulo');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AJUSTES', 'GENERAL', 'COLOR VENTANA PRINCIPAL REPORT', '23,224,255', '0x00000-0xFFFFFF', 'Indique el color en formato RGB que quiere de fondo en la ventana principal del módulo');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AJUSTES', 'GENERAL', 'RUTA DE CARPETA EN RED PARA MANEJO DE PUBLICIDAD', '192.168.0.14:C:\SYSplus2020', NULL, 'Digite la ruta en red donde estara la carpeta para buscar la publicidad.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AJUSTES', 'GENERAL', 'TIPO DE GRADADO PARA EL MODULO', '5', '1,2,3,4,5,6,7,8,9', 'Selecciona un degradado para los colores del ventana 1(Horizontal), 2(Verticall),3(Esquina_1),4(Esquina_2),5(Esquina_3),6(Esquina_4),7(Circular),8(Central),9(Agua).');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AJUSTES', 'GENERAL', 'USAR CARPETA DEL EQUIPO LOCAL O RED', 'LOCAL', 'LOCAL,RED', 'LOCAL: La carpeta Pulicidad debe estar en la ruta de instalacion  RED:Buscar una carpeta en red.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('COMPRAS', 'CAMBIOS', 'NUMERO DE FACTURA OBLIGATORIO AL REGISTRAR CAMBIO', 'NO', 'SI,NO', 'No permite guardar el cambio si no tiene el numero de factura asociado');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('COMPRAS', 'GENERAL', 'COLOR FINAL VENTANA PRINCIPAL REPORT', '23,224,255', '0x00000-0xFFFFFF', 'Indique el color en formato RGB que quiere de fondo en la ventana final del módulo');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('COMPRAS', 'GENERAL', 'COLOR VENTANA PRINCIPAL REPORT', '0,0,0', '0x00000-0xFFFFFF', 'Indique el color en formato RGB que quiere de fondo en la ventana principal del módulo');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('COMPRAS', 'GENERAL', 'TIPO DE GRADADO PARA EL MODULO', '6', '1,2,3,4,5,6,7,8,9', 'Selecciona un degradado para los colores del ventana 1(Horizontal), 2(Verticall),3(Esquina_1),4(Esquina_2),5(Esquina_3),6(Esquina_4),7(Circular),8(Central),9(Agua).');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'CODIGO DE MARCA PARTNER', '210729', NULL, 'Digite el codigo partner de convenio');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'CONTRASENA DE FTP PARA ENVIO DE ARCHIVOS', '$0p0rt31DSH', NULL, 'Digite la contrasena del FTP');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'CUENTA FTP PARA ENVIO DE ARCHIVOS', 'ftp.alianzadsh.com', NULL, 'Digite el usuaruio del FTP');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'MARCA PREDERTERMINADA PARA GENERAR REPORTE', '043', NULL, 'Digite codigo de marca predeterminada para generar reporte FTP.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'NUMERO DE SEGUNDOS PARA NOTIFICAR BUSQUEDA DE ENVIO', '10', NULL, 'Ingrese en segundos la frecuencia de validacion de envios en el servidor.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'PUERTO PARA FTP', '22', NULL, 'Digite le puerto de envio FTP');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'RUTA PARA EXPORTAR ARCHIVO EXCEL', 'C:\SYSplus2019', NULL, 'Digite ruta donde guardar archivo y convertir para FTP');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'SMFTP DIRECTORIO PARA ENVIO', '/home/alianzadsh', NULL, 'Digite el directorio del FTP donde se guardara el archivo.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'USUARIO FTP', 'alianzadsh', NULL, 'Digite Usuario del FPT');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('TICKETS', 'GENERAL', 'TIPO DE GRADADO PARA EL MODULO', '8', '1,2,3,4,5,6,7,8,9', 'Selecciona un degradado para los colores del ventana 1(Horizontal), 2(Verticall),3(Esquina_1),4(Esquina_2),5(Esquina_3),6(Esquina_4),7(Circular),8(Central),9(Agua).');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'FALTANTES', 'MOSTRAR PENDIENTES POR USUARIO,PUNTO,NO', 'USUARIO', 'USUARIO,PUNTO,NO', 'Permite mostrar los pendientes por Usuario, Punto de venta o No filtrar.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'GENERAL', 'LLEVAR CONTROL DE ENVIOS POR FACTURAS', 'NO', 'SI,NO', 'SI:Permite insertar y controlar los enviospor factura NO:No lleva control.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'GENERAL', 'LLEVAR CONTROL DE FALTANTES POR FACTURAS', 'SI', 'SI,NO', 'SI:Permite insertar y controlar faltantes por facturas NO:No lleva control.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'GENERAL', 'LLEVAR CONTROL DE FALTANTES POR REMISIONES', 'SI', 'SI,NO', 'SI:Permite insertar y controlar faltantes por remision NO:No lleva control.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'GENERAL', 'MOSTRAR PENDIENTES POR USUARIO', 'NO', 'NO,USUARIO', 'NO:Muestra todos los pedidos pendientes en un rango de fecha. USUARIO:Muestra unicamente los pedidos pendientes por enviar al usuario conectado.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'GENERAL', 'NOTIFICAR EN PANTALLA CANTIDAD DE FACTURAS PENDIENTES POR ASIGNAR DOMICILIO.', 'NO', 'SI,NO', 'Permite ver en pantalla en un intervalo de tiempo la cantidad de facturas que no han sido asignadas a un domiciliario.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'GENERAL', 'TIEMPO PARA REFRESCAR VENTANA EN MINUTOS', '1', '1,2,3,4,5,6,7,8,9,10,15,20,30,60', 'Seleccione el tiempo en minutos que se van a refrescar las consultas.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'GENERAL', 'TIPO DE GRADADO PARA EL MODULO', '9', '1,2,3,4,5,6,7,8,9', 'Selecciona un degradado para los colores del ventana 1(Horizontal), 2(Verticall),3(Esquina_1),4(Esquina_2),5(Esquina_3),6(Esquina_4),7(Circular),8(Central),9(Agua).');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'PRECIOS', 'CODIGO DE LISTA FINAL PARA ESCALAS', '0', '0,1,2,3,4,5,6,7,8,9', 'Digite el codigo de lista de precios para rango de escalas en la consulta');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'PRECIOS', 'CODIGO DE LISTA INICIAL PARA ESCALAS', '0', '0,1,2,3,4,5,6,7,8,9', 'Digite el codigo de lista de precios para rango de escalas en la consulta');

SET TERM ^ ;

CREATE OR ALTER procedure REPORT_TRAE_VENTA (
    PREF varchar(4),
    NUM varchar(8))
returns (
    FACTURA varchar(12),
    ITEMS integer,
    TOTAL numeric(18,2),
    FECHA date,
    HORA time)
as
declare variable ID integer;
begin
  FOR select FACT_ID, PREF_PRE||FACT_NUMERO, FACT_FECHA
  from FACTURAS WHERE PREF_PRE = :PREF AND FACT_NUMERO = :NUM
  INTO  :ID, :FACTURA, :FECHA
  DO
  BEGIN
  select AUDI_HORA from AUDITORIA A WHERE TIDO_COD = 31 AND AUDI_IDDOC = :ID AND AUDI_OPER = 'I' INTO :HORA;
  SELECT COUNT (D.fade_item), SUM (D.fade_cant) FROM FACTURAS_DETALLE D WHERE FACT_ID = :ID INTO :ITEMS, :TOTAL;
  suspend;
  END
end^

SET TERM ; ^


INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'AGENDA', 'NUMERO DE DIAS PARA CONSULTAR DOCUMENTOS', '60', NULL, 'Permite llamar documentos de los dias indicados hacia atras.');

ALTER TABLE REPORT_AGENDA_CLIENTE
ADD ADENDA_MOVANULA VARCHAR(255);

ALTER TABLE REPORT_AGENDA_CLIENTE
ADD AGENDA_TOTALITEMS NUMERIC(18,2);

ALTER TABLE REPORT_AGENDA_CLIENTE
ADD AGENDA_FACASOCIA VARCHAR(12);


INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'AGENDA', 'PERMITIR MODIFICAR AGENDA YA FACTURADA', 'NO', 'SI,NO', 'Permite cambiar una agenda que ya fue facturada');
ALTER TABLE REPORT_AGENDA_CLIENTE DROP ADENDA_MOVANULA;
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'AGENDA', 'PERMITIR MODIFICAR HORA DE LLEGADA DEL CLIENTE', 'NO', 'SI,NO', 'Permite modificar la hora de llegada del cliente.');

ALTER TABLE REPORT_AGENDA_CLIENTE
ADD AGENDA_INILOG TIME;

CREATE TABLE REPORT_AGENDA_PROVEEDOR (
    APROV_ID INTEGER NOT NULL,
    PREF_PRE PREFIJO,
    APROV_NUMERO T_NUMDOC,
    TERC_NIT VARCHAR(20),
    APROV_NOMBRE VARCHAR(60),
    APROV_FECHA DATE,
    APROV_HORA TIME,
    APROV_OBSERVACION BLOB SUB_TYPE 1 SEGMENT SIZE 80,
    APROV_ORDEN VARCHAR(30),
    APROV_ANULADO CHAR(1),
    APROV_LLEGADA TIME);

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD CONSTRAINT PK_REPORT_AGENDA_PROVEEDOR
PRIMARY KEY (APROV_ID);

SET TERM ^ ;

CREATE OR ALTER trigger report_prefijos_bi for report_prefijos
active before insert position 0
AS
BEGIN
    IF (NEW.TIDO_COD <> 0 ) THEN
    EXECUTE PROCEDURE COMPLETA_CEROS8 (NEW.numero_prefijo) RETURNING_VALUES (NEW.numero_prefijo);
END^

SET TERM ; ^

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_CITA CHAR(1)
DEFAULT 'S' ;

GRANT ALL ON REPORT_AGENDA_PROVEEDOR TO PUBLIC;

CREATE SEQUENCE GEN_REPORT_AGENDA_PROVEEDOR_ID;

SET TERM ^ ;

create trigger report_agenda_proveedor_bi for report_agenda_proveedor
active before insert position 0
as
begin
  if (new.aprov_id is null) then
    new.aprov_id = gen_id(gen_report_agenda_proveedor_id,1);
end^

SET TERM ; ^

ALTER TABLE REPORT_AGENDA_PROVEEDOR DROP APROV_ORDEN;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_ORDEN VARCHAR(255);

SET TERM ^ ;

CREATE OR ALTER trigger report_agenda_proveedor_bi for report_agenda_proveedor
active before insert position 0
as
DECLARE VARIABLE NUMERO VARCHAR(8);
DECLARE VARIABLE AUTOM CHAR(1);
DECLARE VARIABLE EXISTE CHAR(1);
DECLARE VARIABLE ESTADO CHAR(1);
begin
  if (new.aprov_id is null) then
    new.aprov_id = gen_id(gen_report_agenda_proveedor_id,1);
    /* Verifique que el numero no existe previamente */
  EXISTE = 'N';
  SELECT 'S'
  FROM REPORT_AGENDA_PROVEEDOR
  WHERE PREF_PRE = NEW.PREF_PRE AND
        APROV_NUMERO = NEW.APROV_NUMERO
  INTO :EXISTE;
  IF (EXISTE = 'S') THEN
  EXCEPTION DOCUMENTO_REGISTRADO 'Ya existe un agendamiento con el numero ' || NEW.PREF_PRE || NEW.APROV_NUMERO;
end^

SET TERM ; ^

SET TERM ^ ;

CREATE OR ALTER trigger report_agenda_proveedor_bi for report_agenda_proveedor
active before insert position 0
as
DECLARE VARIABLE NUMERO VARCHAR(8);
DECLARE VARIABLE AUTOM CHAR(1);
DECLARE VARIABLE EXISTE CHAR(1);
DECLARE VARIABLE ESTADO CHAR(1);
begin
  if (new.aprov_id is null) then
    new.aprov_id = gen_id(gen_report_agenda_proveedor_id,1);
    /* Verifique que el numero no existe previamente */
  EXISTE = 'N';
  SELECT 'S'
  FROM REPORT_AGENDA_PROVEEDOR
  WHERE PREF_PRE = NEW.PREF_PRE AND
        APROV_NUMERO = NEW.APROV_NUMERO
  INTO :EXISTE;
  IF (EXISTE = 'S') THEN
  EXCEPTION DOCUMENTO_REGISTRADO 'Ya existe un agendamiento con el numero ' || NEW.PREF_PRE || NEW.APROV_NUMERO;

  BEGIN
    /* Actualice el contador del prefijo */
    SELECT NUMERO_PREFIJO, CALCULO_PREFIJO
    FROM REPORT_PREFIJOS
    WHERE TIDO_COD = 2 AND
          PREF_PREFIJO = NEW.PREF_PRE
    INTO :NUMERO, :AUTOM;
    /* ACTUALICE EL NUMERO EN ENCABEZADO  */
    IF (AUTOM = 'S') THEN
    BEGIN
      NEW.APROV_NUMERO = NUMERO;
      NUMERO = CAST((CAST(NUMERO AS INTEGER) + 1) AS CHAR(8));
      UPDATE REPORT_PREFIJOS
      SET NUMERO_PREFIJO = :NUMERO
      WHERE TIDO_COD = 2 AND
            PREF_PREFIJO = NEW.PREF_PRE;
    END
    ELSE
    BEGIN
      IF (CAST(NUMERO AS INTEGER) = CAST(NEW.APROV_NUMERO AS INTEGER)) THEN
        UPDATE REPORT_PREFIJOS
        SET NUMERO_PREFIJO = CAST((CAST(NUMERO_PREFIJO AS INTEGER) + 1) AS CHAR(8))
        WHERE TIDO_COD = 2 AND
              PREF_PREFIJO = NEW.PREF_PRE;
    END
    EXECUTE PROCEDURE COMPLETA_CEROS8(NEW.APROV_NUMERO)
        RETURNING_VALUES (NEW.APROV_NUMERO);
  END
end^

SET TERM ; ^

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_ID position 1;

alter table REPORT_AGENDA_PROVEEDOR
alter PREF_PRE position 2;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_NUMERO position 3;

alter table REPORT_AGENDA_PROVEEDOR
alter TERC_NIT position 4;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_NOMBRE position 5;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_FECHA position 6;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_HORA position 7;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_OBSERVACION position 8;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_ORDEN position 9;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_ANULADO position 10;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_CITA position 11;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_LLEGADA position 12;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_REGISTRO DATE;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_ID position 1;

alter table REPORT_AGENDA_PROVEEDOR
alter PREF_PRE position 2;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_NUMERO position 3;

alter table REPORT_AGENDA_PROVEEDOR
alter TERC_NIT position 4;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_NOMBRE position 5;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_FECHA position 6;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_HORA position 7;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_OBSERVACION position 8;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_ORDEN position 9;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_ANULADO position 10;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_CITA position 11;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_REGISTRO position 12;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_LLEGADA position 13;

SET TERM ^ ;

CREATE OR ALTER trigger report_agenda_proveedor_bi for report_agenda_proveedor
active before insert position 0
as
DECLARE VARIABLE NUMERO VARCHAR(8);
DECLARE VARIABLE AUTOM CHAR(1);
DECLARE VARIABLE EXISTE CHAR(1);
DECLARE VARIABLE ESTADO CHAR(1);
DECLARE VARIABLE CANT INTEGER;
begin
  /*Valida que la fecha no quede vacio*/
  if (NEW.aprov_registro IS NULL) then
  NEW.aprov_registro = current_date;
  /*Valida que no quede vacio el id*/
  if (new.aprov_id is null) then
    new.aprov_id = gen_id(gen_report_agenda_proveedor_id,1);
    /* Verifique que el numero no existe previamente */
  EXISTE = 'N';
  SELECT 'S'
  FROM REPORT_AGENDA_PROVEEDOR
  WHERE PREF_PRE = NEW.PREF_PRE AND
        APROV_NUMERO = NEW.APROV_NUMERO
  INTO :EXISTE;
  IF (EXISTE = 'S') THEN
  EXCEPTION DOCUMENTO_REGISTRADO 'Ya existe un agendamiento con el numero ' || NEW.PREF_PRE || NEW.APROV_NUMERO;

  BEGIN
    /* Actualice el contador del prefijo */
    SELECT NUMERO_PREFIJO, CALCULO_PREFIJO
    FROM REPORT_PREFIJOS
    WHERE TIDO_COD = 2 AND
          PREF_PREFIJO = NEW.PREF_PRE
    INTO :NUMERO, :AUTOM;
    /* ACTUALICE EL NUMERO EN ENCABEZADO  */
    IF (AUTOM = 'S') THEN
    BEGIN
      NEW.APROV_NUMERO = NUMERO;
      NUMERO = CAST((CAST(NUMERO AS INTEGER) + 1) AS CHAR(8));
      UPDATE REPORT_PREFIJOS
      SET NUMERO_PREFIJO = :NUMERO
      WHERE TIDO_COD = 2 AND
            PREF_PREFIJO = NEW.PREF_PRE;
    END
    ELSE
    BEGIN
      IF (CAST(NUMERO AS INTEGER) = CAST(NEW.APROV_NUMERO AS INTEGER)) THEN
        UPDATE REPORT_PREFIJOS
        SET NUMERO_PREFIJO = CAST((CAST(NUMERO_PREFIJO AS INTEGER) + 1) AS CHAR(8))
        WHERE TIDO_COD = 2 AND
              PREF_PREFIJO = NEW.PREF_PRE;
    END
    EXECUTE PROCEDURE COMPLETA_CEROS8(NEW.APROV_NUMERO)
        RETURNING_VALUES (NEW.APROV_NUMERO);
  END

  /*Valide que no inserte una agenda con la misma hora y fecha*/
    SELECT COUNT (*) FROM REPORT_AGENDA_PROVEEDOR WHERE APROV_FECHA = NEW.aprov_fecha AND APROV_HORA = NEW.aprov_hora INTO :CANT;
    IF(CANT > 0) THEN
    exception  YA_EXISTE_EL_REGISTRO 'Ya existe un agendamiento con esa fecha y hora ' || new.aprov_fecha ;

end^

SET TERM ; ^

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_ASISTENTES INTEGER;

SET TERM ^ ;

CREATE OR ALTER trigger report_agenda_proveedor_bi for report_agenda_proveedor
active before insert position 0
as
DECLARE VARIABLE NUMERO VARCHAR(8);
DECLARE VARIABLE AUTOM CHAR(1);
DECLARE VARIABLE EXISTE CHAR(1);
DECLARE VARIABLE ESTADO CHAR(1);
DECLARE VARIABLE CANT INTEGER;
begin
  /*Valida que la fecha no quede vacio*/
  if (NEW.aprov_registro IS NULL) then
  NEW.aprov_registro = current_date;
  /*Valida que no quede vacio el id*/
  if (new.aprov_id is null) then
    new.aprov_id = gen_id(gen_report_agenda_proveedor_id,1);
    /* Verifique que el numero no existe previamente */
  EXISTE = 'N';
  SELECT 'S'
  FROM REPORT_AGENDA_PROVEEDOR
  WHERE PREF_PRE = NEW.PREF_PRE AND
        APROV_NUMERO = NEW.APROV_NUMERO
  INTO :EXISTE;
  IF (EXISTE = 'S') THEN
  EXCEPTION DOCUMENTO_REGISTRADO 'Ya existe un agendamiento con el numero ' || NEW.PREF_PRE || NEW.APROV_NUMERO;

  BEGIN
    /* Actualice el contador del prefijo */
    SELECT NUMERO_PREFIJO, CALCULO_PREFIJO
    FROM REPORT_PREFIJOS
    WHERE TIDO_COD = 2 AND
          PREF_PREFIJO = NEW.PREF_PRE
    INTO :NUMERO, :AUTOM;
    /* ACTUALICE EL NUMERO EN ENCABEZADO  */
    IF (AUTOM = 'S') THEN
    BEGIN
      NEW.APROV_NUMERO = NUMERO;
      NUMERO = CAST((CAST(NUMERO AS INTEGER) + 1) AS CHAR(8));
      UPDATE REPORT_PREFIJOS
      SET NUMERO_PREFIJO = :NUMERO
      WHERE TIDO_COD = 2 AND
            PREF_PREFIJO = NEW.PREF_PRE;
    END
    ELSE
    BEGIN
      IF (CAST(NUMERO AS INTEGER) = CAST(NEW.APROV_NUMERO AS INTEGER)) THEN
        UPDATE REPORT_PREFIJOS
        SET NUMERO_PREFIJO = CAST((CAST(NUMERO_PREFIJO AS INTEGER) + 1) AS CHAR(8))
        WHERE TIDO_COD = 2 AND
              PREF_PREFIJO = NEW.PREF_PRE;
    END
    EXECUTE PROCEDURE COMPLETA_CEROS8(NEW.APROV_NUMERO)
        RETURNING_VALUES (NEW.APROV_NUMERO);
  END

  /*Valide que no inserte una agenda con la misma hora y fecha*/
    SELECT COUNT (*) FROM REPORT_AGENDA_PROVEEDOR WHERE APROV_FECHA = NEW.aprov_fecha AND APROV_HORA = NEW.aprov_hora INTO :CANT;
    IF(CANT > 0) THEN
    exception  YA_EXISTE_EL_REGISTRO 'Ya existe un agendamiento con esa fecha y hora ' || new.aprov_fecha ;
  /*No permite null*/
  IF(NEW.APROV_ASISTENTES IS NULL) THEN
    NEW.APROV_ASISTENTES = 0;
end^

SET TERM ; ^

INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'PROVEEDOR', 'PERMITIR AGENDAMIENTO SIN ORDENES', 'NO', 'SI,NO', 'Permite guardar programacion de agenda sin llamar alguna orden.');

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_HFIN TIME;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_ID position 1;

alter table REPORT_AGENDA_PROVEEDOR
alter PREF_PRE position 2;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_NUMERO position 3;

alter table REPORT_AGENDA_PROVEEDOR
alter TERC_NIT position 4;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_NOMBRE position 5;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_FECHA position 6;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_HORA position 7;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_HFIN position 8;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_OBSERVACION position 9;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_ORDEN position 10;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_ANULADO position 11;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_CITA position 12;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_REGISTRO position 13;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_LLEGADA position 14;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_ASISTENTES position 15;


INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'PROVEEDOR', 'HORA DE FIN DE AGENDAMIENTO', '17', NULL, 'Indique la hora entera a que va a iniciar el agendamiento');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'PROVEEDOR', 'HORA DE INICIO DE AGENDAMIENTO', '8', NULL, 'Indique la hora entera en que va a iniciar el agendamiento');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'PROVEEDOR', 'INTERVALO DE TIEMPO DEL AGENDAMIENTO', '15', NULL, 'Indique el intervalo entre horas del agendamiento');

CREATE DOMAIN R_PRIORIDAD AS
CHAR(1)
CHECK (VALUE IN ('A', 'M', 'N', 'B'));

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_PRIORIDAD R_PRIORIDAD
DEFAULT 'N' ;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_ID position 1;

alter table REPORT_AGENDA_PROVEEDOR
alter PREF_PRE position 2;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_NUMERO position 3;

alter table REPORT_AGENDA_PROVEEDOR
alter TERC_NIT position 4;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_NOMBRE position 5;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_FECHA position 6;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_HORA position 7;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_HFIN position 8;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_OBSERVACION position 9;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_ORDEN position 10;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_ANULADO position 11;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_CITA position 12;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_REGISTRO position 13;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_ASISTENTES position 14;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_PRIORIDAD position 15;

alter table REPORT_AGENDA_PROVEEDOR
alter APROV_LLEGADA position 16;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_MOTIVO BLOB SUB_TYPE 1 SEGMENT SIZE 16384 CHARACTER SET ISO8859_1 ;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_RECTEC TIME;

INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'PROVEEDOR', 'PERMITIR MODIFICAR LA RECEPCION DE LOGISTICA', 'NO', 'SI,NO', 'Permite cambiar la recepcion de logistica que ya etsa grabada.');

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_FACTURA BLOB SUB_TYPE 1 SEGMENT SIZE 16384;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_REMISION BLOB SUB_TYPE 1 SEGMENT SIZE 16384;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_CAJAS INTEGER;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_ITEMS INTEGER;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_OPERARIO INTEGER;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_NORDEN INTEGER;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_TTRANS VARCHAR(20);

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_TTRANSNOM VARCHAR(60);

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_SALTRANS TIME;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_ALHINI TIME;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_ALPER BLOB SUB_TYPE 1 SEGMENT SIZE 16384 CHARACTER SET ISO8859_1 ;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_ALFIN TIME;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_ALNUM INTEGER;


INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'AGENDA', 'HORA DE FIN DE AGENDAMIENTO', '16', NULL, 'Indique la hora entera a que va a iniciar el agendamiento');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'AGENDA', 'HORA DE INICIO DE AGENDAMIENTO', '8', NULL, 'Indique la hora entera en que va a iniciar el agendamiento');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'AGENDA', 'INTERVALO DE TIEMPO DEL AGENDAMIENTO', '15', NULL, 'Indique el intervalo entre horas del agendamiento');

SET TERM ^ ;

CREATE OR ALTER trigger report_agenda_cliente_bi for report_agenda_cliente
active before insert position 0
as
DECLARE VARIABLE NUMERO VARCHAR(8);
DECLARE VARIABLE AUTOM CHAR(1);
DECLARE VARIABLE EXISTE CHAR(1);
DECLARE VARIABLE ESTADO CHAR(1);
DECLARE VARIABLE CANT INTEGER;
begin
  if (new.id_agenda is null) then
    new.id_agenda = gen_id(gen_report_agenda_cliente_id,1);

      /*VACIO USUARIO*/
  IF (NEW.AGENDA_USUARIO IS NULL) THEN
     NEW.AGENDA_USUARIO = USER;

       /* VALIDE EL ESTADO DEL CLIENTE */
  BEGIN
    SELECT C.CLIE_ESTADO
    FROM CLIENTES C
    WHERE TERC_NIT = NEW.TERC_NIT
    INTO :ESTADO;
    IF (ESTADO <> 'A') THEN
      EXCEPTION CLIENTE_INACTIVO 'El cliente ' || NEW.TERC_NIT || ' esta inactivo o en No vender.';
  END

    /* Verifique que el numero no existe previamente */
  EXISTE = 'N';
  SELECT 'S'
  FROM REPORT_AGENDA_CLIENTE
  WHERE PREF_PRE = NEW.PREF_PRE AND
        AGENDA_NUMERO = NEW.AGENDA_NUMERO
  INTO :EXISTE;
  IF (EXISTE = 'S') THEN
    EXCEPTION DOCUMENTO_REGISTRADO 'Ya existe un agendamiento con el numero ' || NEW.PREF_PRE || NEW.AGENDA_NUMERO;

    BEGIN
    /* Actualice el contador del prefijo */
    SELECT NUMERO_PREFIJO, CALCULO_PREFIJO
    FROM REPORT_PREFIJOS
    WHERE TIDO_COD = 1 AND
          PREF_PREFIJO = NEW.PREF_PRE
    INTO :NUMERO, :AUTOM;
    /* ACTUALICE EL NUMERO EN ENCABEZADO  */
    IF (AUTOM = 'S') THEN
    BEGIN
      NEW.AGENDA_NUMERO = NUMERO;
      NUMERO = CAST((CAST(NUMERO AS INTEGER) + 1) AS CHAR(8));
      UPDATE REPORT_PREFIJOS
      SET NUMERO_PREFIJO = :NUMERO
      WHERE TIDO_COD = 1 AND
            PREF_PREFIJO = NEW.PREF_PRE;
    END
    ELSE
    BEGIN
      IF (CAST(NUMERO AS INTEGER) = CAST(NEW.AGENDA_NUMERO AS INTEGER)) THEN
        UPDATE REPORT_PREFIJOS
        SET NUMERO_PREFIJO = CAST((CAST(NUMERO_PREFIJO AS INTEGER) + 1) AS CHAR(8))
        WHERE TIDO_COD = 1 AND
              PREF_PREFIJO = NEW.PREF_PRE;
    END
    EXECUTE PROCEDURE COMPLETA_CEROS8(NEW.AGENDA_NUMERO)
        RETURNING_VALUES (NEW.AGENDA_NUMERO);
  END

  /*Valide que no inserte una agenda con la misma hora y fecha*/
    SELECT COUNT (*) FROM REPORT_AGENDA_CLIENTE WHERE AGENDA_FECHA = NEW.AGENDA_fecha AND AGENDA_HORA = NEW.AGENDA_hora INTO :CANT;
    IF(CANT > 0) THEN
    exception  YA_EXISTE_EL_REGISTRO 'Ya existe un agendamiento con esa fecha y hora ' || new.AGENDA_fecha ;
end^

SET TERM ; ^

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_CALFEC DATE;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_CALPRO INTEGER;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_CALPUN NUMERIC(18,2);

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_CALDOC INTEGER;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_CALOBS VARCHAR(60) CHARACTER SET ISO8859_1 ;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_CALPROV VARCHAR(30) CHARACTER SET ISO8859_1 ;

ALTER TABLE REPORT_AGENDA_PROVEEDOR
ADD APROV_CALTOT NUMERIC(18,2);


INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'AGENDA', 'HORA DE FIN DE AGENDAMIENTO', '16', NULL, 'Indique la hora entera a que va a iniciar el agendamiento');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'AGENDA', 'HORA DE INICIO DE AGENDAMIENTO', '7', NULL, 'Indique la hora entera en que va a iniciar el agendamiento');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'AGENDA', 'INSERTAR NOTIFICACION DE LLEGADA DE CLIENTE', 'SI', 'SI,NO', 'SI: Envi notificacion al usuario de bodega NO:NO envia notificacion de llegada de cliente');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'AGENDA', 'INTERVALO DE TIEMPO DEL AGENDAMIENTO', '15', NULL, 'Indique el intervalo entre horas del agendamiento');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'AGENDA', 'NUMERO DE DIAS PARA CONSULTAR DOCUMENTOS', '360', NULL, 'Permite llamar documentos de los dias indicados hacia atras.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'AGENDA', 'PERMITIR MODIFICAR AGENDA YA FACTURADA', 'NO', 'SI,NO', 'Permite cambiar una agenda que ya fue facturada');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'AGENDA', 'PERMITIR MODIFICAR HORA DE LLEGADA DEL CLIENTE', 'NO', 'SI,NO', 'Permite modificar la hora de llegada del cliente.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'AGENDA', 'USUARIO PARA ENVIAR MENSAJE DE NOTIFICACION', 'SYSDBA', NULL, 'Digite el nombre del usuario al cual le llegaran las notificaciones a SYSplus');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'PROVEEDOR', 'HORA DE FIN DE AGENDAMIENTO', '16', NULL, 'Indique la hora entera a que va a iniciar el agendamiento');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'PROVEEDOR', 'HORA DE INICIO DE AGENDAMIENTO', '8', NULL, 'Indique la hora entera en que va a iniciar el agendamiento');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'PROVEEDOR', 'INTERVALO DE TIEMPO DEL AGENDAMIENTO', '15', NULL, 'Indique el intervalo entre horas del agendamiento');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'PROVEEDOR', 'PERMITIR AGENDAMIENTO SIN ORDENES', 'NO', 'SI,NO', 'Permite guardar programacion de agenda sin llamar alguna orden.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AGENDA', 'PROVEEDOR', 'PERMITIR MODIFICAR LA RECEPCION DE LOGISTICA', 'NO', 'SI,NO', 'Permite cambiar la recepcion de logistica que ya etsa grabada.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AJUSTES', 'GENERAL', 'COLOR FINAL VENTANA PRINCIPAL REPORT', '0,0,0', '0x00000-0xFFFFFF', 'Indique el color en formato RGB que quiere de fondo en la ventana final del módulo');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AJUSTES', 'GENERAL', 'COLOR VENTANA PRINCIPAL REPORT', '23,224,255', '0x00000-0xFFFFFF', 'Indique el color en formato RGB que quiere de fondo en la ventana principal del módulo');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AJUSTES', 'GENERAL', 'RUTA DE CARPETA EN RED PARA MANEJO DE PUBLICIDAD', '192.168.0.14:C:\SYSplus2020', NULL, 'Digite la ruta en red donde estara la carpeta para buscar la publicidad.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AJUSTES', 'GENERAL', 'TIPO DE GRADADO PARA EL MODULO', '5', '1,2,3,4,5,6,7,8,9', 'Selecciona un degradado para los colores del ventana 1(Horizontal), 2(Verticall),3(Esquina_1),4(Esquina_2),5(Esquina_3),6(Esquina_4),7(Circular),8(Central),9(Agua).');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('AJUSTES', 'GENERAL', 'USAR CARPETA DEL EQUIPO LOCAL O RED', 'LOCAL', 'LOCAL,RED', 'LOCAL: La carpeta Pulicidad debe estar en la ruta de instalacion  RED:Buscar una carpeta en red.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('COMPRAS', 'CAMBIOS', 'NUMERO DE FACTURA OBLIGATORIO AL REGISTRAR CAMBIO', 'NO', 'SI,NO', 'No permite guardar el cambio si no tiene el numero de factura asociado');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('COMPRAS', 'GENERAL', 'COLOR FINAL VENTANA PRINCIPAL REPORT', '23,224,255', '0x00000-0xFFFFFF', 'Indique el color en formato RGB que quiere de fondo en la ventana final del módulo');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('COMPRAS', 'GENERAL', 'COLOR VENTANA PRINCIPAL REPORT', '0,0,0', '0x00000-0xFFFFFF', 'Indique el color en formato RGB que quiere de fondo en la ventana principal del módulo');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('COMPRAS', 'GENERAL', 'TIPO DE GRADADO PARA EL MODULO', '6', '1,2,3,4,5,6,7,8,9', 'Selecciona un degradado para los colores del ventana 1(Horizontal), 2(Verticall),3(Esquina_1),4(Esquina_2),5(Esquina_3),6(Esquina_4),7(Circular),8(Central),9(Agua).');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'CODIGO DE MARCA PARTNER', '210729', NULL, 'Digite el codigo partner de convenio');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'CONTRASENA DE FTP PARA ENVIO DE ARCHIVOS', '$0p0rt31DSH', NULL, 'Digite la contrasena del FTP');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'CUENTA FTP PARA ENVIO DE ARCHIVOS', 'ftp.alianzadsh.com', NULL, 'Digite el usuaruio del FTP');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'MARCA PREDERTERMINADA PARA GENERAR REPORTE', '043', NULL, 'Digite codigo de marca predeterminada para generar reporte FTP.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'NUMERO DE SEGUNDOS PARA NOTIFICAR BUSQUEDA DE ENVIO', '10', NULL, 'Ingrese en segundos la frecuencia de validacion de envios en el servidor.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'PUERTO PARA FTP', '22', NULL, 'Digite le puerto de envio FTP');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'RUTA PARA EXPORTAR ARCHIVO EXCEL', 'C:\SYSplus2019', NULL, 'Digite ruta donde guardar archivo y convertir para FTP');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'SMFTP DIRECTORIO PARA ENVIO', '/home/alianzadsh', NULL, 'Digite el directorio del FTP donde se guardara el archivo.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('ENVIO', 'GENERAL', 'USUARIO FTP', 'alianzadsh', NULL, 'Digite Usuario del FPT');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('TICKETS', 'GENERAL', 'TIPO DE GRADADO PARA EL MODULO', '8', '1,2,3,4,5,6,7,8,9', 'Selecciona un degradado para los colores del ventana 1(Horizontal), 2(Verticall),3(Esquina_1),4(Esquina_2),5(Esquina_3),6(Esquina_4),7(Circular),8(Central),9(Agua).');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'FALTANTES', 'MOSTRAR PENDIENTES POR USUARIO,PUNTO,NO', 'USUARIO', 'USUARIO,PUNTO,NO', 'Permite mostrar los pendientes por Usuario, Punto de venta o No filtrar.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'GENERAL', 'LLEVAR CONTROL DE ENVIOS POR FACTURAS', 'NO', 'SI,NO', 'SI:Permite insertar y controlar los enviospor factura NO:No lleva control.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'GENERAL', 'LLEVAR CONTROL DE FALTANTES POR FACTURAS', 'SI', 'SI,NO', 'SI:Permite insertar y controlar faltantes por facturas NO:No lleva control.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'GENERAL', 'LLEVAR CONTROL DE FALTANTES POR REMISIONES', 'SI', 'SI,NO', 'SI:Permite insertar y controlar faltantes por remision NO:No lleva control.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'GENERAL', 'MOSTRAR PENDIENTES POR USUARIO', 'NO', 'NO,USUARIO', 'NO:Muestra todos los pedidos pendientes en un rango de fecha. USUARIO:Muestra unicamente los pedidos pendientes por enviar al usuario conectado.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'GENERAL', 'NOTIFICAR EN PANTALLA CANTIDAD DE FACTURAS PENDIENTES POR ASIGNAR DOMICILIO.', 'NO', 'SI,NO', 'Permite ver en pantalla en un intervalo de tiempo la cantidad de facturas que no han sido asignadas a un domiciliario.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'GENERAL', 'TIEMPO PARA REFRESCAR VENTANA EN MINUTOS', '1', '1,2,3,4,5,6,7,8,9,10,15,20,30,60', 'Seleccione el tiempo en minutos que se van a refrescar las consultas.');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'GENERAL', 'TIPO DE GRADADO PARA EL MODULO', '9', '1,2,3,4,5,6,7,8,9', 'Selecciona un degradado para los colores del ventana 1(Horizontal), 2(Verticall),3(Esquina_1),4(Esquina_2),5(Esquina_3),6(Esquina_4),7(Circular),8(Central),9(Agua).');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'PRECIOS', 'CODIGO DE LISTA FINAL PARA ESCALAS', '0', '0,1,2,3,4,5,6,7,8,9', 'Digite el codigo de lista de precios para rango de escalas en la consulta');
INSERT INTO REPORT_CONFIGURACION (MODULO_REPORT, OPCION_REPORT, NOMBRE_REPORT, VALOR_REPORT, POSIBLE_REPORT, DESCRIPCION_REPORT) VALUES ('VENTAS', 'PRECIOS', 'CODIGO DE LISTA INICIAL PARA ESCALAS', '0', '0,1,2,3,4,5,6,7,8,9', 'Digite el codigo de lista de precios para rango de escalas en la consulta');


GRANT ALL ON TABLE RDB$PAGES                      TO PUBLIC;
GRANT ALL ON TABLE RDB$DATABASE                   TO PUBLIC;
GRANT ALL ON TABLE RDB$FIELDS                     TO PUBLIC;
GRANT ALL ON TABLE RDB$INDEX_SEGMENTS             TO PUBLIC;
GRANT ALL ON TABLE RDB$INDICES                    TO PUBLIC;
GRANT ALL ON TABLE RDB$RELATION_FIELDS            TO PUBLIC;
GRANT ALL ON TABLE RDB$RELATIONS                  TO PUBLIC;
GRANT ALL ON TABLE RDB$VIEW_RELATIONS             TO PUBLIC;
GRANT ALL ON TABLE RDB$FORMATS                    TO PUBLIC;
GRANT ALL ON TABLE RDB$SECURITY_CLASSES           TO PUBLIC;
GRANT ALL ON TABLE RDB$FILES                      TO PUBLIC;
GRANT ALL ON TABLE RDB$TYPES                      TO PUBLIC;
GRANT ALL ON TABLE RDB$TRIGGERS                   TO PUBLIC;
GRANT ALL ON TABLE RDB$DEPENDENCIES               TO PUBLIC;
GRANT ALL ON TABLE RDB$FUNCTIONS                  TO PUBLIC;
GRANT ALL ON TABLE RDB$FUNCTION_ARGUMENTS         TO PUBLIC;
GRANT ALL ON TABLE RDB$FILTERS                    TO PUBLIC;
GRANT ALL ON TABLE RDB$TRIGGER_MESSAGES           TO PUBLIC;
GRANT ALL ON TABLE RDB$USER_PRIVILEGES            TO PUBLIC;
GRANT ALL ON TABLE RDB$TRANSACTIONS               TO PUBLIC;
GRANT ALL ON TABLE RDB$GENERATORS                 TO PUBLIC;
GRANT ALL ON TABLE RDB$FIELD_DIMENSIONS           TO PUBLIC;
GRANT ALL ON TABLE RDB$RELATION_CONSTRAINTS       TO PUBLIC;
GRANT ALL ON TABLE RDB$REF_CONSTRAINTS            TO PUBLIC;
GRANT ALL ON TABLE RDB$CHECK_CONSTRAINTS          TO PUBLIC;
GRANT ALL ON TABLE RDB$LOG_FILES                  TO PUBLIC;
GRANT ALL ON TABLE RDB$PROCEDURES                 TO PUBLIC;
GRANT ALL ON TABLE RDB$PROCEDURE_PARAMETERS       TO PUBLIC;
GRANT ALL ON TABLE RDB$CHARACTER_SETS             TO PUBLIC;
GRANT ALL ON TABLE RDB$COLLATIONS                 TO PUBLIC;
GRANT ALL ON TABLE RDB$EXCEPTIONS                 TO PUBLIC;
GRANT ALL ON TABLE RDB$ROLES                      TO PUBLIC;
GRANT ALL ON TABLE RDB$BACKUP_HISTORY             TO PUBLIC;
GRANT ALL ON TABLE MON$DATABASE                   TO PUBLIC;
GRANT ALL ON TABLE MON$ATTACHMENTS                TO PUBLIC;
GRANT ALL ON TABLE MON$TRANSACTIONS               TO PUBLIC;
GRANT ALL ON TABLE MON$STATEMENTS                 TO PUBLIC;
GRANT ALL ON TABLE MON$CALL_STACK                 TO PUBLIC;
GRANT ALL ON TABLE MON$IO_STATS                   TO PUBLIC;
GRANT ALL ON TABLE MON$RECORD_STATS               TO PUBLIC;
GRANT ALL ON TABLE MON$CONTEXT_VARIABLES          TO PUBLIC;
GRANT ALL ON TABLE MON$MEMORY_USAGE               TO PUBLIC;
GRANT ALL ON TABLE RDB$PACKAGES                   TO PUBLIC;
GRANT ALL ON TABLE SEC$USERS                      TO PUBLIC;
GRANT ALL ON TABLE SEC$USER_ATTRIBUTES            TO PUBLIC;
GRANT ALL ON TABLE RDB$AUTH_MAPPING               TO PUBLIC;
GRANT ALL ON TABLE SEC$GLOBAL_AUTH_MAPPING        TO PUBLIC;
GRANT ALL ON TABLE RDB$DB_CREATORS                TO PUBLIC;
GRANT ALL ON TABLE SEC$DB_CREATORS                TO PUBLIC;
GRANT ALL ON TABLE MON$TABLE_STATS                TO PUBLIC;
GRANT ALL ON TABLE ACCESO_USUARIO                 TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_BANCOS_NIIF           TO PUBLIC;
GRANT ALL ON TABLE ACTIVOS_FIJOS                  TO PUBLIC;
GRANT ALL ON TABLE ADMINISTRADORA                 TO PUBLIC;
GRANT ALL ON TABLE REPORT_ACTUALIZACION           TO PUBLIC;
GRANT ALL ON TABLE AFP_ESPECIAL                   TO PUBLIC;
GRANT ALL ON TABLE REPORT_PERMISOS                TO PUBLIC;
GRANT ALL ON TABLE AJUSTE_CIERRE                  TO PUBLIC;
GRANT ALL ON TABLE CONFIGURA_CERTRETE             TO PUBLIC;
GRANT ALL ON TABLE CONCEPTOS_NOMINA_REPORTE       TO PUBLIC;
GRANT ALL ON TABLE SORTEOS_CONFIGURACION          TO PUBLIC;
GRANT ALL ON TABLE AJUSTES                        TO PUBLIC;
GRANT ALL ON TABLE SORTEO_FACTURA                 TO PUBLIC;
GRANT ALL ON TABLE AJUSTES_DETALLE                TO PUBLIC;
GRANT ALL ON TABLE AJUSTES_INFLACION              TO PUBLIC;
GRANT ALL ON TABLE ANALISIS_ABCINVEN              TO PUBLIC;
GRANT ALL ON TABLE REPLICA_CONTA                  TO PUBLIC;
GRANT ALL ON TABLE ANTICIPOS_CLIENTE              TO PUBLIC;
GRANT ALL ON TABLE ANTICIPOS_NOMINA               TO PUBLIC;
GRANT ALL ON TABLE ANTICIPOS_PROVEEDOR            TO PUBLIC;
GRANT ALL ON TABLE APLICACION_CLIENTE             TO PUBLIC;
GRANT ALL ON TABLE APLICACION_CLIENTE_CRUCE       TO PUBLIC;
GRANT ALL ON TABLE APLICACION_CLIENTE_DETALLE     TO PUBLIC;
GRANT ALL ON TABLE NOMINA_UGPP_MESES              TO PUBLIC;
GRANT ALL ON TABLE APLICACION_PROVEDOR            TO PUBLIC;
GRANT ALL ON TABLE APLICACION_PROVEEDOR_DETALLE   TO PUBLIC;
GRANT ALL ON TABLE DESCUENTOS_PRECIOS_CLI         TO PUBLIC;
GRANT ALL ON TABLE AREA                           TO PUBLIC;
GRANT ALL ON TABLE REPORT_AREA                    TO PUBLIC;
GRANT ALL ON TABLE TIPO_VINCULO_UGPP              TO PUBLIC;
GRANT ALL ON TABLE DESCUENTOS_PRECIOS_DET         TO PUBLIC;
GRANT ALL ON TABLE ARTICULO                       TO PUBLIC;
GRANT ALL ON TABLE CAMBIO_ARTICULOS               TO PUBLIC;
GRANT ALL ON TABLE INGRESOS_EMPLEADO              TO PUBLIC;
GRANT ALL ON TABLE ARTICULO_ALERTAS               TO PUBLIC;
GRANT ALL ON TABLE MOVIMIENTO_CARGO_EMPLEADO      TO PUBLIC;
GRANT ALL ON TABLE REPORT_TEMAS                   TO PUBLIC;
GRANT ALL ON TABLE REPLICA_CONTA_DETALLE          TO PUBLIC;
GRANT ALL ON TABLE MOVIMIENTO_VINCUL_EMPLEADO     TO PUBLIC;
GRANT ALL ON TABLE ARTICULOS_PRODUCTO             TO PUBLIC;
GRANT ALL ON TABLE ASEGURADORA                    TO PUBLIC;
GRANT ALL ON TABLE ENSAMBLE_TURNO                 TO PUBLIC;
GRANT ALL ON TABLE ARTICULOS_REPORTE              TO PUBLIC;
GRANT ALL ON TABLE ASESORES                       TO PUBLIC;
GRANT ALL ON TABLE AUDITORIA                      TO PUBLIC;
GRANT ALL ON TABLE AUTORIZACIONES                 TO PUBLIC;
GRANT ALL ON TABLE BANCOS                         TO PUBLIC;
GRANT ALL ON TABLE BARRAS_ARTICULO                TO PUBLIC;
GRANT ALL ON TABLE BODEGA                         TO PUBLIC;
GRANT ALL ON TABLE REPLICA_COMPRAS                TO PUBLIC;
GRANT ALL ON TABLE BONOS_PAGO                     TO PUBLIC;
GRANT ALL ON TABLE TERMINOS_PAGO                  TO PUBLIC;
GRANT ALL ON TABLE CAJAS                          TO PUBLIC;
GRANT ALL ON TABLE REPORT_OBSERVACIONES           TO PUBLIC;
GRANT ALL ON TABLE CAJEROS                        TO PUBLIC;
GRANT ALL ON TABLE CAMBIA_COSTOS                  TO PUBLIC;
GRANT ALL ON TABLE FACTURA_ALQUILER               TO PUBLIC;
GRANT ALL ON TABLE CAMBIO_DOCUMENTOS              TO PUBLIC;
GRANT ALL ON TABLE CAMBIO_SITUACION               TO PUBLIC;
GRANT ALL ON TABLE CAMBIODOC_ENTRADAS             TO PUBLIC;
GRANT ALL ON TABLE CAMBIODOC_SALIDAS              TO PUBLIC;
GRANT ALL ON TABLE TERMINOS_ENTREGA               TO PUBLIC;
GRANT ALL ON TABLE CANAL                          TO PUBLIC;
GRANT ALL ON TABLE CARGA_REMESA                   TO PUBLIC;
GRANT ALL ON TABLE CARTAS_NOMINA                  TO PUBLIC;
GRANT ALL ON TABLE REPORT_TICKETS                 TO PUBLIC;
GRANT ALL ON TABLE CENTROS                        TO PUBLIC;
GRANT ALL ON TABLE MEDIOSMAG_ARCHIVOS2014         TO PUBLIC;
GRANT ALL ON TABLE CESANTIA_DETALLE               TO PUBLIC;
GRANT ALL ON TABLE CESANTIAS                      TO PUBLIC;
GRANT ALL ON TABLE CESANTIAS_RETIROS              TO PUBLIC;
GRANT ALL ON TABLE CHEQUERA                       TO PUBLIC;
GRANT ALL ON TABLE CHEQUES                        TO PUBLIC;
GRANT ALL ON TABLE NORMAS_NIIF                    TO PUBLIC;
GRANT ALL ON TABLE CIERRE_ANUAL                   TO PUBLIC;
GRANT ALL ON TABLE CIERRE_TERCEROS                TO PUBLIC;
GRANT ALL ON TABLE NORMAS_NIIF_DETALLE            TO PUBLIC;
GRANT ALL ON TABLE CIUDADES                       TO PUBLIC;
GRANT ALL ON TABLE CLASE_EGRESO                   TO PUBLIC;
GRANT ALL ON TABLE CLIENTE_SUCURSALES             TO PUBLIC;
GRANT ALL ON TABLE CLIENTES                       TO PUBLIC;
GRANT ALL ON TABLE CLIENTES_ALERTAS               TO PUBLIC;
GRANT ALL ON TABLE COBRADORES                     TO PUBLIC;
GRANT ALL ON TABLE COMISION_COBRO                 TO PUBLIC;
GRANT ALL ON TABLE REPORT_TITULOS                 TO PUBLIC;
GRANT ALL ON TABLE COMISIONES                     TO PUBLIC;
GRANT ALL ON TABLE COMISIONES_POR_PAGAR           TO PUBLIC;
GRANT ALL ON TABLE COMISIONES_PUNTOS              TO PUBLIC;
GRANT ALL ON TABLE COMPRAS_INTERNACIONALES        TO PUBLIC;
GRANT ALL ON TABLE REPORT_NOTAS                   TO PUBLIC;
GRANT ALL ON TABLE COMPRAS_INTERNACIONALES_DETALLETO PUBLIC;
GRANT ALL ON TABLE ARTICULO_BODEGA                TO PUBLIC;
GRANT ALL ON TABLE COMPROBANTE_DETALLE            TO PUBLIC;
GRANT ALL ON TABLE COMPROBANTE_ENCABEZADO         TO PUBLIC;
GRANT ALL ON TABLE FACTURAS_CONTADO_PAGO          TO PUBLIC;
GRANT ALL ON TABLE CONCEPTO_CONTABLE              TO PUBLIC;
GRANT ALL ON TABLE DESCUENTOS_PRECIOS             TO PUBLIC;
GRANT ALL ON TABLE CONCEPTOS                      TO PUBLIC;
GRANT ALL ON TABLE PEDIDO_WEB                     TO PUBLIC;
GRANT ALL ON TABLE CONCEPTOS_CUENTAS              TO PUBLIC;
GRANT ALL ON TABLE PEDIDO_WEB_DETALLE             TO PUBLIC;
GRANT ALL ON TABLE CUENTAS_REPORTE_CERTDET        TO PUBLIC;
GRANT ALL ON TABLE CONCEPTOS_CXPAGAR              TO PUBLIC;
GRANT ALL ON TABLE EXISTENCIA_TERCERO             TO PUBLIC;
GRANT ALL ON TABLE CONCEPTOS_NOMINA               TO PUBLIC;
GRANT ALL ON TABLE CONCEPTOS_PLANILLA             TO PUBLIC;
GRANT ALL ON TABLE CONCILIA_BANCO_CONTA_AUX       TO PUBLIC;
GRANT ALL ON TABLE CONCILIACION_BANCARIA          TO PUBLIC;
GRANT ALL ON TABLE CONCILIACION_DETALLE           TO PUBLIC;
GRANT ALL ON TABLE CONCILIACION_ENCABEZADO        TO PUBLIC;
GRANT ALL ON TABLE CONCILIACION_OPERACIONES       TO PUBLIC;
GRANT ALL ON TABLE HEMOLIFE_CLIENTES              TO PUBLIC;
GRANT ALL ON TABLE CONFIGURA_MEDIOSMAG            TO PUBLIC;
GRANT ALL ON TABLE CONFIGURA_POS                  TO PUBLIC;
GRANT ALL ON TABLE CONFIGURA_TIENDAV              TO PUBLIC;
GRANT ALL ON TABLE CONFIGURACION                  TO PUBLIC;
GRANT ALL ON TABLE CONFIGURACION_HORAS_EMPLEADO   TO PUBLIC;
GRANT ALL ON TABLE CONFIRMACION_DEPOSITO          TO PUBLIC;
GRANT ALL ON TABLE CONSIGNA                       TO PUBLIC;
GRANT ALL ON TABLE CONSIGNA_DETALLE               TO PUBLIC;
GRANT ALL ON TABLE CONSIGNA_RECIBOS               TO PUBLIC;
GRANT ALL ON TABLE CONSIGNA_TARJETAS              TO PUBLIC;
GRANT ALL ON TABLE CONSIGNA_TARJETAS_DET          TO PUBLIC;
GRANT ALL ON TABLE CONSOLIDADO_FALTANTES          TO PUBLIC;
GRANT ALL ON TABLE CONSOLIDADO_NOMINA             TO PUBLIC;
GRANT ALL ON TABLE CONSOLIDADO_NOMINA_PROV        TO PUBLIC;
GRANT ALL ON TABLE NOMINA_SALDINI                 TO PUBLIC;
GRANT ALL ON TABLE CONSOLIDE_DOCS                 TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_VENTAS_NIIF           TO PUBLIC;
GRANT ALL ON TABLE CONSOLIDE_FALTANTES            TO PUBLIC;
GRANT ALL ON TABLE COSTO_VENTAS_NIIF              TO PUBLIC;
GRANT ALL ON TABLE CONSOLIDE_FORMASP              TO PUBLIC;
GRANT ALL ON TABLE CONSULTA_BALANCE               TO PUBLIC;
GRANT ALL ON TABLE CONSUMO_DETALLE                TO PUBLIC;
GRANT ALL ON TABLE CONSUMOS                       TO PUBLIC;
GRANT ALL ON TABLE CONTABIL_ARTICULO              TO PUBLIC;
GRANT ALL ON TABLE CONTABILIZACION                TO PUBLIC;
GRANT ALL ON TABLE CONTABILIZACION_DET            TO PUBLIC;
GRANT ALL ON TABLE COSTO_VENTAS                   TO PUBLIC;
GRANT ALL ON TABLE COSTOS                         TO PUBLIC;
GRANT ALL ON TABLE HEMOLIFE_REMISIONES            TO PUBLIC;
GRANT ALL ON TABLE DENOMINACIONES                 TO PUBLIC;
GRANT ALL ON TABLE COTIZACION_PROVEEDOR           TO PUBLIC;
GRANT ALL ON TABLE ARQUEO_CAJA                    TO PUBLIC;
GRANT ALL ON TABLE COTIZACIONES                   TO PUBLIC;
GRANT ALL ON TABLE ARQUEO_CAJA_DET                TO PUBLIC;
GRANT ALL ON TABLE COTIZACIONES_DETALLE           TO PUBLIC;
GRANT ALL ON TABLE COTIZACIONES_PROVEEDOR_DET     TO PUBLIC;
GRANT ALL ON TABLE CRM_ACTIVIDAD                  TO PUBLIC;
GRANT ALL ON TABLE CRM_AGRUPACION                 TO PUBLIC;
GRANT ALL ON TABLE CRM_ASESOR                     TO PUBLIC;
GRANT ALL ON TABLE CRM_CAMPANA                    TO PUBLIC;
GRANT ALL ON TABLE CRM_CAMPANA_DETALLE            TO PUBLIC;
GRANT ALL ON TABLE CRM_CAMPANA_MOTIVOS            TO PUBLIC;
GRANT ALL ON TABLE CRM_CAMPANA_PLANILLA           TO PUBLIC;
GRANT ALL ON TABLE CRM_CAMPANA_RESPUESTAS         TO PUBLIC;
GRANT ALL ON TABLE CRM_CARGOS                     TO PUBLIC;
GRANT ALL ON TABLE CRM_CLASE                      TO PUBLIC;
GRANT ALL ON TABLE CRM_CLIENTES                   TO PUBLIC;
GRANT ALL ON TABLE CRM_COMPROMISOS                TO PUBLIC;
GRANT ALL ON TABLE CRM_CONTACTOS                  TO PUBLIC;
GRANT ALL ON TABLE COTIZACION_WEB                 TO PUBLIC;
GRANT ALL ON TABLE ARTICULO_EQUIVALENCIA          TO PUBLIC;
GRANT ALL ON TABLE CRM_ESTADO                     TO PUBLIC;
GRANT ALL ON TABLE CRM_EVENTO_MOTIVO              TO PUBLIC;
GRANT ALL ON TABLE CRM_EVENTO_RESPUESTA           TO PUBLIC;
GRANT ALL ON TABLE GASTOS_IMPORTACION             TO PUBLIC;
GRANT ALL ON TABLE CRM_EVENTOS                    TO PUBLIC;
GRANT ALL ON TABLE REPORT_LOGO                    TO PUBLIC;
GRANT ALL ON TABLE COTIZACION_WEB_DETALLE         TO PUBLIC;
GRANT ALL ON TABLE IMPORTACION_LIQUIDACION        TO PUBLIC;
GRANT ALL ON TABLE CRM_PRODUCTOS                  TO PUBLIC;
GRANT ALL ON TABLE REPORT_FIRMA                   TO PUBLIC;
GRANT ALL ON TABLE CRM_SUBPRODUCTOS               TO PUBLIC;
GRANT ALL ON TABLE CRM_TIPO_ACTIVIDAD             TO PUBLIC;
GRANT ALL ON TABLE CRM_TIPOCONTACTO               TO PUBLIC;
GRANT ALL ON TABLE COCINA_OPERARIOS               TO PUBLIC;
GRANT ALL ON TABLE CRM_TIPOEVENTO                 TO PUBLIC;
GRANT ALL ON TABLE CRM_TIPORELACION               TO PUBLIC;
GRANT ALL ON TABLE DOCUMENTOS_ESTADO              TO PUBLIC;
GRANT ALL ON TABLE CUENTAS                        TO PUBLIC;
GRANT ALL ON TABLE CUENTAS_BANCO                  TO PUBLIC;
GRANT ALL ON TABLE CUENTAS_EXPORTACION            TO PUBLIC;
GRANT ALL ON TABLE DEPARTAMENTO                   TO PUBLIC;
GRANT ALL ON TABLE RECIBOS_PRESTAMOS              TO PUBLIC;
GRANT ALL ON TABLE DEPOSITOS                      TO PUBLIC;
GRANT ALL ON TABLE REPORT_PREFIJOS                TO PUBLIC;
GRANT ALL ON TABLE DESENSAMBLES                   TO PUBLIC;
GRANT ALL ON TABLE DESENSAMBLES_DETALLE           TO PUBLIC;
GRANT ALL ON TABLE FACTURA_EMBALAJE               TO PUBLIC;
GRANT ALL ON TABLE DEVOLUCION_CHEQUES             TO PUBLIC;
GRANT ALL ON TABLE DEVOLUCION_COMPRAS_DOCRELA     TO PUBLIC;
GRANT ALL ON TABLE DEVOLUCIONES_COMPRAS           TO PUBLIC;
GRANT ALL ON TABLE DEVOLUCIONES_COMPRAS_DET       TO PUBLIC;
GRANT ALL ON TABLE DEVOLUCIONES_VENTAS            TO PUBLIC;
GRANT ALL ON TABLE DEVOLUCIONES_VENTAS_DETALLE    TO PUBLIC;
GRANT ALL ON TABLE DEVOLUCIONES_VENTAS_DOCRELA    TO PUBLIC;
GRANT ALL ON TABLE DOCUMENTOS_CONTA               TO PUBLIC;
GRANT ALL ON TABLE DOCUMENTOS_IMPORT_EMPLEADO     TO PUBLIC;
GRANT ALL ON TABLE CAMBIO_SITUACION_NIIF          TO PUBLIC;
GRANT ALL ON TABLE DOCUMENTOS_PAGO_CAJA           TO PUBLIC;
GRANT ALL ON TABLE EDUCACION_FORMAL_EMPLEADO      TO PUBLIC;
GRANT ALL ON TABLE EGRESOS                        TO PUBLIC;
GRANT ALL ON TABLE EGRESOS_BANCO                  TO PUBLIC;
GRANT ALL ON TABLE EGRESOS_CAJA                   TO PUBLIC;
GRANT ALL ON TABLE EGRESOS_CONTABILIDAD           TO PUBLIC;
GRANT ALL ON TABLE EGRESOS_CRUCEC                 TO PUBLIC;
GRANT ALL ON TABLE EGRESOS_DETALLE                TO PUBLIC;
GRANT ALL ON TABLE EGRESOS_NOMINA                 TO PUBLIC;
GRANT ALL ON TABLE EMPLEADO_BENEFICIARIOS         TO PUBLIC;
GRANT ALL ON TABLE EMPLEADO_CONCEPTOS             TO PUBLIC;
GRANT ALL ON TABLE REPORT_CONFIGURACION           TO PUBLIC;
GRANT ALL ON TABLE EMPLEADO_FORMACION             TO PUBLIC;
GRANT ALL ON TABLE EMPLEADO_LLAMADOS              TO PUBLIC;
GRANT ALL ON TABLE REPORT_ENVIOS_FALTANTES        TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_COMPRAS_NIIF          TO PUBLIC;
GRANT ALL ON TABLE EMPLEADOS                      TO PUBLIC;
GRANT ALL ON TABLE ENSAMBLE_MAQUINA               TO PUBLIC;
GRANT ALL ON TABLE ENSAMBLE_OPERARIO              TO PUBLIC;
GRANT ALL ON TABLE ACTIVOS_GRUPOS                 TO PUBLIC;
GRANT ALL ON TABLE ENSAMBLES                      TO PUBLIC;
GRANT ALL ON TABLE ENSAMBLES_DETALLE              TO PUBLIC;
GRANT ALL ON TABLE ENTRADAS                       TO PUBLIC;
GRANT ALL ON TABLE ACTIVACION                     TO PUBLIC;
GRANT ALL ON TABLE ENTRADAS_DETALLE               TO PUBLIC;
GRANT ALL ON TABLE ENTRADAS_SALIDAS_EMPLEADO      TO PUBLIC;
GRANT ALL ON TABLE REPLICACION_CONFIGURA          TO PUBLIC;
GRANT ALL ON TABLE ENTREGA_DOCUMENTOS             TO PUBLIC;
GRANT ALL ON TABLE REPLICA_EVENTOS                TO PUBLIC;
GRANT ALL ON TABLE ENTREGADORES                   TO PUBLIC;
GRANT ALL ON TABLE ENVIO_AUTO                     TO PUBLIC;
GRANT ALL ON TABLE ENVIO_ERRORES                  TO PUBLIC;
GRANT ALL ON TABLE ENVIO_RESUMDIA                 TO PUBLIC;
GRANT ALL ON TABLE CONSOLIDE_NOMINAS              TO PUBLIC;
GRANT ALL ON TABLE ACTIVOS_CENTROS                TO PUBLIC;
GRANT ALL ON TABLE ERRORES                        TO PUBLIC;
GRANT ALL ON TABLE ERRORES_ENVIO_CORREO           TO PUBLIC;
GRANT ALL ON TABLE ERRORES_LOTES                  TO PUBLIC;
GRANT ALL ON TABLE ESTADO_ARTICULO                TO PUBLIC;
GRANT ALL ON TABLE SALDO_BANCOS_CONF              TO PUBLIC;
GRANT ALL ON TABLE ESTRUCTURA                     TO PUBLIC;
GRANT ALL ON TABLE EXISTENCIA                     TO PUBLIC;
GRANT ALL ON TABLE EXISTENCIA_LOTE                TO PUBLIC;
GRANT ALL ON TABLE ACTIVOS_FIJOS_VALOR            TO PUBLIC;
GRANT ALL ON TABLE EXPERIENCIA_LABORAL_EMPLEADO   TO PUBLIC;
GRANT ALL ON TABLE FACTOR_COSTO                   TO PUBLIC;
GRANT ALL ON TABLE ARTICULO_DOCUMENTOS            TO PUBLIC;
GRANT ALL ON TABLE FACTOR_INVENTARIO              TO PUBLIC;
GRANT ALL ON TABLE FACTURA_CONCEPTO               TO PUBLIC;
GRANT ALL ON TABLE FACTURA_CONCEPTO_ITEMS         TO PUBLIC;
GRANT ALL ON TABLE FACTURA_PROFORMA               TO PUBLIC;
GRANT ALL ON TABLE FACTURA_PROFORMA_DET           TO PUBLIC;
GRANT ALL ON TABLE PROGRAMACION_PAGOS             TO PUBLIC;
GRANT ALL ON TABLE HEMOLIFE_DEVOLUCIONES          TO PUBLIC;
GRANT ALL ON TABLE FACTURA_PROFORMA_GASTOS        TO PUBLIC;
GRANT ALL ON TABLE FACTURAS                       TO PUBLIC;
GRANT ALL ON TABLE FACTURAS_COMPRA                TO PUBLIC;
GRANT ALL ON TABLE RETENCION_MINIMA               TO PUBLIC;
GRANT ALL ON TABLE AUTORIZACIONES_CARTERA         TO PUBLIC;
GRANT ALL ON TABLE FACTURAS_COMPRAS_DETALLE       TO PUBLIC;
GRANT ALL ON TABLE COSTOS_NIIF                    TO PUBLIC;
GRANT ALL ON TABLE PERFIL_EMPLEADO                TO PUBLIC;
GRANT ALL ON TABLE FACTURAS_CONTADO               TO PUBLIC;
GRANT ALL ON TABLE PERFIL_EMPLEADO_DETALLE        TO PUBLIC;
GRANT ALL ON TABLE PARQUEADERO                    TO PUBLIC;
GRANT ALL ON TABLE FACTURAS_CONTADO_DETALLE       TO PUBLIC;
GRANT ALL ON TABLE FACTURAS_DETALLE               TO PUBLIC;
GRANT ALL ON TABLE VALORES_NOMINA                 TO PUBLIC;
GRANT ALL ON TABLE NOTA_DEBITO_PROV_DET           TO PUBLIC;
GRANT ALL ON TABLE FACTURAS_MES                   TO PUBLIC;
GRANT ALL ON TABLE NOTA_CREDITO_PROV_DET          TO PUBLIC;
GRANT ALL ON TABLE FLUJO_EFECTIVO                 TO PUBLIC;
GRANT ALL ON TABLE FODO_SOL_PENSIONAL             TO PUBLIC;
GRANT ALL ON TABLE FORMA_PAGO_REMESA              TO PUBLIC;
GRANT ALL ON TABLE ACTIVOS_SUBGRUPO               TO PUBLIC;
GRANT ALL ON TABLE FORMA_PAGOS                    TO PUBLIC;
GRANT ALL ON TABLE FORMAS_PAGO                    TO PUBLIC;
GRANT ALL ON TABLE CONFIGURA_CERTRETEL            TO PUBLIC;
GRANT ALL ON TABLE FORMATO_DATOS                  TO PUBLIC;
GRANT ALL ON TABLE FORMATO_LINEAS                 TO PUBLIC;
GRANT ALL ON TABLE CUENTAS_NIIF                   TO PUBLIC;
GRANT ALL ON TABLE FORMATOCONTABLE_DETALLE        TO PUBLIC;
GRANT ALL ON TABLE DEPRECIACION                   TO PUBLIC;
GRANT ALL ON TABLE NOTAS_ESTADOS_FINANCIEROS      TO PUBLIC;
GRANT ALL ON TABLE CONFIGURA_CERTRETEL_CONC       TO PUBLIC;
GRANT ALL ON TABLE ACTIVOS_DOCUMENTOS             TO PUBLIC;
GRANT ALL ON TABLE REPORT_BANDEJA                 TO PUBLIC;
GRANT ALL ON TABLE FORMATOCONTABLE_TEXTOS         TO PUBLIC;
GRANT ALL ON TABLE SALDOS_INICIALES_NIIF          TO PUBLIC;
GRANT ALL ON TABLE FORMATOS                       TO PUBLIC;
GRANT ALL ON TABLE FORMATOS_CONTABLES             TO PUBLIC;
GRANT ALL ON TABLE GRUPO                          TO PUBLIC;
GRANT ALL ON TABLE SALDOS_ARTICULO_NIIF           TO PUBLIC;
GRANT ALL ON TABLE GRUPO_CARTERA                  TO PUBLIC;
GRANT ALL ON TABLE SALDOS_CENTROS_NIIF            TO PUBLIC;
GRANT ALL ON TABLE GRUPO_VENDEDOR                 TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_CARTERA_NIIF          TO PUBLIC;
GRANT ALL ON TABLE GRUPOS_PROVEEDORES             TO PUBLIC;
GRANT ALL ON TABLE HISTORICO_VENTAS               TO PUBLIC;
GRANT ALL ON TABLE SALDOS_CENTROS_TERCERO_NIIF    TO PUBLIC;
GRANT ALL ON TABLE HORARIO_EMPLEADO               TO PUBLIC;
GRANT ALL ON TABLE HORARIO_EMPLEADO_DET           TO PUBLIC;
GRANT ALL ON TABLE SALDOS_CUENTAS_NIIF            TO PUBLIC;
GRANT ALL ON TABLE IMPORTACION_INVENTARIO         TO PUBLIC;
GRANT ALL ON TABLE SALDOS_TERCEROS_NIIF           TO PUBLIC;
GRANT ALL ON TABLE INCAPACIDADES                  TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_BANCOS                TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_BANCOS_CTAS           TO PUBLIC;
GRANT ALL ON TABLE CONDUCTOR                      TO PUBLIC;
GRANT ALL ON TABLE COMPROBANTE_DETALLE_NIIF       TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_CAJA                  TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_CAJA_CTAS             TO PUBLIC;
GRANT ALL ON TABLE CLIENTES_FACTURACION_MASIVA    TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_CARTERA               TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_CARTERA_CTAS          TO PUBLIC;
GRANT ALL ON TABLE PLANTILLA_DETALLE_NIIF         TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_COMPRAS               TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_COMPRAS_CTAS          TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_CXPAGAR               TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_CXPAGAR_CTAS          TO PUBLIC;
GRANT ALL ON TABLE APERTURA_NIIF                  TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_INVENTARIO            TO PUBLIC;
GRANT ALL ON TABLE SALDOS_ACTIVO_NIIF             TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_INVENTARIO_CTAS       TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_NOMINA                TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_TRANSPORTE            TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_TRANSPORTE_CTAS       TO PUBLIC;
GRANT ALL ON TABLE APERTURA_NIIF_DET              TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_VENTAS                TO PUBLIC;
GRANT ALL ON TABLE TAXONOMIA_ENCABEZADO           TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_VENTAS_CTAS           TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_CXPAGAR_NIIF          TO PUBLIC;
GRANT ALL ON TABLE LIQUIDACION                    TO PUBLIC;
GRANT ALL ON TABLE LISTA_PRECIOS                  TO PUBLIC;
GRANT ALL ON TABLE LISTAPREC_VENDEDOR             TO PUBLIC;
GRANT ALL ON TABLE CUENTAS_NIIF_NORMA             TO PUBLIC;
GRANT ALL ON TABLE LLAMADOS_ATENCION              TO PUBLIC;
GRANT ALL ON TABLE LOTES                          TO PUBLIC;
GRANT ALL ON TABLE TAXONOMIA                      TO PUBLIC;
GRANT ALL ON TABLE LISTA_ARTICULOS                TO PUBLIC;
GRANT ALL ON TABLE LUGAR_INSPECCION               TO PUBLIC;
GRANT ALL ON TABLE MANIFIESTO_CARGA               TO PUBLIC;
GRANT ALL ON TABLE MANIFIESTO_CARGA_DET           TO PUBLIC;
GRANT ALL ON TABLE VEHICULOS_HISTORIA             TO PUBLIC;
GRANT ALL ON TABLE LISTA_ARTICULOS_DET            TO PUBLIC;
GRANT ALL ON TABLE MANIFIESTOS_CARGA_CONC         TO PUBLIC;
GRANT ALL ON TABLE REMESAS_DESTINATARIO           TO PUBLIC;
GRANT ALL ON TABLE MARCAS                         TO PUBLIC;
GRANT ALL ON TABLE PREFIJO_PRODUCCION_ORDENAR     TO PUBLIC;
GRANT ALL ON TABLE MEDIOS_MAGNETICOS_DATOS        TO PUBLIC;
GRANT ALL ON TABLE TAXONOMIA_ENCABEZA             TO PUBLIC;
GRANT ALL ON TABLE LISTAS_VENDEDOR                TO PUBLIC;
GRANT ALL ON TABLE MEDIOS_TRANSPORTE              TO PUBLIC;
GRANT ALL ON TABLE IMPORTACION                    TO PUBLIC;
GRANT ALL ON TABLE SERIALES_ARTICULO              TO PUBLIC;
GRANT ALL ON TABLE TAXONOMIA_DETALLE              TO PUBLIC;
GRANT ALL ON TABLE SERIALES_DOCUMENTO             TO PUBLIC;
GRANT ALL ON TABLE MEDIOSMAG_ARCHIVOS             TO PUBLIC;
GRANT ALL ON TABLE CONCILIACION_PAT               TO PUBLIC;
GRANT ALL ON TABLE TAXONOMIA_CUENTAS              TO PUBLIC;
GRANT ALL ON TABLE MEDIOSMAG_CUENTAS              TO PUBLIC;
GRANT ALL ON TABLE REPORT_FALTANTES_TEMP          TO PUBLIC;
GRANT ALL ON TABLE PAGO_NOMINA_EGRESOS            TO PUBLIC;
GRANT ALL ON TABLE TAXONOMIA_INSTANCIA            TO PUBLIC;
GRANT ALL ON TABLE MEDIOSMAG_DISTR_CUENTAS        TO PUBLIC;
GRANT ALL ON TABLE MEDIOSMAG_DISTR_DATOS          TO PUBLIC;
GRANT ALL ON TABLE MEDIOSMAG_DISTRITALES          TO PUBLIC;
GRANT ALL ON TABLE MENSAJERIA                     TO PUBLIC;
GRANT ALL ON TABLE MODO_TRANSPORTE                TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_CAJA_NIIF             TO PUBLIC;
GRANT ALL ON TABLE MODULOS                        TO PUBLIC;
GRANT ALL ON TABLE MOVIMIENTO_ARTICULO            TO PUBLIC;
GRANT ALL ON TABLE MOVIMIENTO_BANCO               TO PUBLIC;
GRANT ALL ON TABLE MOVIMIENTO_CAJA                TO PUBLIC;
GRANT ALL ON TABLE MOVIMIENTO_CLIENTES            TO PUBLIC;
GRANT ALL ON TABLE MOVIMIENTO_PROVEEDOR           TO PUBLIC;
GRANT ALL ON TABLE TERCERO_DOCUMENTOS             TO PUBLIC;
GRANT ALL ON TABLE MOVIMIENTO_SALARIO_EMPLEADO    TO PUBLIC;
GRANT ALL ON TABLE NIVEL_FORMACION                TO PUBLIC;
GRANT ALL ON TABLE NOMBRES_CAMPOS                 TO PUBLIC;
GRANT ALL ON TABLE NOMBRES_COPIAS                 TO PUBLIC;
GRANT ALL ON TABLE NOMINA                         TO PUBLIC;
GRANT ALL ON TABLE CAMBIA_PRECIOS                 TO PUBLIC;
GRANT ALL ON TABLE NOMINA_CARTERA                 TO PUBLIC;
GRANT ALL ON TABLE NOMINA_CARTERA_DETALLE         TO PUBLIC;
GRANT ALL ON TABLE NOMINA_COMISIONES              TO PUBLIC;
GRANT ALL ON TABLE CAMBIO_COSTO                   TO PUBLIC;
GRANT ALL ON TABLE NOMINA_COMISIONES_PROV         TO PUBLIC;
GRANT ALL ON TABLE CONTABIL_ARTICULO_NIIF         TO PUBLIC;
GRANT ALL ON TABLE NOMINA_CONCEPTOS               TO PUBLIC;
GRANT ALL ON TABLE NOMINA_CONCEPTOS_PROV          TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_INVENTARIO_NIIF       TO PUBLIC;
GRANT ALL ON TABLE NOMINA_DEPARTAMENTO            TO PUBLIC;
GRANT ALL ON TABLE NOMINA_DETALLE                 TO PUBLIC;
GRANT ALL ON TABLE NOMINA_DETALLE_PROV            TO PUBLIC;
GRANT ALL ON TABLE NOMINA_HORASEXT                TO PUBLIC;
GRANT ALL ON TABLE LISTAPRE_USUARIOS              TO PUBLIC;
GRANT ALL ON TABLE NOMINA_NOVEDADES               TO PUBLIC;
GRANT ALL ON TABLE PRODUCCION_CALIDAD_ITEMS       TO PUBLIC;
GRANT ALL ON TABLE NOMINA_NOVEDADES_DETALLE       TO PUBLIC;
GRANT ALL ON TABLE NOMINA_PROV                    TO PUBLIC;
GRANT ALL ON TABLE NOMINA_VALOR_PREDET            TO PUBLIC;
GRANT ALL ON TABLE NOTAS_CLIENTES                 TO PUBLIC;
GRANT ALL ON TABLE NOTAS_CREDITO                  TO PUBLIC;
GRANT ALL ON TABLE NOTAS_CREDITO_CLIENTES         TO PUBLIC;
GRANT ALL ON TABLE NOTAS_CREDITO_PROVEEDOR        TO PUBLIC;
GRANT ALL ON TABLE CARGA_PRODUCTOS                TO PUBLIC;
GRANT ALL ON TABLE NOTAS_DEBITO                   TO PUBLIC;
GRANT ALL ON TABLE NOTAS_DEBITO_CLIENTES          TO PUBLIC;
GRANT ALL ON TABLE COLORES                        TO PUBLIC;
GRANT ALL ON TABLE NOTAS_DEBITO_PROVEEDOR         TO PUBLIC;
GRANT ALL ON TABLE NOTAS_DOCUMENTO                TO PUBLIC;
GRANT ALL ON TABLE EMPAQUES                       TO PUBLIC;
GRANT ALL ON TABLE NUMERO_COPIA                   TO PUBLIC;
GRANT ALL ON TABLE PRODUCCION_ENTRADA_CALIDAD     TO PUBLIC;
GRANT ALL ON TABLE OPCIONES                       TO PUBLIC;
GRANT ALL ON TABLE FACTURA_WEB                    TO PUBLIC;
GRANT ALL ON TABLE OPCIONES_INTERFAZ              TO PUBLIC;
GRANT ALL ON TABLE ORDEN_EMBARQUE                 TO PUBLIC;
GRANT ALL ON TABLE FACTURA_WEB_DETALLE            TO PUBLIC;
GRANT ALL ON TABLE DEPRECIACION_DETALLE           TO PUBLIC;
GRANT ALL ON TABLE ORDENES_COMPRA                 TO PUBLIC;
GRANT ALL ON TABLE HEMOLIFE_ENSAMBLES             TO PUBLIC;
GRANT ALL ON TABLE CONSULTA_WEB                   TO PUBLIC;
GRANT ALL ON TABLE DEPRECIACION_UNIDADES          TO PUBLIC;
GRANT ALL ON TABLE EVENTOS_VENTAS                 TO PUBLIC;
GRANT ALL ON TABLE ORDENES_COMPRA_DETALLE         TO PUBLIC;
GRANT ALL ON TABLE PRUEBAS                        TO PUBLIC;
GRANT ALL ON TABLE PERFIL_PRODUCCION              TO PUBLIC;
GRANT ALL ON TABLE CONFIGURA_CERTRETE_NIIF        TO PUBLIC;
GRANT ALL ON TABLE ORDENES_COMPRA_DOCRELA         TO PUBLIC;
GRANT ALL ON TABLE CORREDOR_RUTA                  TO PUBLIC;
GRANT ALL ON TABLE ORDENES_INVENTARIO             TO PUBLIC;
GRANT ALL ON TABLE ORDENINVENTARIO_DETALLE        TO PUBLIC;
GRANT ALL ON TABLE PAGO_APORTES                   TO PUBLIC;
GRANT ALL ON TABLE MAQUINA_PRODUCCION             TO PUBLIC;
GRANT ALL ON TABLE PROVISION_CARTERA              TO PUBLIC;
GRANT ALL ON TABLE SEGMENTOS                      TO PUBLIC;
GRANT ALL ON TABLE PAGO_APORTES_DETALLE           TO PUBLIC;
GRANT ALL ON TABLE PAGO_APORTES_EMPLEADOS         TO PUBLIC;
GRANT ALL ON TABLE HEMOLIFE_EQUIVALENCIAS         TO PUBLIC;
GRANT ALL ON TABLE PAGO_APORTES_NOM               TO PUBLIC;
GRANT ALL ON TABLE PAGO_NOMINA                    TO PUBLIC;
GRANT ALL ON TABLE RUTA_PASAJEROS                 TO PUBLIC;
GRANT ALL ON TABLE PAGO_NOMINA_DET                TO PUBLIC;
GRANT ALL ON TABLE PAISES                         TO PUBLIC;
GRANT ALL ON TABLE VEHICULO_COLOR                 TO PUBLIC;
GRANT ALL ON TABLE PARAMETROS_ANO                 TO PUBLIC;
GRANT ALL ON TABLE PARAMETROS_CONTABLES           TO PUBLIC;
GRANT ALL ON TABLE PARENTESCO                     TO PUBLIC;
GRANT ALL ON TABLE EXISTENCIAS_ARTICULO_WEB       TO PUBLIC;
GRANT ALL ON TABLE PEDIDOS                        TO PUBLIC;
GRANT ALL ON TABLE PEDIDOS_DETALLE                TO PUBLIC;
GRANT ALL ON TABLE PEDIDOS_DOCRELA                TO PUBLIC;
GRANT ALL ON TABLE PENDIENTE_VENTAS               TO PUBLIC;
GRANT ALL ON TABLE PENDIENTE_VENTAS_DETALLE       TO PUBLIC;
GRANT ALL ON TABLE PERIODO_PAGO                   TO PUBLIC;
GRANT ALL ON TABLE PERIODO_PAGO_NOMBRE            TO PUBLIC;
GRANT ALL ON TABLE PLAN_PRODUCCION                TO PUBLIC;
GRANT ALL ON TABLE PLAN_PRODUCCION_CONS           TO PUBLIC;
GRANT ALL ON TABLE PLAN_PRODUCCION_CONS_PROD      TO PUBLIC;
GRANT ALL ON TABLE PLAN_PRODUCCION_DET            TO PUBLIC;
GRANT ALL ON TABLE PLAN_PRODUCCION_PRODUCTOS      TO PUBLIC;
GRANT ALL ON TABLE PLANILLA_DIGITACION            TO PUBLIC;
GRANT ALL ON TABLE PRODUCCION_SALIDA_CALIDAD      TO PUBLIC;
GRANT ALL ON TABLE PLANILLA_DIGITACION_CUENTAS    TO PUBLIC;
GRANT ALL ON TABLE ARTICULOS_PERFIL_PROD          TO PUBLIC;
GRANT ALL ON TABLE PLANILLA_PASAJEROS             TO PUBLIC;
GRANT ALL ON TABLE PLANILLA_PASAJEROS_CON         TO PUBLIC;
GRANT ALL ON TABLE PLANILLA_PASAJEROS_DET         TO PUBLIC;
GRANT ALL ON TABLE ARTICULOS_ACTIVOFIJO_PROD      TO PUBLIC;
GRANT ALL ON TABLE PLANILLA_PASAJEROS_REM         TO PUBLIC;
GRANT ALL ON TABLE PLANTILLA_DETALLE              TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_PRODUCCION            TO PUBLIC;
GRANT ALL ON TABLE PLANTILLA_ENCABEZADO           TO PUBLIC;
GRANT ALL ON TABLE PRECIOS_ARTICULO               TO PUBLIC;
GRANT ALL ON TABLE PREFIJOS                       TO PUBLIC;
GRANT ALL ON TABLE PREFIJOS_BANCOS                TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_PRODUCCION_CTAS       TO PUBLIC;
GRANT ALL ON TABLE PREFIJOS_CONTA                 TO PUBLIC;
GRANT ALL ON TABLE PREFIJOS_EXPORTACION           TO PUBLIC;
GRANT ALL ON TABLE PRESTAMO_CUOTAS                TO PUBLIC;
GRANT ALL ON TABLE PRESTAMO_NOMINA                TO PUBLIC;
GRANT ALL ON TABLE PRESUPUESTO                    TO PUBLIC;
GRANT ALL ON TABLE PRESUPUESTO_VENTAS             TO PUBLIC;
GRANT ALL ON TABLE PRESUPUESTO_VENTAS_GRUPO       TO PUBLIC;
GRANT ALL ON TABLE PRESUPUESTO_VENTAS_MESES       TO PUBLIC;
GRANT ALL ON TABLE PROCEDIMIENTOS_USUARIO         TO PUBLIC;
GRANT ALL ON TABLE PRODUCCION_DEVOLUCION          TO PUBLIC;
GRANT ALL ON TABLE PRODUCCION_DEVOLUCION_DET      TO PUBLIC;
GRANT ALL ON TABLE PRODUCCION_ENTRADA_DET         TO PUBLIC;
GRANT ALL ON TABLE PRODUCCION_ENTRADA_ENC         TO PUBLIC;
GRANT ALL ON TABLE PRODUCCION_MONTAJE             TO PUBLIC;
GRANT ALL ON TABLE PRODUCCION_ORDEN               TO PUBLIC;
GRANT ALL ON TABLE PRODUCCION_ORDEN_DETALLE       TO PUBLIC;
GRANT ALL ON TABLE PRODUCCION_SALIDA_DET          TO PUBLIC;
GRANT ALL ON TABLE PRODUCCION_SALIDA_ENC          TO PUBLIC;
GRANT ALL ON TABLE PRODUCTO_MONTAJE               TO PUBLIC;
GRANT ALL ON TABLE PROGRAM_VACACIONES             TO PUBLIC;
GRANT ALL ON TABLE PROGRAMAS                      TO PUBLIC;
GRANT ALL ON TABLE PROMEDIO_SALIDAS               TO PUBLIC;
GRANT ALL ON TABLE PROVEEDOR_ARTICULO             TO PUBLIC;
GRANT ALL ON TABLE PROVEEDORES                    TO PUBLIC;
GRANT ALL ON TABLE PROYECTOS                      TO PUBLIC;
GRANT ALL ON TABLE PUC                            TO PUBLIC;
GRANT ALL ON TABLE PUESTOS                        TO PUBLIC;
GRANT ALL ON TABLE PUNTO_EQUILIBRIO               TO PUBLIC;
GRANT ALL ON TABLE PUNTO_VENTA                    TO PUBLIC;
GRANT ALL ON TABLE PUNTOS_ARTICULOS               TO PUBLIC;
GRANT ALL ON TABLE PUNTOS_CLIENTE                 TO PUBLIC;
GRANT ALL ON TABLE PUNTOS_CLIENTE_ACUMULADO       TO PUBLIC;
GRANT ALL ON TABLE COCINA_FUNCIONES               TO PUBLIC;
GRANT ALL ON TABLE PUNTOS_DIASESPECIAL            TO PUBLIC;
GRANT ALL ON TABLE REEMPLAZO_FACTURA              TO PUBLIC;
GRANT ALL ON TABLE PUNTOS_PREMIOS                 TO PUBLIC;
GRANT ALL ON TABLE REEMPLAZO_FACTURA_DET          TO PUBLIC;
GRANT ALL ON TABLE PUNTOS_REDENCION               TO PUBLIC;
GRANT ALL ON TABLE PUNTOS_VEND_REDENCION          TO PUBLIC;
GRANT ALL ON TABLE COCINA_COLA_FUNCION            TO PUBLIC;
GRANT ALL ON TABLE PUNTOS_VENDEDOR                TO PUBLIC;
GRANT ALL ON TABLE RECIBO_PROVISIONAL             TO PUBLIC;
GRANT ALL ON TABLE RECIBO_PROVISIONAL_DETALLE     TO PUBLIC;
GRANT ALL ON TABLE RECIBO_PROVISIONAL_PAGO        TO PUBLIC;
GRANT ALL ON TABLE RECIBOS_CAJA                   TO PUBLIC;
GRANT ALL ON TABLE RECIBOS_CAJA_CRUCEC            TO PUBLIC;
GRANT ALL ON TABLE ARTICULO_MINIMOS               TO PUBLIC;
GRANT ALL ON TABLE RECIBOS_CAJA_DETALLE           TO PUBLIC;
GRANT ALL ON TABLE RECIBOS_CAJA_PAGO              TO PUBLIC;
GRANT ALL ON TABLE REGISTRO_AUTOMATICO            TO PUBLIC;
GRANT ALL ON TABLE REGISTRO_CONCEPTOS             TO PUBLIC;
GRANT ALL ON TABLE REMISION_PROVEEDOR             TO PUBLIC;
GRANT ALL ON TABLE VENDEDOR_DOCUMENTOS            TO PUBLIC;
GRANT ALL ON TABLE REMISION_PROVEEDOR_DET         TO PUBLIC;
GRANT ALL ON TABLE REMISION_PROVEEDOR_DOCRELA     TO PUBLIC;
GRANT ALL ON TABLE REMISIONES_VENTA               TO PUBLIC;
GRANT ALL ON TABLE REMISIONES_VENTA_DETALLE       TO PUBLIC;
GRANT ALL ON TABLE REMISIONES_VENTA_DOCRELA       TO PUBLIC;
GRANT ALL ON TABLE TARIFAS_ARL                    TO PUBLIC;
GRANT ALL ON TABLE REP_UTILIDAD                   TO PUBLIC;
GRANT ALL ON TABLE REPLICA_ARTICULO_ESTADO        TO PUBLIC;
GRANT ALL ON TABLE REPLICA_COMPANIA               TO PUBLIC;
GRANT ALL ON TABLE REPLICA_VENTAS                 TO PUBLIC;
GRANT ALL ON TABLE REPORTE_ERRORES                TO PUBLIC;
GRANT ALL ON TABLE REPORTES_AUX                   TO PUBLIC;
GRANT ALL ON TABLE REPORTES_MENSAJE               TO PUBLIC;
GRANT ALL ON TABLE RESERVAS                       TO PUBLIC;
GRANT ALL ON TABLE RESERVAS_DETALLE               TO PUBLIC;
GRANT ALL ON TABLE RESPUESTA_TIPOCUENTA           TO PUBLIC;
GRANT ALL ON TABLE RESUMEN_VENTAS                 TO PUBLIC;
GRANT ALL ON TABLE RETENCIONES                    TO PUBLIC;
GRANT ALL ON TABLE RETIROS                        TO PUBLIC;
GRANT ALL ON TABLE REVISION                       TO PUBLIC;
GRANT ALL ON TABLE REVISION_PRECIOS               TO PUBLIC;
GRANT ALL ON TABLE REVPRECIOS_DETALLE             TO PUBLIC;
GRANT ALL ON TABLE RUTAS_ENTREGA                  TO PUBLIC;
GRANT ALL ON TABLE RUTERO                         TO PUBLIC;
GRANT ALL ON TABLE RUTERO_DETALLE                 TO PUBLIC;
GRANT ALL ON TABLE RUTERO_FAC                     TO PUBLIC;
GRANT ALL ON TABLE RUTERO_RAZON                   TO PUBLIC;
GRANT ALL ON TABLE SALDO_BANCOS                   TO PUBLIC;
GRANT ALL ON TABLE SALDO_CAJA                     TO PUBLIC;
GRANT ALL ON TABLE CRM_EVENTOS_NOTAS              TO PUBLIC;
GRANT ALL ON TABLE SALDO_EFECTIVO                 TO PUBLIC;
GRANT ALL ON TABLE CONCEPTOS_FRECUENTES           TO PUBLIC;
GRANT ALL ON TABLE SALDOS_ACTIVO                  TO PUBLIC;
GRANT ALL ON TABLE EVENTO_EXISTENCIAS             TO PUBLIC;
GRANT ALL ON TABLE SALDOS_ARTICULO                TO PUBLIC;
GRANT ALL ON TABLE CONFIGURA_LINKFTP              TO PUBLIC;
GRANT ALL ON TABLE SALDOS_CENTROS                 TO PUBLIC;
GRANT ALL ON TABLE SALDOS_CENTROS_TERCERO         TO PUBLIC;
GRANT ALL ON TABLE SALDOS_CUENTAS                 TO PUBLIC;
GRANT ALL ON TABLE SALDOS_DOC_CARTERA             TO PUBLIC;
GRANT ALL ON TABLE SALDOS_DOC_CXPAGAR             TO PUBLIC;
GRANT ALL ON TABLE FOTOS_ARTICULO                 TO PUBLIC;
GRANT ALL ON TABLE SALDOS_DOCCONTA                TO PUBLIC;
GRANT ALL ON TABLE SALDOS_INICIALES               TO PUBLIC;
GRANT ALL ON TABLE SALDOS_INVENTARIO              TO PUBLIC;
GRANT ALL ON TABLE SALDOS_TERCEROS                TO PUBLIC;
GRANT ALL ON TABLE SALIDAS                        TO PUBLIC;
GRANT ALL ON TABLE SALIDAS_DETALLE                TO PUBLIC;
GRANT ALL ON TABLE SECCION                        TO PUBLIC;
GRANT ALL ON TABLE SOLICITUD_IMPORTACION          TO PUBLIC;
GRANT ALL ON TABLE SOLICITUD_IMPORTACION_DET      TO PUBLIC;
GRANT ALL ON TABLE SOPORTE                        TO PUBLIC;
GRANT ALL ON TABLE STANDS                         TO PUBLIC;
GRANT ALL ON TABLE SUBGRUPO                       TO PUBLIC;
GRANT ALL ON TABLE SUBTIPO_COTIZANTE              TO PUBLIC;
GRANT ALL ON TABLE SUCURSALES                     TO PUBLIC;
GRANT ALL ON TABLE SUPERVISOR                     TO PUBLIC;
GRANT ALL ON TABLE TARIFA_IVA                     TO PUBLIC;
GRANT ALL ON TABLE TARJETAS                       TO PUBLIC;
GRANT ALL ON TABLE TASA_CAMBIO_MONEDA             TO PUBLIC;
GRANT ALL ON TABLE TERCEROS                       TO PUBLIC;
GRANT ALL ON TABLE TERCEROS_CONTACTOS             TO PUBLIC;
GRANT ALL ON TABLE TERMINALES_NOMBRES             TO PUBLIC;
GRANT ALL ON TABLE TERMINOS_COMERCIO_INT          TO PUBLIC;
GRANT ALL ON TABLE TIPO_CARGA                     TO PUBLIC;
GRANT ALL ON TABLE TIPO_COMPROBANTE               TO PUBLIC;
GRANT ALL ON TABLE TIPO_COTIZANTE                 TO PUBLIC;
GRANT ALL ON TABLE TIPO_CUENTAS                   TO PUBLIC;
GRANT ALL ON TABLE TIPO_DOCUMENTO                 TO PUBLIC;
GRANT ALL ON TABLE TIPO_EMBALAJE                  TO PUBLIC;
GRANT ALL ON TABLE TIPO_GASTOS_IMPORTACION        TO PUBLIC;
GRANT ALL ON TABLE TIPO_ID                        TO PUBLIC;
GRANT ALL ON TABLE TIPO_NOTA_CLIENTE              TO PUBLIC;
GRANT ALL ON TABLE TIPO_NOTADOC                   TO PUBLIC;
GRANT ALL ON TABLE TIPO_PUC                       TO PUBLIC;
GRANT ALL ON TABLE TIPO_VEHICULO                  TO PUBLIC;
GRANT ALL ON TABLE TIPOS_EMBARQUE                 TO PUBLIC;
GRANT ALL ON TABLE TIPOS_MONEDA                   TO PUBLIC;
GRANT ALL ON TABLE CONCILIACION_PAT_DET           TO PUBLIC;
GRANT ALL ON TABLE TIPOS_NOVEDAD                  TO PUBLIC;
GRANT ALL ON TABLE TIQUETE_PASAJERO               TO PUBLIC;
GRANT ALL ON TABLE TRANSPORTADORES_INTERNAC       TO PUBLIC;
GRANT ALL ON TABLE TRASFERENCIAS                  TO PUBLIC;
GRANT ALL ON TABLE TRASFERENCIAS_DETALLE          TO PUBLIC;
GRANT ALL ON TABLE TRASLADOS                      TO PUBLIC;
GRANT ALL ON TABLE TRASLADOS_CAJA                 TO PUBLIC;
GRANT ALL ON TABLE TRASLADOS_CAJA_DET             TO PUBLIC;
GRANT ALL ON TABLE TRASPORTADORES                 TO PUBLIC;
GRANT ALL ON TABLE DETERIORO_CARTERA_ENC          TO PUBLIC;
GRANT ALL ON TABLE UNIDAD_ARTICULO                TO PUBLIC;
GRANT ALL ON TABLE DETERIORO_CARTERA_DET          TO PUBLIC;
GRANT ALL ON TABLE UNIDADES_CARGA                 TO PUBLIC;
GRANT ALL ON TABLE USUARIO                        TO PUBLIC;
GRANT ALL ON TABLE VACACIONES                     TO PUBLIC;
GRANT ALL ON TABLE VACACIONES_DETALLE             TO PUBLIC;
GRANT ALL ON TABLE VACACIONES_DISFRUT             TO PUBLIC;
GRANT ALL ON TABLE VACACIONES_DISFRUT_DET         TO PUBLIC;
GRANT ALL ON TABLE VEHICULO_CARROCERIA            TO PUBLIC;
GRANT ALL ON TABLE VEHICULO_LINEA                 TO PUBLIC;
GRANT ALL ON TABLE VEHICULO_MARCA                 TO PUBLIC;
GRANT ALL ON TABLE VEHICULOS                      TO PUBLIC;
GRANT ALL ON TABLE VENDEDOR_META                  TO PUBLIC;
GRANT ALL ON TABLE VENDEDORES                     TO PUBLIC;
GRANT ALL ON TABLE VENDEDORES_GRUPO               TO PUBLIC;
GRANT ALL ON TABLE VENTAS_MES                     TO PUBLIC;
GRANT ALL ON TABLE ZONAS                          TO PUBLIC;
GRANT ALL ON TABLE AJUSTE_TOTAL                   TO PUBLIC;
GRANT ALL ON TABLE CONSIGNA_TOTAL                 TO PUBLIC;
GRANT ALL ON TABLE CUENTAS_BANCOS                 TO PUBLIC;
GRANT ALL ON TABLE DESENSAMBLE_TOTAL              TO PUBLIC;
GRANT ALL ON TABLE ENSAMBLE_TOTAL                 TO PUBLIC;
GRANT ALL ON TABLE ENTRADA_TOTAL                  TO PUBLIC;
GRANT ALL ON TABLE ORDENINV_TOTAL                 TO PUBLIC;
GRANT ALL ON TABLE RESERVA_TOTAL                  TO PUBLIC;
GRANT ALL ON TABLE SALIDA_TOTAL                   TO PUBLIC;
GRANT ALL ON TABLE TRASLADO_TOTAL                 TO PUBLIC;
GRANT ALL ON TABLE RUTAS_COLEGIOS                 TO PUBLIC;
GRANT ALL ON TABLE CONTRATOS_COLEGIOS             TO PUBLIC;
GRANT ALL ON TABLE CONCEPTOS_TRANSPORTE           TO PUBLIC;
GRANT ALL ON TABLE RELEVOS_COLEGIOS               TO PUBLIC;
GRANT ALL ON TABLE LIQUIDACION_RUTA_COLEGIO       TO PUBLIC;
GRANT ALL ON TABLE LIQUIDACION_RUTA_DET           TO PUBLIC;
GRANT ALL ON TABLE LIQUIDACION_RUTA_CONC          TO PUBLIC;
GRANT ALL ON TABLE LIQUIDACION_RUTA_EFE           TO PUBLIC;
GRANT ALL ON TABLE RECAUDO                        TO PUBLIC;
GRANT ALL ON TABLE TARIFAS_RETENCION              TO PUBLIC;
GRANT ALL ON TABLE GRUPOS_CIF                     TO PUBLIC;
GRANT ALL ON TABLE ORDEN_SERVICIO                 TO PUBLIC;
GRANT ALL ON TABLE INTERFAZ_PRODUCCION_NIIF       TO PUBLIC;
GRANT ALL ON TABLE PRODUCCION_ORDEN_MAQUINA       TO PUBLIC;
GRANT ALL ON TABLE PRODUCCION_ORDEN_OPERARIOS     TO PUBLIC;
GRANT ALL ON TABLE NOTAS_CARTERA_TIPOS            TO PUBLIC;
GRANT ALL ON TABLE REPORT_CHAT                    TO PUBLIC;
GRANT ALL ON TABLE FACTURAS_ENSAMBLE              TO PUBLIC;
GRANT ALL ON TABLE DIASINV_SUGERIDO               TO PUBLIC;
GRANT ALL ON TABLE PROGRAMACION_PAGOS_ENC         TO PUBLIC;
GRANT ALL ON TABLE REPORT_CAMBIOS                 TO PUBLIC;
GRANT ALL ON TABLE FACTURA_EMBALAJE_DET           TO PUBLIC;
GRANT ALL ON TABLE FACTURA_PROFV                  TO PUBLIC;
GRANT ALL ON TABLE REPORT_CAMBIOS_DETALLE         TO PUBLIC;
GRANT ALL ON TABLE FACTURA_PROFV_DETALLE          TO PUBLIC;
GRANT ALL ON TABLE FACTURAS_ALISTAMIENTO          TO PUBLIC;
GRANT ALL ON TABLE REPORT_ENVIOS_DOMICILIO        TO PUBLIC;
GRANT ALL ON TABLE MOTIVO_NO_ENTREGA              TO PUBLIC;
GRANT ALL ON TABLE LISTAPRE_CONFIGURA             TO PUBLIC;
GRANT ALL ON TABLE VACACIONES_COLECTIVAS          TO PUBLIC;
GRANT ALL ON TABLE VACACIONES_COLECTIVAS_DET      TO PUBLIC;
GRANT ALL ON TABLE DIAS_FESTIVOS                  TO PUBLIC;
GRANT ALL ON TABLE DIAS_IVA                       TO PUBLIC;
GRANT ALL ON TABLE RDE_EXEDENTE                   TO PUBLIC;
GRANT ALL ON TABLE LOG_PRESENTACIONES             TO PUBLIC;
GRANT ALL ON TABLE LOG_CLIENTES                   TO PUBLIC;
GRANT ALL ON TABLE LOG_EXISTENCIAS                TO PUBLIC;
GRANT ALL ON TABLE OBSERVACIONES_FEL              TO PUBLIC;
GRANT ALL ON TABLE EMBARGOS                       TO PUBLIC;
GRANT ALL ON TABLE NOMINA_EMBARGOS                TO PUBLIC;
GRANT ALL ON TABLE CERTIFICADOS_RECIBIDOS         TO PUBLIC;
GRANT ALL ON TABLE TIPO_CERTIFICADO               TO PUBLIC;
GRANT ALL ON TABLE BODEGA_GRUPOS                  TO PUBLIC;
GRANT ALL ON TABLE LOG_PRESENTACIONES_Q           TO PUBLIC;
GRANT ALL ON TABLE LOG_EXISTENCIAS_Q              TO PUBLIC;
GRANT ALL ON TABLE TIPO_USUARIO_SALUD             TO PUBLIC;
GRANT ALL ON TABLE MODALIDAD_CONTRATO_SALUD       TO PUBLIC;
GRANT ALL ON TABLE COBERTURA_SALUD                TO PUBLIC;
GRANT ALL ON TABLE ARTICULOS_SUCURSAL             TO PUBLIC;
GRANT ALL ON TABLE RECICAJA_APP                   TO PUBLIC;
GRANT ALL ON TABLE RECICAJA_APP_DET               TO PUBLIC;
GRANT ALL ON TABLE NOTAS_CARTERA_APP              TO PUBLIC;
GRANT ALL ON TABLE NOMINAS_ELECTRONICAS           TO PUBLIC;
GRANT ALL ON TABLE MOTIVO_DEVOLUCION              TO PUBLIC;
GRANT ALL ON TABLE FABRICANTES                    TO PUBLIC;
GRANT ALL ON TABLE CONCEPTOS_NOMELECTRONICA       TO PUBLIC;
GRANT ALL ON TABLE CONFIGURA_NOMELECTRONICA       TO PUBLIC;
GRANT ALL ON TABLE NOMINA_ELECTRONICA             TO PUBLIC;
GRANT ALL ON TABLE CONTEOS_FISICOS                TO PUBLIC;
GRANT ALL ON TABLE AJUSTE_WEB                     TO PUBLIC;
GRANT ALL ON TABLE AJUSTE_WEB_DETALLE             TO PUBLIC;
GRANT ALL ON TABLE CONTEOS_ZONAS                  TO PUBLIC;
GRANT ALL ON TABLE CONVENIOS_CARTERA              TO PUBLIC;
GRANT ALL ON TABLE DOC_INVENTARIO_WEB             TO PUBLIC;
GRANT ALL ON TABLE DOC_INVENTARIO_DET_WEB         TO PUBLIC;
GRANT ALL ON TABLE REPORT_CONEXION                TO PUBLIC;
GRANT ALL ON TABLE REPORT_DOCUMENTOS              TO PUBLIC;
GRANT ALL ON TABLE PRECIOS_FUTUROS                TO PUBLIC;
GRANT ALL ON TABLE PRECIOS_FUTUROS_ARTICULOS      TO PUBLIC;
GRANT ALL ON TABLE REPORT_AGENDA_CLIENTE          TO PUBLIC;
GRANT ALL ON TABLE COSTOS_NEGOCIACION             TO PUBLIC;
GRANT ALL ON TABLE REPORT_AGENDA_PROVEEDOR        TO PUBLIC;


GRANT EXECUTE ON PROCEDURE ABONOS_DOCUMENTO_CARTERA       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AFECTA_INVENTARIO_FACTURAS     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ABONOS_DOCUMENTO_CXPAGAR       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALICE_COSTO                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_ACTIVO         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_ARTICULO       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_CENTRO         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_CENTRO_TERCERO TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_CUENTA         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_TERCERO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALIZA_PUNTOS_ACUMULADOS    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACUMULA_PUNTOS_CLIENTE         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AKTIVIA_CARTERA                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AKTIVIA_CLIENTES               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AKTIVIA_INVENTARIO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AKTIVIA_PRODUCTOS              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AKTIVIA_VENDEDORES             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ALERTAS_CONTRATO_EMPL          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DOCUMENTOS_INTERFAZ_SIN_CUENTASTO PUBLIC;
GRANT EXECUTE ON PROCEDURE ANALISIS_VENTAS_VENDEDOR       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPARA_INVENTARIO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CALCULA_VACACIONES             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BORRAR_FACTURAS                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE APLICACIONCL_SIN_CONTABILIDAD  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORT_MENSAJES_USUARIOS       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE INACTIVOS_EXISTENCIA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CIERRE_FACTURACION_VEND        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AGREGA_ENTIDAD_CONCEPTOEMPL    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE APLICACIONPR_SIN_CONTABILIDAD  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ARCHIVO_BANCO                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BORRA_DESCUADRADOS             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_REVALID_CLIENTES           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_REVALID_PRODUCTOS          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_REVALID_VENTAS             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ARREGLA_COSTO_PLANPROD         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ARREGLA_COSTO_PRODENT          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ARREGLA_CUENTA_BANCO_CONTA     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ARREGLA_EXIST_PROD_CONS        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ARREGLA_MOV_CAJA_RC            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ARREGLA_MOV_CLIENTE_RC         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ART_INACTIVOS_CON_EXISTENCIA   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ARTICULOS_SIN_CONTAR           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ASIGNA_COBRADOR                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ASIGNA_PRECIOS                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ASIGNA_RUTERO_FAC              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AUXILIAR_ARTICULO_MES          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AUXILIAR_CENTRO_DESDE_HASTA    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AUXILIAR_CENTRO_INI_FIN        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AUXILIAR_CENTRO_MES            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AUXILIAR_CUENTA_INI_FIN        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AUXILIAR_CUENTA_MES            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DIGITO_CHEQUEO                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AUXILIAR_DESDE_HASTA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CODIGO_BARRAS                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AUXILIAR_TERCERO_DESDE_HASTA   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AUXILIAR_TERCERO_INI_FIN       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AUXILIAR_TERCERO_MES           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ANALISIS_VENTAS                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIA_TIVA                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PRESTAMOS_PENDIENTES           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSULTA_PREFIJO_RR            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSULTA_CLIENTES_RR           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORT_NOTAS_IMPR              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORT_BUSCADOC                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSULTA_USUARIO_CORREO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE TRAE_RUTEROS_CONDUCTOR         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_ANUAL                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_ARTICULO_MES           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_CENTRO_MES             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_COMPARATIVO            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE GER_DISMINUCION_VENTAS_PROD    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_CON_CENTROS_MES        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO_Y_ULTIMO_NIIF   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO_NIIF            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO_UNIDAD_NIIF     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_CON_TERCEROS_MES       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_INICIAL                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_ANTICIPOS_CLI         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_MES                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_MES_DINAMIC            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_PRUEBA_ACUMULADO       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_TERCERO_ANO            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTOS_CENTRO_MES_N       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_CENTRO_MES_N           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AUXILIAR_CENTRO_MES_N          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_TERCERO_MES            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BONOS_DISPONIBLES              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BORRE_CONTABIL_FACTURA         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSCA_ID_DOC                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PRESTAMOS_EMPLEADO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSCA_ID_DOC_CARTERA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEO_LOTES2                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSCA_ID_DOC_CXPAGAR           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSCAR_COMPROMISOS             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSCAR_DEVOLCHEQ               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_ANTICIPOS_PRV         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_CAMPANAS              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_CLIENTES              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_COMPROMISOS           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_COMPROMISOS_CLI       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_DOCS_PRODUCCION       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_EVENTOS               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_EVENTOS_CLI           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_NOTASDOC              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_PENDIENTES            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_REMESAS               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_PRODUCCION            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXPORTA_FACTURAS_ASOB          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_COSTOS                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTADO_COSTOS                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_PROSPECTOS            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_REMISIONES            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_IMPORTACIONES         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CADENA_MES                     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CALC_SALDOSINI_NOMINA          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CALCULA_COMISIONES_NOMINA      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CALCULA_CRUCE_PROVISIONAL      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CALCULA_PORCPRECIO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CALCULA_PRECIOS                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CALCULE_DV                     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIA_CLIENTE                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIA_CTAS_ARTI               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIA_CTAS_CLIENTES           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIA_CTAS_PROVEEDOR          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_AJUSTEINV            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_AJUSTESINF           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_ANTICLIE             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_ANTIPROV             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_APLICLIE             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_APLIPROV             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_CAMBCOSTO            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_CAMBDOCU             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_CHEQUE               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_CIERANUAL            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_CIERTERC             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_COMPRAS              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_COMPROBA             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_CONCILIAB            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_CONFIRMDEPOS         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_CONS                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_CONSIGNA             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_CONSIGNATAR          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_CONSOLFP             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_CONSUMO              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_COTICOMP             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_COTIZACI             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_CUENTA_BANCO         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_DESENSAMBLE          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_DEV_CHEQUES          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_DEVOLCLIE            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_DEVOLPROV            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_DISFVACAC            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_EGRESO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_ENSAMBLE             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_ENTRADA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_ENTRSALEMPL          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_ENVIO                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_EVENTO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_FACTCONT             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_FACTPER              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_FACTURA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_HORARIOEMPL          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_INTERBANCO           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_INTERCAJA            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_INTERCARTERA         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_INTERCMP             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_INTERCOMPRA          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_INTERCXPAGAR         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_INTERVTA             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_INTINVENTARIO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_NOMINA               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_NOMINA_PROV          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_NOMINACOMISIONES     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_NOTA_CR_BANCO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_NOTA_DB_BANCO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_NOTACRCLIE           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_NOTACRPROV           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_NOTADBCLIE           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_NOTADBPROV           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_NOVEDAD              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_ORDEMBARQUE          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_ORDENCOMP            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_ORDENMCIA            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_ORDENPROD            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_PAGO_NOMINA          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_PEDIDO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_PENDIENTE            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_PLANPROD             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_PLANTILLA            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_PRESTAMOS            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_PRODDEV              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_PRODENT              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_PRODSAL              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_RECICAJA             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_RECIPROV             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_REDIPTOS             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_REDPTOSV             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_REMICLIE             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_REMIPROV             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_RESERVA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_RETIRO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_REVPRECIO            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_RUTERO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_SALIDA               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_SOLIMP               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_TRANSFER             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_TRASLACAJA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_TRASLADO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_IDNOTADOC               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIO_ANO_CONTA               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIO_CODIGO_ARTICULO         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIO_PRECIOS                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIOS_PATRIMONIO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION_REPORT       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORT_CRONOLOGICO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIOS_SITUACION              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CANTIDAD_POR_FACTOR            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORT_PENDIENTES              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORT_FALTANTES               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORT_ENVIOSF_CORREO          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORT_RESULTADCORREO          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CARTERA_CLIENTE                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DATOS_COMPANIA                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAUSA_DIFERENCIA_CAMBIO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAUSA_NOMINA                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAUSA_NOMINA_EMPLEADO          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CEROS_ANCHO_FIJO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CERTIFICA_LABORAL              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_BANCO_CONF        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SUME_SALDO_BANCO_CONF          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESTE_SALDO_BANCO_CONF         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CERTIFICADOS_RETENCION         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CALCULE_CESANTIA_LIQ           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_ACTIVO_NIIF              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORT_TICKET_IMPR             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_ARTICULO_NIIF            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_CENTRO_NIIF              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVTOS_CENTRO_TERCERO_MES_N    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_CENTRO_TERCERO_NIIF      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_NIIF              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CREAR_CLIENTE                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_CONSNOMINA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CERTIFICADOS_RETENCION_LABORAL TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEA_VENCIMIENTOS_CARGOS    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEO_COSTOS                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_NOTAS_EVENTO          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEO_INVENTARIO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEO_LOTES                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AJUSTA_CANT_PEDIDO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEO_MOVIMIENTO_CLIENTES    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESUMEN_VENTAS_ARTICULO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CARTERA_PUNTO_DIA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FECHA_DOCUMENTOS_PAGO          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_ANUAL_CENTROS          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEO_MOVIMIENTO_CXPAGAR     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEO_PUNTOS_VENDEDOR        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEO_SALDOS_BANCOS          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEO_SALDOS_CAJAS           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEO_SALDOS_CONTA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CAMPANAS                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_IDREEMFAC               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEO_SALDOS_DOC_CARTERA     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEO_SALDOS_DOC_CXPAGAR     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_IMPORTA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEO_STANDS                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUES_SIN_CONTABILIDAD       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CIERRE_DIARIO                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CIERRE_FACTURACION             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_ARQUEO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_LIQRUTA               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ARREGLA_ENTRADAS_COSTO_CERO    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CLASIFICA_INVENTARIO           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CLIENTES_SIN_REGISTRO          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COBRADOR_NOTAS                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECLASIFICA_DEVDEC1818         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE VENTAS_ARTICULO_ANO1           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMISIONES_ARTICULO            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_VENTAS_ARTICULO_ANO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECUPERA_FACTURAS_VEND         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMISIONES_CALLCENTER          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMISIONES_COBRO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALICE_PRMINIMO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMISIONES_DOCUMENTO           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPLETA_NUMERO_COMPROBANTE    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPARA_CENTROS                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPARA_MOVIMIENTO_ARTICULO    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPLETA_CEROS                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPONE_FECHA_CONTA            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPRAS_ARTICULO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPRAS_ARTICULO_DETALLE       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPRAS_ARTICULO_MES           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPRAS_PROVEEDOR              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPRAS_PROVEEDOR_ANO          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPRAS_PROVEEDOR_MES          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPRAS_SIN_INVENTARIO         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPROBANTES_ACTIVO            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPROBANTES_DIARIO            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPROBANTES_NEGATIVOS         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPROBANTES_TERCERO           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONCILIA_BANCO                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE TRAE_PEDIDOS_VEND              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE LISTAS_ARTICULO_WEB            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONCILIA_BANCO_ACT             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONCILIA_BANCO_CONTA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONCILIA_CAJA                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONCILIA_CARTERA               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_CAMBCOSTO                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONCILIA_CARTERA_DET           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ARREGLA_MOV_CLIENTE_APL        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FECHA_PERIODO_PAGO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONCILIA_COMPRAS               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONCILIA_COSTOVENTAS           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BORRAR_PEDIDO_WEB              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DOCUMENTOS_IMPORTACION         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAF                            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RENGLON_NOVEDAD_APORTES        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_CAMBCOSTO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONCILIA_CXPAGAR               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONCILIA_CXPAGAR_DET           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONCILIA_DEVCOMPRAS            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONCILIA_DEVVENTAS             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONCILIA_INVENTARIO            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONCILIA_INVENTARIO_DET        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONCILIA_VENTAS                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONFIRMA_RUTERO_FAC            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONS_SALDOSINI_NOMINA          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSECUTIVOS_CONTA             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSIGNA_SIN_CONTABILIDAD      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSOLIDA_ARTICULOS            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSOLIDA_CONC_NOMINA          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSOLIDA_CONC_NOMINA_PROV     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSOLIDA_ITEMS_AJUSTE         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECALCULA_MOVBANCO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_IMPORTACIONES              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSOLIDE_AJUSTES              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPLETA_CEROS8                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MANIFIESTOS_CONDUCTOR          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAUSA_NOMINA_1_EMPLEADO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE INACTIVA_ARTICULOS_CERO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PEDIDOS_X_ORDENAR              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_AUTOCART             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSOLIDE_PENDIENTES           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSOLIDE_PRODUCCION           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSULTA_ARTICULOS_PRECIOS     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSULTA_ARTICULOS_VTAS        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSULTA_BALANCE_MES           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSULTA_CLIENTES              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSULTA_PRESUPUESTO_MES       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSULTA_PUNTOS_CLIENTE        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSULTA_PUNTOS_VENDEDOR       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSUMO_HISTORICO              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSUMO_PRECIOS                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_AJUSTE                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_APLICACL              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_PRECIOS_RIMAR              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE INFORME_DIARIO_VENTAS          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE INFORME_DIARIO_VENTAS_FP       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTIVO_VALOR                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ULTIMA_DEPRECIACION_UNIDADES   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTIVO_VALOR_NIIF              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_APLICAPR              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_FACTURAS_MES               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_CHEQUE                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RENGLON_VS_APORTES             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_CONSIGNA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEO_PRESTAMOS              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_CONSIGNA_NIIF         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_CONSIGNATAR           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_CONSIGNATAR_NIIF      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_DESENSAMBLE           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_DEVOLCHEQ             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_DEVOLCLI              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_SIN_FACTURAS_MES           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE KARDEX_ARTICULO_MES_N          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_DEVOLCOMP             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_EGRESO                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EDITA_CLIENTE_MOVIL            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_ENSAMBLE              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE INCAPACIDAD_TOTAL              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_ENTRADA               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_FACTCOMP              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PLANILLA_NOMINA_HORAS          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_FACTCOMP_IVA          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_FACTURA               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_FACTURA_FACTOR        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_FACTURA_IVA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_FACTURAS_CONTADO      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_MANIFIESTO            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_NOMINA                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ASIGNE_FACTURA_ENTREGA         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ENTREGA_SIGUIENTE_ITEM         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_NOTACRBC              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_NOTACRBC_NIIF         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_NOTACRCL              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CONDUCTORES                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ARREGLA_BARRAS_ARTICULO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_NOTACRPR              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DINERO_DISPONIBLE              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE KARDEX_INVENTARIO_MES_N        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_NOTADBBC              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_NOTADBCL              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_NOTADBPR              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_PAGONOMI              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ASIGNE_BOLETAS                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_SORTEO                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_PLANILLA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_ARQUEO                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_PRODUCCION            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_PRODUCCION_DEV        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECALCULA_COSTOS_NIIF          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTENCIA_BODEGA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PEDIDOS_WEB_POR_CONFIRMAR      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE INFORME_DIARIO_VENTAS_TERM     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PERFILES_EMPLEADO              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_PRODUCCION_ENT        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_PRODUCCION_SAL        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_RECICAJA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PRECIO_UNIDAD                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONCILIA_PAT_DETALLE           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALICE_COSTO_NIIF           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECALCULA_APERTURA_NIIF        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE TRAE_SUCURSALES                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_RECIPROV              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COPIA_CUENTAS_NIIF             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_RECIPROV_NIIF         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_NOMINA_HORASEXTRA          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_FINAL_DET              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_VACACION             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_REMESA                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_CLIENTE_FAC              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NOMINA_SALARIOS_UGPP           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EMPLEADO_ACTIVO                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_RETIRO                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_RUTERO                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEO_SALDOS_CONTA_NIIF      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_SALIDA                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CALCULA_INDEMNIZACION          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_TRASLACAJA_NIIF       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_TRASCUENTA            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BASE_CUENTA_MES                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ANALISIS_INVENTARIO            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEO_COSTOS_NIIF            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_TRASLACAJA            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_DETALLE_CERTIFICADO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_TRASLAMERCANCIA       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABILICE_COMP_SIMPLIFICADO  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABILICE_COSTO_VENTAS       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_CENTRO_MES_NIIF          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_PENDIENTE          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTACTOS_CLIENTE              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTADO_MVERDE                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTADO_MVERDE2                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTADOS_SIN_RECIBO            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COPIA_INTERFAZ_BANCOS          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COPIA_LISTA_PRECIOS            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CORREOS_TERCERO                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COSTO_EN_VENTAS                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COSTO_EN_VENTAS_CONTADO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO_UNIDAD          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO_Y_ULTIMO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COSTO_PROMEDIO_Y_ULTIMO_UNIDAD TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COSTO_PROVEEDOR                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COSTOS_PROVEEDOR_TRASLADO      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CREE_CUENTA_PUC                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CRONOLOGICO_CONTA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DIAS_LABORADOS_SINV            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAUSA_NOMINA_VACACIONES        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTENCIAS_TERCEROS           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_TERCERO_FECHA            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CRUCES_DOCUMENTO_DETALLE       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_CAMPANA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_PEDIDOS               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CRUCES_DOCUMENTOS              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUADRE_CAJA_EGRESOS            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUADRE_UNA_CAJA_EGRESOS        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CRUCES_DOCUMENTOS_CAJA         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CANCELE_FACTURA                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUADRE_CAJA                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE TRAE_ARTICULOS_MOVIL_OFFLINE   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUADRE_CAJA_ABONOS             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE UNIDADES_OFFLINE               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BORRE_APERTURA_NIIF            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COSTO_VENTAS_ARTICULO          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE LISTA_PRECIOS_OFFLINE          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUADRE_CAJA_DETALLE            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUADRE_CAJA_FPAGO              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUADRE_COMPROBANTES_CONTABLES  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUADRE_UNA_CAJA                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUADRE_UNA_CAJA_DETALLE        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUADRE_UNA_CAJA_ABONOS         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUADRE_UNA_CAJA_FPAGO          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUENTA_AFECTABLE               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUENTA_INTERFAZ                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUENTAS_ARTICULOS              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUPO_DISPONIBLE                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_CAMBART              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CXPAGAR_PROVEEDOR              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_VENTAS_EVENTO              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DESCARGA_REMIPROV_FALTANTE     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAUSA_NOM1EMPLEADO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAUSA_NOM2EMPLEADO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DESCARGA_REMISION_FALTANTE     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DESCUENTOS_PEDIDO              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DESENSAMBLES_SIN_CONTABILIDAD  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_SALIDA_NIIF           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DETALLE_COMPRAS_ARTICULO       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DETALLE_COMPRAS_PROVEEDOR      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DETALLE_DEVOLUCIONES_POS       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DETALLE_VENTAS_ARTICULO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DETALLE_VENTAS_ARTICULO_VEND   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DETALLE_VENTAS_CLIENTE         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DETALLE_VENTAS_VENDEDOR        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DEV_INVENTARIO                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DEVCOMPRA_SIN_CONTABILIDAD     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DEVOLCOMP_SIN_INVENTARIO       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DEVOLUCIONES_SIN_CONTABILIDAD  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PEDIDOS_POR_ENTREGAR           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DEVOLUCIONES_SIN_INVENTARIO    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DIA_FECHA                      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DIAS_ENTRE_NOMINA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DIAS_LABORADOS                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DIAS_MES                       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAUSA_NOMINA1                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_CENTRO_TERCERO_MES_N   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSULTA_ARTICULOS_MOVILC      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECALCULA_IVA16_FACTURA        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_TERCEROS_FECHA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAUSA_NOMINA2                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DIF_MOVBANCO_CONCILIACION      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AUXILIAR_TERCERO_MES_N         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DIFERENCIAS_CONTEO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DIGITOS_NIVEL                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECALCULA_FACTURAS16_FECHA     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DISPONIBILIDAD_ARTICULO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DISPONIBILIDAD_TOTAL_ARTICULO  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DOCCAJA_SIN_ENTRADA            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DOCCOMPRA_X_IMPORT             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXPORTAR_RUTERO                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_TERCERO_NIIF             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DOCCOMPRA_X_PROVEEDOR          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DOCUMENTOS_SIN_CONTABILIZAR    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COMPRAS_GRUPO                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DIAS_VACACIONES                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DIAS_LABORADOS_LIQ             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CREA_BARRAS                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AUXILIAR_DESDE_HASTA_NIIF      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE VALIDE_RECAUDO                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DOCVENTAS_X_CLIENTE            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DV                             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BODEGA_FACTURACION             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_NOTADBBC_NIIF         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EGRESOS_SIN_CONTABILIDAD       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ENSAMBLES_SIN_CONTABILIDAD     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE TRAE_RUTERO_DET                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE VALIDE_DESCUENTO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ENTRADAS_SIN_CONTABILIDAD      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ERROR                          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ES_AFECTABLE                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE VENTAS_CIUDAD_VENDEDOR         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ESTADISTICA_VENTAS_VENDEDOR_ANOTO PUBLIC;
GRANT EXECUTE ON PROCEDURE ESTADISTICA_VENTAS_VENDEDOR_MESTO PUBLIC;
GRANT EXECUTE ON PROCEDURE ESTADO_FLUJO_EFECTIVO          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTE_CENTRO                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTE_CUENTA                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTE_TERCERO                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTENCIAS                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTENCIAS_BAJO_MINIMO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_PEDWEB               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE TOTAL_PEDIDO_WEB               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTENCIAS_COMPRAS            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PRECIOS_WEB                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_ORDENES_COMPRA        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_GASTOIMP             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTENCIAS_WEB                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTENCIAS_DESDE_HASTA        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NOMBRE_ASCII                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE VALOR_INICIAL_INVENTARIO_N     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE KARDEX_DESDE_HASTA_N           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTENCIAS_MINYMAX            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTENCIAS_SIN_AJUSTAR        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MMDIST_32                      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTENCIAS_SOBRE_MAXIMO       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECUPERA_PEDIDOS_VEND          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE GRABE_PEDIDO_WEB               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE TRAE_PEDIDO                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTENCIAS_UNIDAD             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE VER_ARTICULOS_PEDWEB           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FALTANTE_CORTE                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXPORTA_FACTURAS               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CLIENTES_DESCUENTO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FACTCOMP_SIN_CONTABILIDAD      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FACTCOMP_SIN_INVENTARIO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FACTOR_UNIDAD_CANT             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE TRAE_UN_RECAUDO                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECALCULE_FACTURAS_MAL_TOTAL   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FACTOR_UNIDAD_PRE              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FACTURAR_CONCEPTOS             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE LIQUIDACION_IMPORTACION        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSCA_ID_DOC_CXPAGAR_P         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_TRASCUENTA_NIIF       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CONCEPTOS_NOMINA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FACTURAS_MAL_TOTAL             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FACTURAS_MES_NIT               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FACTURAS_POR_ENTREGAR          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FACTURAS_RUTERO                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PRECIO_CANTIDAD                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FACTURAS_SIN_CONTABILIDAD      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FACTURAS_SIN_INVENTARIO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FACTURAS_SIN_MOV               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE INACTIVAR_ACTUALIZACION_BALANCETO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTIVAR_ACTUALIZACION_BALANCE  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AJUSTES_SIN_CONTABILDAD_NIIF   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DESENSAMBLES_SIN_CONTABIL_NIIF TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FALTANTE                       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_ACUM_CUENTA_MES     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_ACTIVO_NIIF    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_ARTICULO_NIIF  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FALTANTE_DOCUMENTO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FALTANTES_COMPRAS_ARTICULO     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ERRORINT                       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_DECRETO1818                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUADRE_AGENCIA                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_FORMA_PAGO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FALTANTES_VENTAS_ARTICULO      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FECHA_A_CONTA                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FECHA_DESDE_CONTA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FECHA_FINAL_PERIODO_PAGO       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FECHA_INICIAL_PERIODO_PAGO     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FECHA_Y_NUMERO_CONTA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FECHAS_ANTERIORES_LOTE         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FIN_DE_MES                     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FORM_INTEGRADO_ELECTRONICO     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FORM_INTEGRADO_ELECTRONICO_ARP TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FORMULA_PRECIOS                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE HISTORIA_MENSAJES              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE HISTORICO_CARTERA_CLIENTE      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE HISTORICO_EMPLEADO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_COMPROBANTE_NIIF          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IBC_APORTES                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IBC_EMPLEADO                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IDS_CORTE                      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_AJUSTE                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_ANTICLIE                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_ANTIPROV                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_APLICLIE                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_APLIPROV                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_APORTES                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_ARTICULO                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_CAMBDOCU                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_CERTRETE                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_COMPROBANTE               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_CONCILIACIONB             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_CONSIGNA                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_CONSIGNATAR               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_CONTABILIZACION           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_COTIPROV                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_COTIZACION                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_MUNICIPIOS_BIT             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_CRUCES                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_TIPONEGOCIO_BIT            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DETERIORO_CARTERA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_DESENSAMBLE               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_DEVOLPROV                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_DEVOLUCION                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_EGRESO                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_ENSAMBLE                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_ENTRADA                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_FACTCOMP                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_FACTPRO                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_FACTURA                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CLIENTES_ARTICULO              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXPORTAR_CLIENTES_MEDICOXRAVEN TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_FORMAPAGO                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_LIQUIDACION          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_LIQUIDACION               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_COMPRAS_ARTICULOI          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_NOTACRCL                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_NOTACRPR                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_NOTADBCL                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_NOTADBPR                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIA_CUENTA_BANCO_CONTA      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_CENT_TERC_NIIF TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_CUENTA_NIIF    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_TERCERO_NIIF   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTE_CUENTA_NIIF             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_ORDENCMP                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_DEPRECIA             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DETALLE_VENTAS_CIUDAD          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CIERRE_FORMAPAGO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_ORDENINV                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_PEDIDO                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_PENDIENTE                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_VEHICULOS                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_DOCUMENTOS_VEHICULO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CONSECUTIVOS_TRANS         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_COMPROBANTES_TRANS         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_PLANILLA_NOMINA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_PLANILLA_NOMINA_PROV      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_PLANPROD                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_PLANPROD_CONS             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_PLANPROD_ENT              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_PLANREMESA                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_PRODUCCION                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_PRODUCCION_ENT            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_PRODUCCION_ENTRADA        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_PRODUCCION_MONTAJE        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_RECICAJA                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_RECICJPAGO                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_RECIPROV                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_REDENCION                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_REMIPROV                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTOS_TERCERO_DESDE_HASTATO PUBLIC;
GRANT EXECUTE ON PROCEDURE FACTURAR_REMISIONES            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REGISTRE_CLIENTE               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXPORTA_FACTURAS_DET           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_CON_CENTROS_MES_N      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_TERCERO_MES_NIIF    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_COMPARATIVO_NIIF       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CERRAR_IMPORTACION             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUENTA_MAL_AFECTABLE           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_LIQRUTA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE TRAE_RECAUDO_RUTA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DIFERENCIAS_ARTICULOS_BD       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_REMISION                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MANIFIESTOS_VEHICULO           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DIAS_LIQUIDACION               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_RESERVA                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_REVPRECIOS                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_BIT_TIPONEGOCIO_V3         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_BIT_SKU_V3                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_BIT_CLIENTES_V3            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_BIT_VENTASDET_V3           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_BIT_CLIENTES_V2            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_MILISTAPP_INVENTARIO     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DOCTRANSP_X_CLIENTE            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE VENTAS_MARCA                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_PEDIDO                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ANTICIPOS_PEDIDO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSCA_DOCS_ALISTA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORT_PEDIDOS_DES             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORT_PEDIDOS_DCG             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESUMEN_VENTAS_NOTA            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_CERTICA                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECONSTRUYE_EVENTOS            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALARIO_PROMEDIO_LIQ           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RETENCIONES_QUE_NOS_PRACTICARONTO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM16472                        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_22763_N                     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_22763                       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FACTCOMP_MAL_TOTAL             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ARREGLA_CANT_REMIPROV          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE INSERTE_RUTERO                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AGREGA_FACTURA_RUTERO          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONFIRMACION_ENTREGA_FACTURA   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DEVOLUCION_FACTURA_RUTERO      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EMBALAJES_FACTURA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ASIGNAR_TRANSPORTE             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FINALIZAR_EMBALAJE_FACTURA     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NUMERO_FORMATEADO              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE TOTAL_INVENTARIO_PEDIDO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_TOTAL_INVENTARIOC        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ARTICULOS_API                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE TRAE_EMBALAJE_FACTF            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ARTICULOS_OK                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ARREGLA_IVAYTOTAL_FAC          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE GRABE_DOC_TERCERO              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BODEGAS_FAC                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REGISTRE_ITEM_COTIZACION_APP   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE VAL_ARTICULO_REPETIDO          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE TRAE_VENDEDORES_WEB            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE VALIDA_ACCESO_USUARIO          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE TRAE_CORDENADAS_WEB            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESUMEN_RUTA                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PRESENTACIONES_Q_OK            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PRESENTACIONES_QUQO            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTENCIAS_QUQO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTENCIAS_Q_OK               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECALCULA_IVA_DEVOLUCION       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CALCULA_VACACIONES2            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_RUTERO                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_DEVOLCLI_NIIF         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORT_DATOS_CLIENTES          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_VACACOL              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_VENTAS_DECRETO551JL        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_VENTAS_DECRETO551          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE INACTIVAR_CLIENTES             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE INACTIVAR_ARTICULOS            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CADENA_FACTELECTRONICA22       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_PAGO_FACTURAS              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_10047                       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RDE_DAYPARKING                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RDE_DAYPARKING2                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RDE_DAYPARKING3                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE VALIDE_ITEM_DIAIVA             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_VENTAS_DIASINIVA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CALCULA_CONCEPTO_MM2276        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CALCULA_CONCEPTO_MM2276N       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RDE_DAYPARKING4                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ULTIMO_COSTO_NIIF              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_FACTURA_NIIF          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_REMICLIE              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BASE_CUENTA_MES_NIIF           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_NETO_CUENTA_MES_N   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_SALIDA                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_TRASFERENCIA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_TRASLACAJA                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_TRASLADOBCO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_VACACIONES                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BODEGA_FACTURACION_ALTERNA     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPUESTOS_CLIENTE              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE TRAE_FACTURA                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPUESTOS_COMPRAS              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CODIGOS_BARRAS                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSULTA_ARTICULOS_WEB         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE EXISTENCIAS_MENOS_RESERVA      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_PEDIDOS_ENTREGA            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSULTA_EXISTENCIAS_WEB       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REDONDEE_PRECIO_LISTA          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COLA_FUNCIONES                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPUESTOS_PROVEEDOR            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPUESTOS_VENTAS               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE INCREMENTE_NROCOPIA            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE INSERTE_SALDO_INICIAL          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE INVENTARIO_FACTCOMP_SIN_REMI   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE INVENTARIO_FAMILIA             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE INVENTARIO_Y_BALANCE           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE KARDEX_ARTICULO_MES            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE KARDEX_DESDE_HASTA             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE KARDEX_INVENTARIO_MES          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE LEE_CONFIGURACION              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE LIBRO_DIARIO                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE LIBRO_DIARIO_CUENTA            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE LIQUIDA_VACACIONES             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_INICIAL_DET            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE LIQUIDACION_APORTES            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CHEQUEO_PUNTOS_CLIENTE         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE LIQUIDACION_EMPLEADO           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALICE_SALDO_CENTRO_NIIF    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE TRAE_CLIENTE_MOVIL             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE LISTA_LOTES                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_PRESTAMO                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE LISTAS_ARTICULO                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MAX_NIVEL                      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MAXIMO_ARTICULO                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MAYOR_SALDO_LOTE               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MAYOR_Y_BALANCE                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MEDIOS_MAGNETICOS              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MEDIOS_MAGNETICOS_SHD          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MEDIOS_MAGNETICOS2             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MERCANCIA_EN_TRANSITO          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MES_FECHA                      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MINIMO_ARTICULO                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CLIENTES_SUCURSAL_MED          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_1001                        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_1001_8                      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_1002                        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_1003                        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_1005                        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_10057                       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_1006                        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_10067                       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_1007                        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SUMA_DESCUENTOS_FINANCIEROS    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_10078                       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_1008                        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_1009                        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_1011                        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DIFERENCIAS_TERCEROS_BD        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_1012                        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MMDIST_2                       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSCAR_CHEQUES                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MMDIST_4                       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MMDIST_6                       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOV_DETALLE_BANCOS             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOV_DETALLE_CAJAS              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVARTI_CANTIDADES             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVBANCO_NO_CONCILIADOS        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVER_FORMATO                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_ARTICULO_ANULADO    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_ARTICULO_DESDE_HASTATO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_ARTICULO_MES        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_ARTICULOC_MES       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_BANCO_MES           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_CAJA_MES            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_CARTERA_DESDE_HASTA TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_CARTERA_MES         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_CENTRO_MES          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_CUENTA_DESDE_HASTA  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_CUENTA_MES          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_CXPAGAR_DESDE_HASTA TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_CXPAGAR_MES         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_INVENTARIO_MES      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECALCULA_COSTO_PROV           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_NETO_CUENTA_MES     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_NO_AFECTABLE        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_TERCERO_MES         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTO_TOTAL_ARTICULO_MES  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTOS_ARTICULOC_MES      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTOS_CENTRO_MES         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTOS_CUENTA_DESDE_HASTA TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTOS_CUENTA_MES         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTOS_TERCERO_MES        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVLOTES_DESDE_HASTA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NOMBRE_COMPANIA                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NOMBRES_GRUPOS_CLIENTE         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NOMBRES_GRUPOS_INVENTARIO      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NOTACRCL_SIN_CONTABILIDAD      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NOTACRPR_SIN_CONTABILIDAD      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NOTADBCL_SIN_CONTABILIDAD      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NOTADBPR_SIN_CONTABILIDAD      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NOTASCRBC_SIN_CONTABILIDAD     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NOTASDBBC_SIN_CONTABILIDAD     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NOVEDADESXPERIODO              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NRO_COPIA                      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NROBANCO_REF_EGRESOS           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NUM_ENT                        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NUMERO_CONCILIACION            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ORDEN_PROVEEDOR                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SUMA_APERTURA_NIIF             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ORDEN_SUGERIDA                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ORDEN_SUGERIDA_BOD             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ORDENA_MOVARTICULO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ORDENES_ARTICULO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ORDENES_ARTICULO_FECHA         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PADRE                          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PAGO_NOMINA_XEMPL              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PAGO_NOMINA_XEMPL_DETA         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PENDIENTES_X_CLIENTE           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PERIODO_NOM_FECHA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PLANILLA_NOMINA_NOVEDADES      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PORCENTAJE                     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE POS                            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PRECIOS_UNIDAD                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PRECIOS_Y_EXISTENCIA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PRESUPUESTO_MES                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PRODUCCION_SUGERIDA            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PROMEDIO_PRODUCCION_ARTICULO   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PROMEDIO_SALIDAS_ARTICULO      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PROMEDIO_TOTAL_ARTICULO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PROVEEDORES_SIN_REGISTRO       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE PUNTOS_VENDEDOR_FECHAS         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RANGO_CLIENTES                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECALCULA_FALTANTES_VENTAS     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECALCULA_FALTANTES_VENTAS2    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECALCULA_IDREF                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECALCULA_PUNTOS_CLIENTE       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECALCULO_COMISIONES_VENTAS    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECALCULO_DEV_REMISION         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NUMERO_DOCUMENTO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECCONTADO_MVERDE              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUENTA_INTERFAZ_NIIF           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECIBOS_SIN_CONTABILIDAD       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECONTABILICE_COSTOS_VENTAS    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECUPERA_NUMERO_CHEQUE         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_ENTRADA_NIIF          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_TRASMERC_NIIF         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_AJUSTE_NIIF           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECUPERACION_CARTERA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_CAMBCOSTO_NIIF        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REDONDEE                       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REDONDEE_NOTAS_PROVEEDOR       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REGISTRA_RECIBOS_CONTADO       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REGISTRE_APLICACIONES_CLIENTES TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REGISTRE_APLICACIONES_PROVEEDORTO PUBLIC;
GRANT EXECUTE ON PROCEDURE REGISTRE_COINCIDENCIAS_CONTEO  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REGISTRE_REGIAUTO              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REMISIONES_COSTO_CERO          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_ABC_INVENTARIO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_AJUSTES_ARTICULO           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_ANALISIS_CARTERA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FALTANTES_COMPRAS_ARTICULOI    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE GER_DISMINUCION_VENTAS_CLI     TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_ANALISIS_CXPAGAR           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_APLICACLI                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_APLICAPROV                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE GER_INVENTARIO_GRUPO           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE GER_INVENTARIO_MARCA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_ARTICULO_BARRAS            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_ARTICULOS_CLIENTE          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_ARTICULOS_CONTABIL         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_ARTICULOS_PROVEEDOR        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_ARTICULOS_VENDEDOR         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_AUDITORIA                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_AUSENTISMO                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_UTILIDAD_VENTAS_SUBG       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CARTERA_CLIENTES           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CARTERA_CONSOLIDADA        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CARTERA_NOTAS              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CLIENTES                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CLIENTES_CRM               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CLIENTES_ULTVENTA          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALIZA_BASES_RETENCION      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_COMPRAS_ARTICULO           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_COMPRAS_PROVEEDOR          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_COMPRAS_PROVEEDOR_ANO      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_COMPROBANTES_ARTICULO      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_COMPROBANTES_BANCOS        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_COMPROBANTES_CAJA          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_COMPROBANTES_CAJA_ART      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECONTABILICE_NIIF             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_COMPROBANTES_CAJA_DET      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_COMPROBANTES_CARTERA       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_COMPROBANTES_CMP           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_COMPROBANTES_CXPAGAR       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_COMPROBANTES_FAC           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_COMPROBANTES_INV           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CONCEP_XPAGAR              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPARTE_SALIDA                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CONSECUTIVOS_BANCOS        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CONSECUTIVOS_CAJA          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CONSECUTIVOS_CARTERA       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CONSECUTIVOS_CMP           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CONSECUTIVOS_CXPAGAR       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BUSQUEDA_EGRESOS               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CONSECUTIVOS_FAC           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CONSECUTIVOS_INV           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CONSIGNACIONES             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CRM_CLIENTES               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CRM_EVENTOS                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECALCULA_FECNOMINA            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CRUCES_DOCUMENTO           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CXPAGAR_CONSOLIDADAS       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CXPAGAR_PROVEEDOR          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORTE_IMPORTACIONES          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_RUTEROS                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REGISTRE_ITEM_FACTURA_WEB      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_DISPONIBILIDAD             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_COMPRAS_PROVEEDORI         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_DOCUMENTOS_CLIENTE         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_DOCUMENTOS_ENCAJA          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_DOCUMENTOS_PROVEEDOR       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_EGRESOS                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_EMPLEADOS                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_ENSAMBLES                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_ENTREGA_FACTURAS           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_ESTADO_CUENTA_BANCO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_EXISTENCIAS_PRECIOS        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FACTURAR_REMISION              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_PLANILLA_INVENTARIO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_FALTANTES_CLIENTES         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_FALTANTES_COMPRA           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_FALTANTES_PROVEEDOR        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CORTE_CXPAGAR                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_FALTANTES_VENDEDOR         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COSTO_EN_VENTAS_CONTADO_NIT    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_FACTURAS_CONTADO_NIT  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTADO_MVERDE_NIT             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALICE_TOTAL_DOCVENTA       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECALCULA_IVA_FACTURA          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RECALCULA_FACTURAS_FECHA       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE ACTUALICE_TOTAL_REEMFAC        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_FALTANTES_VENTA            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_GRUPOS_VENDEDOR            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_HISTOEMPL                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_HOJADEVIDA                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_KARDEX_ARTICULO            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CUENTA_AFECTABLE_NIIF          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE VALIDE_CUENTA_NIIF             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_TERCERO_MES_NIIF         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTOS_TERCERO_MES_NIIF   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESULTADO_ANUAL                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_TERCERO_MES_NIIF       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_LISTA_PRECIOS              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_NOMINA_NOVEDADES           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_LIQRUTAC                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_METAS_VENTAS               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_MOVCAJA_DOCUMENTOS         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_MOVIMIENTO_ARTICULO_DOC    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_MOVIMIENTO_CLIENTE         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_MOVIMIENTO_DIARIO          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_MOVIMIENTO_PROVEEDOR       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_MOVIMIENTO_X_ARTICULO      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_PRESUPUESTO_GRUPOS         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_PRODUCCION                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_PRODUCTOS                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_PROVEEDOR_X_ARTICULO       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_RETENCION_CLIENTE          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_RETENCION_PROVEEDOR        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_TERCEROS                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_UTILIDAD_CLIENTE           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_UTILIDAD_VENDEDOR          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_UTILIDAD_VENTAS            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_VENDEDORES                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_VENTAS_ARTICULO            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_VENTAS_CANAL               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_VENTAS_CLIENTE             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_VENTAS_CLIENTE_ANO         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_VENTAS_VENDEDOR            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_VENTAS_VENDEDOR_GRUPO      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORTE_FAMILIA                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORTE_FAMILIA_CAB            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORTE_PUNTOS                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESERVAS_ARTICULO              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CEROS_AJUSTE                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_EMPLEADOS_CONCEPTOS        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NOMIN_MES                      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE TRAE_ITEM_FACTURA_ALISTA       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REGISTRE_ITEM_PEDIDO_APP       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_CRM_COMPROMISOS            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORT_CADENA_FALTANTE         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MONTO_MENSUAL_CONCEPTO         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REENVIO_NOMIN_MES              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE FECHA_NOMINA                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE NOMINA_MENSUAL                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMAGENES_ARTICULO              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REGISTRE_RECIBO_PROV           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REGISTRE_ITEM_RECIBO_PROV      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE GRABE_RECIBO_PROV              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE DETALLE_FACTURA_NETO           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE GENERE_PENDIENTE_ENTREGA       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_ASOCIADOS                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BODEGAS_INV                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CAMBIE_ID_DOCINVWEB            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE GRABE_DOCUMENTO_INV_WEB        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE GRABE_TERCERO_QUQO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COSTO_NEG_PROMEDIO_Y_ULTIMO    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE COSTO_NEG_VENTAS_ITEM          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE VER_ARTICULOS_DOCWEB           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORT_CONSULTA_PREFIJO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REPORT_TRAE_VENTA              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CARTERA_CLIENTE_REM            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REGISTRE_ITEM_FACTURA_APP      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_FACTURA_APP        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REGISTRE_RECIBO_APP            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REGISTRE_ITEM_RECIBO_APP       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE GRABE_RECIBO_APP               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABILIZA_RECIBO_APP         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REGISTRE_NOTA_CARTERA_APP      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE INSERTA_DOCUMENTO_FACTURA      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REGISTRE_COMPROBANTE_APP       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REGISTRE_ITEM_COMPROBANTE_APP  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESERVAS_ARTICULO_FECHA        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESTE_EXISTENCIA               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESTE_SALDO_BANCO              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESTE_SALDO_CAJA               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESTE_SALDO_EFECTIVO           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESUMEN_CAJA_TX                TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AUXILIAR_CUENTA_MES_NIIF       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_MES_NIIF          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE VALIDE_PADRE_NIIF              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE BALANCE_FINAL                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE VALIDE_CUENTA_NIIF_C           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_EMPAQUE                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE AJUSTES_APERTURA_NIIF          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MOVIMIENTOS_CUENTA_MES_NIIF    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONTABIL_ENSAMBLE_NIIF         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESUMEN_DIA                    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESUMEN_PUNTOS_TX              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESUMEN_SALDOS_BANCO           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESUMEN_SALDOS_CAJA            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESUMEN_VENTAS_DIA             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RESUMEN_VENTAS_TX              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RETIROS_SIN_CONTABILIDAD       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REVERSA_TRASLADO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REVERSE_RETENCIONES_EGRESOS    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REVISA_PRECIOS                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REVISA_PRECIOS_ARTICULO        TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RUTERO_CONSOLIDADO_ARTICULO    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE RUTERO_FACTURA                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE GER_INVENTARIO_PROV            TO PUBLIC;
GRANT EXECUTE ON PROCEDURE GER_INVENTARIO_BAJAROT         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALARIO_BASE_EMPLEADO          TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONSULTA_BALANCE_MES_NIIF      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE CONCILIACION_PATRIMONIAL       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_LIQRUTAC_CONC             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE IMPR_LIQRUTAC_EFE              TO PUBLIC;
GRANT EXECUTE ON PROCEDURE REP_VENDEDORES_BIT             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE MM_1001_9                      TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALARIO_PROMEDIO               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_ACTIVO                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALARIO_PROMEDIO_SIN_AUX       TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALARIO_PROMEDIO_VACACIONES    TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_ACTIVO_MES               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_ARTICULO                 TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_ARTICULO_MES             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_CENTRO                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_CENTRO_MES               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_CENTRO_TERCERO           TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_CLIENTE                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_CLIENTE_SUCURSAL         TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA                   TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_BANCO             TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTA_MES               TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_CUENTAF                  TO PUBLIC;
GRANT EXECUTE ON PROCEDURE SALDO_DOC_CARTERA              TO PUBLIC;
