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

DROP TABLE IF EXISTS `cialdocoqpelin`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cialdocoqpelin` (
  `id_cocabe` bigint(20) NOT NULL DEFAULT '0' COMMENT 'Id.',
  `soporte` char(2) NOT NULL DEFAULT '' COMMENT 'Tipo',
  `anyo` smallint(6) NOT NULL DEFAULT '0' COMMENT 'Año',
  `cod_serie` char(3) NOT NULL DEFAULT '' COMMENT 'Serie',
  `numero` int(11) NOT NULL DEFAULT '0' COMMENT 'Nº Documento',
  `fecha` date NOT NULL DEFAULT '0000-00-00' COMMENT 'Fecha doc.',
  `cod_cuenta` char(12) NOT NULL DEFAULT '' COMMENT 'Subcuenta',
  `imp_mone_pv` decimal(15,2) NOT NULL DEFAULT '0.00' COMMENT 'Imp. Pedido',
  `imp_mone_av` decimal(15,2) NOT NULL DEFAULT '0.00' COMMENT 'Imp. Albaranes',
  `imp_mone_av2` decimal(15,2) NOT NULL DEFAULT '0.00' COMMENT 'Imp. Albar (2)',
  `imp_mone_fv` decimal(15,2) NOT NULL DEFAULT '0.00' COMMENT 'Imp. Facturas',
  `imp_mone_fv2` decimal(15,2) NOT NULL DEFAULT '0.00' COMMENT 'Imp. Fras (2)',
  `imp_mone_rma` decimal(15,2) NOT NULL DEFAULT '0.00' COMMENT 'Imp. RMA/Dev',
  `imp_mone_rma2` decimal(15,2) NOT NULL DEFAULT '0.00' COMMENT 'Imp. RMA/Dev (2)',
  `imp_mone_abo` decimal(15,2) NOT NULL DEFAULT '0.00' COMMENT 'Imp. Abonos',
  `imp_mone_abo2` decimal(15,2) NOT NULL DEFAULT '0.00' COMMENT 'Imp. Abonos (2)',
  `imp_mone_hab_pv` decimal(15,2) NOT NULL DEFAULT '0.00' COMMENT 'Tot. haber peds.',
  `imp_mone_deb_fv` decimal(15,2) NOT NULL DEFAULT '0.00' COMMENT 'Tot. debe fras.',
  `id_tenant` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Nº empresa',
  `imp_sql_0` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_1` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_2` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_3` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_4` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_5` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_6` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_7` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_8` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_9` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_10` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_11` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_12` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_13` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_14` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_15` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_16` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_17` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_18` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_19` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_20` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_21` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_22` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_23` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_24` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_25` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_26` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_27` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_28` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_29` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_30` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_31` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_32` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_33` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_34` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_35` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_36` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_37` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_38` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_39` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_40` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_41` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_42` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_43` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_44` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_45` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_46` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_47` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_48` decimal(15,2) NOT NULL DEFAULT '0.00',
  `imp_sql_49` decimal(15,2) NOT NULL DEFAULT '0.00',
  `id_cialdocoqpepar` int(11) NOT NULL DEFAULT '0' COMMENT 'Nº parámetro',
  `id_cialdocoqpehis` int(11) NOT NULL DEFAULT '2025' COMMENT 'Nº Periodo',
  UNIQUE KEY `key0` (`id_tenant`,`id_cialdocoqpepar`,`id_cialdocoqpehis`,`id_cocabe`),
  KEY `key1` (`id_tenant`,`soporte`,`cod_serie`,`anyo`,`numero`),
  KEY `key2` (`id_tenant`,`fecha`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

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

LOCK TABLES `cialdocoqpelin` WRITE;
/*!40000 ALTER TABLE `cialdocoqpelin` DISABLE KEYS */;
/*!40000 ALTER TABLE `cialdocoqpelin` 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:58
