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

DROP TABLE IF EXISTS `cialaeat349fac`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cialaeat349fac` (
  `num_declara` int(11) NOT NULL DEFAULT '0' COMMENT 'Nº Declaración',
  `linea` int(11) NOT NULL DEFAULT '0' COMMENT 'Línea',
  `id_factura_349` int(11) NOT NULL DEFAULT '0' COMMENT 'Nº Factura',
  `soporte` char(2) NOT NULL DEFAULT '' COMMENT 'Tipo',
  `id_cocabe` bigint(20) NOT NULL DEFAULT '0' COMMENT 'Documento',
  `fecha_fac` date NOT NULL DEFAULT '0000-00-00' COMMENT 'Fecha creación',
  `importe_fac_349` decimal(15,2) NOT NULL DEFAULT '0.00' COMMENT 'Importe factura',
  `id_tenant` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Nº empresa',
  `sw_ori_desconocido` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Orígen rectificativa desconocido',
  UNIQUE KEY `key0` (`id_tenant`,`num_declara`,`linea`,`id_factura_349`),
  KEY `key1` (`id_tenant`,`soporte`,`id_cocabe`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

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

LOCK TABLES `cialaeat349fac` WRITE;
/*!40000 ALTER TABLE `cialaeat349fac` DISABLE KEYS */;
INSERT INTO `cialaeat349fac` (`num_declara`, `linea`, `id_factura_349`, `soporte`, `id_cocabe`, `fecha_fac`, `importe_fac_349`, `id_tenant`, `sw_ori_desconocido`) VALUES (70,1,1,'FC',181319200143419104,'2025-05-31',5725.10,1,0),(70,1,2,'FC',263872509723549864,'2025-06-30',954.18,1,0),(70,2,1,'FC',281105199305911748,'2025-04-30',519.40,1,0),(70,2,2,'FC',635183357402067434,'2025-06-30',519.40,1,0),(70,2,3,'FC',819536219984478806,'2025-05-31',519.40,1,0),(70,3,1,'FC',858218195854009653,'2025-05-31',148.72,1,0),(70,4,1,'FC',149902577432222545,'2025-06-30',2210.10,1,0),(70,4,2,'FC',698163439432155105,'2025-05-31',2210.10,1,0),(70,4,3,'FC',996542462142529869,'2025-04-30',2210.10,1,0),(70,5,1,'FC',174927157971590231,'2025-05-31',887.00,1,0),(70,6,1,'FC',496467043395778933,'2025-05-31',394.24,1,0),(70,6,2,'FC',812734505828922923,'2025-05-31',397.34,1,0),(70,6,3,'FC',889593283336958304,'2025-05-31',95.64,1,0),(70,7,1,'FC',246062452989920470,'2025-05-31',1951.25,1,0),(70,7,2,'FC',314704897750252063,'2025-04-30',1951.25,1,0),(70,7,3,'FC',438012279777399143,'2025-06-30',1951.25,1,0),(70,8,1,'FC',298931664974297102,'2025-05-31',3240.54,1,0),(70,8,2,'FC',859155516947321924,'2025-04-30',3240.54,1,0),(70,8,3,'FC',961280532746330394,'2025-06-30',3240.54,1,0),(70,9,1,'FC',230975441451304788,'2025-06-30',6324.00,1,0),(70,9,2,'FC',328843136634728694,'2025-05-31',1632.00,1,0),(70,9,3,'FC',386385188221920745,'2025-06-30',1632.00,1,0),(70,9,4,'FC',672771931423696036,'2025-04-30',1632.00,1,0),(70,9,5,'FC',763186544991208661,'2025-05-31',6324.00,1,0),(70,9,6,'FC',790409497255506776,'2025-04-30',6324.00,1,0),(70,10,1,'FC',500153754378526163,'2025-06-30',2622.90,1,0),(70,10,2,'FC',610121835617196828,'2025-05-31',2969.53,1,0),(70,10,3,'FC',610836383335730246,'2025-04-30',1045.51,1,0),(70,11,1,'FC',143594133137136511,'2025-05-31',380.00,1,0),(70,12,1,'FC',335966151611932032,'2025-05-31',16974.20,1,0),(71,1,1,'FC',866089387362165874,'2025-07-31',283.11,1,0),(71,1,2,'FC',894298684984937719,'2025-09-30',95.43,1,0),(71,2,1,'FC',312054967978821412,'2025-07-31',463.50,1,0),(71,3,1,'FC',685656652154308784,'2025-07-31',0.00,1,0);
/*!40000 ALTER TABLE `cialaeat349fac` 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:25
