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

DROP TABLE IF EXISTS `cialfacedoclin`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cialfacedoclin` (
  `id_cialfacedoc` int(11) NOT NULL DEFAULT '0' COMMENT 'Nº Factura-e',
  `linea_itm` int(11) NOT NULL DEFAULT '0' COMMENT 'Nº linea Factura-e',
  `id_coline` bigint(20) NOT NULL DEFAULT '0' COMMENT 'Nº lin. documento',
  `nombre` text NOT NULL COMMENT 'Descripción',
  `ud_venta` char(2) NOT NULL DEFAULT '01' COMMENT 'Unidad de Venta ',
  `dto_desc` text NOT NULL COMMENT 'Concepto descuento',
  `tax_type` char(2) NOT NULL DEFAULT '01' COMMENT 'Tipo Impuesto',
  `tax_exent_code` char(2) NOT NULL DEFAULT '01' COMMENT 'Motivo exención',
  `tax_exent_reason` text NOT NULL COMMENT 'Descripción motivo',
  `sw_delivery` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Detallar albaranes',
  `file_ref` char(20) NOT NULL DEFAULT '' COMMENT 'Referencia',
  `file_date` date NOT NULL DEFAULT '0000-00-00' COMMENT 'Fecha',
  `emi_con_ref` char(20) NOT NULL DEFAULT '' COMMENT 'Ref. contrato',
  `emi_con_date` date NOT NULL DEFAULT '0000-00-00' COMMENT 'Fec. contrato',
  `emi_trans_ref` char(20) NOT NULL DEFAULT '' COMMENT 'Ref. operación',
  `emi_trans_date` date NOT NULL DEFAULT '0000-00-00' COMMENT 'Fec. operación',
  `des_con_ref` char(20) NOT NULL DEFAULT '' COMMENT 'Ref. contrato',
  `des_con_date` date NOT NULL DEFAULT '0000-00-00' COMMENT 'Fec. contrato',
  `des_trans_ref` char(20) NOT NULL DEFAULT '' COMMENT 'Ref. operación',
  `des_trans_date` date NOT NULL DEFAULT '0000-00-00' COMMENT 'Fec. operación',
  `info` text NOT NULL COMMENT 'Información adicional',
  `id_tenant` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Nº empresa',
  UNIQUE KEY `key0` (`id_tenant`,`id_cialfacedoc`,`linea_itm`),
  UNIQUE KEY `key1` (`id_tenant`,`id_coline`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

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

LOCK TABLES `cialfacedoclin` WRITE;
/*!40000 ALTER TABLE `cialfacedoclin` DISABLE KEYS */;
INSERT INTO `cialfacedoclin` (`id_cialfacedoc`, `linea_itm`, `id_coline`, `nombre`, `ud_venta`, `dto_desc`, `tax_type`, `tax_exent_code`, `tax_exent_reason`, `sw_delivery`, `file_ref`, `file_date`, `emi_con_ref`, `emi_con_date`, `emi_trans_ref`, `emi_trans_date`, `des_con_ref`, `des_con_date`, `des_trans_ref`, `des_trans_date`, `info`, `id_tenant`) VALUES (1,1,681458673318935259,'\r\n\r\nPAGO ANTICIPADO DEL 50%\r\n\r\nSuministro e instalación de toldo corredero con ondas modelo\r\nCLIMA con perfiles de 120 x 120 aluminio lacado blanco.\r\nPara cubrir superficie de 11.8mt x 9.2mt de salida (Divido en 2\r\ncorrederros de linea 5.9mt con 3 guias correderas cada uno). Con\r\npoleas de desnivel.\r\nPortería frontal compartida con 3 puntales de altura 170cm y con\r\nbridas de sujección Accionamiento manual con cuerda,\r\nConfeccionados en lona acrilica color Sirocco.\r\n\r\n','01','Descuento comercial','01','01','',0,'','0000-00-00','','0000-00-00','','0000-00-00','','0000-00-00','','0000-00-00','',1),(1,2,457232904772658287,'Instalacion en Sant Climent del Llobregat','01','Descuento comercial','01','01','',0,'','0000-00-00','','0000-00-00','','0000-00-00','','0000-00-00','','0000-00-00','',1),(2,1,670011371294117415,'CORREDERO CLIMA 120x120 I.P.  ( Guías 120x80 )','01','Descuento comercial','01','01','',0,'','0000-00-00','','0000-00-00','','0000-00-00','','0000-00-00','','0000-00-00','',1),(2,2,821478492193814525,'CORREDERO CLIMA 120x120 1P.  ( Guías 120x80 )','01','Descuento comercial','01','01','',0,'','0000-00-00','','0000-00-00','','0000-00-00','','0000-00-00','','0000-00-00','',1),(2,3,708985152943635847,'INSTALACION EN SANT CLIMENT DEL LLOBREGAR','01','Descuento comercial','01','01','',0,'','0000-00-00','','0000-00-00','','0000-00-00','','0000-00-00','','0000-00-00','',1);
/*!40000 ALTER TABLE `cialfacedoclin` 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
