Fixed table error
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
e2a9a64f88
commit
d66cf68e89
|
@ -711,14 +711,14 @@ INSERT INTO `vn`.`itemCategory`(`id`, `name`, `display`, `color`, `icon`, `code`
|
|||
(7, 'Accessories', 1, NULL, 'icon-accessory', 'accessory'),
|
||||
(8, 'Fruit', 1, NULL, 'icon-fruit', 'fruit');
|
||||
|
||||
INSERT INTO `vn`.`itemType`(`id`, `code`, `name`, `categoryFk`, `life`,`workerFk`, `isPackaging`)
|
||||
INSERT INTO `vn`.`itemType`(`id`, `code`, `name`, `categoryFk`, `warehouseFk`, `life`,`workerFk`, `isPackaging`)
|
||||
VALUES
|
||||
(1, 'CRI', 'Crisantemo', 2, 31, 35, 0),
|
||||
(2, 'ITG', 'Anthurium', 1, 31, 35, 0),
|
||||
(3, 'WPN', 'Paniculata', 2, 31, 35, 0),
|
||||
(4, 'PRT', 'Delivery ports', 3, NULL, 35, 1),
|
||||
(5, 'CON', 'Container', 3, NULL, 35, 1),
|
||||
(6, 'ALS', 'Alstroemeria', 1, 31, 35, 0);
|
||||
(1, 'CRI', 'Crisantemo', 2, 1, 31, 35, 0),
|
||||
(2, 'ITG', 'Anthurium', 1, 1, 31, 35, 0),
|
||||
(3, 'WPN', 'Paniculata', 2, 1, 31, 35, 0),
|
||||
(4, 'PRT', 'Delivery ports', 3, 1, NULL, 35, 1),
|
||||
(5, 'CON', 'Container', 3, 1, NULL, 35, 1),
|
||||
(6, 'ALS', 'Alstroemeria', 1, 1, 31, 35, 0);
|
||||
|
||||
INSERT INTO `vn`.`ink`(`id`, `name`, `picture`, `showOrder`, `hex`)
|
||||
VALUES
|
||||
|
@ -2254,7 +2254,10 @@ INSERT INTO `vn`.`duaInvoiceIn`(`id`, `duaFk`, `invoiceInFk`)
|
|||
(10, 10, 10);
|
||||
|
||||
INSERT INTO `vn`.`ticketRecalc`(`ticketFk`)
|
||||
SELECT `id` FROM `vn`.`ticket`;
|
||||
SELECT `id`
|
||||
FROM `vn`.`ticket` t
|
||||
LEFT JOIN vn.ticketRecalc tr ON tr.ticketFk = t.id
|
||||
WHERE tr.ticketFk IS NULL;
|
||||
|
||||
CALL `vn`.`ticket_doRecalc`();
|
||||
|
||||
|
|
|
@ -4504,13 +4504,13 @@ ALTER DATABASE `bs` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
|
|||
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
|
||||
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
|
||||
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
|
||||
/*!50003 SET character_set_client = utf8 */ ;
|
||||
/*!50003 SET character_set_results = utf8 */ ;
|
||||
/*!50003 SET collation_connection = utf8_general_ci */ ;
|
||||
/*!50003 SET character_set_client = utf8mb4 */ ;
|
||||
/*!50003 SET character_set_results = utf8mb4 */ ;
|
||||
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
|
||||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`z-developer`@`%` PROCEDURE `fruitsEvolution`()
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `fruitsEvolution`()
|
||||
BEGIN
|
||||
select Id_Cliente,
|
||||
Cliente, count(semana) as semanas, (w.code IS NOT NULL) isWorker
|
||||
|
@ -5340,7 +5340,7 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`z-developer`@`%` PROCEDURE `saleGraphic`(vItemFk INT,
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `saleGraphic`(vItemFk INT,
|
||||
vTypeFk INT,
|
||||
vCategoryFk INT,
|
||||
vFromDate DATE,
|
||||
|
@ -9437,9 +9437,12 @@ CREATE TABLE `supplyResponse` (
|
|||
/*!50003 SET character_set_results = utf8mb4 */ ;
|
||||
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
|
||||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50017 DEFINER=`z-developer`@`%`*/ /*!50003 TRIGGER `edi`.`supplyResponse_AFTER_UPDATE` AFTER UPDATE ON `supplyResponse` FOR EACH ROW
|
||||
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER supplyResponse_AFTER_UPDATE
|
||||
AFTER UPDATE
|
||||
ON supplyResponse
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
/*
|
||||
IF NEW.NumberOfUnits = 0 AND OLD.NumberOfUnits <> 0 AND NEW.MarketPlaceID = 8713783439043 THEN
|
||||
|
@ -9527,7 +9530,7 @@ DELIMITER ;;
|
|||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;;
|
||||
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
|
||||
/*!50003 SET time_zone = 'SYSTEM' */ ;;
|
||||
/*!50106 CREATE*/ /*!50117 DEFINER=`z-developer`@`%`*/ /*!50106 EVENT `floramondo` ON SCHEDULE EVERY 6 MINUTE STARTS '2020-07-29 01:58:29' ON COMPLETION NOT PRESERVE ENABLE DO CALL edi.floramondo_offerRefresh() */ ;;
|
||||
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`%`*/ /*!50106 EVENT `floramondo` ON SCHEDULE EVERY 6 MINUTE STARTS '2020-07-29 01:58:29' ON COMPLETION NOT PRESERVE ENABLE DO CALL edi.floramondo_offerRefresh() */ ;;
|
||||
/*!50003 SET time_zone = @saved_time_zone */ ;;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;;
|
||||
/*!50003 SET character_set_client = @saved_cs_client */ ;;
|
||||
|
@ -9549,7 +9552,7 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`z-developer`@`%` FUNCTION `imageName`(vPictureReference VARCHAR(255)) RETURNS varchar(255) CHARSET utf8 COLLATE utf8_unicode_ci
|
||||
CREATE DEFINER=`root`@`%` FUNCTION `imageName`(vPictureReference VARCHAR(255)) RETURNS varchar(255) CHARSET utf8 COLLATE utf8_unicode_ci
|
||||
DETERMINISTIC
|
||||
BEGIN
|
||||
|
||||
|
@ -18095,203 +18098,6 @@ SET character_set_client = utf8;
|
|||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
|
||||
--
|
||||
-- Table structure for table `movConta`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `movConta`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `movConta` (
|
||||
`OrdenMovimientos` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`MovPosicion` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`Ejercicio` smallint(6) NOT NULL,
|
||||
`CodigoEmpresa` smallint(6) NOT NULL,
|
||||
`Asiento` int(11) NOT NULL,
|
||||
`CargoAbono` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`CodigoCuenta` varchar(15) CHARACTER SET utf8 NOT NULL,
|
||||
`Contrapartida` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`FechaAsiento` datetime NOT NULL,
|
||||
`TipoDocumento` varchar(6) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`DocumentoConta` varchar(9) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`Comentario` varchar(40) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`ImporteAsiento` decimal(28,10) NOT NULL,
|
||||
`CodigoDiario` smallint(6) NOT NULL,
|
||||
`CodigoCanal` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`CodigoActividad` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`FechaVencimiento` datetime DEFAULT NULL,
|
||||
`NumeroPeriodo` smallint(6) NOT NULL,
|
||||
`CodigoUsuario` smallint(6) NOT NULL,
|
||||
`FechaGrabacion` datetime NOT NULL,
|
||||
`TipoEntrada` varchar(2) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`CodigoDepartamento` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`CodigoSeccion` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`CodigoDivisa` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`ImporteCambio` decimal(28,10) NOT NULL,
|
||||
`ImporteDivisa` decimal(28,10) NOT NULL,
|
||||
`FactorCambio` decimal(28,10) NOT NULL,
|
||||
`CodigoProyecto` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`LibreN1` int(11) NOT NULL,
|
||||
`LibreN2` int(11) NOT NULL,
|
||||
`LibreA1` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`LibreA2` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`IdDelegacion` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`MovCartera` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`IdProcesoIME` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`TipoCarteraIME` smallint(6) NOT NULL,
|
||||
`TipoAnaliticaIME` smallint(6) NOT NULL,
|
||||
`StatusTraspasadoIME` tinyint(4) NOT NULL,
|
||||
`TipoImportacionIME` tinyint(4) NOT NULL,
|
||||
`BaseIva1` decimal(28,10) NOT NULL,
|
||||
`PorBaseCorrectora1` decimal(28,10) NOT NULL,
|
||||
`PorIva1` decimal(28,10) NOT NULL,
|
||||
`CuotaIva1` decimal(28,10) NOT NULL,
|
||||
`PorRecargoEquivalencia1` decimal(28,10) NOT NULL,
|
||||
`RecargoEquivalencia1` decimal(28,10) NOT NULL,
|
||||
`CodigoTransaccion1` tinyint(4) NOT NULL,
|
||||
`BaseIva2` decimal(28,10) NOT NULL,
|
||||
`PorBaseCorrectora2` decimal(28,10) NOT NULL,
|
||||
`PorIva2` decimal(28,10) NOT NULL,
|
||||
`CuotaIva2` decimal(28,10) NOT NULL,
|
||||
`PorRecargoEquivalencia2` decimal(28,10) NOT NULL,
|
||||
`RecargoEquivalencia2` decimal(28,10) NOT NULL,
|
||||
`CodigoTransaccion2` tinyint(4) NOT NULL,
|
||||
`BaseIva3` decimal(28,10) NOT NULL,
|
||||
`PorBaseCorrectora3` decimal(28,10) NOT NULL,
|
||||
`PorIva3` decimal(28,10) NOT NULL,
|
||||
`CuotaIva3` decimal(28,10) NOT NULL,
|
||||
`PorRecargoEquivalencia3` decimal(28,10) NOT NULL,
|
||||
`RecargoEquivalencia3` decimal(28,10) NOT NULL,
|
||||
`CodigoTransaccion3` tinyint(4) NOT NULL,
|
||||
`baseIva4` decimal(28,10) NOT NULL,
|
||||
`PorBaseCorrectora4` decimal(28,10) NOT NULL,
|
||||
`PorIva4` decimal(28,10) NOT NULL,
|
||||
`CuotaIva4` decimal(28,10) NOT NULL,
|
||||
`PorRecargoEquivalencia4` decimal(28,10) NOT NULL,
|
||||
`RecargoEquivalencia4` decimal(28,10) NOT NULL,
|
||||
`CodigoTransaccion4` tinyint(4) NOT NULL,
|
||||
`Año` smallint(6) NOT NULL,
|
||||
`Serie` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`Factura` int(11) NOT NULL,
|
||||
`SuFacturaNo` varchar(40) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`FechaFactura` datetime NOT NULL,
|
||||
`ImporteFactura` decimal(28,10) NOT NULL,
|
||||
`TipoFactura` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`CodigoCuentaFactura` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`CifDni` varchar(13) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`Nombre` varchar(35) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`CodigoRetencion` smallint(6) NOT NULL,
|
||||
`BaseRetencion` decimal(28,10) NOT NULL,
|
||||
`PorRetencion` decimal(28,10) NOT NULL,
|
||||
`ImporteRetencion` decimal(28,10) NOT NULL,
|
||||
`AbonoIva` smallint(6) NOT NULL,
|
||||
`CodigoActividadF` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`Intracomunitaria` smallint(6) NOT NULL,
|
||||
`CodigoTerritorio` smallint(6) NOT NULL,
|
||||
`SiglaNacion` varchar(2) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`RetencionInformativa` smallint(6) NOT NULL,
|
||||
`EjercicioFacturaOriginal` smallint(6) NOT NULL,
|
||||
`SerieFacturaOriginal` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`NumeroFacturaOriginal` int(11) NOT NULL,
|
||||
`EjercicioFactura` smallint(6) NOT NULL,
|
||||
`CobroPagoRetencion` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`FechaOperacion` datetime NOT NULL,
|
||||
`Exclusion347` smallint(6) NOT NULL,
|
||||
`MovIdentificadorIME` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`Previsiones` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`MantenerAsiento` tinyint(4) NOT NULL,
|
||||
`OrdenMovIME` smallint(6) NOT NULL,
|
||||
`Metalico347` smallint(6) NOT NULL,
|
||||
`ClaveOperacionFactura_` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`SerieAgrupacion_` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`NumeroFacturaInicial_` int(11) NOT NULL,
|
||||
`NumeroFacturaFinal_` int(11) NOT NULL,
|
||||
`IdAsientoExterno` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`IdDiarioExterno` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`IdFacturaExterno` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`IdMovimiento` varchar(40) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`IdCuadre` smallint(6) NOT NULL,
|
||||
`FechaCuadre` datetime NOT NULL,
|
||||
`TipoCuadre` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`AgrupacionCuadre` int(11) NOT NULL,
|
||||
`StatusSaldo` smallint(6) NOT NULL,
|
||||
`StatusConciliacion` smallint(6) NOT NULL,
|
||||
`CodigoConciliacion` int(11) NOT NULL,
|
||||
`FechaConciliacion` datetime NOT NULL,
|
||||
`TipoConciliacion` smallint(6) NOT NULL,
|
||||
`IndicadorContaBanco` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`Descripcion3` varchar(40) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`Descripcion4` varchar(40) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`Descripcion5` varchar(40) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`Descripcion6` varchar(40) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`Descripcion7` varchar(40) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`Descripcion8` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`Descripcion9` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`Descripcion2` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`Descripcion1` varchar(250) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`Punteo1` smallint(6) NOT NULL,
|
||||
`Punteo9` smallint(6) NOT NULL,
|
||||
`Punteo8` smallint(6) NOT NULL,
|
||||
`Punteo7` smallint(6) NOT NULL,
|
||||
`Punteo6` smallint(6) NOT NULL,
|
||||
`Punteo5` smallint(6) NOT NULL,
|
||||
`Punteo4` smallint(6) NOT NULL,
|
||||
`Punteo3` smallint(6) NOT NULL,
|
||||
`Punteo2` smallint(6) NOT NULL,
|
||||
`CodigoIva1` smallint(6) NOT NULL,
|
||||
`CodigoIva2` smallint(6) NOT NULL,
|
||||
`CodigoIva3` smallint(6) NOT NULL,
|
||||
`CodigoIva4` smallint(6) NOT NULL,
|
||||
`CriterioIva` tinyint(4) NOT NULL,
|
||||
`FechaMaxVencimiento` datetime NOT NULL,
|
||||
`TipoCriterioCaja` tinyint(4) NOT NULL,
|
||||
`MovFacturaOrigenIME` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`IdFacturaExternoFinal` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`IdFacturaExternoInicial` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`IdFacturaExternoOriginal` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`NumFacturasExternoAgrupacion` int(11) NOT NULL,
|
||||
`CodigoMedioCobro` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`MedioCobro` varchar(31) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`IvaDeducible1` smallint(6) NOT NULL DEFAULT '1',
|
||||
`IvaDeducible2` smallint(6) NOT NULL DEFAULT '1',
|
||||
`IvaDeducible3` smallint(6) NOT NULL DEFAULT '1',
|
||||
`IvaDeducible4` smallint(6) NOT NULL DEFAULT '1',
|
||||
`TipoRectificativa` smallint(6) NOT NULL,
|
||||
`FechaFacturaOriginal` datetime NOT NULL,
|
||||
`BaseImponibleOriginal` decimal(28,10) NOT NULL,
|
||||
`CuotaIvaOriginal` decimal(28,10) NOT NULL,
|
||||
`ClaseAbonoRectificativas` smallint(6) NOT NULL,
|
||||
`RecargoEquivalenciaOriginal` decimal(28,10) NOT NULL,
|
||||
`ObjetoFactura` varchar(500) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`enlazadoSage` tinyint(1) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`OrdenMovimientos`,`LibreN1`),
|
||||
KEY `ix_movconta` (`enlazadoSage`),
|
||||
KEY `ix_movconta2` (`IdProcesoIME`),
|
||||
KEY `CodigoCuenta` (`CodigoCuenta`),
|
||||
KEY `movConta_Asiento` (`Asiento`)
|
||||
) ENGINE=InnoDBDEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
|
||||
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
|
||||
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
|
||||
/*!50003 SET character_set_client = utf8mb4 */ ;
|
||||
/*!50003 SET character_set_results = utf8mb4 */ ;
|
||||
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
|
||||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER `sage`.`movConta_BEFORE_UPDATE` BEFORE UPDATE ON `movConta` FOR EACH ROW
|
||||
BEGIN
|
||||
IF NEW.enlazadoSage = TRUE THEN
|
||||
UPDATE vn.XDiario SET enlazadoSage = TRUE WHERE ASIEN = NEW.Asiento;
|
||||
END IF;
|
||||
END */;;
|
||||
DELIMITER ;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
||||
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
||||
/*!50003 SET character_set_results = @saved_cs_results */ ;
|
||||
/*!50003 SET collation_connection = @saved_col_connection */ ;
|
||||
|
||||
--
|
||||
-- Table structure for table `movContaCopia`
|
||||
--
|
||||
|
@ -23803,7 +23609,7 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`z-developer`@`%` FUNCTION `midnight`() RETURNS datetime
|
||||
CREATE DEFINER=`root`@`%` FUNCTION `midnight`() RETURNS datetime
|
||||
READS SQL DATA
|
||||
BEGIN
|
||||
|
||||
|
@ -36193,7 +35999,7 @@ CREATE TABLE `specie` (
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50017 DEFINER=`z-developer`@`%`*/ /*!50003 TRIGGER `vn`.`specie_BEFORE_INSERT` BEFORE INSERT ON `specie` FOR EACH ROW
|
||||
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER `vn`.`specie_BEFORE_INSERT` BEFORE INSERT ON `specie` FOR EACH ROW
|
||||
BEGIN
|
||||
SET NEW.name = LCASE(NEW.name);
|
||||
END */;;
|
||||
|
@ -36211,7 +36017,7 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50017 DEFINER=`z-developer`@`%`*/ /*!50003 TRIGGER `vn`.`specie_BEFORE_UPDATE` BEFORE UPDATE ON `specie` FOR EACH ROW
|
||||
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER `vn`.`specie_BEFORE_UPDATE` BEFORE UPDATE ON `specie` FOR EACH ROW
|
||||
BEGIN
|
||||
SET NEW.name = LCASE(NEW.name);
|
||||
END */;;
|
||||
|
@ -37060,7 +36866,7 @@ CREATE TABLE `ticketCollection` (
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50017 DEFINER=`z-developer`@`%`*/ /*!50003 TRIGGER ticketCollection_AFTER_DELETE
|
||||
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER ticketCollection_AFTER_DELETE
|
||||
AFTER DELETE
|
||||
ON ticketCollection FOR EACH ROW
|
||||
BEGIN
|
||||
|
@ -41228,7 +41034,7 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`z-developer`@`%` FUNCTION `ekt_getEntry`(vEktFk INT) RETURNS int(11)
|
||||
CREATE DEFINER=`root`@`%` FUNCTION `ekt_getEntry`(vEktFk INT) RETURNS int(11)
|
||||
READS SQL DATA
|
||||
BEGIN
|
||||
DECLARE vTravelFk INT;
|
||||
|
@ -44862,7 +44668,7 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`z-developer`@`%` PROCEDURE `agencyVolume`(vDated DATE, vAgency INT)
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `agencyVolume`(vDated DATE, vAgency INT)
|
||||
BEGIN
|
||||
|
||||
SELECT ELT(it.temperature + 1,'Calientes','Frios','Secos') AS Temp,
|
||||
|
@ -47985,7 +47791,7 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`z-developer`@`%` PROCEDURE `client_RandomList`(vNumber INT)
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `client_RandomList`(vNumber INT)
|
||||
BEGIN
|
||||
|
||||
DECLARE i INT DEFAULT 0;
|
||||
|
@ -51982,7 +51788,7 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`z-developer`@`%` PROCEDURE `ediTables_Update`()
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `ediTables_Update`()
|
||||
BEGIN
|
||||
|
||||
INSERT IGNORE INTO vn.genus(name)
|
||||
|
@ -52659,7 +52465,7 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`z-developer`@`%` PROCEDURE `entryVolume`(vEntryFk INT)
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `entryVolume`(vEntryFk INT)
|
||||
BEGIN
|
||||
|
||||
SELECT ELT(it.temperature + 1,'Calientes','Frios','Secos') AS Temp,
|
||||
|
@ -60994,7 +60800,7 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`z-developer`@`%` PROCEDURE `lungSize_generator`(vDate DATE)
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `lungSize_generator`(vDate DATE)
|
||||
BEGIN
|
||||
|
||||
SET @buildingOrder := 0;
|
||||
|
@ -62457,7 +62263,7 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`z-developer`@`%` PROCEDURE `prepareClientList`()
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `prepareClientList`()
|
||||
BEGIN
|
||||
|
||||
/*
|
||||
|
@ -62486,7 +62292,7 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`z-developer`@`%` PROCEDURE `prepareTicketList`(vStartingDate DATETIME, vEndingDate DATETIME)
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `prepareTicketList`(vStartingDate DATETIME, vEndingDate DATETIME)
|
||||
BEGIN
|
||||
|
||||
DROP TEMPORARY TABLE IF EXISTS tmp.productionTicket;
|
||||
|
@ -62522,7 +62328,7 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`z-developer`@`%` PROCEDURE `previousPreparationSticker_get`(vTicketFk INT)
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `previousPreparationSticker_get`(vTicketFk INT)
|
||||
BEGIN
|
||||
|
||||
SELECT t.id ticketFk,
|
||||
|
@ -64014,7 +63820,7 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`z-developer`@`%` PROCEDURE `routeInfo`(vRouteFk INT)
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `routeInfo`(vRouteFk INT)
|
||||
BEGIN
|
||||
|
||||
DECLARE vPackages INT;
|
||||
|
@ -69312,7 +69118,7 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`z-developer`@`%` PROCEDURE `ticketManaToPromo`(vTicketFk INT)
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `ticketManaToPromo`(vTicketFk INT)
|
||||
BEGIN
|
||||
|
||||
DECLARE vManaComponent INT;
|
||||
|
@ -72979,7 +72785,7 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`z-developer`@`%` PROCEDURE `travelVolume`(vTravelFk INT)
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `travelVolume`(vTravelFk INT)
|
||||
BEGIN
|
||||
|
||||
SELECT w1.name AS ORI,
|
||||
|
@ -81528,7 +81334,7 @@ USE `vn`;
|
|||
/*!50001 SET character_set_results = utf8 */;
|
||||
/*!50001 SET collation_connection = utf8_general_ci */;
|
||||
/*!50001 CREATE ALGORITHM=UNDEFINED */
|
||||
/*!50013 DEFINER=`z-developer`@`%` SQL SECURITY DEFINER */
|
||||
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
|
||||
/*!50001 VIEW `itemShelvingStock` AS select `ish`.`itemFk` AS `itemFk`,sum(`ish`.`visible`) AS `visible`,min(`ish`.`packing`) AS `packing`,min(`ish`.`grouping`) AS `grouping`,`s`.`description` AS `sector`,sum(`ish`.`visible`) AS `visibleOriginal`,sum(`issr`.`removed`) AS `removed`,`p`.`sectorFk` AS `sectorFk`,`s`.`warehouseFk` AS `warehouseFk`,`ish`.`shelvingFk` AS `shelvingFk`,`p`.`code` AS `parkingCode`,`sh`.`parkingFk` AS `parkingFk`,`ish`.`id` AS `itemShelvingFk`,`ish`.`created` AS `created` from ((((`itemShelving` `ish` left join `shelving` `sh` on((`sh`.`code` = `ish`.`shelvingFk`))) left join `parking` `p` on((`p`.`id` = `sh`.`parkingFk`))) left join `sector` `s` on((`s`.`id` = `p`.`sectorFk`))) left join `itemShelvingStockRemoved` `issr` on((`issr`.`itemShelvingFk` = `ish`.`id`))) where ((`ish`.`visible` <> 0) and `p`.`sectorFk`) group by `ish`.`itemFk`,`p`.`sectorFk` */;
|
||||
/*!50001 SET character_set_client = @saved_cs_client */;
|
||||
/*!50001 SET character_set_results = @saved_cs_results */;
|
||||
|
@ -81585,7 +81391,7 @@ USE `vn`;
|
|||
/*!50001 SET character_set_results = utf8 */;
|
||||
/*!50001 SET collation_connection = utf8_general_ci */;
|
||||
/*!50001 CREATE ALGORITHM=UNDEFINED */
|
||||
/*!50013 DEFINER=`z-developer`@`%` SQL SECURITY DEFINER */
|
||||
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
|
||||
/*!50001 VIEW `itemShelvingStock_byWarehouse` AS select `ish`.`itemFk` AS `itemFk`,sum(`ish`.`visible`) AS `visible`,`s`.`warehouseFk` AS `warehouseFk` from (((`itemShelving` `ish` join `shelving` `sh` on((`sh`.`code` = `ish`.`shelvingFk`))) join `parking` `p` on((`p`.`id` = `sh`.`parkingFk`))) join `sector` `s` on((`s`.`id` = `p`.`sectorFk`))) group by `ish`.`itemFk`,`s`.`warehouseFk` */;
|
||||
/*!50001 SET character_set_client = @saved_cs_client */;
|
||||
/*!50001 SET character_set_results = @saved_cs_results */;
|
||||
|
@ -82060,7 +81866,7 @@ USE `vn`;
|
|||
/*!50001 SET character_set_results = utf8mb4 */;
|
||||
/*!50001 SET collation_connection = utf8mb4_general_ci */;
|
||||
/*!50001 CREATE ALGORITHM=UNDEFINED */
|
||||
/*!50013 DEFINER=`z-developer`@`%` SQL SECURITY DEFINER */
|
||||
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
|
||||
/*!50001 VIEW `saleMistake_list__` AS select `st`.`saleFk` AS `saleFk`,concat(`w2`.`firstName`,' ',`w2`.`lastName`) AS `sacador`,`st`.`created` AS `created`,concat(`w`.`firstName`,' ',`w`.`lastName`) AS `revisador`,`mt`.`description` AS `description`,`sm`.`created` AS `controlled` from (((((`vn`.`saleTracking` `st` join `vn`.`worker` `w2` on((`w2`.`id` = `st`.`workerFk`))) join `vncontrol`.`accion` `a` on(((`a`.`accion_id` = `st`.`actionFk`) and (`a`.`accion` = 'SACAR')))) left join `vn`.`saleMistake` `sm` on((`st`.`saleFk` = `sm`.`saleFk`))) left join `vn`.`mistakeType` `mt` on((`mt`.`id` = `sm`.`typeFk`))) left join `vn`.`worker` `w` on((`w`.`id` = `sm`.`userFk`))) where (`st`.`created` > '2020-10-01') */;
|
||||
/*!50001 SET character_set_client = @saved_cs_client */;
|
||||
/*!50001 SET character_set_results = @saved_cs_results */;
|
||||
|
@ -82117,7 +81923,7 @@ USE `vn`;
|
|||
/*!50001 SET character_set_results = utf8 */;
|
||||
/*!50001 SET collation_connection = utf8_general_ci */;
|
||||
/*!50001 CREATE ALGORITHM=UNDEFINED */
|
||||
/*!50013 DEFINER=`z-developer`@`%` SQL SECURITY DEFINER */
|
||||
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
|
||||
/*!50001 VIEW `saleVolume` AS select `s`.`ticketFk` AS `ticketFk`,`s`.`id` AS `saleFk`,round(((`ic`.`cm3delivery` * `s`.`quantity`) / 1000),0) AS `litros`,`t`.`routeFk` AS `routeFk`,`t`.`shipped` AS `shipped`,`t`.`landed` AS `landed`,((`s`.`quantity` * `ic`.`cm3delivery`) / 1000000) AS `volume`,((`s`.`quantity` * `ic`.`grams`) / 1000) AS `physicalWeight`,(((`s`.`quantity` * `ic`.`cm3delivery`) * greatest(`i`.`density`,167)) / 1000000) AS `weight`,((`s`.`quantity` * `ic`.`cm3delivery`) / 1000000) AS `physicalVolume`,(((`s`.`quantity` * `ic`.`cm3delivery`) * ifnull(`t`.`zonePrice`,`z`.`price`)) / `cb`.`volume`) AS `freight`,`t`.`zoneFk` AS `zoneFk`,`t`.`clientFk` AS `clientFk`,`s`.`isPicked` AS `isPicked` from (((((`sale` `s` join `item` `i` on((`i`.`id` = `s`.`itemFk`))) join `ticket` `t` on((`t`.`id` = `s`.`ticketFk`))) join `zone` `z` on((`z`.`id` = `t`.`zoneFk`))) join `packaging` `cb` on((`cb`.`id` = '94'))) join `itemCost` `ic` on(((`ic`.`itemFk` = `s`.`itemFk`) and (`ic`.`warehouseFk` = `t`.`warehouseFk`)))) where (`s`.`quantity` > 0) */;
|
||||
/*!50001 SET character_set_client = @saved_cs_client */;
|
||||
/*!50001 SET character_set_results = @saved_cs_results */;
|
||||
|
@ -82136,7 +81942,7 @@ USE `vn`;
|
|||
/*!50001 SET character_set_results = utf8 */;
|
||||
/*!50001 SET collation_connection = utf8_general_ci */;
|
||||
/*!50001 CREATE ALGORITHM=UNDEFINED */
|
||||
/*!50013 DEFINER=`z-developer`@`%` SQL SECURITY DEFINER */
|
||||
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
|
||||
/*!50001 VIEW `saleVolume_Today_VNH` AS select `t`.`nickname` AS `Cliente`,`p`.`name` AS `Provincia`,`c`.`country` AS `Pais`,cast(sum(`sv`.`volume`) as decimal(5,1)) AS `volume` from (((((`saleVolume` `sv` join `ticket` `t` on((`t`.`id` = `sv`.`ticketFk`))) join `address` `a` on((`a`.`id` = `t`.`addressFk`))) join `province` `p` on((`p`.`id` = `a`.`provinceFk`))) join `country` `c` on((`c`.`id` = `p`.`countryFk`))) join `warehouse` `w` on((`w`.`id` = `t`.`warehouseFk`))) where ((`w`.`name` = 'VNH') and (`t`.`shipped` between curdate() and `util`.`dayend`(curdate()))) group by `t`.`nickname`,`p`.`name` */;
|
||||
/*!50001 SET character_set_client = @saved_cs_client */;
|
||||
/*!50001 SET character_set_results = @saved_cs_results */;
|
||||
|
@ -82288,7 +82094,7 @@ USE `vn`;
|
|||
/*!50001 SET character_set_results = utf8mb4 */;
|
||||
/*!50001 SET collation_connection = utf8mb4_general_ci */;
|
||||
/*!50001 CREATE ALGORITHM=UNDEFINED */
|
||||
/*!50013 DEFINER=`z-developer`@`%` SQL SECURITY DEFINER */
|
||||
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
|
||||
/*!50001 VIEW `ticketLastUpdated` AS select `ticketLastUpdatedList`.`ticketFk` AS `ticketFk`,max(`ticketLastUpdatedList`.`created`) AS `lastUpdated` from `vn`.`ticketLastUpdatedList` group by `ticketLastUpdatedList`.`ticketFk` */;
|
||||
/*!50001 SET character_set_client = @saved_cs_client */;
|
||||
/*!50001 SET character_set_results = @saved_cs_results */;
|
||||
|
@ -82307,7 +82113,7 @@ USE `vn`;
|
|||
/*!50001 SET character_set_results = utf8mb4 */;
|
||||
/*!50001 SET collation_connection = utf8mb4_general_ci */;
|
||||
/*!50001 CREATE ALGORITHM=UNDEFINED */
|
||||
/*!50013 DEFINER=`z-developer`@`%` SQL SECURITY DEFINER */
|
||||
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
|
||||
/*!50001 VIEW `ticketLastUpdatedList` AS select `s`.`ticketFk` AS `ticketFk`,`st`.`created` AS `created` from (`vn`.`saleTracking` `st` join `vn`.`sale` `s` on((`s`.`id` = `st`.`saleFk`))) where (`st`.`created` > curdate()) union all select `i`.`Id_Ticket` AS `Id_Ticket`,`i`.`odbc_date` AS `odbc_date` from `vncontrol`.`inter` `i` where (`i`.`odbc_date` > curdate()) union all select `s`.`ticketFk` AS `ticketFk`,`iss`.`created` AS `created` from (`vn`.`itemShelvingSale` `iss` join `vn`.`sale` `s` on((`s`.`id` = `iss`.`saleFk`))) where (`iss`.`created` > curdate()) */;
|
||||
/*!50001 SET character_set_client = @saved_cs_client */;
|
||||
/*!50001 SET character_set_results = @saved_cs_results */;
|
||||
|
@ -82746,4 +82552,4 @@ USE `vncontrol`;
|
|||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2021-03-30 11:10:26
|
||||
-- Dump completed on 2021-03-30 12:16:04
|
||||
|
|
|
@ -86,6 +86,8 @@ IGNORETABLES=(
|
|||
--ignore-table=vn.warehouseJoined
|
||||
--ignore-table=vn.workerTeam__
|
||||
--ignore-table=vn.XDiario__
|
||||
--ignore-table=sage.movConta
|
||||
--ignore-table=sage.movContaCopia
|
||||
)
|
||||
mysqldump \
|
||||
--defaults-file=config.production.ini \
|
||||
|
|
Loading…
Reference in New Issue