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

DROP TABLE IF EXISTS `maescialpro`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `maescialpro` (
  `soporte` char(2) NOT NULL DEFAULT '' COMMENT 'Tipo doc.',
  `id_maescialpro` int(11) NOT NULL DEFAULT '0' COMMENT 'Id Estado',
  `nombre` text NOT NULL COMMENT 'Descripción',
  `nombre_label` text NOT NULL COMMENT 'Descripción etiqueta',
  `class_label` char(3) NOT NULL DEFAULT 'inf' COMMENT 'Clase etiqueta',
  `ps_unremovable` char(1) NOT NULL DEFAULT '0' COMMENT 'PS no borrable',
  `ps_deleted` char(1) NOT NULL DEFAULT '0' COMMENT 'PS borrado',
  `ps_logable` char(1) NOT NULL DEFAULT '0' COMMENT 'PS pedido validado',
  `ps_shipped` char(1) NOT NULL DEFAULT '0' COMMENT 'PS pedido enviado',
  `ps_hidden` char(1) NOT NULL DEFAULT '0' COMMENT 'PS oculto a cliente',
  `ps_delivery` char(1) NOT NULL DEFAULT '0' COMMENT 'PS PDF albarán',
  `ps_invoice` char(1) NOT NULL DEFAULT '0' COMMENT 'PS PDF factura',
  `ps_paid` char(1) NOT NULL DEFAULT '0' COMMENT 'PS pago',
  `ps_color` char(250) NOT NULL DEFAULT '' COMMENT 'PS color',
  `ps_module_name` char(250) NOT NULL DEFAULT '' COMMENT 'PS nombre módulo',
  `ps_send_email` char(1) NOT NULL DEFAULT '0' COMMENT 'PS enviar email',
  `ps_template` char(250) NOT NULL DEFAULT '' COMMENT 'PS plantilla email',
  `sw_ps_traspasa` char(1) NOT NULL DEFAULT 'S' COMMENT 'Descargar pedido P-Q',
  `cod_motivo_cancela` char(3) NOT NULL DEFAULT '' COMMENT 'Pedido detenido por',
  `sw_ps_albaran` char(1) NOT NULL DEFAULT 'N' COMMENT 'Crear/Borrar albarán P-Q',
  `sw_ps_factura` char(1) NOT NULL DEFAULT 'N' COMMENT 'Crear/Borrar factura P-Q',
  `sw_ps_cobro` char(1) NOT NULL DEFAULT 'N' COMMENT 'Crear/Borrar cobro P-Q',
  `cod_fpago` char(2) NOT NULL DEFAULT '' COMMENT 'Forma de pago',
  `cod_cuenta_paco` char(12) NOT NULL DEFAULT '' COMMENT 'Banco/Caja cobro',
  `sw_qu_evento` char(3) NOT NULL DEFAULT 'N' COMMENT 'Registrar evento Quartup',
  `nota` text NOT NULL COMMENT 'Notas',
  `sw_clean_maescialmoc` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Quitar detención a pedido',
  `sw_when_maescialmoc` tinyint(4) NOT NULL DEFAULT '2' COMMENT 'Cuando asignar detención',
  `id_tenant` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Nº empresa',
  `filter_no_clean_moc` text NOT NULL COMMENT 'Motivos detención excluir de quitar detención',
  `sw_ps_cancelado` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Estado tienda cancelado',
  `sql_sw_cialdoco` text NOT NULL COMMENT 'Exp.sql a decidir si se usa el proceso (alias cialdoco)<br>(debe devolver: 0-no, 1-sí entrega parcial,<br>2-sí entrega total, 3-sí entrega cualquiera)',
  `cod_pago` char(4) NOT NULL DEFAULT '' COMMENT 'Condiciones de pago',
  UNIQUE KEY `key0` (`id_tenant`,`soporte`,`id_maescialpro`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

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

LOCK TABLES `maescialpro` WRITE;
/*!40000 ALTER TABLE `maescialpro` DISABLE KEYS */;
INSERT INTO `maescialpro` (`soporte`, `id_maescialpro`, `nombre`, `nombre_label`, `class_label`, `ps_unremovable`, `ps_deleted`, `ps_logable`, `ps_shipped`, `ps_hidden`, `ps_delivery`, `ps_invoice`, `ps_paid`, `ps_color`, `ps_module_name`, `ps_send_email`, `ps_template`, `sw_ps_traspasa`, `cod_motivo_cancela`, `sw_ps_albaran`, `sw_ps_factura`, `sw_ps_cobro`, `cod_fpago`, `cod_cuenta_paco`, `sw_qu_evento`, `nota`, `sw_clean_maescialmoc`, `sw_when_maescialmoc`, `id_tenant`, `filter_no_clean_moc`, `sw_ps_cancelado`, `sql_sw_cialdoco`, `cod_pago`) VALUES ('AV',1,'Documento confirmado','','inf','0','0','0','0','0','0','0','0','','','0','','S','','N','N','N','','','PRE','',0,2,1,'',0,'',''),('AV',2,'Albarán Entregado','','inf','0','0','0','0','0','0','0','0','','','0','','S','','N','N','N','','','ENT','',0,2,1,'',0,'',''),('FV',1,'Factura entregada','','inf','0','0','0','0','0','0','0','0','','','0','','S','','N','N','N','','','ENT','',0,2,1,'',0,'',''),('PV',1,'Pedido finalizado','Finalizado','inf','0','0','0','0','0','0','0','0','','','0','','S','','N','N','N','','','PRE','',0,2,1,'',0,'',''),('PV',2,'Pedido en reparto','En reparto','nor','0','0','0','0','0','0','0','0','','','0','','S','','N','N','N','','','ENV','',0,2,1,'',0,'',''),('PV',3,'Pedido entregado','Entregado','suc','0','0','0','0','0','0','0','0','','','0','','S','','N','N','N','','','ENT','',0,2,1,'',0,'','');
/*!40000 ALTER TABLE `maescialpro` 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:16
