-- MySQL dump 10.16  Distrib 10.1.48-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost    Database: SPYquartup1
-- ------------------------------------------------------
-- Server version	10.1.48-MariaDB-0+deb9u2

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `cialpacklin`
--

DROP TABLE IF EXISTS `cialpacklin`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cialpacklin` (
  `num_pkl` int(11) NOT NULL DEFAULT '0' COMMENT 'Nº Packing List',
  `num_emb` int(11) NOT NULL DEFAULT '0' COMMENT 'Línea Embalaje',
  `sublinea` int(11) NOT NULL DEFAULT '0' COMMENT 'Sublínea',
  `canal` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Canal',
  `soporte` char(2) NOT NULL DEFAULT 'AV' COMMENT 'Tipo',
  `id_cocabe` bigint(20) NOT NULL DEFAULT '0' COMMENT 'Dcto. orígen',
  `id_coline` bigint(20) NOT NULL DEFAULT '0' COMMENT 'Línea Alb',
  `cantidad` decimal(18,9) NOT NULL DEFAULT '0.000000000' COMMENT 'Cantidad',
  `num_bulto_d` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Nº bulto desde',
  `num_bulto_h` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Nº bulto hasta',
  `peso_neto` decimal(10,4) NOT NULL DEFAULT '0.0000' COMMENT 'Peso neto',
  `peso` decimal(10,4) NOT NULL DEFAULT '0.0000' COMMENT 'Peso bruto',
  `largo` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT 'Largo (cm)',
  `alto` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT 'Alto (cm)',
  `ancho` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT 'Ancho (cm)',
  `volumen` decimal(10,4) NOT NULL DEFAULT '0.0000' COMMENT 'Volumen (m3)',
  `id_cialpacklin` int(11) NOT NULL DEFAULT '0' COMMENT 'Id Línea',
  `id_tenant` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Nº empresa',
  UNIQUE KEY `key0` (`id_tenant`,`id_cialpacklin`),
  UNIQUE KEY `key1` (`id_tenant`,`num_pkl`,`num_emb`,`sublinea`),
  KEY `key2` (`id_tenant`,`id_cocabe`),
  KEY `key3` (`id_tenant`,`id_coline`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `cialpacklin`
--
-- WHERE:  id_tenant='1'

LOCK TABLES `cialpacklin` WRITE;
/*!40000 ALTER TABLE `cialpacklin` DISABLE KEYS */;
INSERT INTO `cialpacklin` (`num_pkl`, `num_emb`, `sublinea`, `canal`, `soporte`, `id_cocabe`, `id_coline`, `cantidad`, `num_bulto_d`, `num_bulto_h`, `peso_neto`, `peso`, `largo`, `alto`, `ancho`, `volumen`, `id_cialpacklin`, `id_tenant`) VALUES (1,1,1,1,'FV',3120160040000015,31660040001501100,1.000000000,0,0,0.0000,15.0000,220.00,20.00,20.00,0.0000,4,1),(3,1,1,1,'AV',658889374344584366,186571859873709357,48.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,5,1),(4,2,1,1,'AV',897518492291066102,525647697201031354,100.000000000,0,0,0.0000,800.0000,300.00,105.00,90.00,2.8350,6,1),(5,101,1,1,'AV',454599805630640816,594919328596333475,10.000000000,0,0,0.0000,450.0000,560.00,78.00,125.00,5.4600,7,1),(5,102,1,1,'AV',454599805630640816,580261485904486896,5.000000000,0,0,0.0000,450.0000,560.00,78.00,125.00,5.4600,8,1),(5,201,1,1,'AV',454599805630640816,290933400128713025,5.000000000,0,0,0.0000,300.0000,560.00,78.00,125.00,5.4600,9,1),(5,202,1,1,'AV',454599805630640816,767548497248334975,5.000000000,0,0,0.0000,300.0000,560.00,78.00,25.00,1.0920,10,1),(5,203,1,1,'AV',454599805630640816,858762357942117723,5.000000000,0,0,0.0000,300.0000,560.00,78.00,125.00,5.4600,11,1),(5,301,1,1,'AV',454599805630640816,377020782403792381,5.000000000,0,0,0.0000,300.0000,450.00,78.00,125.00,4.3875,12,1),(5,302,1,1,'AV',454599805630640816,924711816981729363,5.000000000,0,0,0.0000,300.0000,450.00,78.00,25.00,0.8775,13,1),(5,303,1,1,'AV',454599805630640816,544965642117269742,5.000000000,0,0,0.0000,300.0000,450.00,78.00,125.00,4.3875,14,1),(6,1,1,1,'AV',341554591354552748,356205538879069417,6.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,15,1),(6,1,2,1,'AV',341554591354552748,865747111897888161,6.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,16,1),(6,1,3,1,'AV',341554591354552748,981558673219269201,5.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,17,1),(6,1,4,1,'AV',341554591354552748,195976689454793533,1.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,18,1),(6,1,5,1,'AV',341554591354552748,417767938122694825,1.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,19,1),(6,1,6,1,'AV',341554591354552748,479309969327830112,40.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,20,1),(6,1,7,1,'AV',341554591354552748,953231844520563313,5.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,21,1),(6,1,8,1,'AV',341554591354552748,959917839952533788,2.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,22,1),(6,1,9,1,'AV',341554591354552748,605618315775431618,2.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,23,1),(7,1,1,1,'AV',947856771933825245,349658789684417073,2.000000000,1,1,220.0000,230.0000,5900.00,60.00,50.00,17.7000,24,1),(7,1,2,1,'AV',947856771933825245,856302463773737995,2.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,25,1),(8,1,1,1,'AV',870777527497791553,198380210663202261,2.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,26,1),(8,1,2,1,'AV',870777527497791553,531523550493972176,3.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,27,1),(8,1,3,1,'AV',870777527497791553,963894146378618734,3.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,28,1),(8,1,4,1,'AV',870777527497791553,737411002205284291,3.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,29,1),(8,1,5,1,'AV',870777527497791553,507572417526966731,3.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,30,1),(10,1,1,1,'AV',946019204160288526,595130766444935591,0.300000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,31,1),(10,1,2,1,'AV',946019204160288526,127739133833027930,1.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,32,1),(10,1,3,1,'AV',946019204160288526,950990765628113113,1.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,33,1),(10,1,4,1,'AV',946019204160288526,138137148611401018,0.500000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,34,1),(10,1,5,1,'AV',946019204160288526,844741211540102326,0.220000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,35,1),(10,1,6,1,'AV',946019204160288526,111489135704313223,1.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,36,1),(10,1,7,1,'AV',946019204160288526,307623204933435306,0.500000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,37,1),(10,1,8,1,'AV',946019204160288526,199784338848546967,1.000000000,0,0,0.0000,0.0000,0.00,0.00,0.00,0.0000,38,1);
/*!40000 ALTER TABLE `cialpacklin` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2025-10-30  8:40:59
