-- 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 `almaunem`
--

DROP TABLE IF EXISTS `almaunem`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `almaunem` (
  `cod_und_emb` char(3) NOT NULL DEFAULT '' COMMENT 'Unidad Embalaje',
  `nombre` text NOT NULL COMMENT 'Nombre',
  `siglas` char(10) NOT NULL DEFAULT '' COMMENT 'Siglas',
  `ean` char(13) NOT NULL DEFAULT '' COMMENT 'Código Ean',
  `cambio` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Unis stock 1 embalj',
  `tara` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Tara',
  `cod_unidad_tara` char(5) NOT NULL DEFAULT 'g' COMMENT 'Unidad tara',
  `alto` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Alto',
  `cod_unidad_alto` char(5) NOT NULL DEFAULT 'cm' COMMENT 'Unidad alto',
  `largo` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Largo',
  `cod_unidad_largo` char(5) NOT NULL DEFAULT 'cm' COMMENT 'Unidad largo',
  `ancho` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Ancho',
  `cod_unidad_ancho` char(5) NOT NULL DEFAULT 'cm' COMMENT 'Unidad ancho',
  `unidad_min` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Capacidad unids mín.',
  `unidad_max` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Capacidad unids máx.',
  `peso_min` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Capacidad peso mín.',
  `peso_max` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Capacidad peso máx.',
  `cod_unidad_peso` char(5) NOT NULL DEFAULT 'g' COMMENT 'Unidad peso',
  `longitud_min` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Capacidad longitud mín.',
  `longitud_max` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Capacidad longitud máx.',
  `cod_unidad_long` char(5) NOT NULL DEFAULT 'cm' COMMENT 'Unidad longitud',
  `superficie_min` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Capacidad superficie mín.',
  `superficie_max` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Capacidad superficie máx.',
  `cod_unidad_supe` char(5) NOT NULL DEFAULT 'cm2' COMMENT 'Unidad superficie',
  `volumen_min` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Capacidad volumen mín.',
  `volumen_max` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Capacidad volumen máx.',
  `cod_unidad_volu` char(5) NOT NULL DEFAULT 'cm3' COMMENT 'Unidad volumen',
  `tipo_calculo` char(1) NOT NULL DEFAULT 'P' COMMENT 'Cálculo coste agencia',
  `formato` char(2) NOT NULL DEFAULT '' COMMENT 'Formato',
  `id_tenant` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Nº empresa',
  `sw_from_cantidad` tinyint(4) NOT NULL DEFAULT '2' COMMENT 'Al modificar cantidad calcular embalajes',
  `sw_from_cant_emb` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Al modificar embalajes calcular cantidad',
  `sw_from_cod_und_emb` tinyint(4) NOT NULL DEFAULT '2' COMMENT 'Al asignar este embalaje asignar factor-embalaje',
  `sw_from_cambio` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Al modificar factor-embalaje, calcular',
  `sw_selec_siempre` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Seleccionable siempre en movimientos',
  `fecha_cre` date NOT NULL DEFAULT '0000-00-00' COMMENT 'Fecha creación',
  UNIQUE KEY `key0` (`id_tenant`,`cod_und_emb`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

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

LOCK TABLES `almaunem` WRITE;
/*!40000 ALTER TABLE `almaunem` DISABLE KEYS */;
INSERT INTO `almaunem` (`cod_und_emb`, `nombre`, `siglas`, `ean`, `cambio`, `tara`, `cod_unidad_tara`, `alto`, `cod_unidad_alto`, `largo`, `cod_unidad_largo`, `ancho`, `cod_unidad_ancho`, `unidad_min`, `unidad_max`, `peso_min`, `peso_max`, `cod_unidad_peso`, `longitud_min`, `longitud_max`, `cod_unidad_long`, `superficie_min`, `superficie_max`, `cod_unidad_supe`, `volumen_min`, `volumen_max`, `cod_unidad_volu`, `tipo_calculo`, `formato`, `id_tenant`, `sw_from_cantidad`, `sw_from_cant_emb`, `sw_from_cod_und_emb`, `sw_from_cambio`, `sw_selec_siempre`, `fecha_cre`) VALUES ('1','1 Unidad','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('10','10 Unid/caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('100','100  unid/caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('101','Pallet de Bat','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('12','12 unid./caja','','',12.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('120','120 Unid/caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('125','125 unid/caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('15','15 unidades / caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('18','18 unid/caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('2','2 Unid/caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('20','20 Unid/caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('200','Bobina 200 m','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('25','25 Unidades/caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('26','26 Unid / caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'2025-07-29'),('3','3 Unid/caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('36','36 unid/caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('375','375 metros','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('4','4 unid/caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('40m','Bobina 40 m','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('5','5 Unid/caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('50','50 Unid/caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('500','500 unid/caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('54','54 Unidades','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('6','6 unid/caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('60','Bobina 60 m','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('7','7 unid/caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('8','8 Unid / caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('80','80 Unid / caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('90','90 Unid/caja','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('97','Bala de perfiles','BALA','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'2023-06-17'),('98','Bobina 100 m','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('99','Pallet completo','','',0.00000000,0.00000000,'g',87.00000000,'cm',12.00000000,'cm',80.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00'),('XXX','Metraje','','',0.00000000,0.00000000,'g',0.00000000,'cm',0.00000000,'cm',0.00000000,'cm',0.00000000,0.00000000,0.00000000,0.00000000,'g',0.00000000,0.00000000,'cm',0.00000000,0.00000000,'cm2',0.00000000,0.00000000,'cm3','P','',1,2,1,2,1,0,'0000-00-00');
/*!40000 ALTER TABLE `almaunem` 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:24
