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

DROP TABLE IF EXISTS `promoper`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `promoper` (
  `cod_operacion` char(5) NOT NULL DEFAULT '' COMMENT 'Operación',
  `nombre` text NOT NULL COMMENT 'Nombre',
  `cod_gfh` char(6) NOT NULL DEFAULT '' COMMENT 'Recurso habitual',
  `sw_prepara` char(1) NOT NULL DEFAULT 'N' COMMENT 'Preparación',
  `sw_cargas` char(1) NOT NULL DEFAULT 'S' COMMENT 'Admite cargas Recursos',
  `sw_almacen` char(1) NOT NULL DEFAULT 'S' COMMENT 'Admite movs. almacén',
  `sw_exterior` char(1) NOT NULL DEFAULT 'S' COMMENT 'Admite trab. externos',
  `observaciones` text NOT NULL COMMENT 'Observaciones',
  `sw_sugerencia_compra` char(1) NOT NULL DEFAULT 'S' COMMENT 'Admite sugerencias compras',
  `dias_fecha_fin` int(11) NOT NULL DEFAULT '0' COMMENT 'Días a fecha fin',
  `texto_label` text NOT NULL COMMENT 'Texto label',
  `color_label` char(6) NOT NULL DEFAULT '' COMMENT 'Color label',
  `id_tenant` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Nº empresa',
  `porcentaje_label` text NOT NULL COMMENT 'Etiqueta progreso (B2B)',
  `tpc_exceso_movi_max` decimal(5,2) NOT NULL DEFAULT '-1.00' COMMENT '% exceso máx. movs. fabric. (-1=desactivado)',
  UNIQUE KEY `key0` (`id_tenant`,`cod_operacion`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

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

LOCK TABLES `promoper` WRITE;
/*!40000 ALTER TABLE `promoper` DISABLE KEYS */;
INSERT INTO `promoper` (`cod_operacion`, `nombre`, `cod_gfh`, `sw_prepara`, `sw_cargas`, `sw_almacen`, `sw_exterior`, `observaciones`, `sw_sugerencia_compra`, `dias_fecha_fin`, `texto_label`, `color_label`, `id_tenant`, `porcentaje_label`, `tpc_exceso_movi_max`) VALUES ('ACC','Accesorios','','N','S','S','S','','S',0,'Accesorios','5f0fff',1,'Fabricado: 100',-1.00),('BAM','Bambalina','CON','N','N','N','N','','N',0,'Bambalina','c77dff',1,'Fabricado: 25',-1.00),('COA','Corte Aluminio','10','N','N','N','N','','N',0,'Corte Aluminio','c77dff',1,'Fabricado: 50',-1.00),('COH','Corte Hierro','10','N','N','N','N','','N',0,'Corte Hierro','c77dff',1,'Fabricado: 50',-1.00),('COR','Corte Lona','COR','N','S','S','S','','S',3,'Corte Lona','c77dff',1,'Fabricado: 25',-1.00),('ENV','Envisado','9','N','N','N','N','','N',0,'Envisado','c77dff',1,'Fabricado: 75',-1.00),('MAC','Macarrón','CON','N','N','N','N','','N',0,'Macarrón','8636ff',1,'Fabricado: 50',-1.00),('MCC','Macarrón','CON','N','N','N','N','','N',0,'Macarrón','8636ff',1,'Fabricado: 100',-1.00),('MED','Medida','CON','N','N','N','N','','N',0,'Medida','c77dff',1,'Fabricado: 25',-1.00),('UNI','Unión','','N','N','N','N','','N',0,'Unión','ffa8d4',1,'Fabricado: 25',-1.00);
/*!40000 ALTER TABLE `promoper` 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:41:57
