INSERT INTO `periods` VALUES (5478,NULL,'2085-12',2085,12,'2085-12-01','2085-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5482,NULL,'2086-01',2086,1,'2086-01-01','2086-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5483,NULL,'2086-02',2086,2,'2086-02-01','2086-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5484,NULL,'2086-03',2086,3,'2086-03-01','2086-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5485,NULL,'2086-04',2086,4,'2086-04-01','2086-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5486,NULL,'2086-05',2086,5,'2086-05-01','2086-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5487,NULL,'2086-06',2086,6,'2086-06-01','2086-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5488,NULL,'2086-07',2086,7,'2086-07-01','2086-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5489,NULL,'2086-08',2086,8,'2086-08-01','2086-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5490,NULL,'2086-09',2086,9,'2086-09-01','2086-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5491,NULL,'2086-10',2086,10,'2086-10-01','2086-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5492,NULL,'2086-11',2086,11,'2086-11-01','2086-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5493,NULL,'2086-12',2086,12,'2086-12-01','2086-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5497,NULL,'2087-01',2087,1,'2087-01-01','2087-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5498,NULL,'2087-02',2087,2,'2087-02-01','2087-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5499,NULL,'2087-03',2087,3,'2087-03-01','2087-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5500,NULL,'2087-04',2087,4,'2087-04-01','2087-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5501,NULL,'2087-05',2087,5,'2087-05-01','2087-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5502,NULL,'2087-06',2087,6,'2087-06-01','2087-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5503,NULL,'2087-07',2087,7,'2087-07-01','2087-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5504,NULL,'2087-08',2087,8,'2087-08-01','2087-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5505,NULL,'2087-09',2087,9,'2087-09-01','2087-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5506,NULL,'2087-10',2087,10,'2087-10-01','2087-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5507,NULL,'2087-11',2087,11,'2087-11-01','2087-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5508,NULL,'2087-12',2087,12,'2087-12-01','2087-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5512,NULL,'2088-01',2088,1,'2088-01-01','2088-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5513,NULL,'2088-02',2088,2,'2088-02-01','2088-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5514,NULL,'2088-03',2088,3,'2088-03-01','2088-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5515,NULL,'2088-04',2088,4,'2088-04-01','2088-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5516,NULL,'2088-05',2088,5,'2088-05-01','2088-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5517,NULL,'2088-06',2088,6,'2088-06-01','2088-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5518,NULL,'2088-07',2088,7,'2088-07-01','2088-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5519,NULL,'2088-08',2088,8,'2088-08-01','2088-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5520,NULL,'2088-09',2088,9,'2088-09-01','2088-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5521,NULL,'2088-10',2088,10,'2088-10-01','2088-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5522,NULL,'2088-11',2088,11,'2088-11-01','2088-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5523,NULL,'2088-12',2088,12,'2088-12-01','2088-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5527,NULL,'2089-01',2089,1,'2089-01-01','2089-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5528,NULL,'2089-02',2089,2,'2089-02-01','2089-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5529,NULL,'2089-03',2089,3,'2089-03-01','2089-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5530,NULL,'2089-04',2089,4,'2089-04-01','2089-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5531,NULL,'2089-05',2089,5,'2089-05-01','2089-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5532,NULL,'2089-06',2089,6,'2089-06-01','2089-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5533,NULL,'2089-07',2089,7,'2089-07-01','2089-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5534,NULL,'2089-08',2089,8,'2089-08-01','2089-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5535,NULL,'2089-09',2089,9,'2089-09-01','2089-09-30',NULL,NULL,40722,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (5536,NULL,'2089-10',2089,10,'2089-10-01','2089-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5537,NULL,'2089-11',2089,11,'2089-11-01','2089-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5538,NULL,'2089-12',2089,12,'2089-12-01','2089-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5542,NULL,'2090-01',2090,1,'2090-01-01','2090-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5543,NULL,'2090-02',2090,2,'2090-02-01','2090-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5544,NULL,'2090-03',2090,3,'2090-03-01','2090-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5545,NULL,'2090-04',2090,4,'2090-04-01','2090-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5546,NULL,'2090-05',2090,5,'2090-05-01','2090-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5547,NULL,'2090-06',2090,6,'2090-06-01','2090-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5548,NULL,'2090-07',2090,7,'2090-07-01','2090-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5549,NULL,'2090-08',2090,8,'2090-08-01','2090-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5550,NULL,'2090-09',2090,9,'2090-09-01','2090-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5551,NULL,'2090-10',2090,10,'2090-10-01','2090-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5552,NULL,'2090-11',2090,11,'2090-11-01','2090-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5553,NULL,'2090-12',2090,12,'2090-12-01','2090-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5557,NULL,'2091-01',2091,1,'2091-01-01','2091-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5558,NULL,'2091-02',2091,2,'2091-02-01','2091-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5559,NULL,'2091-03',2091,3,'2091-03-01','2091-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5560,NULL,'2091-04',2091,4,'2091-04-01','2091-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5561,NULL,'2091-05',2091,5,'2091-05-01','2091-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5562,NULL,'2091-06',2091,6,'2091-06-01','2091-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5563,NULL,'2091-07',2091,7,'2091-07-01','2091-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5564,NULL,'2091-08',2091,8,'2091-08-01','2091-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5565,NULL,'2091-09',2091,9,'2091-09-01','2091-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5566,NULL,'2091-10',2091,10,'2091-10-01','2091-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5567,NULL,'2091-11',2091,11,'2091-11-01','2091-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5568,NULL,'2091-12',2091,12,'2091-12-01','2091-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5572,NULL,'2092-01',2092,1,'2092-01-01','2092-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5573,NULL,'2092-02',2092,2,'2092-02-01','2092-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5574,NULL,'2092-03',2092,3,'2092-03-01','2092-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5575,NULL,'2092-04',2092,4,'2092-04-01','2092-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5576,NULL,'2092-05',2092,5,'2092-05-01','2092-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5577,NULL,'2092-06',2092,6,'2092-06-01','2092-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5578,NULL,'2092-07',2092,7,'2092-07-01','2092-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5579,NULL,'2092-08',2092,8,'2092-08-01','2092-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5580,NULL,'2092-09',2092,9,'2092-09-01','2092-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5581,NULL,'2092-10',2092,10,'2092-10-01','2092-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5582,NULL,'2092-11',2092,11,'2092-11-01','2092-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5583,NULL,'2092-12',2092,12,'2092-12-01','2092-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5587,NULL,'2093-01',2093,1,'2093-01-01','2093-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5588,NULL,'2093-02',2093,2,'2093-02-01','2093-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5589,NULL,'2093-03',2093,3,'2093-03-01','2093-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5590,NULL,'2093-04',2093,4,'2093-04-01','2093-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5591,NULL,'2093-05',2093,5,'2093-05-01','2093-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5592,NULL,'2093-06',2093,6,'2093-06-01','2093-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5593,NULL,'2093-07',2093,7,'2093-07-01','2093-07-31',NULL,NULL,40722,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (5594,NULL,'2093-08',2093,8,'2093-08-01','2093-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5595,NULL,'2093-09',2093,9,'2093-09-01','2093-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5596,NULL,'2093-10',2093,10,'2093-10-01','2093-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5597,NULL,'2093-11',2093,11,'2093-11-01','2093-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5598,NULL,'2093-12',2093,12,'2093-12-01','2093-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5602,NULL,'2094-01',2094,1,'2094-01-01','2094-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5603,NULL,'2094-02',2094,2,'2094-02-01','2094-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5604,NULL,'2094-03',2094,3,'2094-03-01','2094-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5605,NULL,'2094-04',2094,4,'2094-04-01','2094-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5606,NULL,'2094-05',2094,5,'2094-05-01','2094-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5607,NULL,'2094-06',2094,6,'2094-06-01','2094-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5608,NULL,'2094-07',2094,7,'2094-07-01','2094-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5609,NULL,'2094-08',2094,8,'2094-08-01','2094-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5610,NULL,'2094-09',2094,9,'2094-09-01','2094-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5611,NULL,'2094-10',2094,10,'2094-10-01','2094-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5612,NULL,'2094-11',2094,11,'2094-11-01','2094-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5613,NULL,'2094-12',2094,12,'2094-12-01','2094-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5617,NULL,'2095-01',2095,1,'2095-01-01','2095-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5618,NULL,'2095-02',2095,2,'2095-02-01','2095-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5619,NULL,'2095-03',2095,3,'2095-03-01','2095-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5620,NULL,'2095-04',2095,4,'2095-04-01','2095-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5621,NULL,'2095-05',2095,5,'2095-05-01','2095-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5622,NULL,'2095-06',2095,6,'2095-06-01','2095-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5623,NULL,'2095-07',2095,7,'2095-07-01','2095-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5624,NULL,'2095-08',2095,8,'2095-08-01','2095-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5625,NULL,'2095-09',2095,9,'2095-09-01','2095-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5626,NULL,'2095-10',2095,10,'2095-10-01','2095-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5627,NULL,'2095-11',2095,11,'2095-11-01','2095-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5628,NULL,'2095-12',2095,12,'2095-12-01','2095-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5632,NULL,'2096-01',2096,1,'2096-01-01','2096-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5633,NULL,'2096-02',2096,2,'2096-02-01','2096-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5634,NULL,'2096-03',2096,3,'2096-03-01','2096-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5635,NULL,'2096-04',2096,4,'2096-04-01','2096-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5636,NULL,'2096-05',2096,5,'2096-05-01','2096-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5637,NULL,'2096-06',2096,6,'2096-06-01','2096-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5638,NULL,'2096-07',2096,7,'2096-07-01','2096-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5639,NULL,'2096-08',2096,8,'2096-08-01','2096-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5640,NULL,'2096-09',2096,9,'2096-09-01','2096-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5641,NULL,'2096-10',2096,10,'2096-10-01','2096-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5642,NULL,'2096-11',2096,11,'2096-11-01','2096-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5643,NULL,'2096-12',2096,12,'2096-12-01','2096-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5647,NULL,'2097-01',2097,1,'2097-01-01','2097-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5648,NULL,'2097-02',2097,2,'2097-02-01','2097-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5649,NULL,'2097-03',2097,3,'2097-03-01','2097-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5650,NULL,'2097-04',2097,4,'2097-04-01','2097-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5651,NULL,'2097-05',2097,5,'2097-05-01','2097-05-31',NULL,NULL,40722,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (5652,NULL,'2097-06',2097,6,'2097-06-01','2097-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5653,NULL,'2097-07',2097,7,'2097-07-01','2097-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5654,NULL,'2097-08',2097,8,'2097-08-01','2097-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5655,NULL,'2097-09',2097,9,'2097-09-01','2097-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5656,NULL,'2097-10',2097,10,'2097-10-01','2097-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5657,NULL,'2097-11',2097,11,'2097-11-01','2097-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5658,NULL,'2097-12',2097,12,'2097-12-01','2097-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5662,NULL,'2098-01',2098,1,'2098-01-01','2098-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5663,NULL,'2098-02',2098,2,'2098-02-01','2098-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5664,NULL,'2098-03',2098,3,'2098-03-01','2098-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5665,NULL,'2098-04',2098,4,'2098-04-01','2098-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5666,NULL,'2098-05',2098,5,'2098-05-01','2098-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5667,NULL,'2098-06',2098,6,'2098-06-01','2098-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5668,NULL,'2098-07',2098,7,'2098-07-01','2098-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5669,NULL,'2098-08',2098,8,'2098-08-01','2098-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5670,NULL,'2098-09',2098,9,'2098-09-01','2098-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5671,NULL,'2098-10',2098,10,'2098-10-01','2098-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5672,NULL,'2098-11',2098,11,'2098-11-01','2098-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5673,NULL,'2098-12',2098,12,'2098-12-01','2098-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5677,NULL,'2099-01',2099,1,'2099-01-01','2099-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5678,NULL,'2099-02',2099,2,'2099-02-01','2099-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5679,NULL,'2099-03',2099,3,'2099-03-01','2099-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5680,NULL,'2099-04',2099,4,'2099-04-01','2099-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5681,NULL,'2099-05',2099,5,'2099-05-01','2099-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5682,NULL,'2099-06',2099,6,'2099-06-01','2099-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5683,NULL,'2099-07',2099,7,'2099-07-01','2099-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5684,NULL,'2099-08',2099,8,'2099-08-01','2099-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5685,NULL,'2099-09',2099,9,'2099-09-01','2099-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5686,NULL,'2099-10',2099,10,'2099-10-01','2099-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5687,NULL,'2099-11',2099,11,'2099-11-01','2099-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5688,NULL,'2099-12',2099,12,'2099-12-01','2099-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5692,NULL,'2100-01',2100,1,'2100-01-01','2100-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5693,NULL,'2100-02',2100,2,'2100-02-01','2100-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5694,NULL,'2100-03',2100,3,'2100-03-01','2100-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5695,NULL,'2100-04',2100,4,'2100-04-01','2100-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5696,NULL,'2100-05',2100,5,'2100-05-01','2100-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5697,NULL,'2100-06',2100,6,'2100-06-01','2100-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5698,NULL,'2100-07',2100,7,'2100-07-01','2100-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5699,NULL,'2100-08',2100,8,'2100-08-01','2100-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5700,NULL,'2100-09',2100,9,'2100-09-01','2100-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5701,NULL,'2100-10',2100,10,'2100-10-01','2100-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5702,NULL,'2100-11',2100,11,'2100-11-01','2100-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5703,NULL,'2100-12',2100,12,'2100-12-01','2100-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5707,NULL,'2101-01',2101,1,'2101-01-01','2101-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5708,NULL,'2101-02',2101,2,'2101-02-01','2101-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5709,NULL,'2101-03',2101,3,'2101-03-01','2101-03-31',NULL,NULL,40722,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (5710,NULL,'2101-04',2101,4,'2101-04-01','2101-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5711,NULL,'2101-05',2101,5,'2101-05-01','2101-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5712,NULL,'2101-06',2101,6,'2101-06-01','2101-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5713,NULL,'2101-07',2101,7,'2101-07-01','2101-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5714,NULL,'2101-08',2101,8,'2101-08-01','2101-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5715,NULL,'2101-09',2101,9,'2101-09-01','2101-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5716,NULL,'2101-10',2101,10,'2101-10-01','2101-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5717,NULL,'2101-11',2101,11,'2101-11-01','2101-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5718,NULL,'2101-12',2101,12,'2101-12-01','2101-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5722,NULL,'2102-01',2102,1,'2102-01-01','2102-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5723,NULL,'2102-02',2102,2,'2102-02-01','2102-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5724,NULL,'2102-03',2102,3,'2102-03-01','2102-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5725,NULL,'2102-04',2102,4,'2102-04-01','2102-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5726,NULL,'2102-05',2102,5,'2102-05-01','2102-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5727,NULL,'2102-06',2102,6,'2102-06-01','2102-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5728,NULL,'2102-07',2102,7,'2102-07-01','2102-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5729,NULL,'2102-08',2102,8,'2102-08-01','2102-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5730,NULL,'2102-09',2102,9,'2102-09-01','2102-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5731,NULL,'2102-10',2102,10,'2102-10-01','2102-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5732,NULL,'2102-11',2102,11,'2102-11-01','2102-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5733,NULL,'2102-12',2102,12,'2102-12-01','2102-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5737,NULL,'2103-01',2103,1,'2103-01-01','2103-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5738,NULL,'2103-02',2103,2,'2103-02-01','2103-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5739,NULL,'2103-03',2103,3,'2103-03-01','2103-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5740,NULL,'2103-04',2103,4,'2103-04-01','2103-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5741,NULL,'2103-05',2103,5,'2103-05-01','2103-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5742,NULL,'2103-06',2103,6,'2103-06-01','2103-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5743,NULL,'2103-07',2103,7,'2103-07-01','2103-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5744,NULL,'2103-08',2103,8,'2103-08-01','2103-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5745,NULL,'2103-09',2103,9,'2103-09-01','2103-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5746,NULL,'2103-10',2103,10,'2103-10-01','2103-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5747,NULL,'2103-11',2103,11,'2103-11-01','2103-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5748,NULL,'2103-12',2103,12,'2103-12-01','2103-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5752,NULL,'2104-01',2104,1,'2104-01-01','2104-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5753,NULL,'2104-02',2104,2,'2104-02-01','2104-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5754,NULL,'2104-03',2104,3,'2104-03-01','2104-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5755,NULL,'2104-04',2104,4,'2104-04-01','2104-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5756,NULL,'2104-05',2104,5,'2104-05-01','2104-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5757,NULL,'2104-06',2104,6,'2104-06-01','2104-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5758,NULL,'2104-07',2104,7,'2104-07-01','2104-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5759,NULL,'2104-08',2104,8,'2104-08-01','2104-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5760,NULL,'2104-09',2104,9,'2104-09-01','2104-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5761,NULL,'2104-10',2104,10,'2104-10-01','2104-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5762,NULL,'2104-11',2104,11,'2104-11-01','2104-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5763,NULL,'2104-12',2104,12,'2104-12-01','2104-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5767,NULL,'2105-01',2105,1,'2105-01-01','2105-01-31',NULL,NULL,40722,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (5768,NULL,'2105-02',2105,2,'2105-02-01','2105-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5769,NULL,'2105-03',2105,3,'2105-03-01','2105-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5770,NULL,'2105-04',2105,4,'2105-04-01','2105-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5771,NULL,'2105-05',2105,5,'2105-05-01','2105-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5772,NULL,'2105-06',2105,6,'2105-06-01','2105-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5773,NULL,'2105-07',2105,7,'2105-07-01','2105-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5774,NULL,'2105-08',2105,8,'2105-08-01','2105-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5775,NULL,'2105-09',2105,9,'2105-09-01','2105-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5776,NULL,'2105-10',2105,10,'2105-10-01','2105-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5777,NULL,'2105-11',2105,11,'2105-11-01','2105-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5778,NULL,'2105-12',2105,12,'2105-12-01','2105-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5782,NULL,'2106-01',2106,1,'2106-01-01','2106-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5783,NULL,'2106-02',2106,2,'2106-02-01','2106-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5784,NULL,'2106-03',2106,3,'2106-03-01','2106-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5785,NULL,'2106-04',2106,4,'2106-04-01','2106-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5786,NULL,'2106-05',2106,5,'2106-05-01','2106-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5787,NULL,'2106-06',2106,6,'2106-06-01','2106-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5788,NULL,'2106-07',2106,7,'2106-07-01','2106-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5789,NULL,'2106-08',2106,8,'2106-08-01','2106-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5790,NULL,'2106-09',2106,9,'2106-09-01','2106-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5791,NULL,'2106-10',2106,10,'2106-10-01','2106-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5792,NULL,'2106-11',2106,11,'2106-11-01','2106-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5793,NULL,'2106-12',2106,12,'2106-12-01','2106-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5797,NULL,'2107-01',2107,1,'2107-01-01','2107-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5798,NULL,'2107-02',2107,2,'2107-02-01','2107-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5799,NULL,'2107-03',2107,3,'2107-03-01','2107-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5800,NULL,'2107-04',2107,4,'2107-04-01','2107-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5801,NULL,'2107-05',2107,5,'2107-05-01','2107-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5802,NULL,'2107-06',2107,6,'2107-06-01','2107-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5803,NULL,'2107-07',2107,7,'2107-07-01','2107-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5804,NULL,'2107-08',2107,8,'2107-08-01','2107-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5805,NULL,'2107-09',2107,9,'2107-09-01','2107-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5806,NULL,'2107-10',2107,10,'2107-10-01','2107-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5807,NULL,'2107-11',2107,11,'2107-11-01','2107-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5808,NULL,'2107-12',2107,12,'2107-12-01','2107-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5812,NULL,'2108-01',2108,1,'2108-01-01','2108-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5813,NULL,'2108-02',2108,2,'2108-02-01','2108-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5814,NULL,'2108-03',2108,3,'2108-03-01','2108-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5815,NULL,'2108-04',2108,4,'2108-04-01','2108-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5816,NULL,'2108-05',2108,5,'2108-05-01','2108-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5817,NULL,'2108-06',2108,6,'2108-06-01','2108-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5818,NULL,'2108-07',2108,7,'2108-07-01','2108-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5819,NULL,'2108-08',2108,8,'2108-08-01','2108-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5820,NULL,'2108-09',2108,9,'2108-09-01','2108-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5821,NULL,'2108-10',2108,10,'2108-10-01','2108-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5822,NULL,'2108-11',2108,11,'2108-11-01','2108-11-30',NULL,NULL,40722,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (5823,NULL,'2108-12',2108,12,'2108-12-01','2108-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5827,NULL,'2109-01',2109,1,'2109-01-01','2109-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5828,NULL,'2109-02',2109,2,'2109-02-01','2109-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5829,NULL,'2109-03',2109,3,'2109-03-01','2109-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5830,NULL,'2109-04',2109,4,'2109-04-01','2109-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5831,NULL,'2109-05',2109,5,'2109-05-01','2109-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5832,NULL,'2109-06',2109,6,'2109-06-01','2109-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5833,NULL,'2109-07',2109,7,'2109-07-01','2109-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5834,NULL,'2109-08',2109,8,'2109-08-01','2109-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5835,NULL,'2109-09',2109,9,'2109-09-01','2109-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5836,NULL,'2109-10',2109,10,'2109-10-01','2109-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5837,NULL,'2109-11',2109,11,'2109-11-01','2109-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5838,NULL,'2109-12',2109,12,'2109-12-01','2109-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5842,NULL,'2110-01',2110,1,'2110-01-01','2110-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5843,NULL,'2110-02',2110,2,'2110-02-01','2110-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5844,NULL,'2110-03',2110,3,'2110-03-01','2110-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5845,NULL,'2110-04',2110,4,'2110-04-01','2110-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5846,NULL,'2110-05',2110,5,'2110-05-01','2110-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5847,NULL,'2110-06',2110,6,'2110-06-01','2110-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5848,NULL,'2110-07',2110,7,'2110-07-01','2110-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5849,NULL,'2110-08',2110,8,'2110-08-01','2110-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5850,NULL,'2110-09',2110,9,'2110-09-01','2110-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5851,NULL,'2110-10',2110,10,'2110-10-01','2110-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5852,NULL,'2110-11',2110,11,'2110-11-01','2110-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5853,NULL,'2110-12',2110,12,'2110-12-01','2110-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5857,NULL,'2111-01',2111,1,'2111-01-01','2111-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5858,NULL,'2111-02',2111,2,'2111-02-01','2111-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5859,NULL,'2111-03',2111,3,'2111-03-01','2111-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5860,NULL,'2111-04',2111,4,'2111-04-01','2111-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5861,NULL,'2111-05',2111,5,'2111-05-01','2111-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5862,NULL,'2111-06',2111,6,'2111-06-01','2111-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5863,NULL,'2111-07',2111,7,'2111-07-01','2111-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5864,NULL,'2111-08',2111,8,'2111-08-01','2111-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5865,NULL,'2111-09',2111,9,'2111-09-01','2111-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5866,NULL,'2111-10',2111,10,'2111-10-01','2111-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5867,NULL,'2111-11',2111,11,'2111-11-01','2111-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5868,NULL,'2111-12',2111,12,'2111-12-01','2111-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5872,NULL,'2112-01',2112,1,'2112-01-01','2112-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5873,NULL,'2112-02',2112,2,'2112-02-01','2112-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5874,NULL,'2112-03',2112,3,'2112-03-01','2112-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5875,NULL,'2112-04',2112,4,'2112-04-01','2112-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5876,NULL,'2112-05',2112,5,'2112-05-01','2112-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5877,NULL,'2112-06',2112,6,'2112-06-01','2112-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5878,NULL,'2112-07',2112,7,'2112-07-01','2112-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5879,NULL,'2112-08',2112,8,'2112-08-01','2112-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5880,NULL,'2112-09',2112,9,'2112-09-01','2112-09-30',NULL,NULL,40722,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (5881,NULL,'2112-10',2112,10,'2112-10-01','2112-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5882,NULL,'2112-11',2112,11,'2112-11-01','2112-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5883,NULL,'2112-12',2112,12,'2112-12-01','2112-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5887,NULL,'2113-01',2113,1,'2113-01-01','2113-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5888,NULL,'2113-02',2113,2,'2113-02-01','2113-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5889,NULL,'2113-03',2113,3,'2113-03-01','2113-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5890,NULL,'2113-04',2113,4,'2113-04-01','2113-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5891,NULL,'2113-05',2113,5,'2113-05-01','2113-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5892,NULL,'2113-06',2113,6,'2113-06-01','2113-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5893,NULL,'2113-07',2113,7,'2113-07-01','2113-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5894,NULL,'2113-08',2113,8,'2113-08-01','2113-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5895,NULL,'2113-09',2113,9,'2113-09-01','2113-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5896,NULL,'2113-10',2113,10,'2113-10-01','2113-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5897,NULL,'2113-11',2113,11,'2113-11-01','2113-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5898,NULL,'2113-12',2113,12,'2113-12-01','2113-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5902,NULL,'2114-01',2114,1,'2114-01-01','2114-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5903,NULL,'2114-02',2114,2,'2114-02-01','2114-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5904,NULL,'2114-03',2114,3,'2114-03-01','2114-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5905,NULL,'2114-04',2114,4,'2114-04-01','2114-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5906,NULL,'2114-05',2114,5,'2114-05-01','2114-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5907,NULL,'2114-06',2114,6,'2114-06-01','2114-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5908,NULL,'2114-07',2114,7,'2114-07-01','2114-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5909,NULL,'2114-08',2114,8,'2114-08-01','2114-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5910,NULL,'2114-09',2114,9,'2114-09-01','2114-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5911,NULL,'2114-10',2114,10,'2114-10-01','2114-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5912,NULL,'2114-11',2114,11,'2114-11-01','2114-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5913,NULL,'2114-12',2114,12,'2114-12-01','2114-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5917,NULL,'2115-01',2115,1,'2115-01-01','2115-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5918,NULL,'2115-02',2115,2,'2115-02-01','2115-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5919,NULL,'2115-03',2115,3,'2115-03-01','2115-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5920,NULL,'2115-04',2115,4,'2115-04-01','2115-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5921,NULL,'2115-05',2115,5,'2115-05-01','2115-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5922,NULL,'2115-06',2115,6,'2115-06-01','2115-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5923,NULL,'2115-07',2115,7,'2115-07-01','2115-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5924,NULL,'2115-08',2115,8,'2115-08-01','2115-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5925,NULL,'2115-09',2115,9,'2115-09-01','2115-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5926,NULL,'2115-10',2115,10,'2115-10-01','2115-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5927,NULL,'2115-11',2115,11,'2115-11-01','2115-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5928,NULL,'2115-12',2115,12,'2115-12-01','2115-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5932,NULL,'2116-01',2116,1,'2116-01-01','2116-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5933,NULL,'2116-02',2116,2,'2116-02-01','2116-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5934,NULL,'2116-03',2116,3,'2116-03-01','2116-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5935,NULL,'2116-04',2116,4,'2116-04-01','2116-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5936,NULL,'2116-05',2116,5,'2116-05-01','2116-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5937,NULL,'2116-06',2116,6,'2116-06-01','2116-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5938,NULL,'2116-07',2116,7,'2116-07-01','2116-07-31',NULL,NULL,40722,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (5939,NULL,'2116-08',2116,8,'2116-08-01','2116-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5940,NULL,'2116-09',2116,9,'2116-09-01','2116-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5941,NULL,'2116-10',2116,10,'2116-10-01','2116-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5942,NULL,'2116-11',2116,11,'2116-11-01','2116-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5943,NULL,'2116-12',2116,12,'2116-12-01','2116-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5947,NULL,'2117-01',2117,1,'2117-01-01','2117-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5948,NULL,'2117-02',2117,2,'2117-02-01','2117-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5949,NULL,'2117-03',2117,3,'2117-03-01','2117-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5950,NULL,'2117-04',2117,4,'2117-04-01','2117-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5951,NULL,'2117-05',2117,5,'2117-05-01','2117-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5952,NULL,'2117-06',2117,6,'2117-06-01','2117-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5953,NULL,'2117-07',2117,7,'2117-07-01','2117-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5954,NULL,'2117-08',2117,8,'2117-08-01','2117-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5955,NULL,'2117-09',2117,9,'2117-09-01','2117-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5956,NULL,'2117-10',2117,10,'2117-10-01','2117-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5957,NULL,'2117-11',2117,11,'2117-11-01','2117-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5958,NULL,'2117-12',2117,12,'2117-12-01','2117-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5962,NULL,'2118-01',2118,1,'2118-01-01','2118-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5963,NULL,'2118-02',2118,2,'2118-02-01','2118-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5964,NULL,'2118-03',2118,3,'2118-03-01','2118-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5965,NULL,'2118-04',2118,4,'2118-04-01','2118-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5966,NULL,'2118-05',2118,5,'2118-05-01','2118-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5967,NULL,'2118-06',2118,6,'2118-06-01','2118-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5968,NULL,'2118-07',2118,7,'2118-07-01','2118-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5969,NULL,'2118-08',2118,8,'2118-08-01','2118-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5970,NULL,'2118-09',2118,9,'2118-09-01','2118-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5971,NULL,'2118-10',2118,10,'2118-10-01','2118-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5972,NULL,'2118-11',2118,11,'2118-11-01','2118-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5973,NULL,'2118-12',2118,12,'2118-12-01','2118-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5977,NULL,'2119-01',2119,1,'2119-01-01','2119-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5978,NULL,'2119-02',2119,2,'2119-02-01','2119-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5979,NULL,'2119-03',2119,3,'2119-03-01','2119-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5980,NULL,'2119-04',2119,4,'2119-04-01','2119-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5981,NULL,'2119-05',2119,5,'2119-05-01','2119-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5982,NULL,'2119-06',2119,6,'2119-06-01','2119-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5983,NULL,'2119-07',2119,7,'2119-07-01','2119-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5984,NULL,'2119-08',2119,8,'2119-08-01','2119-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5985,NULL,'2119-09',2119,9,'2119-09-01','2119-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5986,NULL,'2119-10',2119,10,'2119-10-01','2119-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5987,NULL,'2119-11',2119,11,'2119-11-01','2119-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5988,NULL,'2119-12',2119,12,'2119-12-01','2119-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5992,NULL,'2120-01',2120,1,'2120-01-01','2120-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5993,NULL,'2120-02',2120,2,'2120-02-01','2120-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(5994,NULL,'2120-03',2120,3,'2120-03-01','2120-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5995,NULL,'2120-04',2120,4,'2120-04-01','2120-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5996,NULL,'2120-05',2120,5,'2120-05-01','2120-05-31',NULL,NULL,40722,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (5997,NULL,'2120-06',2120,6,'2120-06-01','2120-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(5998,NULL,'2120-07',2120,7,'2120-07-01','2120-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(5999,NULL,'2120-08',2120,8,'2120-08-01','2120-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6000,NULL,'2120-09',2120,9,'2120-09-01','2120-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6001,NULL,'2120-10',2120,10,'2120-10-01','2120-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6002,NULL,'2120-11',2120,11,'2120-11-01','2120-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6003,NULL,'2120-12',2120,12,'2120-12-01','2120-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6007,NULL,'2121-01',2121,1,'2121-01-01','2121-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6008,NULL,'2121-02',2121,2,'2121-02-01','2121-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(6009,NULL,'2121-03',2121,3,'2121-03-01','2121-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6010,NULL,'2121-04',2121,4,'2121-04-01','2121-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6011,NULL,'2121-05',2121,5,'2121-05-01','2121-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6012,NULL,'2121-06',2121,6,'2121-06-01','2121-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6013,NULL,'2121-07',2121,7,'2121-07-01','2121-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6014,NULL,'2121-08',2121,8,'2121-08-01','2121-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6015,NULL,'2121-09',2121,9,'2121-09-01','2121-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6016,NULL,'2121-10',2121,10,'2121-10-01','2121-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6017,NULL,'2121-11',2121,11,'2121-11-01','2121-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6018,NULL,'2121-12',2121,12,'2121-12-01','2121-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6022,NULL,'2122-01',2122,1,'2122-01-01','2122-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6023,NULL,'2122-02',2122,2,'2122-02-01','2122-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(6024,NULL,'2122-03',2122,3,'2122-03-01','2122-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6025,NULL,'2122-04',2122,4,'2122-04-01','2122-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6026,NULL,'2122-05',2122,5,'2122-05-01','2122-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6027,NULL,'2122-06',2122,6,'2122-06-01','2122-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6028,NULL,'2122-07',2122,7,'2122-07-01','2122-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6029,NULL,'2122-08',2122,8,'2122-08-01','2122-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6030,NULL,'2122-09',2122,9,'2122-09-01','2122-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6031,NULL,'2122-10',2122,10,'2122-10-01','2122-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6032,NULL,'2122-11',2122,11,'2122-11-01','2122-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6033,NULL,'2122-12',2122,12,'2122-12-01','2122-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6037,NULL,'2123-01',2123,1,'2123-01-01','2123-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6038,NULL,'2123-02',2123,2,'2123-02-01','2123-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(6039,NULL,'2123-03',2123,3,'2123-03-01','2123-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6040,NULL,'2123-04',2123,4,'2123-04-01','2123-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6041,NULL,'2123-05',2123,5,'2123-05-01','2123-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6042,NULL,'2123-06',2123,6,'2123-06-01','2123-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6043,NULL,'2123-07',2123,7,'2123-07-01','2123-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6044,NULL,'2123-08',2123,8,'2123-08-01','2123-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6045,NULL,'2123-09',2123,9,'2123-09-01','2123-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6046,NULL,'2123-10',2123,10,'2123-10-01','2123-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6047,NULL,'2123-11',2123,11,'2123-11-01','2123-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6048,NULL,'2123-12',2123,12,'2123-12-01','2123-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6052,NULL,'2017-01',2017,1,'2017-01-01','2017-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6053,NULL,'2017-02',2017,2,'2017-02-01','2017-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(6054,NULL,'2017-03',2017,3,'2017-03-01','2017-03-31',NULL,NULL,40722,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (6055,NULL,'2017-04',2017,4,'2017-04-01','2017-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6056,NULL,'2017-05',2017,5,'2017-05-01','2017-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6057,NULL,'2017-06',2017,6,'2017-06-01','2017-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6058,NULL,'2017-07',2017,7,'2017-07-01','2017-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6059,NULL,'2017-08',2017,8,'2017-08-01','2017-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6060,NULL,'2017-09',2017,9,'2017-09-01','2017-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6061,NULL,'2017-10',2017,10,'2017-10-01','2017-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6062,NULL,'2017-11',2017,11,'2017-11-01','2017-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6063,NULL,'2017-12',2017,12,'2017-12-01','2017-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6067,NULL,'2018-01',2018,1,'2018-01-01','2018-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6068,NULL,'2018-02',2018,2,'2018-02-01','2018-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(6069,NULL,'2018-03',2018,3,'2018-03-01','2018-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6070,NULL,'2018-04',2018,4,'2018-04-01','2018-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6071,NULL,'2018-05',2018,5,'2018-05-01','2018-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6072,NULL,'2018-06',2018,6,'2018-06-01','2018-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6073,NULL,'2018-07',2018,7,'2018-07-01','2018-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6074,NULL,'2018-08',2018,8,'2018-08-01','2018-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6075,NULL,'2018-09',2018,9,'2018-09-01','2018-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6076,NULL,'2018-10',2018,10,'2018-10-01','2018-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6077,NULL,'2018-11',2018,11,'2018-11-01','2018-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6078,NULL,'2018-12',2018,12,'2018-12-01','2018-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6082,NULL,'2019-01',2019,1,'2019-01-01','2019-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6083,NULL,'2019-02',2019,2,'2019-02-01','2019-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(6084,NULL,'2019-03',2019,3,'2019-03-01','2019-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6085,NULL,'2019-04',2019,4,'2019-04-01','2019-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6086,NULL,'2019-05',2019,5,'2019-05-01','2019-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6087,NULL,'2019-06',2019,6,'2019-06-01','2019-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6088,NULL,'2019-07',2019,7,'2019-07-01','2019-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6089,NULL,'2019-08',2019,8,'2019-08-01','2019-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6090,NULL,'2019-09',2019,9,'2019-09-01','2019-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6091,NULL,'2019-10',2019,10,'2019-10-01','2019-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6092,NULL,'2019-11',2019,11,'2019-11-01','2019-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6093,NULL,'2019-12',2019,12,'2019-12-01','2019-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6097,NULL,'2020-01',2020,1,'2020-01-01','2020-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6098,NULL,'2020-02',2020,2,'2020-02-01','2020-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(6099,NULL,'2020-03',2020,3,'2020-03-01','2020-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6100,NULL,'2020-04',2020,4,'2020-04-01','2020-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6101,NULL,'2020-05',2020,5,'2020-05-01','2020-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6102,NULL,'2020-06',2020,6,'2020-06-01','2020-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6103,NULL,'2020-07',2020,7,'2020-07-01','2020-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6104,NULL,'2020-08',2020,8,'2020-08-01','2020-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6105,NULL,'2020-09',2020,9,'2020-09-01','2020-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6106,NULL,'2020-10',2020,10,'2020-10-01','2020-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6107,NULL,'2020-11',2020,11,'2020-11-01','2020-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6108,NULL,'2020-12',2020,12,'2020-12-01','2020-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6112,NULL,'2021-01',2021,1,'2021-01-01','2021-01-31',NULL,NULL,40722,0,NULL,1,0,0,1);
INSERT INTO `periods` VALUES (6113,NULL,'2021-02',2021,2,'2021-02-01','2021-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(6114,NULL,'2021-03',2021,3,'2021-03-01','2021-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6115,NULL,'2021-04',2021,4,'2021-04-01','2021-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6116,NULL,'2021-05',2021,5,'2021-05-01','2021-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6117,NULL,'2021-06',2021,6,'2021-06-01','2021-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6118,NULL,'2021-07',2021,7,'2021-07-01','2021-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6119,NULL,'2021-08',2021,8,'2021-08-01','2021-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6120,NULL,'2021-09',2021,9,'2021-09-01','2021-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6121,NULL,'2021-10',2021,10,'2021-10-01','2021-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6122,NULL,'2021-11',2021,11,'2021-11-01','2021-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6123,NULL,'2021-12',2021,12,'2021-12-01','2021-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6127,NULL,'2022-01',2022,1,'2022-01-01','2022-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6128,NULL,'2022-02',2022,2,'2022-02-01','2022-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(6129,NULL,'2022-03',2022,3,'2022-03-01','2022-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6130,NULL,'2022-04',2022,4,'2022-04-01','2022-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6131,NULL,'2022-05',2022,5,'2022-05-01','2022-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6132,NULL,'2022-06',2022,6,'2022-06-01','2022-06-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6133,NULL,'2022-07',2022,7,'2022-07-01','2022-07-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6134,NULL,'2022-08',2022,8,'2022-08-01','2022-08-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6135,NULL,'2022-09',2022,9,'2022-09-01','2022-09-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6136,NULL,'2022-10',2022,10,'2022-10-01','2022-10-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6137,NULL,'2022-11',2022,11,'2022-11-01','2022-11-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6138,NULL,'2022-12',2022,12,'2022-12-01','2022-12-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6142,NULL,'2023-01',2023,1,'2023-01-01','2023-01-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6143,NULL,'2023-02',2023,2,'2023-02-01','2023-02-28',NULL,NULL,40722,0,NULL,1,0,0,1),(6144,NULL,'2023-03',2023,3,'2023-03-01','2023-03-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6145,NULL,'2023-04',2023,4,'2023-04-01','2023-04-30',NULL,NULL,40722,0,NULL,1,0,0,1),(6146,NULL,'2023-05',2023,5,'2023-05-01','2023-05-31',NULL,NULL,40722,0,NULL,1,0,0,1),(6147,NULL,'2023-06',2023,6,'2023-06-01','2023-06-30',NULL,NULL,40722,0,NULL,1,0,0,1);

--
-- Table structure for table `person_activities`
--

CREATE TABLE `person_activities` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `activity_id` int(10) unsigned NOT NULL,
  `is_principal` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_activities_person_id_foreign` (`person_id`),
  KEY `person_activities_activity_id_foreign` (`activity_id`),
  CONSTRAINT `person_activities_activity_id_foreign` FOREIGN KEY (`activity_id`) REFERENCES `activities` (`id`),
  CONSTRAINT `person_activities_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_activities`
--

INSERT INTO `person_activities` VALUES (4,8127,40720,619,1,'2022-11-23 13:10:14','2022-11-23 13:10:14',NULL),(5,8127,40720,620,0,'2022-11-23 13:10:14','2022-11-23 13:10:14',NULL),(8,8127,40719,796,1,'2022-11-28 09:20:20','2022-11-28 09:20:20',NULL),(9,8127,40721,574,1,'2023-08-17 11:43:46','2023-08-17 11:43:46',NULL),(10,8127,40721,573,0,'2023-08-17 11:43:46','2023-08-17 11:43:46',NULL),(15,8127,40722,710,1,'2023-08-19 11:26:57','2023-08-19 11:26:57',NULL);

--
-- Table structure for table `person_cobrador`
--

CREATE TABLE `person_cobrador` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned DEFAULT NULL,
  `cobrador_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_cobrador_person_id_foreign` (`person_id`),
  KEY `person_cobrador_cobrador_id_foreign` (`cobrador_id`),
  KEY `person_cobrador_person_id_relationed_foreign` (`person_id_relationed`),
  CONSTRAINT `person_cobrador_cobrador_id_foreign` FOREIGN KEY (`cobrador_id`) REFERENCES `cobradores` (`id`),
  CONSTRAINT `person_cobrador_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_cobrador_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_cobrador`
--


--
-- Table structure for table `person_configurations`
--

CREATE TABLE `person_configurations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `period_id` int(10) unsigned DEFAULT NULL,
  `zone_id` int(10) unsigned DEFAULT NULL,
  `settle_calc_by_coef` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `active` int(10) unsigned DEFAULT NULL,
  `enviarMail` int(11) DEFAULT '1',
  `honorario` decimal(16,2) DEFAULT '0.00',
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned DEFAULT NULL,
  `month_close` int(10) unsigned DEFAULT NULL,
  `iva_condition_id` int(10) unsigned DEFAULT NULL,
  `obligation_sell` int(10) unsigned DEFAULT NULL,
  `obligation_buy` int(10) unsigned DEFAULT NULL,
  `obligation_iva` int(10) unsigned DEFAULT NULL,
  `obligation_electronic_receipt` int(10) unsigned DEFAULT NULL,
  `obligation_iibb` int(10) unsigned DEFAULT NULL,
  `obligation_other_taxes` int(10) unsigned DEFAULT NULL,
  `liquidation_start_period` varchar(7) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `obligation_salaries` int(10) unsigned DEFAULT NULL,
  `empleada_domestica` tinyint(1) NOT NULL DEFAULT '0',
  `prorratear_iva` tinyint(1) NOT NULL DEFAULT '0',
  `is_itc` tinyint(1) NOT NULL DEFAULT '0',
  `priority_order` int(10) unsigned DEFAULT NULL,
  `person_id_administrador` int(11) DEFAULT NULL,
  `person_id_titular` int(11) DEFAULT NULL,
  `logo_path` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `certificado_afip_path` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `llave_afip_path` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `access_electronic_receipt` int(10) unsigned DEFAULT '0',
  `ruta_logo_fa` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `inicio_actividades` date DEFAULT NULL,
  `fecha_de_mono_to_ri` date DEFAULT NULL,
  `iibb` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fe_leyenda` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `atencion_iva` tinyint(1) NOT NULL DEFAULT '0',
  `atencion_iva_comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `atencion_iibb` tinyint(1) NOT NULL DEFAULT '0',
  `atencion_iibb_comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `usar_multimoneda` tinyint(1) NOT NULL DEFAULT '0',
  `is_ag_per_ret` tinyint(1) NOT NULL DEFAULT '0',
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_configurations_person_id_foreign` (`person_id`),
  KEY `person_configurations_period_id_foreign` (`period_id`),
  KEY `person_configurations_zone_id_foreign` (`zone_id`),
  KEY `person_configurations_iva_condition_id_foreign` (`iva_condition_id`),
  KEY `person_configurations_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  CONSTRAINT `person_configurations_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `person_configurations_iva_condition_id_foreign` FOREIGN KEY (`iva_condition_id`) REFERENCES `iva_conditions` (`id`),
  CONSTRAINT `person_configurations_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `person_configurations_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_configurations_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_configurations`
--

INSERT INTO `person_configurations` VALUES (2,8127,40719,NULL,NULL,0,'2022-11-23 12:25:19','2022-11-28 09:20:20',2,1,0.00,NULL,12,1,1,1,0,1,3,NULL,'2022-1',0,1,0,0,2,40719,40719,NULL,NULL,NULL,0,NULL,'2022-11-23',NULL,'20361024673',NULL,0,NULL,0,NULL,0,0,NULL),(3,8127,40720,NULL,NULL,0,'2022-11-23 13:10:14','2022-11-23 13:10:14',2,1,0.00,NULL,12,2,1,1,1,0,3,NULL,'2022-01',1,0,1,0,1,40720,40720,NULL,NULL,NULL,0,NULL,'0000-00-00',NULL,'27307471855',NULL,0,NULL,0,NULL,0,0,NULL),(4,8127,40721,NULL,NULL,0,'2022-11-28 09:20:08','2023-08-17 11:43:46',2,1,0.00,NULL,12,2,1,1,1,0,3,NULL,'2022-01',1,0,0,0,1,40721,40721,NULL,NULL,NULL,0,NULL,'2023-08-17','0000-00-00','20169546410',NULL,0,NULL,0,NULL,0,0,NULL),(5,8127,40722,NULL,NULL,0,'2023-08-18 20:00:05','2023-08-19 11:26:57',2,1,0.00,NULL,12,2,1,1,1,0,3,NULL,'2023-06',0,0,0,0,2,40722,40722,NULL,NULL,NULL,0,NULL,'2023-08-18','0000-00-00','27162723575',NULL,0,NULL,0,NULL,0,0,NULL);

--
-- Table structure for table `person_liquidators`
--

CREATE TABLE `person_liquidators` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `liquidator_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_liquidators_person_id_foreign` (`person_id`),
  KEY `person_liquidators_liquidator_id_foreign` (`liquidator_id`),
  CONSTRAINT `person_liquidators_liquidator_id_foreign` FOREIGN KEY (`liquidator_id`) REFERENCES `liquidators` (`id`),
  CONSTRAINT `person_liquidators_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_liquidators`
--

INSERT INTO `person_liquidators` VALUES (1,8127,40720,1,'2022-11-23 13:10:14','2022-11-23 13:10:14',NULL),(3,8127,40721,1,'2023-08-17 11:43:46','2023-08-17 11:43:46',NULL),(8,8127,40722,1,'2023-08-19 11:26:57','2023-08-19 11:26:57',NULL);

--
-- Table structure for table `person_pagos_lugares`
--

CREATE TABLE `person_pagos_lugares` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contacto` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `direccion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `localidad_id` int(10) unsigned DEFAULT NULL,
  `telefono` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `mail` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `horario_de_llamada` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `horario_de_pago` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cobradores_metodo_id` bigint(20) unsigned DEFAULT NULL,
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_pagos_lugares_person_id_foreign` (`person_id`),
  KEY `person_pagos_lugares_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `person_pagos_lugares_localidad_id_foreign` (`localidad_id`),
  KEY `person_pagos_lugares_cobradores_metodo_id_foreign` (`cobradores_metodo_id`),
  CONSTRAINT `person_pagos_lugares_cobradores_metodo_id_foreign` FOREIGN KEY (`cobradores_metodo_id`) REFERENCES `cobradores_metodos` (`id`),
  CONSTRAINT `person_pagos_lugares_localidad_id_foreign` FOREIGN KEY (`localidad_id`) REFERENCES `localidad` (`id`),
  CONSTRAINT `person_pagos_lugares_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_pagos_lugares_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_pagos_lugares`
--


--
-- Table structure for table `person_pagos_promesas`
--

CREATE TABLE `person_pagos_promesas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `person_pago_lugar_id` bigint(20) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL,
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_pagos_promesas_person_id_foreign` (`person_id`),
  KEY `person_pagos_promesas_person_id_relationed_foreign` (`person_id_relationed`),
  CONSTRAINT `person_pagos_promesas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_pagos_promesas_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_pagos_promesas`
--


--
-- Table structure for table `person_pay_methods`
--

CREATE TABLE `person_pay_methods` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `pay_method_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_pay_methods_person_id_foreign` (`person_id`),
  KEY `person_pay_methods_pay_method_id_foreign` (`pay_method_id`),
  CONSTRAINT `person_pay_methods_pay_method_id_foreign` FOREIGN KEY (`pay_method_id`) REFERENCES `pay_methods` (`id`),
  CONSTRAINT `person_pay_methods_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_pay_methods`
--

INSERT INTO `person_pay_methods` VALUES (2,8127,40720,3,'2022-11-23 13:10:14','2022-11-23 13:10:14',NULL),(4,8127,40719,3,'2022-11-28 09:20:20','2022-11-28 09:20:20',NULL),(5,8127,40721,3,'2023-08-17 11:43:46','2023-08-17 11:43:46',NULL),(10,8127,40722,3,'2023-08-19 11:26:57','2023-08-19 11:26:57',NULL);

--
-- Table structure for table `person_relationeds`
--

CREATE TABLE `person_relationeds` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `client_id` int(10) unsigned NOT NULL,
  `cliente_relationed_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_relationeds_person_id_foreign` (`person_id`),
  KEY `person_relationeds_client_id_foreign` (`client_id`),
  KEY `person_relationeds_cliente_relationed_id_foreign` (`cliente_relationed_id`),
  CONSTRAINT `person_relationeds_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_relationeds_cliente_relationed_id_foreign` FOREIGN KEY (`cliente_relationed_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_relationeds_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_relationeds`
--


--
-- Table structure for table `person_types`
--

CREATE TABLE `person_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `description` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `person_types_description_unique` (`description`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_types`
--

INSERT INTO `person_types` VALUES (1,NULL,'Persona Humana',NULL,NULL,NULL),(2,NULL,'Persona Juridica',NULL,NULL,NULL);

--
-- Table structure for table `person_zone_actividad`
--

CREATE TABLE `person_zone_actividad` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `zone_id` int(10) unsigned NOT NULL,
  `actividad_id` int(10) unsigned NOT NULL,
  `calculo_iibb` int(11) NOT NULL,
  `coef` decimal(16,5) NOT NULL DEFAULT '0.00000',
  `alicuota` decimal(16,5) NOT NULL DEFAULT '0.00000',
  `cm_articulo_regimen_id` int(10) unsigned NOT NULL DEFAULT '1',
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_zone_actividad_person_id_foreign` (`person_id`),
  KEY `person_zone_actividad_zone_id_foreign` (`zone_id`),
  KEY `person_zone_actividad_actividad_id_foreign` (`actividad_id`),
  KEY `person_zone_actividad_cm_articulo_regimen_id_foreign` (`cm_articulo_regimen_id`),
  CONSTRAINT `person_zone_actividad_actividad_id_foreign` FOREIGN KEY (`actividad_id`) REFERENCES `activities` (`id`),
  CONSTRAINT `person_zone_actividad_cm_articulo_regimen_id_foreign` FOREIGN KEY (`cm_articulo_regimen_id`) REFERENCES `cm_articulos_regimenes` (`id`),
  CONSTRAINT `person_zone_actividad_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_zone_actividad_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_zone_actividad`
--

INSERT INTO `person_zone_actividad` VALUES (2,8127,40720,5,619,1,0.00000,0.00000,1,1,'2022-11-23 13:10:14','2022-11-23 13:10:14',NULL),(3,8127,40720,5,620,1,0.00000,0.00000,1,1,'2022-11-23 13:10:14','2022-11-23 13:10:14',NULL),(6,8127,40719,5,796,1,0.00000,0.00000,1,1,'2022-11-28 09:20:20','2022-11-28 09:20:20',NULL),(7,8127,40721,5,574,1,0.00000,0.00000,1,1,'2023-08-17 11:43:46','2023-08-17 11:43:46',NULL),(8,8127,40721,5,573,1,0.00000,0.00000,1,1,'2023-08-17 11:43:46','2023-08-17 11:43:46',NULL),(13,8127,40722,5,710,2,0.00000,3.00000,1,1,'2023-08-19 11:26:57','2023-08-19 11:26:57',NULL);

--
-- Table structure for table `person_zones`
--

CREATE TABLE `person_zones` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `sifere_coef` decimal(8,4) NOT NULL DEFAULT '0.0000',
  `iibb_aliquot` decimal(8,4) NOT NULL DEFAULT '0.0000',
  `zone_id` int(10) unsigned NOT NULL,
  `is_principal` tinyint(1) NOT NULL DEFAULT '0',
  `iibb_perception_id` int(10) unsigned DEFAULT NULL,
  `retention_id` int(10) unsigned DEFAULT NULL,
  `activity_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_zones_zone_id_foreign` (`zone_id`),
  KEY `person_zones_person_id_foreign` (`person_id`),
  CONSTRAINT `person_zones_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_zones_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_zones`
--

INSERT INTO `person_zones` VALUES (3,8127,0.0000,0.0000,5,1,NULL,NULL,NULL,'2022-11-23 13:10:14','2022-11-23 13:10:14',40720,NULL),(5,8127,0.0000,0.0000,5,1,NULL,NULL,NULL,'2022-11-28 09:20:20','2022-11-28 09:20:20',40719,NULL),(6,8127,0.0000,0.0000,5,1,NULL,NULL,NULL,'2023-08-17 11:43:46','2023-08-17 11:43:46',40721,NULL),(11,8127,0.0000,0.0000,5,1,NULL,NULL,NULL,'2023-08-19 11:26:57','2023-08-19 11:26:57',40722,NULL);

--
-- Table structure for table `persons`
--

CREATE TABLE `persons` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `field_name1` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `fantasy_name` text COLLATE utf8mb4_unicode_ci,
  `codigo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `field_name2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `document_type` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
  `document` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cond_frente_al_iva_id` int(10) unsigned DEFAULT NULL,
  `country_id` int(10) unsigned DEFAULT NULL,
  `state_id` int(10) unsigned DEFAULT NULL,
  `zone_id` int(10) unsigned DEFAULT NULL,
  `plan_cuenta_id` int(10) unsigned DEFAULT NULL,
  `iva_creditos_tipo_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `activity_id` int(10) unsigned DEFAULT NULL,
  `address` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `localidad_id` int(10) unsigned DEFAULT NULL,
  `person_type_id` int(10) unsigned DEFAULT NULL,
  `fa_iva_condition_id` int(10) unsigned DEFAULT NULL,
  `fa_codigo_postal` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `email` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `iva_per_regimen_id` bigint(20) unsigned DEFAULT NULL,
  `iva_ret_regimen_id` bigint(20) unsigned DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `document_UNIQUE` (`document`),
  KEY `persons_zone_id_foreign` (`zone_id`),
  KEY `persons_person_type_id_foreign` (`person_type_id`),
  KEY `persons_plan_cuenta_id_foreign` (`plan_cuenta_id`),
  KEY `persons_iva_creditos_tipo_id_foreign` (`iva_creditos_tipo_id`),
  KEY `persons_cond_frente_al_iva_id_foreign` (`cond_frente_al_iva_id`),
  KEY `persons_localidad_id_foreign` (`localidad_id`),
  KEY `persons_iva_ret_regimen_id_foreign` (`iva_ret_regimen_id`),
  KEY `persons_iva_per_regimen_id_foreign` (`iva_per_regimen_id`),
  CONSTRAINT `persons_cond_frente_al_iva_id_foreign` FOREIGN KEY (`cond_frente_al_iva_id`) REFERENCES `condicion_frente_al_iva` (`id`),
  CONSTRAINT `persons_iva_creditos_tipo_id_foreign` FOREIGN KEY (`iva_creditos_tipo_id`) REFERENCES `iva_creditos_tipos` (`id`),
  CONSTRAINT `persons_iva_per_regimen_id_foreign` FOREIGN KEY (`iva_per_regimen_id`) REFERENCES `iva_per_regimenes` (`id`),
  CONSTRAINT `persons_iva_ret_regimen_id_foreign` FOREIGN KEY (`iva_ret_regimen_id`) REFERENCES `iva_ret_regimenes` (`id`),
  CONSTRAINT `persons_localidad_id_foreign` FOREIGN KEY (`localidad_id`) REFERENCES `localidad` (`id`),
  CONSTRAINT `persons_person_type_id_foreign` FOREIGN KEY (`person_type_id`) REFERENCES `person_types` (`id`),
  CONSTRAINT `persons_plan_cuenta_id_foreign` FOREIGN KEY (`plan_cuenta_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `persons_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=40748 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `persons`
--

INSERT INTO `persons` VALUES (3,NULL,'Larzabal Hernan',NULL,'3',NULL,'cuit','20-28468190-9',NULL,NULL,22,22,NULL,NULL,'2018-05-12 20:55:07','2018-05-14 01:54:15',1,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40717,NULL,'Taxes Software',NULL,'40717',NULL,'cuit','30-71625124-8',NULL,NULL,22,22,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40718,NULL,'Consumidor Final',NULL,'40718',NULL,'cuit','20-11111111-2',NULL,NULL,22,22,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40719,8127,'SANABRIA, Luis Enrique',NULL,'40719',NULL,'cuit','20-36102467-3',NULL,NULL,NULL,NULL,NULL,NULL,'2020-07-02 19:27:27','2022-11-28 09:20:20',NULL,'Belgrano 905',NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40720,8127,'REYES, Rosa Lorena',NULL,'40720',NULL,'cuit','27-30747185-5',NULL,NULL,NULL,NULL,NULL,NULL,'2022-11-23 13:10:14','2022-11-23 13:10:14',NULL,'Hipolito Irigoyen e/ España - San José de Feliciano',NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40721,8127,'RIVERO, Silvio Eleuterio',NULL,'40721',NULL,'cuit','20-16954641-0',NULL,NULL,NULL,NULL,NULL,NULL,'2022-11-28 09:20:08','2022-11-28 09:20:08',NULL,'Hipólito Irigoyen e/ Brown',NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40722,8127,'LOPEZ, Nora Beatriz',NULL,'40722',NULL,'cuit','27-16272357-5',NULL,NULL,NULL,NULL,NULL,NULL,'2023-08-18 20:00:04','2023-08-18 20:00:31',NULL,'Belgrano 1199',NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40723,8127,'99-99999999-9',NULL,'40723',NULL,'cuit','99-99999999-9',NULL,NULL,NULL,NULL,NULL,NULL,'2023-08-18 20:38:16','2023-08-18 20:38:16',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40724,8127,'ASOCIACION MUTUAL DE AYUDA SOLIDARIA (AMASOL)',NULL,'40724',NULL,'cuit','30-70880494-7',NULL,NULL,NULL,NULL,NULL,NULL,'2023-08-18 20:38:17','2023-08-18 20:38:17',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40725,8127,'ASOCIACION DE BOMBEROS VOLUNTARIOS DE FEDERAL',NULL,'40725',NULL,'cuit','30-71036169-6',NULL,NULL,NULL,NULL,NULL,NULL,'2023-08-18 20:38:17','2023-08-18 20:38:17',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40741,8127,'DATES PEDRO JUAN',NULL,'40741',NULL,'cuit','20-21644951-8',NULL,NULL,NULL,NULL,NULL,NULL,'2023-08-19 10:55:06','2023-08-19 10:55:06',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40742,8127,'RAUSCH PABLO JAVIER',NULL,'40742',NULL,'cuit','20-20096660-1',NULL,NULL,NULL,NULL,NULL,NULL,'2023-08-19 10:55:06','2023-08-19 10:55:06',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40743,8127,'GONZALEZ S. A. S.',NULL,'40743',NULL,'cuit','30-71773033-6',NULL,NULL,NULL,NULL,NULL,NULL,'2023-08-19 10:55:06','2023-08-19 10:55:06',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40744,8127,'ELLENBERGER HECTOR WALDEMAR',NULL,'40744',NULL,'cuit','20-23190144-3',NULL,NULL,NULL,NULL,NULL,NULL,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40745,8127,'MERCADOLIBRE S.R.L.',NULL,'40745',NULL,'cuit','30-70308853-4',NULL,NULL,NULL,NULL,NULL,NULL,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40746,8127,'LAMBOGLIA EDGAR WALTER',NULL,'40746',NULL,'cuit','20-24487047-4',NULL,NULL,NULL,NULL,NULL,NULL,'2023-08-19 10:55:08','2023-08-19 10:55:08',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40747,8127,'ENERGIA DE ENTRE RIOS SOCIEDAD ANONIMA (ENER SA)','ENERSA','40747',NULL,'cuit','30-70917667-2',1,NULL,5,5,NULL,3,'2023-08-19 11:38:23','2023-08-19 11:38:23',NULL,'BUENOS AIRES 87',NULL,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `persons_datos`
--

CREATE TABLE `persons_datos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `dato_1` longtext COLLATE utf8mb4_unicode_ci,
  `dato_2` longtext COLLATE utf8mb4_unicode_ci,
  `dato_3` longtext COLLATE utf8mb4_unicode_ci,
  `dato_4` longtext COLLATE utf8mb4_unicode_ci,
  `dato_5` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `persons_datos_person_id_foreign` (`person_id`),
  CONSTRAINT `persons_datos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `persons_datos`
--


--
-- Table structure for table `persons_sicore`
--

CREATE TABLE `persons_sicore` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `person_id` int(10) unsigned NOT NULL,
  `is_inscripto` tinyint(1) NOT NULL,
  `sicore_regimen_id` bigint(20) unsigned NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `persons_sicore_person_id_foreign` (`person_id`),
  KEY `persons_sicore_sicore_regimen_id_foreign` (`sicore_regimen_id`),
  CONSTRAINT `persons_sicore_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `persons_sicore_sicore_regimen_id_foreign` FOREIGN KEY (`sicore_regimen_id`) REFERENCES `sicore_regimenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `persons_sicore`
--


--
-- Table structure for table `plazo_de_pago`
--

CREATE TABLE `plazo_de_pago` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `plazo_de_pago`
--

INSERT INTO `plazo_de_pago` VALUES (1,NULL,'0 dias FF',1,NULL,NULL,NULL),(2,NULL,'7 dias FF',1,NULL,NULL,NULL),(3,NULL,'15 dias FF',1,NULL,NULL,NULL),(4,NULL,'30 dias FF',1,NULL,NULL,NULL),(5,NULL,'45 dias FF',1,NULL,NULL,NULL),(6,NULL,'60 dias FF',1,NULL,NULL,NULL);

--
-- Table structure for table `ppc_comunicaciones`
--

CREATE TABLE `ppc_comunicaciones` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `ppc_comunicaciones_type_id` bigint(20) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `is_propio` tinyint(1) NOT NULL DEFAULT '0',
  `person_id_relationed` int(10) unsigned DEFAULT NULL,
  `ppc_type_id` bigint(20) unsigned NOT NULL,
  `ppc_user_id` bigint(20) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL,
  `titulo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `descripcion` longtext COLLATE utf8mb4_unicode_ci,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ppc_comunicaciones_ppc_comunicaciones_type_id_foreign` (`ppc_comunicaciones_type_id`),
  KEY `ppc_comunicaciones_person_id_foreign` (`person_id`),
  KEY `ppc_comunicaciones_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `ppc_comunicaciones_ppc_type_id_foreign` (`ppc_type_id`),
  KEY `ppc_comunicaciones_ppc_user_id_foreign` (`ppc_user_id`),
  CONSTRAINT `ppc_comunicaciones_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_comunicaciones_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_comunicaciones_ppc_comunicaciones_type_id_foreign` FOREIGN KEY (`ppc_comunicaciones_type_id`) REFERENCES `ppc_comunicaciones_types` (`id`),
  CONSTRAINT `ppc_comunicaciones_ppc_type_id_foreign` FOREIGN KEY (`ppc_type_id`) REFERENCES `ppc_types` (`id`),
  CONSTRAINT `ppc_comunicaciones_ppc_user_id_foreign` FOREIGN KEY (`ppc_user_id`) REFERENCES `ppc_users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_comunicaciones`
--


--
-- Table structure for table `ppc_comunicaciones_files`
--

CREATE TABLE `ppc_comunicaciones_files` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `ppc_comunicacion_id` bigint(20) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `path` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_original` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ppc_comunicaciones_files_ppc_comunicacion_id_foreign` (`ppc_comunicacion_id`),
  CONSTRAINT `ppc_comunicaciones_files_ppc_comunicacion_id_foreign` FOREIGN KEY (`ppc_comunicacion_id`) REFERENCES `ppc_comunicaciones` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_comunicaciones_files`
--


--
-- Table structure for table `ppc_comunicaciones_types`
--

CREATE TABLE `ppc_comunicaciones_types` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_comunicaciones_types`
--

INSERT INTO `ppc_comunicaciones_types` VALUES (1,NULL,'Legajos',1,NULL,NULL,NULL),(2,NULL,'Notificaciones',1,NULL,NULL,NULL);

--
-- Table structure for table `ppc_receipts`
--

CREATE TABLE `ppc_receipts` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `type_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `ppc_user_id` bigint(20) unsigned NOT NULL,
  `ppc_type_id` bigint(20) unsigned NOT NULL,
  `was_leida` tinyint(1) NOT NULL DEFAULT '0',
  `fecha` datetime NOT NULL,
  `titulo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `descripcion` longtext COLLATE utf8mb4_unicode_ci,
  `file` text COLLATE utf8mb4_unicode_ci,
  `type_receipt_id` int(10) unsigned DEFAULT NULL,
  `sucursal` int(11) DEFAULT NULL,
  `numero` int(11) DEFAULT NULL,
  `fecha_emision` date NOT NULL,
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cotizacion` decimal(16,2) NOT NULL DEFAULT '0.00',
  `subtotal` decimal(16,2) NOT NULL DEFAULT '0.00',
  `impuestos` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `forma_de_entrega_id` bigint(20) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned DEFAULT NULL,
  `documento_asoc` text COLLATE utf8mb4_unicode_ci,
  `ppc_receipt_estado_id` bigint(20) unsigned NOT NULL DEFAULT '1',
  `comentario_recepcion` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ppc_receipts_type_id_foreign` (`type_id`),
  KEY `ppc_receipts_person_id_foreign` (`person_id`),
  KEY `ppc_receipts_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `ppc_receipts_ppc_type_id_foreign` (`ppc_type_id`),
  KEY `ppc_receipts_ppc_user_id_foreign` (`ppc_user_id`),
  KEY `ppc_receipts_type_receipt_id_foreign` (`type_receipt_id`),
  KEY `ppc_receipts_moneda_id_foreign` (`moneda_id`),
  KEY `ppc_receipts_forma_de_entrega_id_foreign` (`forma_de_entrega_id`),
  KEY `ppc_receipts_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `ppc_receipts_ppc_receipt_estado_id_foreign` (`ppc_receipt_estado_id`),
  CONSTRAINT `ppc_receipts_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `ppc_receipts_forma_de_entrega_id_foreign` FOREIGN KEY (`forma_de_entrega_id`) REFERENCES `forma_de_entrega` (`id`),
  CONSTRAINT `ppc_receipts_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `ppc_receipts_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_receipts_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_receipts_ppc_receipt_estado_id_foreign` FOREIGN KEY (`ppc_receipt_estado_id`) REFERENCES `ppc_receipts_estados` (`id`),
  CONSTRAINT `ppc_receipts_ppc_type_id_foreign` FOREIGN KEY (`ppc_type_id`) REFERENCES `ppc_types` (`id`),
  CONSTRAINT `ppc_receipts_ppc_user_id_foreign` FOREIGN KEY (`ppc_user_id`) REFERENCES `ppc_users` (`id`),
  CONSTRAINT `ppc_receipts_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `types` (`id`),
  CONSTRAINT `ppc_receipts_type_receipt_id_foreign` FOREIGN KEY (`type_receipt_id`) REFERENCES `receipt_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_receipts`
--


--
-- Table structure for table `ppc_receipts_estados`
--

CREATE TABLE `ppc_receipts_estados` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_receipts_estados`
--

INSERT INTO `ppc_receipts_estados` VALUES (1,NULL,'Pendiente',1,NULL,NULL,NULL),(2,NULL,'Rechazado',1,NULL,NULL,NULL),(3,NULL,'Aprobado',1,NULL,NULL,NULL);

--
-- Table structure for table `ppc_receipts_files`
--

CREATE TABLE `ppc_receipts_files` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `ppc_receipt_id` bigint(20) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `path` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_original` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ppc_receipts_files_ppc_receipt_id_foreign` (`ppc_receipt_id`),
  CONSTRAINT `ppc_receipts_files_ppc_receipt_id_foreign` FOREIGN KEY (`ppc_receipt_id`) REFERENCES `ppc_receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_receipts_files`
--


--
-- Table structure for table `ppc_types`
--

CREATE TABLE `ppc_types` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_types`
--

INSERT INTO `ppc_types` VALUES (1,NULL,'Proveedor',1,NULL,NULL,NULL),(2,NULL,'Cliente',1,NULL,NULL,NULL),(3,NULL,'Ambos',1,NULL,NULL,NULL);

--
-- Table structure for table `ppc_users`
--

CREATE TABLE `ppc_users` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `person_id_ppc_user` int(10) unsigned NOT NULL,
  `ppc_type_id` bigint(20) unsigned NOT NULL,
  `login_user` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `password` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_principal` tinyint(1) NOT NULL DEFAULT '1',
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ppc_users_person_id_foreign` (`person_id`),
  KEY `ppc_users_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `ppc_users_person_id_ppc_user_foreign` (`person_id_ppc_user`),
  KEY `ppc_users_ppc_type_id_foreign` (`ppc_type_id`),
  CONSTRAINT `ppc_users_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_users_person_id_ppc_user_foreign` FOREIGN KEY (`person_id_ppc_user`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_users_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_users_ppc_type_id_foreign` FOREIGN KEY (`ppc_type_id`) REFERENCES `ppc_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_users`
--


--
-- Table structure for table `pre_facturas`
--

CREATE TABLE `pre_facturas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `fact_elec_receipt_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `fecha` date NOT NULL,
  `fecha_facturado` date DEFAULT NULL,
  `neto` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `pre_facturas_person_id_foreign` (`person_id`),
  KEY `pre_facturas_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `pre_facturas_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  CONSTRAINT `pre_facturas_fact_elec_receipt_id_foreign` FOREIGN KEY (`fact_elec_receipt_id`) REFERENCES `fact_elec_receipts` (`id`),
  CONSTRAINT `pre_facturas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `pre_facturas_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pre_facturas`
--


--
-- Table structure for table `pre_facturas_files`
--

CREATE TABLE `pre_facturas_files` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `pre_factura_id` bigint(20) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `path` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_original` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `pre_facturas_files_pre_factura_id_foreign` (`pre_factura_id`),
  CONSTRAINT `pre_facturas_files_pre_factura_id_foreign` FOREIGN KEY (`pre_factura_id`) REFERENCES `pre_facturas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pre_facturas_files`
--


--
-- Table structure for table `pre_facturas_ots`
--

CREATE TABLE `pre_facturas_ots` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `pre_factura_id` bigint(20) unsigned NOT NULL,
  `inv_ot_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `pre_facturas_ots_pre_factura_id_foreign` (`pre_factura_id`),
  KEY `pre_facturas_ots_inv_ot_id_foreign` (`inv_ot_id`),
  CONSTRAINT `pre_facturas_ots_inv_ot_id_foreign` FOREIGN KEY (`inv_ot_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `pre_facturas_ots_pre_factura_id_foreign` FOREIGN KEY (`pre_factura_id`) REFERENCES `pre_facturas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pre_facturas_ots`
--


--
-- Table structure for table `presupuesto_config`
--

CREATE TABLE `presupuesto_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `num_inicial` int(10) unsigned NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `presupuesto_config_person_id_foreign` (`person_id`),
  CONSTRAINT `presupuesto_config_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `presupuesto_config`
--


--
-- Table structure for table `presupuestos`
--

CREATE TABLE `presupuestos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `fecha` date NOT NULL DEFAULT '2019-12-23',
  `punto_venta_id` int(10) unsigned NOT NULL,
  `system_tax_id` int(10) unsigned NOT NULL DEFAULT '7',
  `numero` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_receptor` int(10) unsigned NOT NULL DEFAULT '3',
  `texto` longtext COLLATE utf8mb4_unicode_ci,
  `iva_si_no` tinyint(1) NOT NULL DEFAULT '0',
  `neto` decimal(16,2) NOT NULL DEFAULT '0.00',
  `iva` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `presupuestos_punto_venta_id_foreign` (`punto_venta_id`),
  KEY `presupuestos_person_id_foreign` (`person_id`),
  KEY `presupuestos_person_id_receptor_foreign` (`person_id_receptor`),
  KEY `presupuestos_system_tax_id_foreign` (`system_tax_id`),
  CONSTRAINT `presupuestos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `presupuestos_person_id_receptor_foreign` FOREIGN KEY (`person_id_receptor`) REFERENCES `persons` (`id`),
  CONSTRAINT `presupuestos_punto_venta_id_foreign` FOREIGN KEY (`punto_venta_id`) REFERENCES `fact_elec_puntos_venta` (`id`),
  CONSTRAINT `presupuestos_system_tax_id_foreign` FOREIGN KEY (`system_tax_id`) REFERENCES `system_taxes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `presupuestos`
--


--
-- Table structure for table `querys`
--

CREATE TABLE `querys` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `querys`
--

INSERT INTO `querys` VALUES (1,NULL,'Factura Electronica Masiva Productos',1,'2022-11-23 12:25:12','2022-11-23 12:25:12',NULL);

--
-- Table structure for table `querys_details`
--

CREATE TABLE `querys_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned DEFAULT NULL,
  `query_id` bigint(20) unsigned NOT NULL,
  `descripcion` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `querys_details_query_id_foreign` (`query_id`),
  KEY `querys_details_person_id_foreign` (`person_id`),
  CONSTRAINT `querys_details_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `querys_details_query_id_foreign` FOREIGN KEY (`query_id`) REFERENCES `querys` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `querys_details`
--


--
-- Table structure for table `queue_proceso_resultado`
--

CREATE TABLE `queue_proceso_resultado` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `queue_proceso_id` int(10) unsigned DEFAULT NULL,
  `resultado` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `queue_proceso_resultado_queue_proceso_id_foreign` (`queue_proceso_id`),
  CONSTRAINT `queue_proceso_resultado_queue_proceso_id_foreign` FOREIGN KEY (`queue_proceso_id`) REFERENCES `queue_procesos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `queue_proceso_resultado`
--


--
-- Table structure for table `queue_procesos`
--

CREATE TABLE `queue_procesos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `queue_procesos`
--

INSERT INTO `queue_procesos` VALUES (1,NULL,'Importar - Excel',NULL,NULL,NULL),(2,NULL,'Importar - Mis Comprobantes',NULL,NULL,NULL),(3,NULL,'Importar - Portal IVA','2022-11-23 12:25:13','2022-11-23 12:25:13',NULL),(4,NULL,'Importar - Archivos PEM F8011','2022-11-23 12:25:18','2022-11-23 12:25:18',NULL);

--
-- Table structure for table `receipt_dc_ordenes`
--

CREATE TABLE `receipt_dc_ordenes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `receipt_id` int(10) unsigned NOT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_id_oc` bigint(20) unsigned NOT NULL,
  `importe` decimal(16,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `receipt_dc_ordenes_receipt_id_foreign` (`receipt_id`),
  KEY `receipt_dc_ordenes_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `receipt_dc_ordenes_dc_orden_id_oc_foreign` (`dc_orden_id_oc`),
  CONSTRAINT `receipt_dc_ordenes_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `receipt_dc_ordenes_dc_orden_id_oc_foreign` FOREIGN KEY (`dc_orden_id_oc`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `receipt_dc_ordenes_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipt_dc_ordenes`
--


--
-- Table structure for table `receipt_taxes`
--

CREATE TABLE `receipt_taxes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `receipt_id` int(10) unsigned NOT NULL,
  `tax_id` int(10) unsigned DEFAULT NULL,
  `amount` decimal(16,2) NOT NULL,
  `tax_amount` decimal(16,2) NOT NULL DEFAULT '0.00',
  `taxable_iibb` int(11) NOT NULL DEFAULT '0',
  `iva_iibb` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `receipt_taxes_receipt_id_foreign` (`receipt_id`),
  CONSTRAINT `receipt_taxes_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=202 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipt_taxes`
--

INSERT INTO `receipt_taxes` VALUES (67,8127,67,2,50413.48,10586.83,2,1,'2023-08-19 09:14:32','2023-08-19 09:14:32',NULL),(68,8127,68,2,49463.10,10387.25,2,1,'2023-08-19 09:14:32','2023-08-19 09:14:32',NULL),(69,8127,69,2,49463.05,10387.24,2,1,'2023-08-19 09:14:32','2023-08-19 09:14:32',NULL),(70,8127,70,2,53429.86,11220.27,2,1,'2023-08-19 09:14:32','2023-08-19 09:14:32',NULL),(71,8127,71,2,51991.76,10918.27,2,1,'2023-08-19 09:14:32','2023-08-19 09:14:32',NULL),(72,8127,72,2,49446.43,10383.75,2,1,'2023-08-19 09:14:32','2023-08-19 09:14:32',NULL),(73,8127,73,2,49438.10,10382.00,2,1,'2023-08-19 09:14:33','2023-08-19 09:14:33',NULL),(84,8127,84,2,49446.38,10383.74,2,1,'2023-08-19 09:14:54','2023-08-19 09:14:54',NULL),(85,8127,85,2,49454.76,10385.50,2,1,'2023-08-19 09:14:54','2023-08-19 09:14:54',NULL),(86,8127,86,2,50529.24,10611.14,2,1,'2023-08-19 09:14:54','2023-08-19 09:14:54',NULL),(87,8127,87,2,50909.29,10690.95,2,1,'2023-08-19 09:15:12','2023-08-19 09:15:12',NULL),(89,8127,89,2,51471.33,10808.98,2,1,'2023-08-19 09:15:13','2023-08-19 09:15:13',NULL),(90,8127,90,2,51463.05,10807.24,2,1,'2023-08-19 09:15:13','2023-08-19 09:15:13',NULL),(91,8127,91,2,51636.76,10843.72,2,1,'2023-08-19 09:15:13','2023-08-19 09:15:13',NULL),(92,8127,92,2,51793.71,10876.68,2,1,'2023-08-19 09:15:13','2023-08-19 09:15:13',NULL),(93,8127,93,2,50851.52,10678.82,2,1,'2023-08-19 09:15:13','2023-08-19 09:15:13',NULL),(94,8127,94,2,49463.14,10387.26,2,1,'2023-08-19 09:30:33','2023-08-19 09:30:33',NULL),(95,8127,95,2,51082.95,10727.42,2,1,'2023-08-19 09:32:10','2023-08-19 09:32:10',NULL),(96,8127,96,2,49463.10,10387.25,2,1,'2023-08-19 09:33:08','2023-08-19 09:33:08',NULL),(97,8127,97,2,49454.67,10385.48,2,1,'2023-08-19 09:33:59','2023-08-19 09:33:59',NULL),(98,8127,98,2,49454.81,10385.51,2,1,'2023-08-19 09:41:16','2023-08-19 09:41:16',NULL),(104,8127,99,2,51429.95,10800.29,2,1,'2023-08-19 09:54:45','2023-08-19 09:54:45',NULL),(105,8127,100,2,51851.38,10888.79,2,1,'2023-08-19 09:56:50','2023-08-19 09:56:50',NULL),(106,8127,101,2,51215.05,10755.16,2,1,'2023-08-19 09:57:32','2023-08-19 09:57:32',NULL),(107,8127,102,2,51868.10,10892.30,2,1,'2023-08-19 09:57:51','2023-08-19 09:57:51',NULL),(108,8127,103,2,51454.76,10805.50,2,1,'2023-08-19 09:58:36','2023-08-19 09:58:36',NULL),(109,8127,104,2,49479.71,10390.74,2,1,'2023-08-19 10:00:27','2023-08-19 10:00:27',NULL),(138,8127,121,6,12600.00,0.00,2,1,'2023-08-19 10:55:06','2023-08-19 10:55:06',NULL),(139,8127,122,2,15343.94,3222.23,2,1,'2023-08-19 10:55:06','2023-08-19 10:55:06',NULL),(140,8127,122,1012,460.32,0.00,2,1,'2023-08-19 10:55:06','2023-08-19 10:55:06',NULL),(141,8127,123,2,47337.31,9940.84,2,1,'2023-08-19 10:55:06','2023-08-19 10:55:06',NULL),(142,8127,123,1012,946.75,0.00,2,1,'2023-08-19 10:55:06','2023-08-19 10:55:06',NULL),(143,8127,124,2,5867.77,1232.23,2,1,'2023-08-19 10:55:06','2023-08-19 10:55:06',NULL),(144,8127,125,2,302558.94,63537.38,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(145,8127,125,1012,9076.77,0.00,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(146,8127,126,2,6251.74,1312.87,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(147,8127,126,1000,174.57,0.00,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(148,8127,126,1012,288.55,0.00,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(149,8127,127,2,30687.88,6444.45,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(150,8127,127,1012,920.64,0.00,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(151,8127,128,2,161642.97,33945.02,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(152,8127,129,2,195205.22,40993.10,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(153,8127,129,1012,5856.16,0.00,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(154,8127,130,2,30687.88,6444.45,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(155,8127,130,1012,920.64,0.00,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(156,8127,131,2,5818.93,1221.98,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL);
INSERT INTO `receipt_taxes` VALUES (157,8127,131,1012,349.14,0.00,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(158,8127,132,2,5867.77,1232.23,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(159,8127,133,2,246999.09,51869.81,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(160,8127,133,1012,7409.97,0.00,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(161,8127,134,2,30687.88,6444.45,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(162,8127,134,1012,920.64,0.00,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(163,8127,135,2,8946.78,1878.82,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(164,8127,135,1012,178.94,0.00,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(165,8127,136,2,84595.58,17765.07,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(166,8127,136,1012,1691.91,0.00,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(167,8127,137,2,4833.72,1015.08,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(168,8127,137,1012,96.67,0.00,2,1,'2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(169,8127,138,2,289023.63,60694.96,2,1,'2023-08-19 10:55:08','2023-08-19 10:55:08',NULL),(170,8127,138,1012,8670.71,0.00,2,1,'2023-08-19 10:55:08','2023-08-19 10:55:08',NULL),(171,8127,139,2,6251.74,1312.87,2,1,'2023-08-19 10:55:08','2023-08-19 10:55:08',NULL),(172,8127,139,1012,288.55,0.00,2,1,'2023-08-19 10:55:08','2023-08-19 10:55:08',NULL),(173,8127,140,1,46968.20,4931.66,2,1,'2023-08-19 10:55:08','2023-08-19 10:55:08',NULL),(174,8127,141,2,30687.88,6444.45,2,1,'2023-08-19 10:55:08','2023-08-19 10:55:08',NULL),(175,8127,141,1012,920.64,0.00,2,1,'2023-08-19 10:55:08','2023-08-19 10:55:08',NULL),(176,8127,142,2,2644.63,555.37,2,1,'2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(177,8127,143,2,5785.12,1214.88,2,1,'2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(178,8127,144,2,4462.81,937.19,2,1,'2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(179,8127,145,2,10826.45,2273.55,2,1,'2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(180,8127,146,2,9380.17,1969.83,2,1,'2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(181,8127,147,2,3471.07,728.93,2,1,'2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(182,8127,148,2,7190.08,1509.92,2,1,'2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(183,8127,149,2,6859.50,1440.50,2,1,'2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(184,8127,150,2,5330.58,1119.42,2,1,'2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(185,8127,151,2,4380.17,919.83,2,1,'2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(186,8127,152,2,3140.50,659.50,2,1,'2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(187,8127,153,2,2892.56,607.44,2,1,'2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(188,8127,154,2,28925.62,6074.38,2,1,'2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(189,8127,155,2,8016.53,1683.47,2,1,'2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(190,8127,156,2,13636.36,2863.64,2,1,'2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(191,8127,157,2,6603.31,1386.69,2,1,'2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(192,8127,158,2,7479.34,1570.66,2,1,'2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(193,8127,159,2,6694.21,1405.79,2,1,'2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(194,8127,160,2,7644.63,1605.37,2,1,'2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(195,8127,161,2,8347.11,1752.89,2,1,'2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(196,8127,162,2,6694.21,1405.79,2,1,'2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(197,8127,163,2,8181.82,1718.18,2,1,'2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(198,8127,164,2,5909.09,1240.91,2,1,'2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(199,8127,165,2,3842.98,807.02,2,1,'2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(200,8127,168,8,0.01,0.00,2,1,'2023-08-19 11:44:15','2023-08-19 11:44:15',NULL),(201,8127,168,1000,101.22,0.00,2,1,'2023-08-19 11:44:15','2023-08-19 11:44:15',NULL);

--
-- Table structure for table `receipt_types`
--

CREATE TABLE `receipt_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `credit` int(11) DEFAULT '0',
  `agroup_iva_module` int(10) unsigned DEFAULT NULL,
  `sell_no_taxabled` int(11) DEFAULT '0',
  `buy_no_taxabled` int(11) DEFAULT '0',
  `iva_condition_id` int(11) DEFAULT NULL,
  `is_fce_pyme` tinyint(1) NOT NULL DEFAULT '0',
  `afip_comprobante_id` int(11) DEFAULT NULL,
  `tipo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `letra` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `facta_electronica` int(10) unsigned NOT NULL DEFAULT '0',
  `is_stock_lpg` tinyint(1) NOT NULL DEFAULT '0',
  `show_from_total` tinyint(1) NOT NULL DEFAULT '0',
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=72 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipt_types`
--

INSERT INTO `receipt_types` VALUES (1,NULL,NULL,'2019-07-29 22:19:32','Factura A','1',0,1,0,0,2,0,1,'Factura','A',1,0,0,NULL),(2,NULL,NULL,'2019-07-29 22:19:32','Nota de débito A','2',0,1,0,0,2,0,2,'Nota de Débito','A',1,0,0,NULL),(3,NULL,NULL,'2019-07-29 22:19:32','Nota de crédito A','3',1,NULL,0,0,2,0,3,'Nota de Crédito','A',1,0,0,NULL),(4,NULL,NULL,'2022-11-23 12:25:02','Factura B','6',0,2,0,1,2,0,6,'Factura','B',1,0,1,NULL),(5,NULL,NULL,'2022-11-23 12:25:02','Nota de débito B','7',0,2,0,1,2,0,7,'Nota de Débito','B',1,0,1,NULL),(6,NULL,NULL,'2022-11-23 12:25:02','Nota de crédito B','8',1,NULL,0,1,2,0,8,'Nota de Crédito','B',1,0,1,NULL),(7,NULL,NULL,'2019-07-29 22:19:32','Factura C','11',0,0,1,1,1,0,11,'Factura','C',1,0,0,NULL),(8,NULL,NULL,'2019-07-29 22:19:32','Nota de débito C','12',0,0,1,1,1,0,12,'Nota de Débito','C',1,0,0,NULL),(9,NULL,NULL,'2019-07-29 22:19:32','Nota de crédito C','13',1,NULL,1,1,1,0,13,'Nota de Crédito','C',1,0,0,NULL),(10,NULL,NULL,NULL,'RECIBO A','4',0,1,0,0,2,0,4,'RECIBO','A',0,0,0,NULL),(11,NULL,NULL,'2022-11-23 12:25:02','RECIBO B','9',0,2,0,1,2,0,9,'RECIBO','B',0,0,1,NULL),(12,NULL,NULL,NULL,'RECIBO C','15',0,0,1,1,1,0,15,'RECIBO','C',0,0,0,NULL),(13,NULL,NULL,'2020-02-27 02:46:40','Factura E','19',0,0,1,0,2,0,19,'Factura','E',0,0,0,NULL),(14,NULL,NULL,'2020-02-27 02:46:40','Nota de débito E','20',0,0,1,0,2,0,20,'Nota de Débito','E',0,0,0,NULL),(15,NULL,NULL,'2020-02-27 02:46:40','Nota de Crédito E','21',1,NULL,1,0,2,0,21,'Nota de Crédito','E',0,0,0,NULL),(16,NULL,NULL,'2022-11-23 12:25:10','Factura M','51',0,1,0,0,2,0,51,'Factura','M',1,0,0,NULL),(17,NULL,NULL,'2020-02-27 02:46:40','Despacho de Importacion','66',0,NULL,0,0,0,0,66,NULL,NULL,0,0,0,NULL),(18,NULL,NULL,'2022-11-23 12:25:10','Nota de Credito M','53',1,NULL,0,0,2,0,53,'Nota de Crédito','M',1,0,0,NULL),(19,NULL,NULL,'2022-11-23 12:25:10','Nota de Debito M','52',1,1,0,0,2,0,52,'Nota de Débito','M',1,0,0,NULL),(20,NULL,NULL,NULL,'Recibo M','54',0,1,0,0,2,0,54,'RECIBO','M',0,0,0,NULL),(21,NULL,NULL,NULL,'Recibo E',NULL,1,0,1,0,2,0,NULL,'RECIBO','E',0,0,0,NULL),(22,NULL,'2019-05-14 21:22:16','2022-11-23 12:25:02','Liquidacion Primaria de Granos','33',0,1,0,0,2,0,33,'Liquidacion Primaria de Granos','A',0,1,0,NULL),(23,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) A','201',0,1,0,0,2,1,201,'FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','A',1,0,0,NULL),(24,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','NOTA DE DEBITO ELECTRÓNICA MiPyMEs (FCE) A','202',0,1,0,0,2,1,202,'NOTA DEBITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','A',1,0,0,NULL),(25,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','NOTA DE CREDITO ELECTRÓNICA MiPyMEs (FCE) A','203',1,NULL,0,0,2,1,203,'NOTA CREDITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','A',1,0,0,NULL),(26,NULL,'2019-11-05 19:00:05','2022-11-23 12:25:02','FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) B','206',0,2,0,1,2,1,206,'FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','B',1,0,1,NULL),(27,NULL,'2019-11-05 19:00:05','2022-11-23 12:25:02','NOTA DE DEBITO ELECTRÓNICA MiPyMEs (FCE) B','207',0,2,0,1,2,1,207,'NOTA DEBITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','B',1,0,1,NULL),(28,NULL,'2019-11-05 19:00:05','2022-11-23 12:25:02','NOTA DE CREDITO ELECTRÓNICA MiPyMEs (FCE) B','208',1,NULL,0,1,2,1,208,'NOTA CREDITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','B',1,0,1,NULL),(29,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) C','211',0,0,1,1,1,1,211,'FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','C',1,0,0,NULL),(30,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','NOTA DE DEBITO ELECTRÓNICA MiPyMEs (FCE) C','212',0,0,1,1,1,1,212,'NOTA DEBITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','C',1,0,0,NULL),(31,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','NOTA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) C','213',1,NULL,1,1,1,1,213,'NOTA CREDITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','C',1,0,0,NULL);
INSERT INTO `receipt_types` VALUES (32,NULL,'2020-01-28 01:59:55','2022-11-23 12:25:02','Tique (Informe Diario Z)','83',0,2,0,0,2,0,83,'Cierre Diario Informe Z','Z',0,0,1,NULL),(33,NULL,'2020-02-19 04:48:11','2020-02-19 04:48:11','Comprobantes de Compra de Bienes No Registrables a Consumidores Finales','49',0,1,0,0,2,0,49,'Comprobantes de Compra de Bienes No Registrables','a Consumidores Finales',0,0,0,NULL),(34,NULL,'2022-11-23 12:24:59','2022-11-23 12:25:18','Cuenta de Venta y Líquido Producto A','60',0,1,0,0,2,1,60,'Cuentas de Venta y Liquido Producto A','A',1,0,0,NULL),(35,NULL,'2022-11-23 12:24:59','2022-11-23 12:25:18','Cuenta de Venta y Líquido Producto B','61',0,2,0,1,2,1,61,'Cuentas de Venta y Liquido Producto B','B',1,0,1,NULL),(36,NULL,'2022-11-23 12:24:59','2022-11-23 12:25:03','Liquidaciones A','63',0,1,0,0,2,1,63,'Liquidaciones A','A',1,0,0,NULL),(37,NULL,'2022-11-23 12:24:59','2022-11-23 12:25:03','Liquidaciones B','64',0,2,0,1,2,1,64,'Liquidaciones B','B',1,0,1,NULL),(38,NULL,'2022-11-23 12:25:02','2022-11-23 12:25:05','Tique Factura A','81',0,1,0,0,2,1,81,'Tique Factura','A',0,0,0,NULL),(39,NULL,'2022-11-23 12:25:02','2022-11-23 12:25:05','Tique Factura B','82',0,2,0,1,2,1,82,'Tique Factura','B',0,0,1,NULL),(40,NULL,'2022-11-23 12:25:02','2022-11-23 12:25:08','OTROS COMPROBANTES QUE NO CUMPLEN O ESTÁN EXCEPTUADOS DE LA R.G. 1415 Y SUS MODIF','99',0,1,1,1,1,1,99,'OTROS COMPROBANTES QUE NO CUMPLEN O ESTÁN EXCEPTUADOS DE LA R.G. 1415 Y SUS MODIF ','OTROS',0,0,0,NULL),(41,NULL,'2022-11-23 12:25:03','2022-11-23 12:25:03','Liquidacion de Compra A - Sector Pecuario','183',0,1,0,0,2,0,183,'Liquidacion de Compra','A',0,0,0,NULL),(42,NULL,'2022-11-23 12:25:03','2022-11-23 12:25:03','Liquidacion de Compra B - Sector Pecuario','185',0,2,0,1,2,0,185,'Liquidacion de Compra','B',0,0,1,NULL),(43,NULL,'2022-11-23 12:25:04','2022-11-23 12:25:05','Liquidacion de Venta Directa A - Sector Pecuario','190',0,1,0,0,2,1,190,'Liquidacion de Venta Directa','A',0,0,0,NULL),(44,NULL,'2022-11-23 12:25:04','2022-11-23 12:25:05','Liquidacion de Venta Directa B - Sector Pecuario','191',0,2,0,1,2,1,191,'Liquidacion de Venta Directa','B',0,0,0,NULL),(45,NULL,'2022-11-23 12:25:05','2022-11-23 12:25:05','Liquidacion Secundaria de Granos','331',0,1,0,0,2,1,331,'Liquidacion Secundaria de Granos','LSG',0,0,0,NULL),(46,NULL,'2022-11-23 12:25:05','2022-11-23 12:25:05','Certificado de Deposito','332',0,1,0,0,2,1,332,'Certificado de Deposito','CD',0,0,0,NULL),(47,NULL,'2022-11-23 12:25:05','2022-11-23 12:25:05','Liquidacion de Servicios Publicos Clase A','17',0,1,0,0,2,1,17,'Liquidacion de Servicios Publicos Clase A','LSPCA',0,0,0,NULL),(48,NULL,'2022-11-23 12:25:08','2022-11-23 12:25:08','Liquidacion de Servicios Publicos Clase B','18',0,2,0,1,2,1,18,'Liquidacion de Servicios Publicos Clase B','LSPCA',1,0,0,NULL),(49,NULL,NULL,NULL,'Factura Clase T','195',0,1,0,0,2,0,195,'Factura Clase T','T',0,0,0,NULL),(50,NULL,NULL,NULL,'Nota de Debito Clase T','196',0,1,0,0,2,0,196,'Factura Clase T','T',0,0,0,NULL),(51,NULL,NULL,NULL,'Nota de Credito Clase T','197',1,NULL,0,0,2,0,197,'Factura Clase T','T',0,0,0,NULL),(52,NULL,NULL,'2022-11-23 12:25:18','Cuenta de Venta y Líquido Producto A - Sector Pecuario','180',0,1,0,0,2,0,180,'Cuenta de Venta y Líquido Producto A','A',0,0,0,NULL),(53,NULL,NULL,'2022-11-23 12:25:18','Cuenta de Venta y Líquido Producto B - Sector Pecuario','182',0,2,0,1,2,0,182,'Cuenta de Venta y Líquido Producto B','B',0,0,0,NULL),(54,NULL,NULL,NULL,'Liquidación de Compra A','183',0,1,0,0,2,0,183,'Liquidación de Compra A ','A',0,0,0,NULL),(55,NULL,NULL,NULL,'Liquidación de Compra B','185',0,2,0,1,2,0,185,'Liquidación de Compra B ','B',0,0,0,NULL),(56,NULL,NULL,NULL,'Liquidación de Compra Directa A','186',0,1,0,0,2,0,186,'Liquidación de Compra Directa A','A',0,0,0,NULL),(57,NULL,NULL,NULL,'Liquidación de Compra Directa B','188',0,2,0,1,2,0,188,'Liquidación de Compra Directa B ','B',0,0,0,NULL);
INSERT INTO `receipt_types` VALUES (58,NULL,NULL,NULL,'Liquidación de Compra Directa C','189',0,0,1,1,1,0,189,'Liquidación de Compra Directa C ','C',0,0,0,NULL),(59,NULL,NULL,NULL,'Liquidación de Venta Directa A','190',0,1,0,0,2,0,190,'Liquidación de Venta Directa A','A',0,0,0,NULL),(60,NULL,NULL,NULL,'Liquidación de Venta Directa B','191',0,2,0,1,2,0,191,'Liquidación de Venta Directa B ','B',0,0,0,NULL),(61,NULL,NULL,NULL,'Tique Factura C','109',0,0,0,1,1,0,109,NULL,'C',1,0,0,NULL),(62,NULL,NULL,NULL,'Tique Nota de Débito A','115',0,1,0,0,2,0,115,'Tique Nota de Débito A','A',1,0,0,NULL),(63,NULL,NULL,NULL,'Tique Nota de Crédito C','114',1,0,1,1,1,0,114,'Tique Nota de Crédito C','C',1,0,0,NULL),(64,NULL,NULL,NULL,'Otro Comprobante A que cumple con la RG 1415','39',0,1,0,0,2,0,39,'Otro Comprobante A que cumple con la RG 1415','A',0,0,0,NULL),(65,NULL,NULL,NULL,'Tique Nota de Crédito A','112',1,0,0,0,2,0,112,'Tique Nota de Crédito A','A',0,0,0,NULL),(66,NULL,NULL,NULL,'Tique Nota de Crédito B','113',1,NULL,0,0,2,0,113,'Tique Nota de Crédito B','B',0,0,0,NULL),(67,NULL,NULL,NULL,'Tique Nota de Debito B','116',0,2,0,1,2,0,116,'Tique Nota de Debito B','B',0,0,0,NULL),(68,NULL,NULL,NULL,'Tique Nota de Debito C','117',0,0,1,1,1,0,117,'Tique Nota de Debito C','C',0,0,0,NULL),(69,NULL,NULL,NULL,'Tique Factura M','118',0,1,0,0,2,0,118,'Tique Factura M','M',0,0,0,NULL),(70,NULL,NULL,NULL,'Tique Nota de Credito M','119',1,NULL,0,0,2,0,119,'Tique Nota de Credito M','M',0,0,0,NULL),(71,NULL,NULL,NULL,'Tique Nota de Debito M','120',0,1,0,0,2,0,120,'Tique Nota de Debito M','M',0,0,0,NULL);

--
-- Table structure for table `receipts`
--

CREATE TABLE `receipts` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `type_id` int(10) unsigned NOT NULL,
  `type_receipt_id` int(10) unsigned DEFAULT NULL,
  `comprobanteAfip` int(11) DEFAULT NULL,
  `ppc_receipt_id` bigint(20) unsigned DEFAULT NULL,
  `fact_elec_receipt_id` int(10) unsigned DEFAULT NULL,
  `period_id` int(10) unsigned NOT NULL,
  `zone_id` int(10) unsigned DEFAULT NULL,
  `plan_cuenta_id` int(10) unsigned DEFAULT NULL,
  `conta_centro_costo_id` bigint(20) unsigned DEFAULT NULL,
  `activity_id` int(10) unsigned DEFAULT NULL,
  `iva_creditos_tipo_id` int(10) unsigned NOT NULL DEFAULT '1',
  `retention_type_id` int(10) unsigned DEFAULT NULL,
  `person_id_owner` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned DEFAULT NULL,
  `number` int(8) unsigned zerofill DEFAULT NULL,
  `hasta` int(8) unsigned zerofill DEFAULT NULL,
  `reference` int(11) DEFAULT NULL,
  `receipt_date` date DEFAULT NULL,
  `expiration_date` date DEFAULT NULL,
  `code_ticket` int(4) unsigned zerofill DEFAULT NULL,
  `status_id` int(10) unsigned DEFAULT NULL,
  `tax_account_id` int(10) unsigned DEFAULT NULL,
  `amount` decimal(16,2) NOT NULL,
  `pendiente` decimal(16,2) NOT NULL DEFAULT '0.00',
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cotizacion` decimal(9,2) NOT NULL DEFAULT '1.00',
  `dc_firma_id` bigint(20) unsigned NOT NULL DEFAULT '3',
  `condicion_venta_id` int(10) unsigned DEFAULT NULL,
  `is_pago_adelantado` tinyint(1) DEFAULT NULL,
  `plazo_de_pago_id` int(10) unsigned DEFAULT NULL,
  `file` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `receipts_type_id_foreign` (`type_id`),
  KEY `receipts_type_receipt_id_foreign` (`type_receipt_id`),
  KEY `receipts_tax_account_id_foreign` (`tax_account_id`),
  KEY `receipts_zone_id_foreign` (`zone_id`),
  KEY `receipts_activity_id_foreign` (`activity_id`),
  KEY `receipts_retention_type_id_foreign` (`retention_type_id`),
  KEY `receipts_status_id_foreign` (`status_id`),
  KEY `receipts_person_id_owner_foreign` (`person_id_owner`),
  KEY `receipts_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `receipts_period_id_foreign` (`period_id`),
  KEY `receipts_plan_cuenta_id_foreign` (`plan_cuenta_id`),
  KEY `receipts_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  KEY `receipts_iva_creditos_tipo_id_foreign` (`iva_creditos_tipo_id`),
  KEY `receipts_conta_centro_costo_id_foreign` (`conta_centro_costo_id`),
  KEY `receipts_moneda_id_foreign` (`moneda_id`),
  KEY `receipts_dc_firma_id_foreign` (`dc_firma_id`),
  KEY `receipts_ppc_receipt_id_foreign` (`ppc_receipt_id`),
  CONSTRAINT `receipts_activity_id_foreign` FOREIGN KEY (`activity_id`) REFERENCES `activities` (`id`),
  CONSTRAINT `receipts_conta_centro_costo_id_foreign` FOREIGN KEY (`conta_centro_costo_id`) REFERENCES `conta_centro_costos` (`id`),
  CONSTRAINT `receipts_dc_firma_id_foreign` FOREIGN KEY (`dc_firma_id`) REFERENCES `dc_firmas` (`id`),
  CONSTRAINT `receipts_fact_elec_receipt_id_foreign` FOREIGN KEY (`fact_elec_receipt_id`) REFERENCES `fact_elec_receipts` (`id`),
  CONSTRAINT `receipts_iva_creditos_tipo_id_foreign` FOREIGN KEY (`iva_creditos_tipo_id`) REFERENCES `iva_creditos_tipos` (`id`),
  CONSTRAINT `receipts_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `receipts_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `receipts_person_id_owner_foreign` FOREIGN KEY (`person_id_owner`) REFERENCES `persons` (`id`),
  CONSTRAINT `receipts_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `receipts_plan_cuenta_id_foreign` FOREIGN KEY (`plan_cuenta_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `receipts_ppc_receipt_id_foreign` FOREIGN KEY (`ppc_receipt_id`) REFERENCES `ppc_receipts` (`id`),
  CONSTRAINT `receipts_retention_type_id_foreign` FOREIGN KEY (`retention_type_id`) REFERENCES `retention_types` (`id`),
  CONSTRAINT `receipts_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `status` (`id`),
  CONSTRAINT `receipts_tax_account_id_foreign` FOREIGN KEY (`tax_account_id`) REFERENCES `tax_accounts` (`id`),
  CONSTRAINT `receipts_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `types` (`id`),
  CONSTRAINT `receipts_type_receipt_id_foreign` FOREIGN KEY (`type_receipt_id`) REFERENCES `receipt_types` (`id`),
  CONSTRAINT `receipts_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=169 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipts`
--

INSERT INTO `receipts` VALUES (1,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007935,00007947,NULL,'2023-06-26',NULL,0007,1,NULL,60900.16,60900.16,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:33:15','2023-08-18 20:53:06','2023-08-18 20:53:06'),(2,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007948,00007959,NULL,'2023-06-28',NULL,0007,1,NULL,59820.21,59820.21,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:33:15','2023-08-18 20:53:06','2023-08-18 20:53:06'),(3,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007960,00007972,NULL,'2023-06-29',NULL,0007,1,NULL,60940.04,60940.04,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:33:15','2023-08-18 20:53:06','2023-08-18 20:53:06'),(4,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007973,00007984,NULL,'2023-06-30',NULL,0007,1,NULL,59740.18,59740.18,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:33:15','2023-08-18 20:53:06','2023-08-18 20:53:06'),(5,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007985,00007996,NULL,'2023-07-02',NULL,0007,1,NULL,59830.12,59830.12,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:33:15','2023-08-18 20:53:06','2023-08-18 20:53:06'),(6,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007997,00008008,NULL,'2023-07-02',NULL,0007,1,NULL,59840.26,59840.26,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:33:15','2023-08-18 20:53:06','2023-08-18 20:53:06'),(7,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008009,00008021,NULL,'2023-07-03',NULL,0007,1,NULL,61140.38,61140.38,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:33:15','2023-08-18 20:53:07','2023-08-18 20:53:07'),(8,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008083,00008095,NULL,'2023-07-10',NULL,0007,1,NULL,61000.31,61000.31,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:33:50','2023-08-18 20:53:07','2023-08-18 20:53:07'),(9,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008096,00008107,NULL,'2023-07-12',NULL,0007,1,NULL,59850.35,59850.35,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:33:50','2023-08-18 20:53:07','2023-08-18 20:53:07'),(10,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008108,00008119,NULL,'2023-07-13',NULL,0007,1,NULL,59850.29,59850.29,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:33:50','2023-08-18 20:53:07','2023-08-18 20:53:07'),(11,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008120,00008132,NULL,'2023-07-14',NULL,0007,1,NULL,64650.13,64650.13,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:33:50','2023-08-18 20:53:07','2023-08-18 20:53:07'),(12,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008133,00008145,NULL,'2023-07-15',NULL,0007,1,NULL,62910.03,62910.03,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:33:50','2023-08-18 20:53:07','2023-08-18 20:53:07'),(13,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008146,00008157,NULL,'2023-07-16',NULL,0007,1,NULL,59830.18,59830.18,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:33:50','2023-08-18 20:53:07','2023-08-18 20:53:07'),(14,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008158,00008169,NULL,'2023-07-17',NULL,0007,1,NULL,59820.10,59820.10,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:33:50','2023-08-18 20:53:07','2023-08-18 20:53:07'),(15,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008235,00008247,NULL,'2023-07-24',NULL,0007,1,NULL,61600.24,61600.24,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:34:23','2023-08-18 20:53:07','2023-08-18 20:53:07'),(16,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008248,00008259,NULL,'2023-07-26',NULL,0007,1,NULL,59870.45,59870.45,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:34:23','2023-08-18 20:53:07','2023-08-18 20:53:07');
INSERT INTO `receipts` VALUES (17,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008260,00008272,NULL,'2023-07-27',NULL,0007,1,NULL,62280.31,62280.31,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:34:23','2023-08-18 20:53:07','2023-08-18 20:53:07'),(18,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008273,00008285,NULL,'2023-07-28',NULL,0007,1,NULL,62270.29,62270.29,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:34:24','2023-08-18 20:53:07','2023-08-18 20:53:07'),(19,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008286,00008298,NULL,'2023-07-29',NULL,0007,1,NULL,62480.48,62480.48,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:34:24','2023-08-18 20:53:07','2023-08-18 20:53:07'),(20,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008299,00008311,NULL,'2023-07-30',NULL,0007,1,NULL,62670.39,62670.39,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:34:24','2023-08-18 20:53:07','2023-08-18 20:53:07'),(21,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008312,00008324,NULL,'2023-07-31',NULL,0007,1,NULL,61530.34,61530.34,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:34:24','2023-08-18 20:53:07','2023-08-18 20:53:07'),(22,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000268,NULL,NULL,'2023-07-01','2023-07-01',0006,1,NULL,3200.00,3200.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:16','2023-08-18 20:53:07','2023-08-18 20:53:07'),(23,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000269,NULL,NULL,'2023-07-01','2023-07-01',0006,1,NULL,7000.00,7000.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:16','2023-08-18 20:53:07','2023-08-18 20:53:07'),(24,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000270,NULL,NULL,'2023-07-02','2023-07-02',0006,1,NULL,5400.00,5400.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:16','2023-08-18 20:53:07','2023-08-18 20:53:07'),(25,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000271,NULL,NULL,'2023-07-16','2023-07-16',0006,1,NULL,13100.00,13100.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:16','2023-08-18 20:53:07','2023-08-18 20:53:07'),(26,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000272,NULL,NULL,'2023-07-16','2023-07-16',0006,1,NULL,11350.00,11350.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:17','2023-08-18 20:53:07','2023-08-18 20:53:07'),(27,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000273,NULL,NULL,'2023-07-17','2023-07-17',0006,1,NULL,4200.00,4200.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:17','2023-08-18 20:53:07','2023-08-18 20:53:07'),(28,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000274,NULL,NULL,'2023-07-17','2023-07-17',0006,1,NULL,8700.00,8700.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:17','2023-08-18 20:53:07','2023-08-18 20:53:07'),(29,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000275,NULL,NULL,'2023-07-18','2023-07-18',0006,1,NULL,8300.00,8300.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:17','2023-08-18 20:53:07','2023-08-18 20:53:07'),(30,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000276,NULL,NULL,'2023-07-18','2023-07-18',0006,1,NULL,6450.00,6450.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:17','2023-08-18 20:53:07','2023-08-18 20:53:07'),(31,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000277,NULL,NULL,'2023-07-19','2023-07-19',0006,1,NULL,5300.00,5300.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:17','2023-08-18 20:53:07','2023-08-18 20:53:07'),(32,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000278,NULL,NULL,'2023-07-19','2023-07-19',0006,1,NULL,3800.00,3800.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:17','2023-08-18 20:53:07','2023-08-18 20:53:07');
INSERT INTO `receipts` VALUES (33,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40724,00000279,NULL,NULL,'2023-07-20','2023-07-20',0006,1,NULL,3500.00,3500.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:17','2023-08-18 20:53:07','2023-08-18 20:53:07'),(34,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40725,00000280,NULL,NULL,'2023-07-21','2023-07-21',0006,1,NULL,35000.00,35000.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:17','2023-08-18 20:53:07','2023-08-18 20:53:07'),(35,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000281,NULL,NULL,'2023-07-28','2023-07-28',0006,1,NULL,9700.00,9700.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:17','2023-08-18 20:53:07','2023-08-18 20:53:07'),(36,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000282,NULL,NULL,'2023-07-28','2023-07-28',0006,1,NULL,16500.00,16500.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:17','2023-08-18 20:53:07','2023-08-18 20:53:07'),(37,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000283,NULL,NULL,'2023-07-29','2023-07-29',0006,1,NULL,7990.00,7990.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:17','2023-08-18 20:53:07','2023-08-18 20:53:07'),(38,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000284,NULL,NULL,'2023-07-29','2023-07-29',0006,1,NULL,9050.00,9050.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:17','2023-08-18 20:53:07','2023-08-18 20:53:07'),(39,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000285,NULL,NULL,'2023-07-29','2023-07-29',0006,1,NULL,8100.00,8100.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:17','2023-08-18 20:53:07','2023-08-18 20:53:07'),(40,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000286,NULL,NULL,'2023-07-30','2023-07-30',0006,1,NULL,9250.00,9250.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:17','2023-08-18 20:53:07','2023-08-18 20:53:07'),(41,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000287,NULL,NULL,'2023-07-30','2023-07-30',0006,1,NULL,10100.00,10100.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:17','2023-08-18 20:53:07','2023-08-18 20:53:07'),(42,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000288,NULL,NULL,'2023-07-30','2023-07-30',0006,1,NULL,8100.00,8100.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:18','2023-08-18 20:53:07','2023-08-18 20:53:07'),(43,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000289,NULL,NULL,'2023-07-31','2023-07-31',0006,1,NULL,9900.00,9900.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:18','2023-08-18 20:53:07','2023-08-18 20:53:07'),(44,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000290,NULL,NULL,'2023-07-31','2023-07-31',0006,1,NULL,7150.00,7150.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:18','2023-08-18 20:53:08','2023-08-18 20:53:08'),(45,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000291,NULL,NULL,'2023-07-31','2023-07-31',0006,1,NULL,4650.00,4650.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:38:18','2023-08-18 20:53:08','2023-08-18 20:53:08'),(46,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007863,00007874,NULL,'2023-06-19',NULL,0007,1,NULL,59779.99,59779.99,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:54:46','2023-08-18 20:59:16','2023-08-18 20:59:16'),(47,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007875,00007886,NULL,'2023-06-21',NULL,0007,1,NULL,59810.01,59810.01,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:54:46','2023-08-18 20:59:16','2023-08-18 20:59:16'),(48,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007887,00007898,NULL,'2023-06-22',NULL,0007,1,NULL,59700.07,59700.07,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:54:46','2023-08-18 20:59:16','2023-08-18 20:59:16');
INSERT INTO `receipts` VALUES (49,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007899,00007910,NULL,'2023-06-23',NULL,0007,1,NULL,59810.01,59810.01,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:54:47','2023-08-18 20:59:16','2023-08-18 20:59:16'),(50,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007911,00007922,NULL,'2023-06-24',NULL,0007,1,NULL,59840.15,59840.15,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:54:47','2023-08-18 20:58:59','2023-08-18 20:58:59'),(51,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007923,00007934,NULL,'2023-06-25',NULL,0007,1,NULL,59799.99,59799.99,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:54:47','2023-08-18 20:59:16','2023-08-18 20:59:16'),(52,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007935,00007947,NULL,'2023-06-26',NULL,0007,1,NULL,60900.16,60900.16,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:54:47','2023-08-18 20:59:16','2023-08-18 20:59:16'),(53,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008009,00008021,NULL,'2023-07-03',NULL,0007,1,NULL,61140.38,61140.38,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:55:15','2023-08-18 20:59:16','2023-08-18 20:59:16'),(54,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008022,00008033,NULL,'2023-07-05',NULL,0007,1,NULL,59850.40,59850.40,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:55:15','2023-08-18 20:59:16','2023-08-18 20:59:16'),(55,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008034,00008046,NULL,'2023-07-06',NULL,0007,1,NULL,61810.37,61810.37,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:55:15','2023-08-18 20:59:16','2023-08-18 20:59:16'),(56,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008047,00008058,NULL,'2023-07-07',NULL,0007,1,NULL,59850.35,59850.35,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:55:15','2023-08-18 20:59:16','2023-08-18 20:59:16'),(57,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008059,00008070,NULL,'2023-07-08',NULL,0007,1,NULL,59840.15,59840.15,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:55:15','2023-08-18 20:59:16','2023-08-18 20:59:16'),(58,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008071,00008082,NULL,'2023-07-09',NULL,0007,1,NULL,59840.32,59840.32,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:55:15','2023-08-18 20:59:16','2023-08-18 20:59:16'),(59,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008083,00008095,NULL,'2023-07-10',NULL,0007,1,NULL,61000.31,61000.31,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:55:15','2023-08-18 20:59:16','2023-08-18 20:59:16'),(60,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008158,00008169,NULL,'2023-07-17',NULL,0007,1,NULL,59820.10,59820.10,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:55:34','2023-08-18 20:59:16','2023-08-18 20:59:16'),(61,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008170,00008182,NULL,'2023-07-19',NULL,0007,1,NULL,62230.24,62230.24,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:55:34','2023-08-18 20:59:16','2023-08-18 20:59:16'),(62,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008183,00008195,NULL,'2023-07-20',NULL,0007,1,NULL,62740.17,62740.17,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:55:34','2023-08-18 20:59:16','2023-08-18 20:59:16'),(63,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008196,00008208,NULL,'2023-07-21',NULL,0007,1,NULL,61970.21,61970.21,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:55:34','2023-08-18 20:59:16','2023-08-18 20:59:16'),(64,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008209,00008221,NULL,'2023-07-22',NULL,0007,1,NULL,62760.40,62760.40,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:55:34','2023-08-18 20:59:16','2023-08-18 20:59:16');
INSERT INTO `receipts` VALUES (65,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008222,00008234,NULL,'2023-07-23',NULL,0007,1,NULL,62260.26,62260.26,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:55:34','2023-08-18 20:59:16','2023-08-18 20:59:16'),(66,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008235,00008247,NULL,'2023-07-24',NULL,0007,1,NULL,61600.24,61600.24,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-18 20:55:34','2023-08-18 20:59:16','2023-08-18 20:59:16'),(67,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008083,00008095,NULL,'2023-07-10',NULL,0007,1,NULL,61000.31,61000.31,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:14:32','2023-08-19 09:14:32',NULL),(68,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008096,00008107,NULL,'2023-07-12',NULL,0007,1,NULL,59850.35,59850.35,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:14:32','2023-08-19 09:14:32',NULL),(69,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008108,00008119,NULL,'2023-07-13',NULL,0007,1,NULL,59850.29,59850.29,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:14:32','2023-08-19 09:14:32',NULL),(70,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008120,00008132,NULL,'2023-07-14',NULL,0007,1,NULL,64650.13,64650.13,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:14:32','2023-08-19 09:14:32',NULL),(71,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008133,00008145,NULL,'2023-07-15',NULL,0007,1,NULL,62910.03,62910.03,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:14:32','2023-08-19 09:14:32',NULL),(72,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008146,00008157,NULL,'2023-07-16',NULL,0007,1,NULL,59830.18,59830.18,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:14:32','2023-08-19 09:14:32',NULL),(73,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008158,00008169,NULL,'2023-07-17',NULL,0007,1,NULL,59820.10,59820.10,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:14:33','2023-08-19 09:14:33',NULL),(80,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007935,00007947,NULL,'2023-06-26',NULL,0007,1,NULL,60900.16,60900.16,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:14:53','2023-08-19 09:24:30','2023-08-19 09:24:30'),(81,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007948,00007959,NULL,'2023-06-28',NULL,0007,1,NULL,59820.21,59820.21,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:14:53','2023-08-19 09:24:13','2023-08-19 09:24:13'),(82,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007960,00007972,NULL,'2023-06-29',NULL,0007,1,NULL,60940.04,60940.04,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:14:53','2023-08-19 09:24:05','2023-08-19 09:24:05'),(83,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007973,00007984,NULL,'2023-06-30',NULL,0007,1,NULL,59740.18,59740.18,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:14:53','2023-08-19 09:23:28','2023-08-19 09:23:28'),(84,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007985,00007996,NULL,'2023-07-02',NULL,0007,1,NULL,59830.12,59830.12,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:14:54','2023-08-19 09:14:54',NULL),(85,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00007997,00008008,NULL,'2023-07-02',NULL,0007,1,NULL,59840.26,59840.26,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:14:54','2023-08-19 09:14:54',NULL),(86,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008009,00008021,NULL,'2023-07-03',NULL,0007,1,NULL,61140.38,61140.38,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:14:54','2023-08-19 09:14:54',NULL),(87,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008235,00008247,NULL,'2023-07-24',NULL,0007,1,NULL,61600.24,61600.24,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:15:12','2023-08-19 09:15:12',NULL);
INSERT INTO `receipts` VALUES (88,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008248,00008259,NULL,'2023-07-26',NULL,0007,1,NULL,59870.45,59870.45,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:15:12','2023-08-19 09:17:29','2023-08-19 09:17:29'),(89,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008260,00008272,NULL,'2023-07-27',NULL,0007,1,NULL,62280.31,62280.31,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:15:13','2023-08-19 09:15:13',NULL),(90,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008273,00008285,NULL,'2023-07-28',NULL,0007,1,NULL,62270.29,62270.29,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:15:13','2023-08-19 09:15:13',NULL),(91,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008286,00008298,NULL,'2023-07-29',NULL,0007,1,NULL,62480.48,62480.48,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:15:13','2023-08-19 09:15:13',NULL),(92,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008299,00008311,NULL,'2023-07-30',NULL,0007,1,NULL,62670.39,62670.39,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:15:13','2023-08-19 09:15:13',NULL),(93,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008312,00008324,NULL,'2023-07-31',NULL,0007,1,NULL,61530.34,61530.34,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:15:13','2023-08-19 09:15:13',NULL),(94,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008022,00008033,NULL,'2023-07-05','2023-07-05',0007,1,NULL,59850.40,59850.40,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:30:33','2023-08-19 09:30:33',NULL),(95,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008034,00008046,NULL,'2023-07-05','2023-07-05',0007,1,NULL,61810.37,61810.37,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:32:10','2023-08-19 09:32:10',NULL),(96,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008047,00008058,NULL,'2023-07-05','2023-07-05',0007,1,NULL,59850.35,59850.35,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:33:08','2023-08-19 09:33:08',NULL),(97,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008059,00008070,NULL,'2023-07-05','2023-07-05',0007,1,NULL,59840.15,59840.15,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:33:59','2023-08-19 09:33:59',NULL),(98,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008071,00008082,NULL,'2023-07-05','2023-07-05',0007,1,NULL,59840.32,59840.32,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:41:16','2023-08-19 09:41:16',NULL),(99,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008170,00008182,NULL,'2023-07-19','2023-07-19',0007,1,NULL,62230.24,62230.24,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:42:22','2023-08-19 09:54:45',NULL),(100,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008183,00008195,NULL,'2023-07-20','2023-07-20',0007,1,NULL,62740.17,62740.17,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:43:21','2023-08-19 09:56:50',NULL),(101,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008196,00008208,NULL,'2023-07-21','2023-07-21',0007,1,NULL,61970.21,61970.21,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:47:25','2023-08-19 09:57:32',NULL),(102,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008209,00008221,NULL,'2023-07-22','2023-07-22',0007,1,NULL,62760.40,62760.40,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:48:27','2023-08-19 09:57:51',NULL),(103,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008222,00008234,NULL,'2023-07-23','2023-07-23',0007,1,NULL,62260.26,62260.26,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 09:49:47','2023-08-19 09:58:36',NULL),(104,8127,1,32,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40718,00008248,00008259,NULL,'2023-07-26','2023-07-26',0007,1,NULL,59870.45,59870.45,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:00:27','2023-08-19 10:00:27',NULL);
INSERT INTO `receipts` VALUES (121,8127,2,12,NULL,NULL,NULL,4545,5,217,NULL,710,3,NULL,40722,40719,00000377,00000377,NULL,'2023-07-03',NULL,0002,1,NULL,12600.00,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:06','2023-08-19 10:55:06',NULL),(122,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,1,NULL,40722,40741,00035664,00035664,NULL,'2023-07-03',NULL,0004,1,NULL,19026.49,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:06','2023-08-19 10:55:06',NULL),(123,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,1,NULL,40722,40742,00097410,00097410,NULL,'2023-07-06',NULL,0019,1,NULL,58224.90,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:06','2023-08-19 10:55:06',NULL),(124,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,1,NULL,40722,40743,00000343,00000343,NULL,'2023-07-06',NULL,0002,1,NULL,7100.00,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:06','2023-08-19 10:55:06',NULL),(125,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,1,NULL,40722,40744,00007784,00007784,NULL,'2023-07-07',NULL,0002,1,NULL,375173.09,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(126,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,3,NULL,40722,40745,01424156,01424156,NULL,'2023-07-10',NULL,0025,1,NULL,8027.73,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(127,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,1,NULL,40722,40741,00035859,00035859,NULL,'2023-07-10',NULL,0004,1,NULL,38052.97,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(128,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,1,NULL,40722,40744,00007815,00007815,NULL,'2023-07-14',NULL,0002,1,NULL,195587.99,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(129,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,1,NULL,40722,40744,00007820,00007820,NULL,'2023-07-17',NULL,0002,1,NULL,242054.48,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(130,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,1,NULL,40722,40741,00036042,00036042,NULL,'2023-07-17',NULL,0004,1,NULL,38052.97,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(131,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,3,NULL,40722,40745,01463957,01463957,NULL,'2023-07-18',NULL,0025,1,NULL,7390.05,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(132,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,1,NULL,40722,40743,00000376,00000376,NULL,'2023-07-20',NULL,0002,1,NULL,7100.00,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(133,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,1,NULL,40722,40744,00007826,00007826,NULL,'2023-07-20',NULL,0002,1,NULL,306278.87,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(134,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,1,NULL,40722,40741,00036279,00036279,NULL,'2023-07-24',NULL,0004,1,NULL,38052.97,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(135,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,1,NULL,40722,40742,00097857,00097857,NULL,'2023-07-25',NULL,0019,1,NULL,11004.54,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(136,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,1,NULL,40722,40742,00097984,00097984,NULL,'2023-07-27',NULL,0019,1,NULL,104052.56,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(137,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,1,NULL,40722,40742,00097998,00097998,NULL,'2023-07-27',NULL,0019,1,NULL,5945.47,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:07','2023-08-19 10:55:07',NULL),(138,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,1,NULL,40722,40744,00007849,00007849,NULL,'2023-07-27',NULL,0002,1,NULL,358389.30,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:08','2023-08-19 10:55:08',NULL);
INSERT INTO `receipts` VALUES (139,8127,2,3,NULL,NULL,NULL,4545,5,217,NULL,710,3,NULL,40722,40745,00042107,00042107,NULL,'2023-07-30',NULL,0025,1,NULL,7853.16,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:08','2023-08-19 10:55:08',NULL),(140,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,1,NULL,40722,40746,00000022,00000022,NULL,'2023-07-31',NULL,0006,1,NULL,51899.86,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:08','2023-08-19 10:55:08',NULL),(141,8127,2,1,NULL,NULL,NULL,4545,5,217,NULL,710,1,NULL,40722,40741,00036470,00036470,NULL,'2023-07-31',NULL,0004,1,NULL,38052.97,0.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:55:08','2023-08-19 10:55:08',NULL),(142,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000268,NULL,NULL,'2023-07-01','2023-07-01',0006,1,NULL,3200.00,3200.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(143,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000269,NULL,NULL,'2023-07-01','2023-07-01',0006,1,NULL,7000.00,7000.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(144,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000270,NULL,NULL,'2023-07-02','2023-07-02',0006,1,NULL,5400.00,5400.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(145,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000271,NULL,NULL,'2023-07-16','2023-07-16',0006,1,NULL,13100.00,13100.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(146,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000272,NULL,NULL,'2023-07-16','2023-07-16',0006,1,NULL,11350.00,11350.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(147,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000273,NULL,NULL,'2023-07-17','2023-07-17',0006,1,NULL,4200.00,4200.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(148,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000274,NULL,NULL,'2023-07-17','2023-07-17',0006,1,NULL,8700.00,8700.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(149,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000275,NULL,NULL,'2023-07-18','2023-07-18',0006,1,NULL,8300.00,8300.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(150,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000276,NULL,NULL,'2023-07-18','2023-07-18',0006,1,NULL,6450.00,6450.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:45','2023-08-19 10:56:45',NULL),(151,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000277,NULL,NULL,'2023-07-19','2023-07-19',0006,1,NULL,5300.00,5300.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(152,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000278,NULL,NULL,'2023-07-19','2023-07-19',0006,1,NULL,3800.00,3800.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(153,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40724,00000279,NULL,NULL,'2023-07-20','2023-07-20',0006,1,NULL,3500.00,3500.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(154,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40725,00000280,NULL,NULL,'2023-07-21','2023-07-21',0006,1,NULL,35000.00,35000.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(155,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000281,NULL,NULL,'2023-07-28','2023-07-28',0006,1,NULL,9700.00,9700.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(156,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000282,NULL,NULL,'2023-07-28','2023-07-28',0006,1,NULL,16500.00,16500.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:46','2023-08-19 10:56:46',NULL);
INSERT INTO `receipts` VALUES (157,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000283,NULL,NULL,'2023-07-29','2023-07-29',0006,1,NULL,7990.00,7990.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(158,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000284,NULL,NULL,'2023-07-29','2023-07-29',0006,1,NULL,9050.00,9050.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(159,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000285,NULL,NULL,'2023-07-29','2023-07-29',0006,1,NULL,8100.00,8100.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(160,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000286,NULL,NULL,'2023-07-30','2023-07-30',0006,1,NULL,9250.00,9250.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(161,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000287,NULL,NULL,'2023-07-30','2023-07-30',0006,1,NULL,10100.00,10100.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(162,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000288,NULL,NULL,'2023-07-30','2023-07-30',0006,1,NULL,8100.00,8100.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(163,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000289,NULL,NULL,'2023-07-31','2023-07-31',0006,1,NULL,9900.00,9900.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(164,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000290,NULL,NULL,'2023-07-31','2023-07-31',0006,1,NULL,7150.00,7150.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(165,8127,1,4,NULL,NULL,NULL,4545,5,NULL,NULL,710,1,NULL,40722,40723,00000291,NULL,NULL,'2023-07-31','2023-07-31',0006,1,NULL,4650.00,4650.00,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 10:56:46','2023-08-19 10:56:46',NULL),(166,8127,4,NULL,NULL,NULL,NULL,4545,5,NULL,NULL,NULL,1,NULL,40722,NULL,NULL,NULL,NULL,'2023-07-31',NULL,NULL,1,NULL,13490.13,0.00,1,1.00,3,NULL,NULL,NULL,'comprobantes/40719/Fwnvizs01rnZTy92GsgeyHCsqyzhzVshmPch8k7G.pdf','','2023-08-19 10:57:42','2023-08-19 10:57:42',NULL),(167,8127,4,NULL,NULL,NULL,NULL,4545,5,NULL,NULL,NULL,1,NULL,40722,NULL,NULL,NULL,NULL,'2023-07-31',NULL,NULL,1,NULL,13490.13,0.00,1,1.00,3,NULL,NULL,NULL,'comprobantes/40719/T0zdjC0Wc3a5primO7wZlsR55u5bu01TiDyi3Ch6.pdf','','2023-08-19 10:58:06','2023-08-19 10:58:15','2023-08-19 10:58:15'),(168,8127,2,1,NULL,NULL,NULL,4545,5,220,NULL,710,3,NULL,40722,40747,20140517,20140517,NULL,'2023-07-06','2023-07-06',2306,1,NULL,101.23,101.23,1,1.00,3,NULL,NULL,NULL,NULL,'','2023-08-19 11:44:15','2023-08-19 11:44:15',NULL);

--
-- Table structure for table `recibo_config`
--

CREATE TABLE `recibo_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `num_inicial` int(10) unsigned NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `recibo_config_person_id_foreign` (`person_id`),
  CONSTRAINT `recibo_config_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `recibo_config`
--


--
-- Table structure for table `recibos`
--

CREATE TABLE `recibos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `fecha` date NOT NULL DEFAULT '2019-12-13',
  `punto_venta_id` int(10) unsigned NOT NULL,
  `numero` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_receptor` int(10) unsigned NOT NULL DEFAULT '3',
  `condicion_venta_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cond_frente_iva_id` int(10) unsigned NOT NULL DEFAULT '1',
  `importe` decimal(16,2) NOT NULL DEFAULT '0.00',
  `en_concepto_de` longtext COLLATE utf8mb4_unicode_ci,
  `ret_ganancias` decimal(16,2) NOT NULL DEFAULT '0.00',
  `ret_iva` decimal(16,2) NOT NULL DEFAULT '0.00',
  `ret_iibb` decimal(16,2) NOT NULL DEFAULT '0.00',
  `imp_internos` decimal(16,2) NOT NULL DEFAULT '0.00',
  `imp_municipales` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total_otros_tributos` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `recibos_punto_venta_id_foreign` (`punto_venta_id`),
  KEY `recibos_person_id_foreign` (`person_id`),
  KEY `recibos_person_id_receptor_foreign` (`person_id_receptor`),
  KEY `recibos_condicion_venta_id_foreign` (`condicion_venta_id`),
  KEY `recibos_cond_frente_iva_id_foreign` (`cond_frente_iva_id`),
  CONSTRAINT `recibos_cond_frente_iva_id_foreign` FOREIGN KEY (`cond_frente_iva_id`) REFERENCES `fac_elec_cond_frente_iva` (`id`),
  CONSTRAINT `recibos_condicion_venta_id_foreign` FOREIGN KEY (`condicion_venta_id`) REFERENCES `condiciones_venta` (`id`),
  CONSTRAINT `recibos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `recibos_person_id_receptor_foreign` FOREIGN KEY (`person_id_receptor`) REFERENCES `persons` (`id`),
  CONSTRAINT `recibos_punto_venta_id_foreign` FOREIGN KEY (`punto_venta_id`) REFERENCES `fact_elec_puntos_venta` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `recibos`
--


--
-- Table structure for table `remito_config`
--

CREATE TABLE `remito_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `num_inicial` int(10) unsigned NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `remito_config_person_id_foreign` (`person_id`),
  CONSTRAINT `remito_config_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `remito_config`
--


--
-- Table structure for table `remitos`
--

CREATE TABLE `remitos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `fecha` date NOT NULL DEFAULT '2020-05-25',
  `punto_venta_id` int(10) unsigned NOT NULL,
  `numero` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_receptor` int(10) unsigned NOT NULL DEFAULT '3',
  `condicion_venta_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cond_frente_iva_id` int(10) unsigned NOT NULL DEFAULT '1',
  `en_concepto_de` longtext COLLATE utf8mb4_unicode_ci,
  `comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `remitos_punto_venta_id_foreign` (`punto_venta_id`),
  KEY `remitos_person_id_foreign` (`person_id`),
  KEY `remitos_person_id_receptor_foreign` (`person_id_receptor`),
  KEY `remitos_condicion_venta_id_foreign` (`condicion_venta_id`),
  KEY `remitos_cond_frente_iva_id_foreign` (`cond_frente_iva_id`),
  CONSTRAINT `remitos_cond_frente_iva_id_foreign` FOREIGN KEY (`cond_frente_iva_id`) REFERENCES `fac_elec_cond_frente_iva` (`id`),
  CONSTRAINT `remitos_condicion_venta_id_foreign` FOREIGN KEY (`condicion_venta_id`) REFERENCES `condiciones_venta` (`id`),
  CONSTRAINT `remitos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `remitos_person_id_receptor_foreign` FOREIGN KEY (`person_id_receptor`) REFERENCES `persons` (`id`),
  CONSTRAINT `remitos_punto_venta_id_foreign` FOREIGN KEY (`punto_venta_id`) REFERENCES `fact_elec_puntos_venta` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `remitos`
--


--
-- Table structure for table `reportes`
--

CREATE TABLE `reportes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `description` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `class` int(10) unsigned NOT NULL,
  `class_description` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `data_type` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `reportes_description_unique` (`description`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `reportes`
--

INSERT INTO `reportes` VALUES (1,'Comprobantes',1,'informes','','reportes/informes/comprobantes/comprobantes',NULL,NULL),(3,'Liquidaciones IIBB',1,'informes','','reportes/informes/iibb/iibb',NULL,NULL),(4,'Tablero de Control',3,'tablero','','reportes/tableroControl/index',NULL,NULL),(5,'Liquidaciones IVA',1,'informes','','reportes/informes/iva/iva',NULL,NULL),(6,'Obligaciones Anuales',1,'informes','','reportes/informes/obligaciones_anuales/index','2019-11-29 18:37:49','2019-11-29 18:37:49'),(7,'Estado CUITs',1,'informes','','reportes/informes/control_cuits/index','2019-12-09 00:50:43','2019-12-09 00:50:43');

--
-- Table structure for table `retention_types`
--

CREATE TABLE `retention_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `apply_to` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'iibb',
  `code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `zone_id` int(11) DEFAULT NULL,
  `plan_cuenta_id` int(10) unsigned NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `retention_types_plan_cuenta_id_foreign` (`plan_cuenta_id`),
  CONSTRAINT `retention_types_plan_cuenta_id_foreign` FOREIGN KEY (`plan_cuenta_id`) REFERENCES `conta_plan_cuenta` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `retention_types`
--

INSERT INTO `retention_types` VALUES (1,NULL,NULL,'Retenciones de Ganancias','ganancias','GAN',NULL,23),(2,NULL,NULL,'Retenciones de SUSS','sus','SUSS',NULL,162),(3,NULL,NULL,'Retenciones de IVA','iva','Ret IVA',NULL,25),(4,NULL,'2022-11-23 12:25:04','Retencion IIBB de Buenos Aires','iibb',NULL,23,251),(5,NULL,'2022-11-23 12:25:04','Retencion IIBB de Capital Federal','iibb',NULL,22,252),(6,NULL,'2022-11-23 12:25:04','Retencion IIBB de Catamarca','iibb',NULL,24,253),(7,NULL,'2022-11-23 12:25:04','Retencion IIBB de Chaco','iibb',NULL,3,254),(8,NULL,'2022-11-23 12:25:04','Retencion IIBB de Chubut','iibb',NULL,4,255),(9,NULL,'2022-11-23 12:25:04','Retencion IIBB de Córdoba','iibb',NULL,1,256),(10,NULL,'2022-11-23 12:25:04','Retencion IIBB de Corrientes','iibb',NULL,2,257),(11,NULL,'2022-11-23 12:25:04','Retencion IIBB de Entre Ríos','iibb',NULL,5,258),(12,NULL,'2022-11-23 12:25:04','Retencion IIBB de Formosa','iibb',NULL,6,259),(13,NULL,'2022-11-23 12:25:04','Retencion IIBB de Jujuy','iibb',NULL,7,260),(14,NULL,'2022-11-23 12:25:04','Retencion IIBB de La Pampa','iibb',NULL,8,261),(15,NULL,'2022-11-23 12:25:04','Retencion IIBB de La Rioja','iibb',NULL,9,262),(16,NULL,'2022-11-23 12:25:04','Retencion IIBB de Mendoza','iibb',NULL,10,263),(17,NULL,'2022-11-23 12:25:04','Retencion IIBB de Misiones','iibb',NULL,11,264),(18,NULL,'2022-11-23 12:25:04','Retencion IIBB de Neuquén','iibb',NULL,12,265),(19,NULL,'2022-11-23 12:25:04','Retencion IIBB de Pascua Lama','iibb',NULL,25,266),(20,NULL,'2022-11-23 12:25:04','Retencion IIBB de Río Negro','iibb',NULL,13,267),(21,NULL,'2022-11-23 12:25:04','Retencion IIBB de Salta','iibb',NULL,14,268),(22,NULL,'2022-11-23 12:25:04','Retencion IIBB de San Juan','iibb',NULL,15,269),(23,NULL,'2022-11-23 12:25:04','Retencion IIBB de San Luis','iibb',NULL,16,270),(24,NULL,'2022-11-23 12:25:04','Retencion IIBB de Santa Cruz','iibb',NULL,17,271),(25,NULL,'2022-11-23 12:25:04','Retencion IIBB de Santa Fe','iibb',NULL,18,272),(26,NULL,'2022-11-23 12:25:04','Retencion IIBB de Santiago del Estero','iibb',NULL,19,273),(27,NULL,'2022-11-23 12:25:04','Retencion IIBB de Tierra del Fuego','iibb',NULL,20,274),(28,NULL,'2022-11-23 12:25:04','Retencion IIBB de Tucuman','iibb',NULL,21,275);

--
-- Table structure for table `retentions`
--

CREATE TABLE `retentions` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `period_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `cta_cte_cliente_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_cliente_detail_id` int(10) unsigned DEFAULT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `retention_type_id` int(10) unsigned NOT NULL,
  `receipt_id` int(10) unsigned NOT NULL,
  `sicore_regimen_id` bigint(20) unsigned DEFAULT NULL,
  `fecha` date NOT NULL DEFAULT '2023-05-30',
  `anio` int(10) unsigned NOT NULL,
  `numero` int(10) unsigned NOT NULL,
  `is_inscripto` tinyint(1) NOT NULL DEFAULT '1',
  `neto_gravado_total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `ret_acum_mes` decimal(16,2) NOT NULL DEFAULT '0.00',
  `monto_no_sujeto_ret` decimal(16,2) NOT NULL DEFAULT '0.00',
  `tasa_aplicable` decimal(16,2) NOT NULL DEFAULT '0.00',
  `neto_sujeto_a_ret` decimal(16,2) NOT NULL DEFAULT '0.00',
  `retencion` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `retentions_person_id_foreign` (`person_id`),
  KEY `retentions_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `retentions_period_id_foreign` (`period_id`),
  KEY `retentions_cta_cte_cliente_id_foreign` (`cta_cte_cliente_id`),
  KEY `retentions_retention_type_id_foreign` (`retention_type_id`),
  KEY `retentions_receipt_id_foreign` (`receipt_id`),
  KEY `retentions_sicore_regimen_id_foreign` (`sicore_regimen_id`),
  KEY `retentions_cta_cte_cliente_detail_id_foreign` (`cta_cte_cliente_detail_id`),
  CONSTRAINT `retentions_cta_cte_cliente_detail_id_foreign` FOREIGN KEY (`cta_cte_cliente_detail_id`) REFERENCES `cta_cte_cliente_details` (`id`),
  CONSTRAINT `retentions_cta_cte_cliente_id_foreign` FOREIGN KEY (`cta_cte_cliente_id`) REFERENCES `cta_cte_cliente` (`id`),
  CONSTRAINT `retentions_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `retentions_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `retentions_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `retentions_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`),
  CONSTRAINT `retentions_retention_type_id_foreign` FOREIGN KEY (`retention_type_id`) REFERENCES `retention_types` (`id`),
  CONSTRAINT `retentions_sicore_regimen_id_foreign` FOREIGN KEY (`sicore_regimen_id`) REFERENCES `sicore_regimenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `retentions`
--


--
-- Table structure for table `rodados`
--

CREATE TABLE `rodados` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `rodados_marcas_modelo_id` bigint(20) unsigned NOT NULL,
  `rodados_equipo_id` bigint(20) unsigned NOT NULL,
  `rodados_estado_id` bigint(20) unsigned NOT NULL,
  `interno` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `patente` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `chasis` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `motor` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_limitado` tinyint(1) NOT NULL DEFAULT '0',
  `fecha_limitado` date DEFAULT NULL,
  `fecha_vto_vtv` date DEFAULT NULL,
  `fecha_vto_ruta` date DEFAULT NULL,
  `fecha_vto_seguro` date DEFAULT NULL,
  `rodados_seguros_compania_id` bigint(20) unsigned DEFAULT NULL,
  `num_poliza` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `rodados_seguros_cobertura_id` bigint(20) unsigned DEFAULT NULL,
  `num_tag` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_lojack` tinyint(1) NOT NULL DEFAULT '0',
  `rodados_lojack_tecnologia_id` bigint(20) unsigned DEFAULT NULL,
  `is_ypf_gps_instalado` tinyint(1) NOT NULL DEFAULT '0',
  `rodados_ypf_gps_estado_id` bigint(20) unsigned DEFAULT NULL,
  `ypf_ruta_num_tarjeta` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `shell_tag` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_opds_habilitado` tinyint(1) NOT NULL DEFAULT '0',
  `is_ceamse_habilitado` tinyint(1) NOT NULL DEFAULT '0',
  `is_estado_unidad` tinyint(1) NOT NULL DEFAULT '0',
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `is_parametrizado` tinyint(1) NOT NULL DEFAULT '0',
  `fecha_parametrizado` date DEFAULT NULL,
  `anio` int(11) DEFAULT NULL,
  `fecha_alta` date DEFAULT NULL,
  `fecha_baja` date DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rodados_person_id_foreign` (`person_id`),
  KEY `rodados_rodados_marcas_modelo_id_foreign` (`rodados_marcas_modelo_id`),
  KEY `rodados_rodados_equipo_id_foreign` (`rodados_equipo_id`),
  KEY `rodados_rodados_estado_id_foreign` (`rodados_estado_id`),
  KEY `rodados_rodados_seguros_compania_id_foreign` (`rodados_seguros_compania_id`),
  KEY `rodados_rodados_seguros_cobertura_id_foreign` (`rodados_seguros_cobertura_id`),
  KEY `rodados_rodados_lojack_tecnologia_id_foreign` (`rodados_lojack_tecnologia_id`),
  KEY `rodados_rodados_ypf_gps_estado_id_foreign` (`rodados_ypf_gps_estado_id`),
  CONSTRAINT `rodados_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `rodados_rodados_equipo_id_foreign` FOREIGN KEY (`rodados_equipo_id`) REFERENCES `rodados_equipos` (`id`),
  CONSTRAINT `rodados_rodados_estado_id_foreign` FOREIGN KEY (`rodados_estado_id`) REFERENCES `rodados_estados` (`id`),
  CONSTRAINT `rodados_rodados_lojack_tecnologia_id_foreign` FOREIGN KEY (`rodados_lojack_tecnologia_id`) REFERENCES `rodados_lojack_tecnologias` (`id`),
  CONSTRAINT `rodados_rodados_marcas_modelo_id_foreign` FOREIGN KEY (`rodados_marcas_modelo_id`) REFERENCES `rodados_marcas_modelos` (`id`),
  CONSTRAINT `rodados_rodados_seguros_cobertura_id_foreign` FOREIGN KEY (`rodados_seguros_cobertura_id`) REFERENCES `rodados_seguros_coberturas` (`id`),
  CONSTRAINT `rodados_rodados_seguros_compania_id_foreign` FOREIGN KEY (`rodados_seguros_compania_id`) REFERENCES `rodados_seguros_companias` (`id`),
  CONSTRAINT `rodados_rodados_ypf_gps_estado_id_foreign` FOREIGN KEY (`rodados_ypf_gps_estado_id`) REFERENCES `rodados_ypf_gps_estados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados`
--


--
-- Table structure for table `rodados_cargas`
--

CREATE TABLE `rodados_cargas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `rodados_cargas_marca_id` bigint(20) unsigned NOT NULL,
  `rodado_id` bigint(20) unsigned NOT NULL,
  `fecha` datetime NOT NULL,
  `tarjeta` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ubicacion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `combustible` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `litros` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `precio_x_litro` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `neto` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rodados_cargas_person_id_foreign` (`person_id`),
  KEY `rodados_cargas_rodado_id_foreign` (`rodado_id`),
  KEY `rodados_cargas_rodados_cargas_marca_id_foreign` (`rodados_cargas_marca_id`),
  CONSTRAINT `rodados_cargas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `rodados_cargas_rodado_id_foreign` FOREIGN KEY (`rodado_id`) REFERENCES `rodados` (`id`),
  CONSTRAINT `rodados_cargas_rodados_cargas_marca_id_foreign` FOREIGN KEY (`rodados_cargas_marca_id`) REFERENCES `rodados_cargas_marcas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_cargas`
--


--
-- Table structure for table `rodados_cargas_control`
--

CREATE TABLE `rodados_cargas_control` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `rodado_id` bigint(20) unsigned NOT NULL,
  `carga_control_tope_id` bigint(20) unsigned NOT NULL,
  `acumulado` int(11) NOT NULL DEFAULT '0',
  `ultima_carga` int(11) NOT NULL DEFAULT '0',
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rodados_cargas_control_rodado_id_foreign` (`rodado_id`),
  KEY `rodados_cargas_control_carga_control_tope_id_foreign` (`carga_control_tope_id`),
  CONSTRAINT `rodados_cargas_control_carga_control_tope_id_foreign` FOREIGN KEY (`carga_control_tope_id`) REFERENCES `rodados_cargas_control_topes` (`id`),
  CONSTRAINT `rodados_cargas_control_rodado_id_foreign` FOREIGN KEY (`rodado_id`) REFERENCES `rodados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_cargas_control`
--


--
-- Table structure for table `rodados_cargas_control_history`
--

CREATE TABLE `rodados_cargas_control_history` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `rodado_id` bigint(20) unsigned NOT NULL,
  `fecha` date NOT NULL,
  `control` int(11) NOT NULL,
  `acumulado` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rodados_cargas_control_history_rodado_id_foreign` (`rodado_id`),
  CONSTRAINT `rodados_cargas_control_history_rodado_id_foreign` FOREIGN KEY (`rodado_id`) REFERENCES `rodados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_cargas_control_history`
--


--
-- Table structure for table `rodados_cargas_control_topes`
--

CREATE TABLE `rodados_cargas_control_topes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `control` int(11) NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rodados_cargas_control_topes_person_id_foreign` (`person_id`),
  CONSTRAINT `rodados_cargas_control_topes_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_cargas_control_topes`
--


--
-- Table structure for table `rodados_cargas_marcas`
--

CREATE TABLE `rodados_cargas_marcas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rodados_cargas_marcas_person_id_foreign` (`person_id`),
  CONSTRAINT `rodados_cargas_marcas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_cargas_marcas`
--


--
-- Table structure for table `rodados_equipos`
--

CREATE TABLE `rodados_equipos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `rodados_equipos_descripcion_unique` (`descripcion`),
  KEY `rodados_equipos_person_id_foreign` (`person_id`),
  CONSTRAINT `rodados_equipos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_equipos`
--


--
-- Table structure for table `rodados_estados`
--

CREATE TABLE `rodados_estados` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `rodados_estados_descripcion_unique` (`descripcion`),
  KEY `rodados_estados_person_id_foreign` (`person_id`),
  CONSTRAINT `rodados_estados_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_estados`
--


--
-- Table structure for table `rodados_files`
--

CREATE TABLE `rodados_files` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `rodado_id` bigint(20) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `path` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_original` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rodados_files_person_id_foreign` (`person_id`),
  KEY `rodados_files_rodado_id_foreign` (`rodado_id`),
  CONSTRAINT `rodados_files_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `rodados_files_rodado_id_foreign` FOREIGN KEY (`rodado_id`) REFERENCES `rodados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_files`
--


--
-- Table structure for table `rodados_kms`
--

CREATE TABLE `rodados_kms` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `rodado_id` bigint(20) unsigned NOT NULL,
  `fecha_desde` date NOT NULL,
  `fecha_hasta` date NOT NULL,
  `imei` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `dispositivo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `patente` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tiempo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `numero_viaje` int(11) DEFAULT NULL,
  `kms` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rodados_kms_person_id_foreign` (`person_id`),
  KEY `rodados_kms_rodado_id_foreign` (`rodado_id`),
  CONSTRAINT `rodados_kms_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `rodados_kms_rodado_id_foreign` FOREIGN KEY (`rodado_id`) REFERENCES `rodados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_kms`
--


--
-- Table structure for table `rodados_lojack_tecnologias`
--

CREATE TABLE `rodados_lojack_tecnologias` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `rodados_lojack_tecnologias_descripcion_unique` (`descripcion`),
  KEY `rodados_lojack_tecnologias_person_id_foreign` (`person_id`),
  CONSTRAINT `rodados_lojack_tecnologias_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_lojack_tecnologias`
--


--
-- Table structure for table `rodados_marcas`
--

CREATE TABLE `rodados_marcas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `rodados_marcas_descripcion_unique` (`descripcion`),
  KEY `rodados_marcas_person_id_foreign` (`person_id`),
  CONSTRAINT `rodados_marcas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_marcas`
--


--
-- Table structure for table `rodados_marcas_modelos`
--

CREATE TABLE `rodados_marcas_modelos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `rodados_marca_id` bigint(20) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `rodados_marcas_modelos_descripcion_unique` (`descripcion`),
  KEY `rodados_marcas_modelos_person_id_foreign` (`person_id`),
  KEY `rodados_marcas_modelos_rodados_marca_id_foreign` (`rodados_marca_id`),
  CONSTRAINT `rodados_marcas_modelos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `rodados_marcas_modelos_rodados_marca_id_foreign` FOREIGN KEY (`rodados_marca_id`) REFERENCES `rodados_marcas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_marcas_modelos`
--


--
-- Table structure for table `rodados_seguros_coberturas`
--

CREATE TABLE `rodados_seguros_coberturas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `rodados_seguros_coberturas_descripcion_unique` (`descripcion`),
  KEY `rodados_seguros_coberturas_person_id_foreign` (`person_id`),
  CONSTRAINT `rodados_seguros_coberturas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_seguros_coberturas`
--


--
-- Table structure for table `rodados_seguros_companias`
--

CREATE TABLE `rodados_seguros_companias` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `rodados_seguros_companias_descripcion_unique` (`descripcion`),
  KEY `rodados_seguros_companias_person_id_foreign` (`person_id`),
  CONSTRAINT `rodados_seguros_companias_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_seguros_companias`
--


--
-- Table structure for table `rodados_ypf_gps_estados`
--

CREATE TABLE `rodados_ypf_gps_estados` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `rodados_ypf_gps_estados_descripcion_unique` (`descripcion`),
  KEY `rodados_ypf_gps_estados_person_id_foreign` (`person_id`),
  CONSTRAINT `rodados_ypf_gps_estados_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_ypf_gps_estados`
--


--
-- Table structure for table `sexo`
--

CREATE TABLE `sexo` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `sexo_descripcion_unique` (`descripcion`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sexo`
--

INSERT INTO `sexo` VALUES (1,NULL,'Masculino',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL),(2,NULL,'Femenino',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL);

--
-- Table structure for table `sicore_alicuotas`
--

CREATE TABLE `sicore_alicuotas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `anio` int(11) DEFAULT NULL,
  `desde` int(10) unsigned NOT NULL,
  `hasta` int(10) unsigned NOT NULL,
  `impuesto` int(10) unsigned NOT NULL,
  `mas_porcentaje` decimal(8,2) unsigned NOT NULL,
  `excedente` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sicore_alicuotas`
--

INSERT INTO `sicore_alicuotas` VALUES (1,NULL,2022,0,8000,0,0.00,0,NULL,NULL,NULL),(2,NULL,2022,8000,16000,400,9.00,8000,NULL,NULL,NULL),(3,NULL,2022,16000,24000,1120,12.00,16000,NULL,NULL,NULL),(4,NULL,2022,24000,32000,2080,15.00,24000,NULL,NULL,NULL),(5,NULL,2022,32000,48000,3280,19.00,32000,NULL,NULL,NULL),(6,NULL,2022,48000,64000,6320,23.00,48000,NULL,NULL,NULL),(7,NULL,2022,64000,96000,10000,27.00,64000,NULL,NULL,NULL),(8,NULL,2022,96000,999999,18640,31.00,96000,NULL,NULL,NULL);

--
-- Table structure for table `sicore_comprobantes`
--

CREATE TABLE `sicore_comprobantes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `codigo` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sicore_comprobantes`
--

INSERT INTO `sicore_comprobantes` VALUES (1,'1','FACTURAS A',1,NULL,NULL,NULL),(2,'2','NOTAS DE DEBITO A',1,NULL,NULL,NULL),(3,'3','NOTAS DE CREDITO A',1,NULL,NULL,NULL),(4,'4','RECIBOS A',1,NULL,NULL,NULL),(5,'5','NOTAS DE VENTA AL CONTADO A',1,NULL,NULL,NULL),(6,'6','FACTURAS B',1,NULL,NULL,NULL),(7,'7','NOTAS DE DEBITO B',1,NULL,NULL,NULL),(8,'8','NOTAS DE CREDITO B',1,NULL,NULL,NULL),(9,'9','RECIBOS B',1,NULL,NULL,NULL),(10,'10','NOTAS DE VENTA AL CONTADO B',1,NULL,NULL,NULL),(11,'11','FACTURAS C',1,NULL,NULL,NULL),(12,'12','NOTAS DE DEBITO C',1,NULL,NULL,NULL),(13,'13','NOTAS DE CREDITO C',1,NULL,NULL,NULL),(14,'15','RECIBOS C',1,NULL,NULL,NULL),(15,'16','NOTAS DE VENTA AL CONTADO C',1,NULL,NULL,NULL),(16,'17','LIQUIDACION DE SERVICIOS PUBLICOS CLASE A',1,NULL,NULL,NULL),(17,'18','LIQUIDACION DE SERVICIOS PUBLICOS CLASE B',1,NULL,NULL,NULL),(18,'19','FACTURAS DE EXPORTACION',1,NULL,NULL,NULL),(19,'20','NOTAS DE DEBITO POR OPERACIONES CON EL EXTERIOR',1,NULL,NULL,NULL),(20,'21','NOTAS DE CREDITO POR OPERACIONES CON EL EXTERIOR',1,NULL,NULL,NULL),(21,'22','FACTURAS - PERMISO EXPORTACION SIMPLIFICADO - DTO. 855/97',1,NULL,NULL,NULL),(22,'23','COMPROBANTES “A” DE COMPRA PRIMARIA PARA EL SECTOR PESQUERO MARITIMO',1,NULL,NULL,NULL),(23,'24','COMPROBANTES “A” DE CONSIGNACION PRIMARIA PARA EL SECTOR PESQUERO MARITIMO',1,NULL,NULL,NULL),(24,'25','COMPROBANTES “B” DE COMPRA PRIMARIA PARA EL SECTOR PESQUERO MARITIMO',1,NULL,NULL,NULL),(25,'26','COMPROBANTES “B” DE CONSIGNACION PRIMARIA PARA EL SECTOR PESQUERO MARITIMO',1,NULL,NULL,NULL),(26,'27','LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE A',1,NULL,NULL,NULL),(27,'28','LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE B',1,NULL,NULL,NULL),(28,'29','LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE C',1,NULL,NULL,NULL),(29,'30','COMPROBANTES DE COMPRA DE BIENES USADOS',1,NULL,NULL,NULL),(30,'31','MANDATO - CONSIGNACION',1,NULL,NULL,NULL),(31,'32','COMPROBANTES PARA RECICLAR MATERIALES',1,NULL,NULL,NULL),(32,'33','LIQUIDACION PRIMARIA DE GRANOS',1,NULL,NULL,NULL),(33,'34','COMPROBANTES A DEL APARTADO A  INCISO F)  R.G. N°  1415',1,NULL,NULL,NULL),(34,'35','COMPROBANTES B DEL ANEXO I, APARTADO A, INC. F), R.G. N° 1415',1,NULL,NULL,NULL),(35,'36','COMPROBANTES C DEL Anexo I, Apartado A, INC.F), R.G. N° 1415',1,NULL,NULL,NULL),(36,'37','NOTAS DE DEBITO O DOCUMENTO EQUIVALENTE QUE CUMPLAN CON LA R.G. N° 1415',1,NULL,NULL,NULL),(37,'38','NOTAS DE CREDITO O DOCUMENTO EQUIVALENTE QUE CUMPLAN CON LA R.G. N° 1415',1,NULL,NULL,NULL),(38,'39','OTROS COMPROBANTES A QUE CUMPLEN CON LA R G  1415',1,NULL,NULL,NULL),(39,'40','OTROS COMPROBANTES B QUE CUMPLAN CON LA R.G. N° 1415',1,NULL,NULL,NULL),(40,'41','OTROS COMPROBANTES C QUE CUMPLAN CON LA R.G. N° 1415',1,NULL,NULL,NULL),(41,'43','NOTA DE CREDITO LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE B',1,NULL,NULL,NULL),(42,'44','NOTA DE CREDITO LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE C',1,NULL,NULL,NULL),(43,'45','NOTA DE DEBITO LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE A',1,NULL,NULL,NULL),(44,'46','NOTA DE DEBITO LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE B',1,NULL,NULL,NULL),(45,'47','NOTA DE DEBITO LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE C',1,NULL,NULL,NULL),(46,'48','NOTA DE CREDITO LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE A',1,NULL,NULL,NULL),(47,'49','COMPROBANTES DE COMPRA DE BIENES NO REGISTRABLES A CONSUMIDORES FINALES',1,NULL,NULL,NULL),(48,'50','RECIBO FACTURA A  REGIMEN DE FACTURA DE CREDITO ',1,NULL,NULL,NULL),(49,'51','FACTURAS M',1,NULL,NULL,NULL),(50,'52','NOTAS DE DEBITO M',1,NULL,NULL,NULL),(51,'53','NOTAS DE CREDITO M',1,NULL,NULL,NULL),(52,'54','RECIBOS M',1,NULL,NULL,NULL),(53,'55','NOTAS DE VENTA AL CONTADO M',1,NULL,NULL,NULL),(54,'56','COMPROBANTES M DEL ANEXO I  APARTADO A  INC F) R.G. N° 1415',1,NULL,NULL,NULL),(55,'57','OTROS COMPROBANTES M QUE CUMPLAN CON LA R.G. N° 1415',1,NULL,NULL,NULL),(56,'58','CUENTAS DE VENTA Y LIQUIDO PRODUCTO M',1,NULL,NULL,NULL),(57,'59','LIQUIDACIONES M',1,NULL,NULL,NULL);
INSERT INTO `sicore_comprobantes` VALUES (58,'60','CUENTAS DE VENTA Y LIQUIDO PRODUCTO A',1,NULL,NULL,NULL),(59,'61','CUENTAS DE VENTA Y LIQUIDO PRODUCTO B',1,NULL,NULL,NULL),(60,'63','LIQUIDACIONES A',1,NULL,NULL,NULL),(61,'64','LIQUIDACIONES B',1,NULL,NULL,NULL),(62,'66','DESPACHO DE IMPORTACION',1,NULL,NULL,NULL),(63,'68','LIQUIDACION C',1,NULL,NULL,NULL),(64,'70','RECIBOS FACTURA DE CREDITO',1,NULL,NULL,NULL),(65,'80','INFORME DIARIO DE CIERRE (ZETA) - CONTROLADORES FISCALES',1,NULL,NULL,NULL),(66,'81','TIQUE FACTURA A   ',1,NULL,NULL,NULL),(67,'82','TIQUE FACTURA B',1,NULL,NULL,NULL),(68,'83','TIQUE',1,NULL,NULL,NULL),(69,'88','REMITO ELECTRONICO',1,NULL,NULL,NULL),(70,'89','RESUMEN DE DATOS',1,NULL,NULL,NULL),(71,'90','OTROS COMPROBANTES - DOCUMENTOS EXCEPTUADOS - NOTAS DE CREDITO',1,NULL,NULL,NULL),(72,'91','REMITOS R',1,NULL,NULL,NULL),(73,'99','OTROS COMPROBANTES QUE NO CUMPLEN O ESTÁN EXCEPTUADOS DE LA R.G. 1415 Y SUS MODIF',1,NULL,NULL,NULL),(74,'110','TIQUE NOTA DE CREDITO ',1,NULL,NULL,NULL),(75,'111','TIQUE FACTURA C',1,NULL,NULL,NULL),(76,'112','TIQUE NOTA DE CREDITO A',1,NULL,NULL,NULL),(77,'113','TIQUE NOTA DE CREDITO B',1,NULL,NULL,NULL),(78,'114','TIQUE NOTA DE CREDITO C',1,NULL,NULL,NULL),(79,'115','TIQUE NOTA DE DEBITO A',1,NULL,NULL,NULL),(80,'116','TIQUE NOTA DE DEBITO B',1,NULL,NULL,NULL),(81,'117','TIQUE NOTA DE DEBITO C',1,NULL,NULL,NULL),(82,'118','TIQUE FACTURA M',1,NULL,NULL,NULL),(83,'119','TIQUE NOTA DE CREDITO M',1,NULL,NULL,NULL),(84,'120','TIQUE NOTA DE DEBITO M',1,NULL,NULL,NULL),(85,'201','FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) A',1,NULL,NULL,NULL),(86,'202','NOTA DE DEBITO ELECTRÓNICA MiPyMEs (FCE) A',1,NULL,NULL,NULL),(87,'203','NOTA DE CREDITO ELECTRÓNICA MiPyMEs (FCE) A',1,NULL,NULL,NULL),(88,'206','FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) B',1,NULL,NULL,NULL),(89,'207','NOTA DE DEBITO ELECTRÓNICA MiPyMEs (FCE) B',1,NULL,NULL,NULL),(90,'208','NOTA DE CREDITO ELECTRÓNICA MiPyMEs (FCE) B',1,NULL,NULL,NULL),(91,'211','FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) C',1,NULL,NULL,NULL),(92,'212','NOTA DE DEBITO ELECTRÓNICA MiPyMEs (FCE) C',1,NULL,NULL,NULL),(93,'213','NOTA DE CREDITO ELECTRÓNICA MiPyMEs (FCE) C',1,NULL,NULL,NULL),(94,'331','LIQUIDACION SECUNDARIA DE GRANOS',1,NULL,NULL,NULL),(95,'332','CERTIFICACION ELECTRONICA (GRANOS)',1,NULL,NULL,NULL),(96,'995','REMITO ELECTRÓNICO CÁRNICO ',1,NULL,NULL,NULL);

--
-- Table structure for table `sicore_details`
--

CREATE TABLE `sicore_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `period_id` int(10) unsigned NOT NULL,
  `fecha` date NOT NULL DEFAULT '2022-11-23',
  `cta_cte_cliente_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `is_inscripto` tinyint(1) NOT NULL DEFAULT '1',
  `sicore_regimen_id` bigint(20) unsigned NOT NULL,
  `sicore_comprobantes` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `sicore_comprobante_id` bigint(20) unsigned NOT NULL,
  `comprobante_numero` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `neto_gravado_total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `ret_acum_mes` decimal(16,2) NOT NULL DEFAULT '0.00',
  `monto_no_sujeto_ret` decimal(16,2) NOT NULL DEFAULT '0.00',
  `tasa_aplicable` decimal(16,2) NOT NULL DEFAULT '0.00',
  `neto_sujeto_a_ret` decimal(16,2) NOT NULL DEFAULT '0.00',
  `retencion` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sicore_details_person_id_foreign` (`person_id`),
  KEY `sicore_details_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `sicore_details_period_id_foreign` (`period_id`),
  KEY `sicore_details_sicore_regimen_id_foreign` (`sicore_regimen_id`),
  KEY `sicore_details_sicore_comprobante_id_foreign` (`sicore_comprobante_id`),
  CONSTRAINT `sicore_details_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `sicore_details_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `sicore_details_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `sicore_details_sicore_comprobante_id_foreign` FOREIGN KEY (`sicore_comprobante_id`) REFERENCES `sicore_comprobantes` (`id`),
  CONSTRAINT `sicore_details_sicore_regimen_id_foreign` FOREIGN KEY (`sicore_regimen_id`) REFERENCES `sicore_regimenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sicore_details`
--


--
-- Table structure for table `sicore_regimenes`
--

CREATE TABLE `sicore_regimenes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `cod_regimen` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `anexo` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `ret_min_ins` int(11) NOT NULL,
  `porcent_ins` decimal(8,2) NOT NULL,
  `porcent_no_ins` decimal(8,2) NOT NULL,
  `monto_no_sujeto_ret` int(11) NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sicore_regimenes`
--

INSERT INTO `sicore_regimenes` VALUES (1,NULL,'19','Anexo II,  inc. a) pto. 1)','Intereses  por operaciones realizadas en entidades financieras. Ley N° 21.526 y sus modificaciones o agentes de bolsa o mercado abierto.',0,3.00,10.00,0,1,NULL,NULL,NULL),(2,NULL,'21','Anexo II , inc. a) pto. 2)','Intereses originados en operaciones no comprendidas en el punto 1.',0,6.00,28.00,7870,1,NULL,NULL,NULL),(3,NULL,'30','Anexo II, inc. b) pto. 1)','Alquileres o arrendamientos de bienes muebles.',0,6.00,28.00,11200,1,NULL,NULL,NULL),(4,NULL,'31','Anexo II, inc. b) pto. 2)','Bienes Inmuebles Urbanos, incluidos los efectuados bajo la modalidad de leasing –incluye suburbanos.',0,6.00,28.00,11200,1,NULL,NULL,NULL),(5,NULL,'32','Anexo II, inc. b) pto. 3)','Bienes Inmuebles Rurales, incluidos los efectuados bajo la modalidad de leasing –incluye subrurales-.',0,6.00,28.00,11200,1,NULL,NULL,NULL),(6,NULL,'35','Anexo II, inc. c)','Regalías.',0,6.00,28.00,7870,1,NULL,NULL,NULL),(7,NULL,'43','Anexo II, inc. d)','Interés accionario,  excedentes y retornos distribuidos entre asociados, cooperativas -excepto consumo-.',0,6.00,28.00,7870,1,NULL,NULL,NULL),(8,NULL,'51','Anexo II, inc. e)','Obligaciones de no hacer, o por abandono o no ejercicio de una actividad.',0,6.00,28.00,7870,1,NULL,NULL,NULL),(9,NULL,'78','Anexo II, inc. f)','Enajenación de bienes muebles y bienes de cambio.',0,2.00,10.00,224000,1,NULL,NULL,NULL),(10,NULL,'86','Anexo II, inc. g)','Transferencia  temporaria o definitiva de derechos de llave, marcas, patentes de invención, regalías, concesiones y similares.',0,2.00,10.00,224000,1,NULL,NULL,NULL),(11,NULL,'94','Anexo II, inc. i)','Locaciones de obra y/o servicios no ejecutados en relación de dependencia no mencionados expresamente en otros incisos.',0,2.00,28.00,67170,1,NULL,NULL,NULL),(12,NULL,'95','Anexo ll, inc. l)','Operaciones de transporte de carga  nacional e internacional.',0,0.25,28.00,67170,1,NULL,NULL,NULL),(13,NULL,'53','Anexo ll, inc. m)','Operaciones realizadas  por intermedio  de mercados de  cereales a término que se resuelvan en el  curso del término (arbitrajes) y de mercados de futuros y opciones.',0,0.50,2.00,0,1,NULL,NULL,NULL),(14,NULL,'55','Anexo ll, inc. n)','Distribución de películas. Transmisión de programación. Televisión vía satelital.',0,0.50,2.00,0,1,NULL,NULL,NULL),(15,NULL,'111','Anexo ll, inc. ñ)','Cualquier  otra cesión  o locación de derechos, excepto las que correspondan a operaciones realizadas por intermedio de  mercados  de cereales  a término que se resuelvan en el curso del térm',0,0.50,2.00,0,1,NULL,NULL,NULL),(16,NULL,'112','Anexo ll, inc. o)','Beneficios provenientes del cumplimiento de los requisitos de los planes de seguro de retiro privados administrados por entidades sujetas al control de la Superintendencia de Seguros de la Na',0,3.00,3.00,16830,1,NULL,NULL,NULL),(17,NULL,'113','Anexo ll, inc. p)','Rescates -totales o parciales- por desistimiento de los planes de seguro de retiro a que se refiere el inciso o), excepto que sea de aplicación lo normado en el artículo 101 de la Ley de Impu',0,3.00,3.00,16830,1,NULL,NULL,NULL),(18,NULL,'779','Anexo ll, inc. q)','Subsidios abonados por los Estados Nacional, provinciales, municipales o el Gobierno de la Ciudad Autónoma de Buenos Ares, en concepto de enajenación de bienes muebles y bienes de cambio, en ',0,2.00,10.00,76140,1,NULL,NULL,NULL),(19,NULL,'780','Anexo ll, inc. r)','Subsidios abonados por los Estados Nacional, provinciales, municipales o el Gobierno de la Ciudad Autónoma de Buenos Aires, en concepto de locaciones de obra y/o servicios, no ejecutados en r',0,2.00,28.00,31460,1,NULL,NULL,NULL),(20,NULL,'110','Anexo II, inc. h)','Explotación de derechos de autor (Ley N° 11.723).',0,0.00,28.00,10000,0,NULL,'2023-06-08 12:32:34',NULL);
INSERT INTO `sicore_regimenes` VALUES (21,NULL,'25','Anexo II, inc. j)','Comisiones u otras retribuciones derivadas de la actividad de comisionista, rematador, consignatario y demás auxiliares de comercio a que se refiere el inciso c) del artículo 49 de la Ley de ',0,0.00,28.00,16830,0,NULL,'2023-06-08 12:32:34',NULL),(22,NULL,'116','Anexo ll, inc. k)','Honorarios de director de sociedades anónimas, síndico, fiduciario, consejero de sociedades cooperativas, integrante de consejos de vigilancia y socios administradores de las sociedades de re',0,0.00,28.00,67170,0,NULL,'2023-06-08 12:32:34',NULL),(23,NULL,'116','Anexo ll, inc. k)','Profesionales liberales, oficios, albacea, mandatario, gestor de negocio.',0,0.00,28.00,16830,0,NULL,'2023-06-08 12:32:34',NULL),(24,NULL,'124','Anexo ll, inc. k)','Corredor, viajante de comercio y despachante de aduana.',0,0.00,28.00,16830,0,NULL,'2023-06-08 12:32:34',NULL),(25,NULL,'53','Anexo ll, inc. m)','Operaciones Realizadas a Través del mercado de Cereales a Término',0,0.50,2.00,0,1,NULL,NULL,NULL);

--
-- Table structure for table `solicitantes_certificado`
--

CREATE TABLE `solicitantes_certificado` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `curso_id` int(10) unsigned NOT NULL,
  `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `mail` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cuit` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `solicitantes_certificado_curso_id_foreign` (`curso_id`),
  CONSTRAINT `solicitantes_certificado_curso_id_foreign` FOREIGN KEY (`curso_id`) REFERENCES `cursos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `solicitantes_certificado`
--


--
-- Table structure for table `status`
--

CREATE TABLE `status` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `receipt_type_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `status_receipt_type_id_foreign` (`receipt_type_id`),
  CONSTRAINT `status_receipt_type_id_foreign` FOREIGN KEY (`receipt_type_id`) REFERENCES `receipt_types` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `status`
--

INSERT INTO `status` VALUES (1,'Activo',NULL,NULL,NULL),(2,'Anulado',NULL,NULL,NULL),(3,'Liquidado',NULL,NULL,NULL);

--
-- Table structure for table `suscrip_modulos`
--

CREATE TABLE `suscrip_modulos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `suscrip_modulos`
--

INSERT INTO `suscrip_modulos` VALUES (1,0,'Administración',1,NULL,NULL,NULL),(2,0,'Sueldos',1,NULL,NULL,NULL),(3,0,'Impuestos',1,NULL,NULL,NULL),(4,0,'Contabilidad',1,NULL,NULL,NULL),(5,0,'Factura Electrónica',1,NULL,NULL,NULL),(6,0,'Tesorería',1,NULL,NULL,NULL),(7,0,'Del Contador',1,NULL,NULL,NULL);

--
-- Table structure for table `suscrip_planes`
--

CREATE TABLE `suscrip_planes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `importe` decimal(16,2) DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `suscrip_planes`
--

INSERT INTO `suscrip_planes` VALUES (1,0,'GRATIS',0.00,1,NULL,NULL,NULL),(2,0,'BASICO',1000.00,1,NULL,NULL,NULL),(3,0,'MEDIO',2500.00,1,NULL,NULL,NULL),(4,0,'FULL',4000.00,1,NULL,NULL,NULL);

--
-- Table structure for table `suscrip_planes_detail`
--

CREATE TABLE `suscrip_planes_detail` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `suscrip_plan_id` int(10) unsigned NOT NULL,
  `suscrip_modulo_id` int(10) unsigned NOT NULL,
  `permitido` tinyint(1) NOT NULL DEFAULT '1',
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `icono` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `numero` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `suscrip_planes_detail_suscrip_plan_id_foreign` (`suscrip_plan_id`),
  KEY `suscrip_planes_detail_suscrip_modulo_id_foreign` (`suscrip_modulo_id`),
  CONSTRAINT `suscrip_planes_detail_suscrip_modulo_id_foreign` FOREIGN KEY (`suscrip_modulo_id`) REFERENCES `suscrip_modulos` (`id`),
  CONSTRAINT `suscrip_planes_detail_suscrip_plan_id_foreign` FOREIGN KEY (`suscrip_plan_id`) REFERENCES `suscrip_planes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=85 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `suscrip_planes_detail`
--

INSERT INTO `suscrip_planes_detail` VALUES (1,0,1,1,1,'CUITs para operar','','1',1,NULL,NULL,NULL),(2,0,1,1,0,'Usuarios para tus clientes','fa fa-times-circle','',1,NULL,NULL,NULL),(3,0,1,1,1,'Reporte de Control Total de las liquidaciones','fa fa-check-circle','',1,NULL,NULL,NULL),(4,0,1,1,0,'Enviar estado de deudas impositivas','fa fa-times-circle','',1,NULL,NULL,NULL),(5,0,1,1,0,'Enviar vencimientos y honorarios de tus clientes','fa fa-times-circle','',1,NULL,NULL,NULL),(6,0,2,1,1,'CUITs para operar','','30',1,NULL,NULL,NULL),(7,0,2,1,1,'Usuarios para tus clientes','fa fa-check-circle','5',1,NULL,NULL,NULL),(8,0,2,1,1,'Reporte de Control Total de las liquidaciones','fa fa-check-circle','',1,NULL,NULL,NULL),(9,0,2,1,0,'Enviar estado de deudas impositivas','fa fa-times-circle','',1,NULL,NULL,NULL),(10,0,2,1,0,'Enviar vencimientos y honorarios de tus clientes','fa fa-times-circle','',1,NULL,NULL,NULL),(11,0,3,1,1,'CUITs para operar','','100',1,NULL,NULL,NULL),(12,0,3,1,1,'Usuarios para tus clientes','fa fa-check-circle','15',1,NULL,NULL,NULL),(13,0,3,1,1,'Reporte de Control Total de las liquidaciones','fa fa-check-circle','',1,NULL,NULL,NULL),(14,0,3,1,1,'Enviar estado de deudas impositivas','fa fa-check-circle','',1,NULL,NULL,NULL),(15,0,3,1,1,'Enviar vencimientos y honorarios de tus clientes','fa fa-check-circle','',1,NULL,NULL,NULL),(16,0,4,1,1,'CUITs para operar','','200',1,NULL,NULL,NULL),(17,0,4,1,1,'Usuarios para tus clientes','fa fa-check-circle','30',1,NULL,NULL,NULL),(18,0,4,1,1,'Reporte de Control Total de las liquidaciones','fa fa-check-circle','',1,NULL,NULL,NULL),(19,0,4,1,1,'Enviar estado de deudas impositivas','fa fa-check-circle','',1,NULL,NULL,NULL),(20,0,4,1,1,'Enviar vencimientos y honorarios de tus clientes','fa fa-check-circle','',1,NULL,NULL,NULL),(21,0,1,2,1,'Total de Legajos','','10',1,NULL,NULL,NULL),(22,0,1,2,0,'Creacion de convenios colectivos de trabajo','fa fa-times-circle','',1,NULL,NULL,NULL),(23,0,1,2,1,'TXT para SICOSS','fa fa-check-circle','',1,NULL,NULL,NULL),(24,0,1,2,1,'Reportes de sueldos','fa fa-check-circle','',1,NULL,NULL,NULL),(25,0,2,2,1,'Total de Legajos','','50',1,NULL,NULL,NULL),(26,0,2,2,1,'Creacion de convenios colectivos de trabajo','fa fa-check-circle','',1,NULL,NULL,NULL),(27,0,2,2,1,'TXT para SICOSS','fa fa-check-circle','',1,NULL,NULL,NULL),(28,0,2,2,1,'Reportes de sueldos','fa fa-check-circle','',1,NULL,NULL,NULL),(29,0,3,2,1,'Total de Legajos','','200',1,NULL,NULL,NULL),(30,0,3,2,1,'Creacion de convenios colectivos de trabajo','fa fa-check-circle','',1,NULL,NULL,NULL),(31,0,3,2,1,'TXT para SICOSS','fa fa-check-circle','',1,NULL,NULL,NULL),(32,0,3,2,1,'Reportes de sueldos','fa fa-check-circle','',1,NULL,NULL,NULL),(33,0,4,2,1,'Total de Legajos','','200',1,NULL,NULL,NULL),(34,0,4,2,1,'Creacion de convenios colectivos de trabajo','fa fa-check-circle','',1,NULL,NULL,NULL),(35,0,4,2,1,'TXT para SICOSS','fa fa-check-circle','',1,NULL,NULL,NULL),(36,0,4,2,1,'Reportes de sueldos','fa fa-check-circle','',1,NULL,NULL,NULL),(37,0,1,3,1,'Cant. Comprobantes','','100',1,NULL,NULL,NULL),(38,0,1,3,1,'TXT Citi Ventas - Libro IVA Digital','fa fa-check-circle','',1,NULL,NULL,NULL),(39,0,1,3,1,'Importacion de Ventas y Compras desde AFIP','fa fa-check-circle','',1,NULL,NULL,NULL),(40,0,1,3,0,'Ventanilla Electronica','fa fa-times-circle','',1,NULL,NULL,NULL),(41,0,2,3,1,'Cant. Comprobantes','','Ilimitado',1,NULL,NULL,NULL),(42,0,2,3,1,'TXT Citi Ventas - Libro IVA Digital','fa fa-check-circle','',1,NULL,NULL,NULL),(43,0,2,3,1,'Importacion de Ventas y Compras desde AFIP','fa fa-check-circle','',1,NULL,NULL,NULL),(44,0,2,3,1,'Ventanilla Electronica','fa fa-check-circle','',1,NULL,NULL,NULL),(45,0,3,3,1,'Cant. Comprobantes','','Ilimitado',1,NULL,NULL,NULL),(46,0,3,3,1,'TXT Citi Ventas - Libro IVA Digital','fa fa-check-circle','',1,NULL,NULL,NULL),(47,0,3,3,1,'Importacion de Ventas y Compras desde AFIP','fa fa-check-circle','',1,NULL,NULL,NULL),(48,0,3,3,1,'Ventanilla Electronica','fa fa-check-circle','',1,NULL,NULL,NULL);
INSERT INTO `suscrip_planes_detail` VALUES (49,0,4,3,1,'Cant. Comprobantes','','Ilimitado',1,NULL,NULL,NULL),(50,0,4,3,1,'TXT Citi Ventas - Libro IVA Digital','fa fa-check-circle','',1,NULL,NULL,NULL),(51,0,4,3,1,'Importacion de Ventas y Compras desde AFIP','fa fa-check-circle','',1,NULL,NULL,NULL),(52,0,4,3,1,'Ventanilla Electronica','fa fa-check-circle','',1,NULL,NULL,NULL),(53,0,1,4,1,'Ajuste por Inflacion','fa fa-check-circle','',1,NULL,NULL,NULL),(54,0,1,4,1,'Registracion de Actas Societarias','fa fa-check-circle','',1,NULL,NULL,NULL),(55,0,1,4,1,'Libros Contables','fa fa-check-circle','',1,NULL,NULL,NULL),(56,0,1,4,1,'Reportes','fa fa-check-circle','',1,NULL,NULL,NULL),(57,0,2,4,1,'Ajuste por Inflacion','fa fa-check-circle','',1,NULL,NULL,NULL),(58,0,2,4,1,'Registracion de Actas Societarias','fa fa-check-circle','',1,NULL,NULL,NULL),(59,0,2,4,1,'Libros Contables','fa fa-check-circle','',1,NULL,NULL,NULL),(60,0,2,4,1,'Reportes','fa fa-check-circle','',1,NULL,NULL,NULL),(61,0,3,4,1,'Ajuste por Inflacion','fa fa-check-circle','',1,NULL,NULL,NULL),(62,0,3,4,1,'Registracion de Actas Societarias','fa fa-check-circle','',1,NULL,NULL,NULL),(63,0,3,4,1,'Libros Contables','fa fa-check-circle','',1,NULL,NULL,NULL),(64,0,3,4,1,'Reportes','fa fa-check-circle','',1,NULL,NULL,NULL),(65,0,4,4,1,'Ajuste por Inflacion','fa fa-check-circle','',1,NULL,NULL,NULL),(66,0,4,4,1,'Registracion de Actas Societarias','fa fa-check-circle','',1,NULL,NULL,NULL),(67,0,4,4,1,'Libros Contables','fa fa-check-circle','',1,NULL,NULL,NULL),(68,0,4,4,1,'Reportes','fa fa-check-circle','',1,NULL,NULL,NULL),(69,0,1,5,0,'Facturacion Electronica','fa fa-times-circle','',1,NULL,NULL,NULL),(70,0,1,5,1,'Facturacion Masiva y envio de facturas via email','fa fa-check-circle','',1,NULL,NULL,NULL),(71,0,1,5,1,'Remitos-Recibos-Presupuestos','fa fa-check-circle','',1,NULL,NULL,NULL),(72,0,1,5,1,'Reportes','fa fa-check-circle','',1,NULL,NULL,NULL),(73,0,2,5,1,'Facturacion Electronica','fa fa-check-circle','',1,NULL,NULL,NULL),(74,0,2,5,1,'Facturacion Masiva y envio de facturas via email','fa fa-check-circle','',1,NULL,NULL,NULL),(75,0,2,5,1,'Remitos-Recibos-Presupuestos','fa fa-check-circle','',1,NULL,NULL,NULL),(76,0,2,5,1,'Reportes','fa fa-check-circle','',1,NULL,NULL,NULL),(77,0,3,5,1,'Facturacion Electronica','fa fa-check-circle','',1,NULL,NULL,NULL),(78,0,3,5,1,'Facturacion Masiva y envio de facturas via email','fa fa-check-circle','',1,NULL,NULL,NULL),(79,0,3,5,1,'Remitos-Recibos-Presupuestos','fa fa-check-circle','',1,NULL,NULL,NULL),(80,0,3,5,1,'Reportes','fa fa-check-circle','',1,NULL,NULL,NULL),(81,0,4,5,1,'Facturacion Electronica','fa fa-check-circle','',1,NULL,NULL,NULL),(82,0,4,5,1,'Facturacion Masiva y envio de facturas via email','fa fa-check-circle','',1,NULL,NULL,NULL),(83,0,4,5,1,'Remitos-Recibos-Presupuestos','fa fa-check-circle','',1,NULL,NULL,NULL),(84,0,4,5,1,'Reportes','fa fa-check-circle','',1,NULL,NULL,NULL);

--
-- Table structure for table `syj_actividad`
--

CREATE TABLE `syj_actividad` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `codigo_afip` int(10) unsigned NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `syj_actividad_codigo_afip_unique` (`codigo_afip`),
  UNIQUE KEY `syj_actividad_descripcion_unique` (`descripcion`)
) ENGINE=InnoDB AUTO_INCREMENT=145 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `syj_actividad`
--

INSERT INTO `syj_actividad` VALUES (1,NULL,0,'Zona de Desastre. Decreto 1386/01',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(2,NULL,1,'Produccion Primaria excepto actividad agropec',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(3,NULL,2,'Produccion de bienes sin comercializacion',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(4,NULL,3,'Construccion de inmuebles',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(5,NULL,4,'Turismo',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(6,NULL,5,'Investigacion Cientifica y Tecnologica',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(7,NULL,6,'Administracion Publica CON OBRA SOCIAL 23660',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(8,NULL,7,'Enseñanza Privada L.13047 no comp.en D 137/05',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(9,NULL,8,'Servicio Domestico',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(10,NULL,9,'Servicios energeticos Res.MTESS 268 y 824/09',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(11,NULL,10,'UNIVERSIDADES PRIVADAS.Personal No Doc. D112',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(12,NULL,11,'Personal Permanente Disc.Emp.de Ss.Eventuales',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(13,NULL,12,'PIT-Programas Intensivos de Trabajo',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(14,NULL,13,'Personal embarcado',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(15,NULL,14,'Personal embarcado Dec 1255 S/ res SSS 18/99',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(16,NULL,15,'LRT- Direct. SA,municipios,org cent y desc,Em',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(17,NULL,16,'No oblig con el SIJP(colegios,reciproc prev y',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(18,NULL,17,'Oblig.al SIJP-sin Obra Social Nac(Adm Pub y',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(19,NULL,18,'Prov incorp al SIJP sin obra social con ART',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(20,NULL,19,'Provincia incorp al SIJP sin obra social sin',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(21,NULL,20,'Ley Nº 24.331 Zona Franca',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(22,NULL,21,'D Nº1024/93 Empr del Est,Org y Entes Pub c/OS',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(23,NULL,22,'D Nº1024/93 Empr del Est,Org y Entes Pub s/OS',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(24,NULL,23,'ILT para actividad 21',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(25,NULL,24,'ILPPP o ILPPD para actividad 21',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(26,NULL,25,'ILPTP para actividad 21',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(27,NULL,26,'ILT para actividad 22',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(28,NULL,27,'Servicio exterior Ley Nº22731',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(29,NULL,28,'ILPTP para actividad 22',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(30,NULL,29,'Pers embarc Dec 1255 S/res SSS 18/99 c/OS',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(31,NULL,30,'AFA Dec Nº1212/03 Aportante Autonomo',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(32,NULL,31,'Trabajador Rural de la Armada Argentina Ley 2',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(33,NULL,32,'CSJN Corte Supr de Justicia, Magist Prov, Rev',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(34,NULL,33,'Representante Gremial en uso de licencia',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(35,NULL,34,'Docentes est nacionales CON OBRA SOCIAL 23660',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(36,NULL,35,'Docentes est nacionales SIN OBRA SOCIAL 23660',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(37,NULL,36,'Inv cientif tecnolog docente univ est nac c/O',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(38,NULL,37,'Inv cientif tecnolog docente univ est nac s/O',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL);
INSERT INTO `syj_actividad` VALUES (39,NULL,38,'Docentes privados Res 71/99 SSS Dec 137/05',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(40,NULL,39,'No Docentes Privados Res 71/99 SSS',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(41,NULL,40,'Industria del software Ley Nº 25922',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(42,NULL,41,'Trabajador de la Const Ley 25345 art 36',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(43,NULL,42,'Asignaciones Familiares y FNE con OS Nacional',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(44,NULL,43,'Asignaciones Familiares y FNE sin OS Nacional',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(45,NULL,44,'Ley Nº 24061 Dto 249/92',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(46,NULL,45,'Prov incorp al SIJP c/OS Nac con ART',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(47,NULL,46,'Prov incorp al SIJP con OS Nacional sin ART',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(48,NULL,47,'Ley Nº 15223 con Obra Social',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(49,NULL,48,'Regimen nacional sin Obra Social nacional',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(50,NULL,49,'Actividades no clasificadas',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(51,NULL,50,'POLICIA DE LA RIOJA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(52,NULL,51,'POLICIA DE JUJUY',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(53,NULL,52,'POLICIA DE TUCUMAN',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(54,NULL,53,'POLICIA DE CATAMARCA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(55,NULL,54,'POLICIA DE RIO NEGRO',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(56,NULL,55,'POLICIA DE MENDOZA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(57,NULL,56,'POLICIA DE SANTIAGO DEL ESTERO',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(58,NULL,57,'POLICIA DE SALTA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(59,NULL,58,'POLICIA DE SAN JUAN',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(60,NULL,59,'POLICIA DE SAN LUIS',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(61,NULL,60,'SERVICIO PENITENCIARIO DE SAN LUIS',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(62,NULL,61,'POLICIA METROPOLITANA DEL GOB DE LA CABA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(63,NULL,62,'Personal sin estado policial POLICIA METROP',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(64,NULL,63,'SERVICIO PENITENCIARIO DE LA RIOJA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(65,NULL,64,'SERVICIO PENITENCIARIO DE JUJUY',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(66,NULL,65,'SERVICIO PENITENCIARIO DE TUCUMAN',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(67,NULL,66,'SERVICIO PENITENCIARIO DE CATAMARCA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(68,NULL,67,'SERVICIO PENITENCIARIO DE RIO NEGRO',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(69,NULL,68,'SERVICO PENITENCIARIO DE MENDOZA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(70,NULL,69,'Legisladores Nacionales(diputados y senadores',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(71,NULL,70,'SERVICIO PENITENCIARIO DE SANTIAGO DEL ESTERO',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(72,NULL,71,'SERVICIO PENITENCIARIO DE SALTA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(73,NULL,72,'SERVICIO PENITENCIARIO DE SAN JUAN',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(74,NULL,73,'ILT p/actividad 91',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(75,NULL,74,'ILPPP o ILPPD p/actividad 91',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(76,NULL,75,'Docente de Prov incorp SIJP s/OS Nac c/ART',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(77,NULL,76,'Docente de Prov incorp SIJP s/OS Nac s/ART',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(78,NULL,77,'Docente de Prov incorp SIJP c/OS Nac c/ART',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL);
INSERT INTO `syj_actividad` VALUES (79,NULL,78,'Invest cient tecnolog docente univ Prov inc S',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(80,NULL,79,'Invest cientif tecnolog Prov incorp al SIJP c',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(81,NULL,80,'ILPTP p/activ 01 02 03 04 05 11 13 49 91',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(82,NULL,81,'Funcionarios del PJ y otros Ley Nº24018',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(83,NULL,82,'Funcionarios del PE y otros Ley Nº 24018',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(84,NULL,83,'Presidente de la Nacion y Vicep de la Nacion',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(85,NULL,84,'Docentes Privados Res 71/99 SSS D 137/05 s/OS',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(86,NULL,85,'Magistrados Prov,Revisores de Cta-docentes',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(87,NULL,86,'Decreto 1474/2007 actividad minera',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(88,NULL,87,'Ley 26508 docentes univ c/OS Nacional',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(89,NULL,88,'Ley 26508 docentes univ s/OS Nacional',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(90,NULL,89,'ILPTP p/actividad 97',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(91,NULL,90,'ILT o ILPPP o ILPTP p/actividad 15',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(92,NULL,91,'Regimen previsional propio. OS L.23660 y 2471',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(93,NULL,92,'Res 71/99 SSS y otros',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(94,NULL,93,'UNIV PRIVADAS Personal Docente D 1123/99',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(95,NULL,94,'Decreto 953/99',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(96,NULL,95,'Ley Nº 15223 sin Obra Social',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(97,NULL,96,'Pers Perm Disc Serv Event Alcanz p/Dto96/99',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(98,NULL,97,'Trabajador Agrario Ley 25191',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(99,NULL,98,'Zona de Desastre Dec Nº1386/01 Act Agropecuar',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(100,NULL,99,'Trabajador Agrario (excluido Ley 26727)',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(101,NULL,100,'CSJN Corte Supr de Justicia, Magistrados provinciales, Revisores de Cta sin ART',1,NULL,NULL,NULL),(102,NULL,101,'Magistrados provinciales, Revisores de Cta -docentes sin ART',1,NULL,NULL,NULL),(103,NULL,102,'Zona de Desastre Decreto N° 1386/01. Actividad Agropecuaria Ley N° 25191',1,NULL,NULL,NULL),(104,NULL,103,'Trabajador Agrario Ley 23808 y otros regímenes',1,NULL,NULL,NULL),(105,NULL,104,'Zona de Desastre Decreto N° 1386/01. Actividad Agropecuaria Ley N° 23808 y otros regímenes',1,NULL,NULL,NULL),(106,NULL,105,'Dto. 637/13. Personal civil de las Fuerzas Armadas y de Seguridad excepto personal civil docente perteneciente a otra OS',1,NULL,NULL,NULL),(107,NULL,106,'Administración Pública CON OBRA SOCIAL 23660 (con PAMI) Tipo de empleador especial',1,NULL,NULL,NULL),(108,NULL,107,'Serv. energéticos Res. MTESS 268 y 824/09 Empr del Estado, Org. y Entes Públicos (Dto. 1024/93) s/OS, c/FNE s/ As. Fs.',1,NULL,NULL,NULL),(109,NULL,108,'Serv. energéticos Res. MTESS 268 y 824/09 Emp. del estado y Org. y Entes públicos ( Dto. 1024/93) con OS y FNE sin As. Fs.',1,NULL,NULL,NULL),(110,NULL,109,'Servicios energéticos Res.MTESS 268 y 824/09 - Provincias (sin PAMI y sin OS)',1,NULL,NULL,NULL),(111,NULL,110,'Servicios energéticos Res.MTESS 268 y 824/09 - Provincias con OS',1,NULL,NULL,NULL),(112,NULL,111,'Servicios energéticos Res.MTESS 268 y 824/09 - Provincias (sin PAMI y sin OS) sin ART',1,NULL,NULL,NULL),(113,NULL,112,'Servicios energéticos Res.MTESS 268 y 824/09 - Provincias con OS sin ART',1,NULL,NULL,NULL),(114,NULL,113,'Policía Federal del Gobierno de la Ciudad de Buenos Aires',1,NULL,NULL,NULL);
INSERT INTO `syj_actividad` VALUES (115,NULL,117,'Obligados al SIJP -sin Obra Social Nacional (Adm Pub y otros) y SIN PAMI - Tipo de empleador especial',1,NULL,NULL,NULL),(116,NULL,119,'Detracción especial - Ley Nº 27430 - Textiles',1,NULL,NULL,NULL),(117,NULL,120,'Detracción Ampliada - Dcto. 128/2019',1,NULL,NULL,NULL),(118,NULL,122,'Trabajador Agrario. Ley 26727 - Detracción Ampliada Dcto. 128/2019',1,NULL,NULL,NULL),(119,NULL,123,'Trabajador Agrario Ley 25191 - Detracción Ampliada Dcto. 128/2019',1,NULL,NULL,NULL),(120,NULL,124,'Trabajador Agrario Ley 23808 y otros regímenes - Detracción Ampliada Dcto. 128/2019',1,NULL,NULL,NULL),(121,NULL,125,'Actividades no clasificadas-Detracción Ampliada - Dcto. 688/2019 - Dcto. 34/2021 - Dcto 242/2021',1,NULL,NULL,NULL),(122,NULL,126,'Ley Nº 15223 con obra social-Detracción Ampliada - Dcto. 688/2019  -  Dcto. 34/2021 -  Dcto 242/2021',1,NULL,NULL,NULL),(123,NULL,127,'Actividades no clasificadas - Sector Salud Dcto. 34/2021  -  Dcto 242/2021',1,NULL,NULL,NULL),(124,NULL,128,'Ley Nº 15223 con obra social - Sector Salud Dcto. 34/2021  -  Dcto 242/2021',1,NULL,NULL,NULL),(125,NULL,129,'Actividades no clasificadas-Detracción Ampliada - Dcto. 688/2019',1,NULL,NULL,NULL),(126,NULL,130,'Ley Nº 15223 con obra social-Detracción Ampliada - Dcto. 688/2019.',1,NULL,NULL,NULL),(127,NULL,131,'Regimen previsional propio.  Obra Social L.23660 Y FNE',1,NULL,NULL,NULL),(128,NULL,132,'Economía del conocimiento - Ley 27.506. Art. 8',1,NULL,NULL,NULL),(129,NULL,133,'Economía del conocimiento - Ley 27.506. Art. 9',1,NULL,NULL,NULL),(130,NULL,901,'Poder judicial (sin ART)',1,NULL,NULL,NULL),(131,NULL,902,'Poder judicial (con ART)',1,NULL,NULL,NULL),(132,NULL,903,'Poder Legislativo (sin ART)',1,NULL,NULL,NULL),(133,NULL,904,'Poder Legislativo (con ART)',1,NULL,NULL,NULL),(134,NULL,905,'Empleo público en Gral. (sin ART)',1,NULL,NULL,NULL),(135,NULL,906,'Empleo público en Gral. (con ART)',1,NULL,NULL,NULL),(136,NULL,907,'Docente (sin ART)',1,NULL,NULL,NULL),(137,NULL,908,'Docente (con ART)',1,NULL,NULL,NULL),(138,NULL,909,'Fuerza de seguridad (sin ART)',1,NULL,NULL,NULL),(139,NULL,910,'Fuerza de seguridad (con ART)',1,NULL,NULL,NULL),(140,NULL,911,'No clasificados (sin ART)',1,NULL,NULL,NULL),(141,NULL,912,'No clasificados (con ART)',1,NULL,NULL,NULL),(142,NULL,913,'Prestadores de servicios (monotributo y/o autónomos)',1,NULL,NULL,NULL),(143,NULL,920,'No obligados al SIPA - informativo (sin ART)',1,NULL,NULL,NULL),(144,NULL,921,'No obligados al SIPA - informativo (con ART)',1,NULL,NULL,NULL);

--
-- Table structure for table `syj_alicuota_aporte_contribucion`
--

CREATE TABLE `syj_alicuota_aporte_contribucion` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `codigo_afip` int(10) unsigned NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `apsijp` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `apinssjp` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `aposoc` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `apadosoc` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `alicvales` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `cosijp` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `coasigfam` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `cofne` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `coinssjp` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `coosoc` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `syj_alicuota_aporte_contribucion_codigo_afip_unique` (`codigo_afip`),
  UNIQUE KEY `syj_alicuota_aporte_contribucion_descripcion_unique` (`descripcion`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `syj_alicuota_aporte_contribucion`
--

INSERT INTO `syj_alicuota_aporte_contribucion` VALUES (1,NULL,0,'Administracion Publica',11.000000,3.000000,3.000000,1.500000,0.000000,16.000000,7.500000,1.500000,2.000000,6.000000,1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(2,NULL,1,'Decreto 814/01, art 2, inc. B',11.000000,3.000000,3.000000,1.500000,0.000000,10.170000,4.440000,0.890000,1.500000,6.000000,1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(3,NULL,2,'Servicios Eventuales art. 2, inc. B',11.000000,3.000000,3.000000,1.500000,0.000000,10.170000,4.440000,0.890000,1.500000,6.000000,1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(4,NULL,3,'Provincias u otros',11.000000,3.000000,3.000000,1.500000,0.000000,16.000000,7.500000,1.500000,2.000000,6.000000,1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(5,NULL,4,'Decreto 814/01 art 2, inc. A',11.000000,3.000000,3.000000,1.500000,0.000000,12.710000,5.560000,1.110000,1.620000,6.000000,1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(6,NULL,5,'Servicios Eventuales art 2, inc. A',11.000000,3.000000,3.000000,1.500000,0.000000,12.710000,5.560000,1.110000,1.620000,6.000000,1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(7,NULL,7,'Enseñanza Privada',11.000000,3.000000,3.000000,1.500000,0.000000,16.000000,7.500000,1.500000,0.000000,6.000000,1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(8,NULL,8,'Decreto Nº 1212/03 AFA CLUBES',11.000000,3.000000,3.000000,1.500000,0.000000,10.170000,4.440000,0.890000,1.500000,6.000000,1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL);

--
-- Table structure for table `syj_cargos`
--

CREATE TABLE `syj_cargos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `syj_cargos_person_id_foreign` (`person_id`),
  CONSTRAINT `syj_cargos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `syj_cargos`
--

INSERT INTO `syj_cargos` VALUES (1,8127,40720,'Ayudante en Gestión',1,'2022-11-23 15:02:00','2022-11-23 15:02:00',NULL),(2,8127,40719,'Carnicero',1,'2022-11-28 09:25:26','2022-11-28 09:25:26',NULL);

--
-- Table structure for table `syj_centros_costos`
--

CREATE TABLE `syj_centros_costos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `syj_centros_costos_person_id_foreign` (`person_id`),
  CONSTRAINT `syj_centros_costos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `syj_centros_costos`
--

INSERT INTO `syj_centros_costos` VALUES (1,8127,40720,'Farmacia',1,'2022-11-23 15:01:47','2022-11-23 15:01:47',NULL),(2,8127,40719,'La Tranquera',1,'2022-11-28 09:25:20','2022-11-28 09:25:20',NULL);

--
-- Table structure for table `syj_clase_tipo_liquidacion`
--

CREATE TABLE `syj_clase_tipo_liquidacion` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `syj_clase_tipo_liquidacion`
--

INSERT INTO `syj_clase_tipo_liquidacion` VALUES (1,NULL,'Mensual',1,NULL,NULL,NULL),(2,NULL,'Quincenal',1,NULL,NULL,NULL),(3,NULL,'Vacaciones',1,NULL,NULL,NULL),(4,NULL,'Aguinaldo',1,NULL,NULL,NULL),(5,NULL,'Final',1,NULL,NULL,NULL);

--
