INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (33924,NULL,33903,33030,NULL,0,NULL,'2025-10-27 20:20:06','2025-10-27 20:20:06',NULL),(33925,NULL,33904,33031,NULL,0,NULL,'2025-10-27 20:20:07','2025-10-27 20:20:07',NULL),(33926,NULL,33905,33032,NULL,0,NULL,'2025-10-27 20:20:07','2025-10-27 20:20:07',NULL),(33927,NULL,33906,33033,NULL,0,NULL,'2025-10-27 20:20:07','2025-10-27 20:20:07',NULL),(33928,NULL,33907,33034,NULL,0,NULL,'2025-10-27 20:20:07','2025-10-27 20:20:07',NULL),(33929,NULL,33908,33035,NULL,0,NULL,'2025-10-27 20:20:07','2025-10-27 20:20:07',NULL),(33930,NULL,33909,33036,NULL,0,NULL,'2025-10-27 20:20:07','2025-10-27 20:20:07',NULL),(33931,NULL,33910,33037,NULL,0,NULL,'2025-10-27 20:20:07','2025-10-27 20:20:07',NULL),(33932,NULL,33911,33038,NULL,0,NULL,'2025-10-27 20:20:07','2025-10-27 20:20:07',NULL),(33933,NULL,33912,33039,NULL,0,NULL,'2025-10-27 20:20:08','2025-10-27 20:20:08',NULL),(33934,NULL,33913,33040,NULL,0,NULL,'2025-10-27 20:20:08','2025-10-27 20:20:08',NULL),(33935,NULL,33914,33041,NULL,0,NULL,'2025-10-27 20:20:08','2025-10-27 20:20:08',NULL),(33936,NULL,33915,33042,NULL,0,NULL,'2025-10-27 20:20:08','2025-10-27 20:20:08',NULL),(33937,NULL,33916,33043,NULL,0,NULL,'2025-10-27 20:20:08','2025-10-27 20:20:08',NULL),(33938,NULL,33917,33044,NULL,0,NULL,'2025-10-27 20:20:08','2025-10-27 20:20:08',NULL),(33939,NULL,33918,33045,NULL,0,NULL,'2025-10-27 20:20:08','2025-10-27 20:20:08',NULL),(33940,NULL,33919,33046,NULL,0,NULL,'2025-10-27 20:20:08','2025-10-27 20:20:08',NULL),(33941,NULL,33920,33047,NULL,0,NULL,'2025-10-27 20:20:08','2025-10-27 20:20:08',NULL),(33942,NULL,33921,33048,NULL,0,NULL,'2025-10-27 20:20:08','2025-10-27 20:20:08',NULL),(33943,NULL,33922,33049,NULL,0,NULL,'2025-10-27 20:20:08','2025-10-27 20:20:08',NULL),(33944,NULL,33923,33050,NULL,0,NULL,'2025-10-27 20:20:09','2025-10-27 20:20:09',NULL),(33945,NULL,33924,33051,NULL,0,NULL,'2025-10-27 20:20:09','2025-10-27 20:20:09',NULL),(33946,NULL,33925,33052,NULL,0,NULL,'2025-10-27 20:20:09','2025-10-27 20:20:09',NULL),(33947,NULL,33926,33053,NULL,0,NULL,'2025-10-27 20:20:09','2025-10-27 20:20:09',NULL),(33948,NULL,33927,33054,NULL,0,NULL,'2025-10-27 20:20:09','2025-10-27 20:20:09',NULL),(33949,NULL,33928,33055,NULL,0,NULL,'2025-10-27 20:20:09','2025-10-27 20:20:09',NULL),(33950,NULL,33929,33056,NULL,0,NULL,'2025-10-27 20:20:09','2025-10-27 20:20:09',NULL),(33951,NULL,33930,33057,NULL,0,NULL,'2025-10-27 20:20:09','2025-10-27 20:20:09',NULL),(33952,NULL,33931,33058,NULL,0,NULL,'2025-10-27 20:20:09','2025-10-27 20:20:09',NULL),(33953,NULL,33932,33059,NULL,0,NULL,'2025-10-27 20:20:10','2025-10-27 20:20:10',NULL),(33954,NULL,33933,33060,NULL,0,NULL,'2025-10-27 20:20:10','2025-10-27 20:20:10',NULL),(33955,NULL,33934,33061,NULL,0,NULL,'2025-10-27 20:20:10','2025-10-27 20:20:10',NULL),(33956,NULL,33935,33062,NULL,0,NULL,'2025-10-27 20:20:10','2025-10-27 20:20:10',NULL),(33957,NULL,33936,33063,NULL,0,NULL,'2025-10-27 20:20:10','2025-10-27 20:20:10',NULL),(33958,NULL,33937,33064,NULL,0,NULL,'2025-10-27 20:20:10','2025-10-27 20:20:10',NULL),(33959,NULL,33938,33065,NULL,0,NULL,'2025-10-27 20:20:10','2025-10-27 20:20:10',NULL),(33960,NULL,33939,33066,NULL,0,NULL,'2025-10-27 20:20:10','2025-10-27 20:20:10',NULL),(33961,NULL,33940,33067,NULL,0,NULL,'2025-10-27 20:20:10','2025-10-27 20:20:10',NULL),(33962,NULL,33941,33068,NULL,0,NULL,'2025-10-27 20:20:10','2025-10-27 20:20:10',NULL),(33963,NULL,33942,33069,NULL,0,NULL,'2025-10-27 20:20:10','2025-10-27 20:20:10',NULL),(33964,NULL,33943,33070,NULL,0,NULL,'2025-10-27 20:20:10','2025-10-27 20:20:10',NULL),(33965,NULL,33944,33071,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL),(33966,NULL,33945,33072,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL),(33967,NULL,33946,33073,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL),(33968,NULL,33947,33074,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL),(33969,NULL,33948,33075,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (33970,NULL,33949,33076,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL),(33971,NULL,33950,33077,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL),(33972,NULL,33951,33079,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL),(33973,NULL,33952,33078,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL),(33974,NULL,33953,33080,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL),(33975,NULL,33954,33081,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL),(33976,NULL,33955,33082,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL),(33977,NULL,33956,33083,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL),(33978,NULL,33957,33084,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL),(33979,NULL,33958,33085,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL),(33980,NULL,33959,33086,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL),(33981,NULL,33960,33087,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL),(33982,NULL,33961,33088,NULL,0,NULL,'2025-10-27 20:20:11','2025-10-27 20:20:11',NULL),(33983,NULL,33962,33089,NULL,0,NULL,'2025-10-27 20:20:12','2025-10-27 20:20:12',NULL),(33984,NULL,33963,33090,NULL,0,NULL,'2025-10-27 20:20:12','2025-10-27 20:20:12',NULL),(33985,NULL,33964,33091,NULL,0,NULL,'2025-10-27 20:20:12','2025-10-27 20:20:12',NULL),(33986,NULL,33965,33092,NULL,0,NULL,'2025-10-27 20:20:12','2025-10-27 20:20:12',NULL),(33987,NULL,33966,33093,NULL,0,NULL,'2025-10-27 20:20:12','2025-10-27 20:20:12',NULL),(33988,NULL,33967,33094,NULL,0,NULL,'2025-10-27 20:20:12','2025-10-27 20:20:12',NULL),(33989,NULL,33968,33095,NULL,0,NULL,'2025-10-27 20:20:12','2025-10-27 20:20:12',NULL),(33990,NULL,33969,33096,NULL,0,NULL,'2025-10-27 20:20:12','2025-10-27 20:20:12',NULL),(33991,NULL,33970,33097,NULL,0,NULL,'2025-10-27 20:20:12','2025-10-27 20:20:12',NULL),(33992,NULL,33971,33098,NULL,0,NULL,'2025-10-27 20:20:12','2025-10-27 20:20:12',NULL),(33993,NULL,33972,33099,NULL,0,NULL,'2025-10-27 20:20:12','2025-10-27 20:20:12',NULL),(33994,NULL,33973,33100,NULL,0,NULL,'2025-10-27 20:20:12','2025-10-27 20:20:12',NULL),(33995,NULL,33974,33101,NULL,0,NULL,'2025-10-27 20:20:12','2025-10-27 20:20:12',NULL),(33996,NULL,33975,33102,NULL,0,NULL,'2025-10-27 20:20:12','2025-10-27 20:20:12',NULL),(33997,NULL,33976,33103,NULL,0,NULL,'2025-10-27 20:20:12','2025-10-27 20:20:12',NULL),(33998,NULL,33977,33104,NULL,0,NULL,'2025-10-27 20:20:13','2025-10-27 20:20:13',NULL),(33999,NULL,33978,33105,NULL,0,NULL,'2025-10-27 20:20:13','2025-10-27 20:20:13',NULL),(34000,NULL,33979,33107,NULL,0,NULL,'2025-10-27 20:20:13','2025-10-27 20:20:13',NULL),(34001,NULL,33980,33106,NULL,0,NULL,'2025-10-27 20:20:13','2025-10-27 20:20:13',NULL),(34002,NULL,33981,33108,NULL,0,NULL,'2025-10-27 20:20:13','2025-10-27 20:20:13',NULL),(34003,NULL,33982,33109,NULL,0,NULL,'2025-10-27 20:20:13','2025-10-27 20:20:13',NULL),(34004,NULL,33983,33110,NULL,0,NULL,'2025-10-27 20:20:13','2025-10-27 20:20:13',NULL),(34005,NULL,33984,33111,NULL,0,NULL,'2025-10-27 20:20:13','2025-10-27 20:20:13',NULL),(34006,NULL,33985,33112,NULL,0,NULL,'2025-10-27 20:20:13','2025-10-27 20:20:13',NULL),(34007,NULL,33986,33113,NULL,0,NULL,'2025-10-27 20:20:13','2025-10-27 20:20:13',NULL),(34008,NULL,33987,33114,NULL,0,NULL,'2025-10-27 20:20:13','2025-10-27 20:20:13',NULL),(34009,NULL,33988,33115,NULL,0,NULL,'2025-10-27 20:20:13','2025-10-27 20:20:13',NULL),(34010,NULL,33989,33116,NULL,0,NULL,'2025-10-27 20:20:13','2025-10-27 20:20:13',NULL),(34011,NULL,33990,33117,NULL,0,NULL,'2025-10-27 20:20:13','2025-10-27 20:20:13',NULL),(34012,NULL,33991,33118,NULL,0,NULL,'2025-10-27 20:20:14','2025-10-27 20:20:14',NULL),(34013,NULL,33992,33119,NULL,0,NULL,'2025-10-27 20:20:14','2025-10-27 20:20:14',NULL),(34014,NULL,33993,33120,NULL,0,NULL,'2025-10-27 20:20:14','2025-10-27 20:20:14',NULL),(34015,NULL,33994,33121,NULL,0,NULL,'2025-10-27 20:20:14','2025-10-27 20:20:14',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (34016,NULL,33995,33122,NULL,0,NULL,'2025-10-27 20:20:14','2025-10-27 20:20:14',NULL),(34017,NULL,33996,33123,NULL,0,NULL,'2025-10-27 20:20:14','2025-10-27 20:20:14',NULL),(34018,NULL,33997,33124,NULL,0,NULL,'2025-10-27 20:20:14','2025-10-27 20:20:14',NULL),(34019,NULL,33998,33125,NULL,0,NULL,'2025-10-27 20:20:14','2025-10-27 20:20:14',NULL),(34020,NULL,33999,33126,NULL,0,NULL,'2025-10-27 20:20:14','2025-10-27 20:20:14',NULL),(34021,NULL,34000,33127,NULL,0,NULL,'2025-10-27 20:20:14','2025-10-27 20:20:14',NULL),(34022,NULL,34001,33128,NULL,0,NULL,'2025-10-27 20:20:15','2025-10-27 20:20:15',NULL),(34023,NULL,34002,33129,NULL,0,NULL,'2025-10-27 20:20:15','2025-10-27 20:20:15',NULL),(34024,NULL,34003,33130,NULL,0,NULL,'2025-10-27 20:20:15','2025-10-27 20:20:15',NULL),(34025,NULL,34004,33131,NULL,0,NULL,'2025-10-27 20:20:15','2025-10-27 20:20:15',NULL),(34026,NULL,34005,33132,NULL,0,NULL,'2025-10-27 20:20:15','2025-10-27 20:20:15',NULL),(34027,NULL,34006,33133,NULL,0,NULL,'2025-10-27 20:20:15','2025-10-27 20:20:15',NULL),(34028,NULL,34007,33134,NULL,0,NULL,'2025-10-27 20:20:15','2025-10-27 20:20:15',NULL),(34029,NULL,34008,33135,NULL,0,NULL,'2025-10-27 20:20:15','2025-10-27 20:20:15',NULL),(34030,NULL,34009,33136,NULL,0,NULL,'2025-10-27 20:20:16','2025-10-27 20:20:16',NULL),(34031,NULL,34010,33137,NULL,0,NULL,'2025-10-27 20:20:16','2025-10-27 20:20:16',NULL),(34032,NULL,34011,33138,NULL,0,NULL,'2025-10-27 20:20:16','2025-10-27 20:20:16',NULL),(34033,NULL,34012,33139,NULL,0,NULL,'2025-10-27 20:20:16','2025-10-27 20:20:16',NULL),(34034,NULL,34013,33140,NULL,0,NULL,'2025-10-27 20:20:16','2025-10-27 20:20:16',NULL),(34035,NULL,34014,33141,NULL,0,NULL,'2025-10-27 20:20:16','2025-10-27 20:20:16',NULL),(34036,NULL,34015,33142,NULL,0,NULL,'2025-10-27 20:20:16','2025-10-27 20:20:16',NULL),(34037,NULL,34016,33143,NULL,0,NULL,'2025-10-27 20:20:16','2025-10-27 20:20:16',NULL),(34038,NULL,34017,33144,NULL,0,NULL,'2025-10-27 20:20:16','2025-10-27 20:20:16',NULL),(34039,NULL,34018,33145,NULL,0,NULL,'2025-10-27 20:20:17','2025-10-27 20:20:17',NULL),(34040,NULL,34019,33146,NULL,0,NULL,'2025-10-27 20:20:17','2025-10-27 20:20:17',NULL),(34041,NULL,34020,33147,NULL,0,NULL,'2025-10-27 20:20:17','2025-10-27 20:20:17',NULL),(34042,NULL,34021,33148,NULL,0,NULL,'2025-10-27 20:20:17','2025-10-27 20:20:17',NULL),(34043,NULL,34022,33149,NULL,0,NULL,'2025-10-27 20:20:17','2025-10-27 20:20:17',NULL),(34044,NULL,34023,33150,NULL,0,NULL,'2025-10-27 20:20:17','2025-10-27 20:20:17',NULL),(34045,NULL,34024,33151,NULL,0,NULL,'2025-10-27 20:20:17','2025-10-27 20:20:17',NULL),(34046,NULL,34025,33152,NULL,0,NULL,'2025-10-27 20:20:17','2025-10-27 20:20:17',NULL),(34047,NULL,34026,33153,NULL,0,NULL,'2025-10-27 20:20:18','2025-10-27 20:20:18',NULL),(34048,NULL,34027,33154,NULL,0,NULL,'2025-10-27 20:20:18','2025-10-27 20:20:18',NULL),(34049,NULL,34028,33155,NULL,0,NULL,'2025-10-27 20:20:18','2025-10-27 20:20:18',NULL),(34050,NULL,34029,33156,NULL,0,NULL,'2025-10-27 20:20:18','2025-10-27 20:20:18',NULL),(34051,NULL,34030,33157,NULL,0,NULL,'2025-10-27 20:20:18','2025-10-27 20:20:18',NULL),(34052,NULL,34031,33158,NULL,0,NULL,'2025-10-27 20:20:18','2025-10-27 20:20:18',NULL),(34053,NULL,34032,33159,NULL,0,NULL,'2025-10-27 20:20:18','2025-10-27 20:20:18',NULL),(34054,NULL,34033,33160,NULL,0,NULL,'2025-10-27 20:20:18','2025-10-27 20:20:18',NULL),(34055,NULL,34034,33161,NULL,0,NULL,'2025-10-27 20:20:18','2025-10-27 20:20:18',NULL),(34056,NULL,34035,33162,NULL,0,NULL,'2025-10-27 20:20:18','2025-10-27 20:20:18',NULL),(34057,NULL,34036,33163,NULL,0,NULL,'2025-10-27 20:20:19','2025-10-27 20:20:19',NULL),(34058,NULL,34037,33164,NULL,0,NULL,'2025-10-27 20:20:19','2025-10-27 20:20:19',NULL),(34059,NULL,34038,33165,NULL,0,NULL,'2025-10-27 20:20:19','2025-10-27 20:20:19',NULL),(34060,NULL,34039,33166,NULL,0,NULL,'2025-10-27 20:20:19','2025-10-27 20:20:19',NULL),(34061,NULL,34040,33167,NULL,0,NULL,'2025-10-27 20:20:19','2025-10-27 20:20:19',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (34062,NULL,34041,33168,NULL,0,NULL,'2025-10-27 20:20:19','2025-10-27 20:20:19',NULL),(34063,NULL,34042,33169,NULL,0,NULL,'2025-10-27 20:20:19','2025-10-27 20:20:19',NULL),(34064,NULL,34043,33170,NULL,0,NULL,'2025-10-27 20:20:19','2025-10-27 20:20:19',NULL),(34065,NULL,34044,33171,NULL,0,NULL,'2025-10-27 20:20:19','2025-10-27 20:20:19',NULL),(34066,NULL,34045,33172,NULL,0,NULL,'2025-10-27 20:20:20','2025-10-27 20:20:20',NULL),(34067,NULL,34046,33173,NULL,0,NULL,'2025-10-27 20:20:20','2025-10-27 20:20:20',NULL),(34068,NULL,34047,33174,NULL,0,NULL,'2025-10-27 20:20:20','2025-10-27 20:20:20',NULL),(34069,NULL,34048,33175,NULL,0,NULL,'2025-10-27 20:20:20','2025-10-27 20:20:20',NULL),(34070,NULL,34049,33176,NULL,0,NULL,'2025-10-27 20:20:20','2025-10-27 20:20:20',NULL),(34071,NULL,34050,33177,NULL,0,NULL,'2025-10-27 20:20:20','2025-10-27 20:20:20',NULL),(34072,NULL,34051,33178,NULL,0,NULL,'2025-10-27 20:20:20','2025-10-27 20:20:20',NULL),(34073,NULL,34052,33179,NULL,0,NULL,'2025-10-27 20:20:20','2025-10-27 20:20:20',NULL),(34074,NULL,34053,33180,NULL,0,NULL,'2025-10-27 20:20:20','2025-10-27 20:20:20',NULL),(34075,NULL,34054,33181,NULL,0,NULL,'2025-10-27 20:20:21','2025-10-27 20:20:21',NULL),(34076,NULL,34055,33182,NULL,0,NULL,'2025-10-27 20:20:21','2025-10-27 20:20:21',NULL),(34077,NULL,34056,33183,NULL,0,NULL,'2025-10-27 20:20:21','2025-10-27 20:20:21',NULL),(34078,NULL,34057,33184,NULL,0,NULL,'2025-10-27 20:20:21','2025-10-27 20:20:21',NULL),(34079,NULL,34058,33185,NULL,0,NULL,'2025-10-27 20:20:21','2025-10-27 20:20:21',NULL),(34080,NULL,34059,33186,NULL,0,NULL,'2025-10-27 20:20:21','2025-10-27 20:20:21',NULL),(34081,NULL,34060,33187,NULL,0,NULL,'2025-10-27 20:20:21','2025-10-27 20:20:21',NULL),(34082,NULL,34061,33188,NULL,0,NULL,'2025-10-27 20:20:21','2025-10-27 20:20:21',NULL),(34083,NULL,34062,33189,NULL,0,NULL,'2025-10-27 20:20:21','2025-10-27 20:20:21',NULL),(34084,NULL,34063,33190,NULL,0,NULL,'2025-10-27 20:20:22','2025-10-27 20:20:22',NULL),(34085,NULL,34064,33191,NULL,0,NULL,'2025-10-27 20:20:22','2025-10-27 20:20:22',NULL),(34086,NULL,34065,33192,NULL,0,NULL,'2025-10-27 20:20:22','2025-10-27 20:20:22',NULL),(34087,NULL,34066,33193,NULL,0,NULL,'2025-10-27 20:20:22','2025-10-27 20:20:22',NULL),(34088,NULL,34067,33194,NULL,0,NULL,'2025-10-27 20:20:22','2025-10-27 20:20:22',NULL),(34089,NULL,34068,33195,NULL,0,NULL,'2025-10-27 20:20:22','2025-10-27 20:20:22',NULL),(34090,NULL,34069,33196,NULL,0,NULL,'2025-10-27 20:20:22','2025-10-27 20:20:22',NULL),(34091,NULL,34070,33197,NULL,0,NULL,'2025-10-27 20:20:22','2025-10-27 20:20:22',NULL),(34092,NULL,34071,33198,NULL,0,NULL,'2025-10-27 20:20:22','2025-10-27 20:20:22',NULL),(34093,NULL,34072,33199,NULL,0,NULL,'2025-10-27 20:20:23','2025-10-27 20:20:23',NULL),(34094,NULL,34073,33200,NULL,0,NULL,'2025-10-27 20:20:23','2025-10-27 20:20:23',NULL),(34095,NULL,34074,33201,NULL,0,NULL,'2025-10-27 20:20:23','2025-10-27 20:20:23',NULL),(34096,NULL,34075,33202,NULL,0,NULL,'2025-10-27 20:20:23','2025-10-27 20:20:23',NULL),(34097,NULL,34076,33203,NULL,0,NULL,'2025-10-27 20:20:23','2025-10-27 20:20:23',NULL),(34098,NULL,34077,33204,NULL,0,NULL,'2025-10-27 20:20:23','2025-10-27 20:20:23',NULL),(34099,NULL,34078,33205,NULL,0,NULL,'2025-10-27 20:20:23','2025-10-27 20:20:23',NULL),(34100,NULL,34079,33206,NULL,0,NULL,'2025-10-27 20:20:23','2025-10-27 20:20:23',NULL),(34101,NULL,34080,33207,NULL,0,NULL,'2025-10-27 20:20:23','2025-10-27 20:20:23',NULL),(34102,NULL,34081,33208,NULL,0,NULL,'2025-10-27 20:20:24','2025-10-27 20:20:24',NULL),(34103,NULL,34082,33209,NULL,0,NULL,'2025-10-27 20:20:24','2025-10-27 20:20:24',NULL),(34104,NULL,34083,33210,NULL,0,NULL,'2025-10-27 20:20:24','2025-10-27 20:20:24',NULL),(34105,NULL,34084,33211,NULL,0,NULL,'2025-10-27 20:20:24','2025-10-27 20:20:24',NULL),(34106,NULL,34085,33212,NULL,0,NULL,'2025-10-27 20:20:24','2025-10-27 20:20:24',NULL),(34107,NULL,34086,33213,NULL,0,NULL,'2025-10-27 20:20:24','2025-10-27 20:20:24',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (34108,NULL,34087,33214,NULL,0,NULL,'2025-10-27 20:20:24','2025-10-27 20:20:24',NULL),(34109,NULL,34088,33215,NULL,0,NULL,'2025-10-27 20:20:24','2025-10-27 20:20:24',NULL),(34110,NULL,34089,33216,NULL,0,NULL,'2025-10-27 20:20:24','2025-10-27 20:20:24',NULL),(34111,NULL,34090,33217,NULL,0,NULL,'2025-10-27 20:20:25','2025-10-27 20:20:25',NULL),(34112,NULL,34091,33218,NULL,0,NULL,'2025-10-27 20:20:25','2025-10-27 20:20:25',NULL),(34113,NULL,34092,33219,NULL,0,NULL,'2025-10-27 20:20:25','2025-10-27 20:20:25',NULL),(34114,NULL,34093,33220,NULL,0,NULL,'2025-10-27 20:20:25','2025-10-27 20:20:25',NULL),(34115,NULL,34094,33221,NULL,0,NULL,'2025-10-27 20:20:25','2025-10-27 20:20:25',NULL),(34116,NULL,34095,33222,NULL,0,NULL,'2025-10-27 20:20:25','2025-10-27 20:20:25',NULL),(34117,NULL,34096,33223,NULL,0,NULL,'2025-10-27 20:20:25','2025-10-27 20:20:25',NULL),(34118,NULL,34097,33224,NULL,0,NULL,'2025-10-27 20:20:25','2025-10-27 20:20:25',NULL),(34119,NULL,34098,33225,NULL,0,NULL,'2025-10-27 20:20:25','2025-10-27 20:20:25',NULL),(34120,NULL,34099,33226,NULL,0,NULL,'2025-10-27 20:20:26','2025-10-27 20:20:26',NULL),(34121,NULL,34100,33227,NULL,0,NULL,'2025-10-27 20:20:26','2025-10-27 20:20:26',NULL),(34122,NULL,34101,33228,NULL,0,NULL,'2025-10-27 20:20:26','2025-10-27 20:20:26',NULL),(34123,NULL,34102,33229,NULL,0,NULL,'2025-10-27 20:20:26','2025-10-27 20:20:26',NULL),(34124,NULL,34103,33230,NULL,0,NULL,'2025-10-27 20:20:26','2025-10-27 20:20:26',NULL),(34125,NULL,34104,33231,NULL,0,NULL,'2025-10-27 20:20:26','2025-10-27 20:20:26',NULL),(34126,NULL,34105,33232,NULL,0,NULL,'2025-10-27 20:20:26','2025-10-27 20:20:26',NULL),(34127,NULL,34106,33233,NULL,0,NULL,'2025-10-27 20:20:26','2025-10-27 20:20:26',NULL),(34128,NULL,34107,33234,NULL,0,NULL,'2025-10-27 20:20:26','2025-10-27 20:20:26',NULL),(34129,NULL,34108,33235,NULL,0,NULL,'2025-10-27 20:20:27','2025-10-27 20:20:27',NULL),(34130,NULL,34109,33236,NULL,0,NULL,'2025-10-27 20:20:27','2025-10-27 20:20:27',NULL),(34131,NULL,34110,33237,NULL,0,NULL,'2025-10-27 20:20:27','2025-10-27 20:20:27',NULL),(34132,NULL,34111,33238,NULL,0,NULL,'2025-10-27 20:20:27','2025-10-27 20:20:27',NULL),(34133,NULL,34112,33239,NULL,0,NULL,'2025-10-27 20:20:27','2025-10-27 20:20:27',NULL),(34134,NULL,34113,33240,NULL,0,NULL,'2025-10-27 20:20:27','2025-10-27 20:20:27',NULL),(34135,NULL,34114,33241,NULL,0,NULL,'2025-10-27 20:20:27','2025-10-27 20:20:27',NULL),(34136,NULL,34115,33242,NULL,0,NULL,'2025-10-27 20:20:27','2025-10-27 20:20:27',NULL),(34137,NULL,34116,33243,NULL,0,NULL,'2025-10-27 20:20:27','2025-10-27 20:20:27',NULL),(34138,NULL,34117,33244,NULL,0,NULL,'2025-10-27 20:20:27','2025-10-27 20:20:27',NULL),(34139,NULL,34118,33245,NULL,0,NULL,'2025-10-27 20:20:28','2025-10-27 20:20:28',NULL),(34140,NULL,34119,33246,NULL,0,NULL,'2025-10-27 20:20:28','2025-10-27 20:20:28',NULL),(34141,NULL,34120,33247,NULL,0,NULL,'2025-10-27 20:20:28','2025-10-27 20:20:28',NULL),(34142,NULL,34121,33248,NULL,0,NULL,'2025-10-27 20:20:28','2025-10-27 20:20:28',NULL),(34143,NULL,34122,33249,NULL,0,NULL,'2025-10-27 20:20:28','2025-10-27 20:20:28',NULL),(34144,NULL,34123,33250,NULL,0,NULL,'2025-10-27 20:20:28','2025-10-27 20:20:28',NULL),(34145,NULL,34124,33251,NULL,0,NULL,'2025-10-27 20:20:28','2025-10-27 20:20:28',NULL),(34146,NULL,34125,33252,NULL,0,NULL,'2025-10-27 20:20:28','2025-10-27 20:20:28',NULL),(34147,NULL,34126,33253,NULL,0,NULL,'2025-10-27 20:20:28','2025-10-27 20:20:28',NULL),(34148,NULL,34127,33254,NULL,0,NULL,'2025-10-27 20:20:29','2025-10-27 20:20:29',NULL),(34149,NULL,34128,33255,NULL,0,NULL,'2025-10-27 20:20:29','2025-10-27 20:20:29',NULL),(34150,NULL,34129,33256,NULL,0,NULL,'2025-10-27 20:20:29','2025-10-27 20:20:29',NULL),(34151,NULL,34130,33257,NULL,0,NULL,'2025-10-27 20:20:29','2025-10-27 20:20:29',NULL),(34152,NULL,34131,33258,NULL,0,NULL,'2025-10-27 20:20:29','2025-10-27 20:20:29',NULL),(34153,NULL,34132,33259,NULL,0,NULL,'2025-10-27 20:20:29','2025-10-27 20:20:29',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (34154,NULL,34133,33260,NULL,0,NULL,'2025-10-27 20:20:29','2025-10-27 20:20:29',NULL),(34155,NULL,34134,33261,NULL,0,NULL,'2025-10-27 20:20:29','2025-10-27 20:20:29',NULL),(34156,NULL,34135,33262,NULL,0,NULL,'2025-10-27 20:20:29','2025-10-27 20:20:29',NULL),(34157,NULL,34136,33263,NULL,0,NULL,'2025-10-27 20:20:29','2025-10-27 20:20:29',NULL),(34158,NULL,34137,33264,NULL,0,NULL,'2025-10-27 20:20:30','2025-10-27 20:20:30',NULL),(34159,NULL,34138,33265,NULL,0,NULL,'2025-10-27 20:20:30','2025-10-27 20:20:30',NULL),(34160,NULL,34139,33266,NULL,0,NULL,'2025-10-27 20:20:30','2025-10-27 20:20:30',NULL),(34161,NULL,34140,33267,NULL,0,NULL,'2025-10-27 20:20:30','2025-10-27 20:20:30',NULL),(34162,NULL,34141,33268,NULL,0,NULL,'2025-10-27 20:20:30','2025-10-27 20:20:30',NULL),(34163,NULL,34142,33269,NULL,0,NULL,'2025-10-27 20:20:30','2025-10-27 20:20:30',NULL),(34164,NULL,34143,33270,NULL,0,NULL,'2025-10-27 20:20:30','2025-10-27 20:20:30',NULL),(34165,NULL,34144,33271,NULL,0,NULL,'2025-10-27 20:20:30','2025-10-27 20:20:30',NULL),(34166,NULL,34145,33272,NULL,0,NULL,'2025-10-27 20:20:31','2025-10-27 20:20:31',NULL),(34167,NULL,34146,33273,NULL,0,NULL,'2025-10-27 20:20:31','2025-10-27 20:20:31',NULL),(34168,NULL,34147,33274,NULL,0,NULL,'2025-10-27 20:20:31','2025-10-27 20:20:31',NULL),(34169,NULL,34148,33275,NULL,0,NULL,'2025-10-27 20:20:31','2025-10-27 20:20:31',NULL),(34170,NULL,34149,33276,NULL,0,NULL,'2025-10-27 20:20:31','2025-10-27 20:20:31',NULL),(34171,NULL,34150,33277,NULL,0,NULL,'2025-10-27 20:20:31','2025-10-27 20:20:31',NULL),(34172,NULL,34151,33278,NULL,0,NULL,'2025-10-27 20:20:31','2025-10-27 20:20:31',NULL),(34173,NULL,34152,33279,NULL,0,NULL,'2025-10-27 20:20:31','2025-10-27 20:20:31',NULL),(34174,NULL,34153,33280,NULL,0,NULL,'2025-10-27 20:20:31','2025-10-27 20:20:31',NULL),(34175,NULL,34154,33281,NULL,0,NULL,'2025-10-27 20:20:32','2025-10-27 20:20:32',NULL),(34176,NULL,34155,33282,NULL,0,NULL,'2025-10-27 20:20:32','2025-10-27 20:20:32',NULL),(34177,NULL,34156,33283,NULL,0,NULL,'2025-10-27 20:20:32','2025-10-27 20:20:32',NULL),(34178,NULL,34157,33284,NULL,0,NULL,'2025-10-27 20:20:32','2025-10-27 20:20:32',NULL),(34179,NULL,34158,33285,NULL,0,NULL,'2025-10-27 20:20:32','2025-10-27 20:20:32',NULL),(34180,NULL,34159,33286,NULL,0,NULL,'2025-10-27 20:20:32','2025-10-27 20:20:32',NULL),(34181,NULL,34160,33287,NULL,0,NULL,'2025-10-27 20:20:32','2025-10-27 20:20:32',NULL),(34182,NULL,34161,33288,NULL,0,NULL,'2025-10-27 20:20:32','2025-10-27 20:20:32',NULL),(34183,NULL,34162,33289,NULL,0,NULL,'2025-10-27 20:20:33','2025-10-27 20:20:33',NULL),(34184,NULL,34163,33290,NULL,0,NULL,'2025-10-27 20:20:33','2025-10-27 20:20:33',NULL),(34185,NULL,34164,33291,NULL,0,NULL,'2025-10-27 20:20:33','2025-10-27 20:20:33',NULL),(34186,NULL,34165,33292,NULL,0,NULL,'2025-10-27 20:20:33','2025-10-27 20:20:33',NULL),(34187,NULL,34166,33293,NULL,0,NULL,'2025-10-27 20:20:33','2025-10-27 20:20:33',NULL),(34188,NULL,34167,33294,NULL,0,NULL,'2025-10-27 20:20:33','2025-10-27 20:20:33',NULL),(34189,NULL,34168,33295,NULL,0,NULL,'2025-10-27 20:20:33','2025-10-27 20:20:33',NULL),(34190,NULL,34169,33296,NULL,0,NULL,'2025-10-27 20:20:33','2025-10-27 20:20:33',NULL),(34191,NULL,34170,33297,NULL,0,NULL,'2025-10-27 20:20:33','2025-10-27 20:20:33',NULL),(34192,NULL,34171,33298,NULL,0,NULL,'2025-10-27 20:20:33','2025-10-27 20:20:33',NULL),(34193,NULL,34172,33299,NULL,0,NULL,'2025-10-27 20:20:34','2025-10-27 20:20:34',NULL),(34194,NULL,34173,33300,NULL,0,NULL,'2025-10-27 20:20:34','2025-10-27 20:20:34',NULL),(34195,NULL,34174,33301,NULL,0,NULL,'2025-10-27 20:20:34','2025-10-27 20:20:34',NULL),(34196,NULL,34175,33302,NULL,0,NULL,'2025-10-27 20:20:34','2025-10-27 20:20:34',NULL),(34197,NULL,34176,33303,NULL,0,NULL,'2025-10-27 20:20:34','2025-10-27 20:20:34',NULL),(34198,NULL,34177,33304,NULL,0,NULL,'2025-10-27 20:20:34','2025-10-27 20:20:34',NULL),(34199,NULL,34178,33305,NULL,0,NULL,'2025-10-27 20:20:34','2025-10-27 20:20:34',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (34200,NULL,34179,33306,NULL,0,NULL,'2025-10-27 20:20:34','2025-10-27 20:20:34',NULL),(34201,NULL,34180,33307,NULL,0,NULL,'2025-10-27 20:20:34','2025-10-27 20:20:34',NULL),(34202,NULL,34181,33308,NULL,0,NULL,'2025-10-27 20:20:34','2025-10-27 20:20:34',NULL),(34203,NULL,34182,33309,NULL,0,NULL,'2025-10-27 20:20:35','2025-10-27 20:20:35',NULL),(34204,NULL,34183,33310,NULL,0,NULL,'2025-10-27 20:20:35','2025-10-27 20:20:35',NULL),(34205,NULL,34184,33311,NULL,0,NULL,'2025-10-27 20:20:35','2025-10-27 20:20:35',NULL),(34206,NULL,34185,33312,NULL,0,NULL,'2025-10-27 20:20:35','2025-10-27 20:20:35',NULL),(34207,NULL,34186,33313,NULL,0,NULL,'2025-10-27 20:20:35','2025-10-27 20:20:35',NULL),(34208,NULL,34187,33314,NULL,0,NULL,'2025-10-27 20:20:35','2025-10-27 20:20:35',NULL),(34209,NULL,34188,33315,NULL,0,NULL,'2025-10-27 20:20:35','2025-10-27 20:20:35',NULL),(34210,NULL,34189,33316,NULL,0,NULL,'2025-10-27 20:20:35','2025-10-27 20:20:35',NULL),(34211,NULL,34190,33317,NULL,0,NULL,'2025-10-27 20:20:36','2025-10-27 20:20:36',NULL),(34212,NULL,34191,33318,NULL,0,NULL,'2025-10-27 20:20:36','2025-10-27 20:20:36',NULL),(34213,NULL,34192,33319,NULL,0,NULL,'2025-10-27 20:20:36','2025-10-27 20:20:36',NULL),(34214,NULL,34193,33320,NULL,0,NULL,'2025-10-27 20:20:36','2025-10-27 20:20:36',NULL),(34215,NULL,34194,33321,NULL,0,NULL,'2025-10-27 20:20:36','2025-10-27 20:20:36',NULL),(34216,NULL,34195,33322,NULL,0,NULL,'2025-10-27 20:20:36','2025-10-27 20:20:36',NULL),(34217,NULL,34196,33323,NULL,0,NULL,'2025-10-27 20:20:36','2025-10-27 20:20:36',NULL),(34218,NULL,34197,33324,NULL,0,NULL,'2025-10-27 20:20:36','2025-10-27 20:20:36',NULL),(34219,NULL,34198,33325,NULL,0,NULL,'2025-10-27 20:20:37','2025-10-27 20:20:37',NULL),(34220,NULL,34199,33326,NULL,0,NULL,'2025-10-27 20:20:37','2025-10-27 20:20:37',NULL),(34221,NULL,34200,33327,NULL,0,NULL,'2025-10-27 20:20:37','2025-10-27 20:20:37',NULL),(34222,NULL,34201,33328,NULL,0,NULL,'2025-10-27 20:20:37','2025-10-27 20:20:37',NULL),(34223,NULL,34202,33329,NULL,0,NULL,'2025-10-27 20:20:37','2025-10-27 20:20:37',NULL),(34224,NULL,34203,33330,NULL,0,NULL,'2025-10-27 20:20:37','2025-10-27 20:20:37',NULL),(34225,NULL,34204,33331,NULL,0,NULL,'2025-10-27 20:20:37','2025-10-27 20:20:37',NULL),(34226,NULL,34205,33332,NULL,0,NULL,'2025-10-27 20:20:37','2025-10-27 20:20:37',NULL),(34227,NULL,34206,33333,NULL,0,NULL,'2025-10-27 20:20:37','2025-10-27 20:20:37',NULL),(34228,NULL,34207,33334,NULL,0,NULL,'2025-10-27 20:20:38','2025-10-27 20:20:38',NULL),(34229,NULL,34208,33335,NULL,0,NULL,'2025-10-27 20:20:38','2025-10-27 20:20:38',NULL),(34230,NULL,34209,33336,NULL,0,NULL,'2025-10-27 20:20:38','2025-10-27 20:20:38',NULL),(34231,NULL,34210,33337,NULL,0,NULL,'2025-10-27 20:20:38','2025-10-27 20:20:38',NULL),(34232,NULL,34211,33338,NULL,0,NULL,'2025-10-27 20:20:38','2025-10-27 20:20:38',NULL),(34233,NULL,34212,33339,NULL,0,NULL,'2025-10-27 20:20:38','2025-10-27 20:20:38',NULL),(34234,NULL,34213,33340,NULL,0,NULL,'2025-10-27 20:20:38','2025-10-27 20:20:38',NULL),(34235,NULL,34214,33341,NULL,0,NULL,'2025-10-27 20:20:38','2025-10-27 20:20:38',NULL),(34236,NULL,34215,33342,NULL,0,NULL,'2025-10-27 20:20:39','2025-10-27 20:20:39',NULL),(34237,NULL,34216,33343,NULL,0,NULL,'2025-10-27 20:20:39','2025-10-27 20:20:39',NULL),(34238,NULL,34217,33344,NULL,0,NULL,'2025-10-27 20:20:39','2025-10-27 20:20:39',NULL),(34239,NULL,34218,33345,NULL,0,NULL,'2025-10-27 20:20:39','2025-10-27 20:20:39',NULL),(34240,NULL,34219,33346,NULL,0,NULL,'2025-10-27 20:20:39','2025-10-27 20:20:39',NULL),(34241,NULL,34220,33347,NULL,0,NULL,'2025-10-27 20:20:39','2025-10-27 20:20:39',NULL),(34242,NULL,34221,33348,NULL,0,NULL,'2025-10-27 20:20:39','2025-10-27 20:20:39',NULL),(34243,NULL,34222,33349,NULL,0,NULL,'2025-10-27 20:20:39','2025-10-27 20:20:39',NULL),(34244,NULL,34223,33350,NULL,0,NULL,'2025-10-27 20:20:39','2025-10-27 20:20:39',NULL),(34245,NULL,34224,33351,NULL,0,NULL,'2025-10-27 20:20:40','2025-10-27 20:20:40',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (34246,NULL,34225,33352,NULL,0,NULL,'2025-10-27 20:20:40','2025-10-27 20:20:40',NULL),(34247,NULL,34226,33353,NULL,0,NULL,'2025-10-27 20:20:40','2025-10-27 20:20:40',NULL),(34248,NULL,34227,33354,NULL,0,NULL,'2025-10-27 20:20:40','2025-10-27 20:20:40',NULL),(34249,NULL,34228,33355,NULL,0,NULL,'2025-10-27 20:20:40','2025-10-27 20:20:40',NULL),(34250,NULL,34229,33356,NULL,0,NULL,'2025-10-27 20:20:40','2025-10-27 20:20:40',NULL),(34251,NULL,34230,33357,NULL,0,NULL,'2025-10-27 20:20:40','2025-10-27 20:20:40',NULL),(34252,NULL,34231,33358,NULL,0,NULL,'2025-10-27 20:20:40','2025-10-27 20:20:40',NULL),(34253,NULL,34232,33359,NULL,0,NULL,'2025-10-27 20:20:40','2025-10-27 20:20:40',NULL),(34254,NULL,34233,33360,NULL,0,NULL,'2025-10-27 20:20:41','2025-10-27 20:20:41',NULL),(34255,NULL,34234,33361,NULL,0,NULL,'2025-10-27 20:20:41','2025-10-27 20:20:41',NULL),(34256,NULL,34235,33362,NULL,0,NULL,'2025-10-27 20:20:41','2025-10-27 20:20:41',NULL),(34257,NULL,34236,33363,NULL,0,NULL,'2025-10-27 20:20:41','2025-10-27 20:20:41',NULL),(34258,NULL,34237,33364,NULL,0,NULL,'2025-10-27 20:20:41','2025-10-27 20:20:41',NULL),(34259,NULL,34238,33365,NULL,0,NULL,'2025-10-27 20:20:41','2025-10-27 20:20:41',NULL),(34260,NULL,34239,33366,NULL,0,NULL,'2025-10-27 20:20:41','2025-10-27 20:20:41',NULL),(34261,NULL,34240,33367,NULL,0,NULL,'2025-10-27 20:20:41','2025-10-27 20:20:41',NULL),(34262,NULL,34241,33368,NULL,0,NULL,'2025-10-27 20:20:41','2025-10-27 20:20:41',NULL),(34263,NULL,34242,33369,NULL,0,NULL,'2025-10-27 20:20:41','2025-10-27 20:20:41',NULL),(34264,NULL,34243,33370,NULL,0,NULL,'2025-10-27 20:20:41','2025-10-27 20:20:41',NULL),(34265,NULL,34244,33371,NULL,0,NULL,'2025-10-27 20:20:42','2025-10-27 20:20:42',NULL),(34266,NULL,34245,33372,NULL,0,NULL,'2025-10-27 20:20:42','2025-10-27 20:20:42',NULL),(34267,NULL,34246,33373,NULL,0,NULL,'2025-10-27 20:20:42','2025-10-27 20:20:42',NULL),(34268,NULL,34247,33374,NULL,0,NULL,'2025-10-27 20:20:42','2025-10-27 20:20:42',NULL),(34269,NULL,34248,33375,NULL,0,NULL,'2025-10-27 20:20:42','2025-10-27 20:20:42',NULL),(34270,NULL,34249,33376,NULL,0,NULL,'2025-10-27 20:20:42','2025-10-27 20:20:42',NULL),(34271,NULL,34250,33377,NULL,0,NULL,'2025-10-27 20:20:42','2025-10-27 20:20:42',NULL),(34272,NULL,34251,33378,NULL,0,NULL,'2025-10-27 20:20:42','2025-10-27 20:20:42',NULL),(34273,NULL,34252,33379,NULL,0,NULL,'2025-10-27 20:20:42','2025-10-27 20:20:42',NULL),(34274,NULL,34253,33380,NULL,0,NULL,'2025-10-27 20:20:43','2025-10-27 20:20:43',NULL),(34275,NULL,34254,33381,NULL,0,NULL,'2025-10-27 20:20:43','2025-10-27 20:20:43',NULL),(34276,NULL,34255,33382,NULL,0,NULL,'2025-10-27 20:20:43','2025-10-27 20:20:43',NULL),(34277,NULL,34256,33383,NULL,0,NULL,'2025-10-27 20:20:43','2025-10-27 20:20:43',NULL),(34278,NULL,34257,33384,NULL,0,NULL,'2025-10-27 20:20:43','2025-10-27 20:20:43',NULL),(34279,NULL,34258,33385,NULL,0,NULL,'2025-10-27 20:20:43','2025-10-27 20:20:43',NULL),(34280,NULL,34259,33386,NULL,0,NULL,'2025-10-27 20:20:43','2025-10-27 20:20:43',NULL),(34281,NULL,34260,33387,NULL,0,NULL,'2025-10-27 20:20:43','2025-10-27 20:20:43',NULL),(34282,NULL,34261,33388,NULL,0,NULL,'2025-10-27 20:20:43','2025-10-27 20:20:43',NULL),(34283,NULL,34262,33389,NULL,0,NULL,'2025-10-27 20:20:43','2025-10-27 20:20:43',NULL),(34284,NULL,34263,33390,NULL,0,NULL,'2025-10-27 20:20:44','2025-10-27 20:20:44',NULL),(34285,NULL,34264,33391,NULL,0,NULL,'2025-10-27 20:20:44','2025-10-27 20:20:44',NULL),(34286,NULL,34265,33392,NULL,0,NULL,'2025-10-27 20:20:44','2025-10-27 20:20:44',NULL),(34287,NULL,34266,33393,NULL,0,NULL,'2025-10-27 20:20:44','2025-10-27 20:20:44',NULL),(34288,NULL,34267,33394,NULL,0,NULL,'2025-10-27 20:20:44','2025-10-27 20:20:44',NULL),(34289,NULL,34268,33395,NULL,0,NULL,'2025-10-27 20:20:44','2025-10-27 20:20:44',NULL),(34290,NULL,34269,33396,NULL,0,NULL,'2025-10-27 20:20:44','2025-10-27 20:20:44',NULL),(34291,NULL,34270,33397,NULL,0,NULL,'2025-10-27 20:20:44','2025-10-27 20:20:44',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (34292,NULL,34271,33398,NULL,0,NULL,'2025-10-27 20:20:44','2025-10-27 20:20:44',NULL),(34293,NULL,34272,33399,NULL,0,NULL,'2025-10-27 20:20:45','2025-10-27 20:20:45',NULL),(34294,NULL,34273,33400,NULL,0,NULL,'2025-10-27 20:20:45','2025-10-27 20:20:45',NULL),(34295,NULL,34274,33401,NULL,0,NULL,'2025-10-27 20:20:45','2025-10-27 20:20:45',NULL),(34296,NULL,34275,33402,NULL,0,NULL,'2025-10-27 20:20:45','2025-10-27 20:20:45',NULL),(34297,NULL,34276,33403,NULL,0,NULL,'2025-10-27 20:20:45','2025-10-27 20:20:45',NULL),(34298,6941,34277,33404,NULL,0,NULL,'2025-10-27 20:20:45','2025-10-27 20:22:10','2025-10-27 20:22:10'),(34299,6941,34278,33404,NULL,0,NULL,'2025-10-27 20:22:10','2025-10-27 20:22:10',NULL),(34300,NULL,34279,33405,NULL,0,NULL,'2025-10-27 20:41:16','2025-10-27 20:41:16',NULL),(34301,NULL,34280,33406,NULL,0,NULL,'2025-10-27 20:41:16','2025-10-27 20:41:16',NULL),(34302,NULL,34281,33407,NULL,0,NULL,'2025-10-27 20:41:16','2025-10-27 20:41:16',NULL),(34303,NULL,34282,33408,NULL,0,NULL,'2025-10-27 20:41:17','2025-10-27 20:41:17',NULL),(34304,NULL,34283,33409,NULL,0,NULL,'2025-10-27 20:41:17','2025-10-27 20:41:17',NULL),(34305,NULL,34284,33410,NULL,0,NULL,'2025-10-27 20:41:17','2025-10-27 20:41:17',NULL),(34306,NULL,34285,33411,NULL,0,NULL,'2025-10-27 20:41:17','2025-10-27 20:41:17',NULL),(34307,NULL,34286,33412,NULL,0,NULL,'2025-10-27 20:41:17','2025-10-27 20:41:17',NULL),(34308,NULL,34287,33413,NULL,0,NULL,'2025-10-27 20:41:17','2025-10-27 20:41:17',NULL),(34309,NULL,34288,33414,NULL,0,NULL,'2025-10-27 20:41:17','2025-10-27 20:41:17',NULL),(34310,NULL,34289,33415,NULL,0,NULL,'2025-10-27 20:41:17','2025-10-27 20:41:17',NULL),(34311,NULL,34290,33416,NULL,0,NULL,'2025-10-27 20:41:17','2025-10-27 20:41:17',NULL),(34312,NULL,34291,33417,NULL,0,NULL,'2025-10-27 20:41:17','2025-10-27 20:41:17',NULL),(34313,NULL,34292,33418,NULL,0,NULL,'2025-10-27 20:41:18','2025-10-27 20:41:18',NULL),(34314,NULL,34293,33419,NULL,0,NULL,'2025-10-27 20:41:18','2025-10-27 20:41:18',NULL),(34315,NULL,34294,33420,NULL,0,NULL,'2025-10-27 20:41:18','2025-10-27 20:41:18',NULL),(34316,NULL,34295,33421,NULL,0,NULL,'2025-10-27 20:41:18','2025-10-27 20:41:18',NULL),(34317,NULL,34296,33422,NULL,0,NULL,'2025-10-27 20:41:18','2025-10-27 20:41:18',NULL),(34318,NULL,34297,33423,NULL,0,NULL,'2025-10-27 20:41:18','2025-10-27 20:41:18',NULL),(34319,NULL,34298,33424,NULL,0,NULL,'2025-10-27 20:41:18','2025-10-27 20:41:18',NULL),(34320,NULL,34299,33425,NULL,0,NULL,'2025-10-27 20:41:18','2025-10-27 20:41:18',NULL),(34321,NULL,34300,33426,NULL,0,NULL,'2025-10-27 20:41:18','2025-10-27 20:41:18',NULL),(34322,NULL,34301,33427,NULL,0,NULL,'2025-10-27 20:41:18','2025-10-27 20:41:18',NULL),(34323,NULL,34302,33428,NULL,0,NULL,'2025-10-27 20:41:19','2025-10-27 20:41:19',NULL),(34324,NULL,34303,33429,NULL,0,NULL,'2025-10-27 20:41:19','2025-10-27 20:41:19',NULL),(34325,NULL,34304,33430,NULL,0,NULL,'2025-10-27 20:41:19','2025-10-27 20:41:19',NULL),(34326,NULL,34305,33431,NULL,0,NULL,'2025-10-27 20:41:19','2025-10-27 20:41:19',NULL),(34327,NULL,34306,33432,NULL,0,NULL,'2025-10-27 20:41:19','2025-10-27 20:41:19',NULL),(34328,NULL,34307,33433,NULL,0,NULL,'2025-10-27 20:41:19','2025-10-27 20:41:19',NULL),(34329,NULL,34308,33434,NULL,0,NULL,'2025-10-27 20:41:19','2025-10-27 20:41:19',NULL),(34330,NULL,34309,33435,NULL,0,NULL,'2025-10-27 20:41:19','2025-10-27 20:41:19',NULL),(34331,NULL,34310,33436,NULL,0,NULL,'2025-10-27 20:41:19','2025-10-27 20:41:19',NULL),(34332,NULL,34311,33437,NULL,0,NULL,'2025-10-27 20:41:19','2025-10-27 20:41:19',NULL),(34333,NULL,34312,33438,NULL,0,NULL,'2025-10-27 20:41:20','2025-10-27 20:41:20',NULL),(34334,NULL,34313,33439,NULL,0,NULL,'2025-10-27 20:41:20','2025-10-27 20:41:20',NULL),(34335,NULL,34314,33440,NULL,0,NULL,'2025-10-27 20:41:20','2025-10-27 20:41:20',NULL),(34336,NULL,34315,33441,NULL,0,NULL,'2025-10-27 20:41:20','2025-10-27 20:41:20',NULL),(34337,NULL,34316,33442,NULL,0,NULL,'2025-10-27 20:41:20','2025-10-27 20:41:20',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (34338,NULL,34317,33443,NULL,0,NULL,'2025-10-27 20:41:20','2025-10-27 20:41:20',NULL),(34339,NULL,34318,33444,NULL,0,NULL,'2025-10-27 20:41:20','2025-10-27 20:41:20',NULL),(34340,NULL,34319,33445,NULL,0,NULL,'2025-10-27 20:41:20','2025-10-27 20:41:20',NULL),(34341,NULL,34320,33446,NULL,0,NULL,'2025-10-27 20:41:20','2025-10-27 20:41:20',NULL),(34342,NULL,34321,33447,NULL,0,NULL,'2025-10-27 20:41:20','2025-10-27 20:41:20',NULL),(34343,NULL,34322,33448,NULL,0,NULL,'2025-10-27 20:41:20','2025-10-27 20:41:20',NULL),(34344,NULL,34323,33449,NULL,0,NULL,'2025-10-27 20:41:20','2025-10-27 20:41:20',NULL),(34345,NULL,34324,33450,NULL,0,NULL,'2025-10-27 20:41:21','2025-10-27 20:41:21',NULL),(34346,NULL,34325,33451,NULL,0,NULL,'2025-10-27 20:41:21','2025-10-27 20:41:21',NULL),(34347,NULL,34326,33452,NULL,0,NULL,'2025-10-27 20:41:21','2025-10-27 20:41:21',NULL),(34348,NULL,34327,33453,NULL,0,NULL,'2025-10-27 20:41:21','2025-10-27 20:41:21',NULL),(34349,NULL,34328,33454,NULL,0,NULL,'2025-10-27 20:41:21','2025-10-27 20:41:21',NULL),(34350,NULL,34329,33455,NULL,0,NULL,'2025-10-27 20:41:21','2025-10-27 20:41:21',NULL),(34351,NULL,34330,33456,NULL,0,NULL,'2025-10-27 20:41:21','2025-10-27 20:41:21',NULL),(34352,NULL,34331,33457,NULL,0,NULL,'2025-10-27 20:41:21','2025-10-27 20:41:21',NULL),(34353,NULL,34332,33458,NULL,0,NULL,'2025-10-27 20:41:22','2025-10-27 20:41:22',NULL),(34354,NULL,34333,33459,NULL,0,NULL,'2025-10-27 20:41:22','2025-10-27 20:41:22',NULL),(34355,NULL,34334,33460,NULL,0,NULL,'2025-10-27 20:41:22','2025-10-27 20:41:22',NULL),(34356,NULL,34335,33461,NULL,0,NULL,'2025-10-27 20:41:22','2025-10-27 20:41:22',NULL),(34357,NULL,34336,33462,NULL,0,NULL,'2025-10-27 20:41:22','2025-10-27 20:41:22',NULL),(34358,NULL,34337,33463,NULL,0,NULL,'2025-10-27 20:41:22','2025-10-27 20:41:22',NULL),(34359,NULL,34338,33464,NULL,0,NULL,'2025-10-27 20:41:22','2025-10-27 20:41:22',NULL),(34360,NULL,34339,33465,NULL,0,NULL,'2025-10-27 20:41:22','2025-10-27 20:41:22',NULL),(34361,NULL,34340,33466,NULL,0,NULL,'2025-10-27 20:41:22','2025-10-27 20:41:22',NULL),(34362,NULL,34341,33467,NULL,0,NULL,'2025-10-27 20:41:22','2025-10-27 20:41:22',NULL),(34363,NULL,34342,33468,NULL,0,NULL,'2025-10-27 20:41:22','2025-10-27 20:41:22',NULL),(34364,NULL,34343,33469,NULL,0,NULL,'2025-10-27 20:41:23','2025-10-27 20:41:23',NULL),(34365,NULL,34344,33470,NULL,0,NULL,'2025-10-27 20:41:23','2025-10-27 20:41:23',NULL),(34366,NULL,34345,33471,NULL,0,NULL,'2025-10-27 20:41:23','2025-10-27 20:41:23',NULL),(34367,NULL,34346,33472,NULL,0,NULL,'2025-10-27 20:41:23','2025-10-27 20:41:23',NULL),(34368,NULL,34347,33473,NULL,0,NULL,'2025-10-27 20:41:23','2025-10-27 20:41:23',NULL),(34369,NULL,34348,33474,NULL,0,NULL,'2025-10-27 20:41:23','2025-10-27 20:41:23',NULL),(34370,NULL,34349,33475,NULL,0,NULL,'2025-10-27 20:41:23','2025-10-27 20:41:23',NULL),(34371,NULL,34350,33476,NULL,0,NULL,'2025-10-27 20:41:23','2025-10-27 20:41:23',NULL),(34372,NULL,34351,33477,NULL,0,NULL,'2025-10-27 20:41:23','2025-10-27 20:41:23',NULL),(34373,NULL,34352,33478,NULL,0,NULL,'2025-10-27 20:41:24','2025-10-27 20:41:24',NULL),(34374,NULL,34353,33479,NULL,0,NULL,'2025-10-27 20:41:24','2025-10-27 20:41:24',NULL),(34375,NULL,34354,33480,NULL,0,NULL,'2025-10-27 20:41:24','2025-10-27 20:41:24',NULL),(34376,NULL,34355,33481,NULL,0,NULL,'2025-10-27 20:41:24','2025-10-27 20:41:24',NULL),(34377,NULL,34356,33482,NULL,0,NULL,'2025-10-27 20:41:24','2025-10-27 20:41:24',NULL),(34378,NULL,34357,33483,NULL,0,NULL,'2025-10-27 20:41:24','2025-10-27 20:41:24',NULL),(34379,NULL,34358,33484,NULL,0,NULL,'2025-10-27 20:41:24','2025-10-27 20:41:24',NULL),(34380,NULL,34359,33485,NULL,0,NULL,'2025-10-27 20:41:24','2025-10-27 20:41:24',NULL),(34381,NULL,34360,33486,NULL,0,NULL,'2025-10-27 20:41:24','2025-10-27 20:41:24',NULL),(34382,NULL,34361,33487,NULL,0,NULL,'2025-10-27 20:41:24','2025-10-27 20:41:24',NULL),(34383,NULL,34362,33488,NULL,0,NULL,'2025-10-27 20:41:25','2025-10-27 20:41:25',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (34384,NULL,34363,33489,NULL,0,NULL,'2025-10-27 20:41:25','2025-10-27 20:41:25',NULL),(34385,NULL,34364,33490,NULL,0,NULL,'2025-10-27 20:41:25','2025-10-27 20:41:25',NULL),(34386,NULL,34365,33491,NULL,0,NULL,'2025-10-27 20:41:25','2025-10-27 20:41:25',NULL),(34387,NULL,34366,33492,NULL,0,NULL,'2025-10-27 20:41:25','2025-10-27 20:41:25',NULL),(34388,NULL,34367,33493,NULL,0,NULL,'2025-10-27 20:41:25','2025-10-27 20:41:25',NULL),(34389,NULL,34368,33494,NULL,0,NULL,'2025-10-27 20:41:25','2025-10-27 20:41:25',NULL),(34390,NULL,34369,33495,NULL,0,NULL,'2025-10-27 20:41:25','2025-10-27 20:41:25',NULL),(34391,NULL,34370,33496,NULL,0,NULL,'2025-10-27 20:41:25','2025-10-27 20:41:25',NULL),(34392,NULL,34371,33497,NULL,0,NULL,'2025-10-27 20:41:25','2025-10-27 20:41:25',NULL),(34393,NULL,34372,33498,NULL,0,NULL,'2025-10-27 20:41:26','2025-10-27 20:41:26',NULL),(34394,NULL,34373,33499,NULL,0,NULL,'2025-10-27 20:41:26','2025-10-27 20:41:26',NULL),(34395,NULL,34374,33500,NULL,0,NULL,'2025-10-27 20:41:26','2025-10-27 20:41:26',NULL),(34396,NULL,34375,33501,NULL,0,NULL,'2025-10-27 20:41:26','2025-10-27 20:41:26',NULL),(34397,NULL,34376,33502,NULL,0,NULL,'2025-10-27 20:41:26','2025-10-27 20:41:26',NULL),(34398,NULL,34377,33503,NULL,0,NULL,'2025-10-27 20:41:26','2025-10-27 20:41:26',NULL),(34399,NULL,34378,33504,NULL,0,NULL,'2025-10-27 20:41:26','2025-10-27 20:41:26',NULL),(34400,NULL,34379,33505,NULL,0,NULL,'2025-10-27 20:41:26','2025-10-27 20:41:26',NULL),(34401,NULL,34380,33506,NULL,0,NULL,'2025-10-27 20:41:26','2025-10-27 20:41:26',NULL),(34402,NULL,34381,33507,NULL,0,NULL,'2025-10-27 20:41:27','2025-10-27 20:41:27',NULL),(34403,NULL,34382,33508,NULL,0,NULL,'2025-10-27 20:41:27','2025-10-27 20:41:27',NULL),(34404,NULL,34383,33509,NULL,0,NULL,'2025-10-27 20:41:27','2025-10-27 20:41:27',NULL),(34405,NULL,34384,33510,NULL,0,NULL,'2025-10-27 20:41:27','2025-10-27 20:41:27',NULL),(34406,NULL,34385,33511,NULL,0,NULL,'2025-10-27 20:41:27','2025-10-27 20:41:27',NULL),(34407,NULL,34386,33512,NULL,0,NULL,'2025-10-27 20:41:27','2025-10-27 20:41:27',NULL),(34408,NULL,34387,33513,NULL,0,NULL,'2025-10-27 20:41:27','2025-10-27 20:41:27',NULL),(34409,NULL,34388,33514,NULL,0,NULL,'2025-10-27 20:41:27','2025-10-27 20:41:27',NULL),(34410,NULL,34389,33515,NULL,0,NULL,'2025-10-27 20:41:27','2025-10-27 20:41:27',NULL),(34411,NULL,34390,33516,NULL,0,NULL,'2025-10-27 20:41:27','2025-10-27 20:41:27',NULL),(34412,NULL,34391,33517,NULL,0,NULL,'2025-10-27 20:41:27','2025-10-27 20:41:27',NULL),(34413,NULL,34392,33518,NULL,0,NULL,'2025-10-27 20:41:28','2025-10-27 20:41:28',NULL),(34414,NULL,34393,33519,NULL,0,NULL,'2025-10-27 20:41:28','2025-10-27 20:41:28',NULL),(34415,NULL,34394,33520,NULL,0,NULL,'2025-10-27 20:41:28','2025-10-27 20:41:28',NULL),(34416,NULL,34395,33521,NULL,0,NULL,'2025-10-27 20:41:28','2025-10-27 20:41:28',NULL),(34417,NULL,34396,33522,NULL,0,NULL,'2025-10-27 20:41:28','2025-10-27 20:41:28',NULL),(34418,NULL,34397,33523,NULL,0,NULL,'2025-10-27 20:41:28','2025-10-27 20:41:28',NULL),(34419,NULL,34398,33524,NULL,0,NULL,'2025-10-27 20:41:28','2025-10-27 20:41:28',NULL),(34420,NULL,34399,33525,NULL,0,NULL,'2025-10-27 20:41:28','2025-10-27 20:41:28',NULL),(34421,NULL,34400,33526,NULL,0,NULL,'2025-10-27 20:41:28','2025-10-27 20:41:28',NULL),(34422,NULL,34401,33527,NULL,0,NULL,'2025-10-27 20:41:28','2025-10-27 20:41:28',NULL),(34423,NULL,34402,33528,NULL,0,NULL,'2025-10-27 20:41:29','2025-10-27 20:41:29',NULL),(34424,NULL,34403,33529,NULL,0,NULL,'2025-10-27 20:41:29','2025-10-27 20:41:29',NULL),(34425,NULL,34404,33530,NULL,0,NULL,'2025-10-27 20:41:29','2025-10-27 20:41:29',NULL),(34426,NULL,34405,33531,NULL,0,NULL,'2025-10-27 20:41:29','2025-10-27 20:41:29',NULL),(34427,NULL,34406,33532,NULL,0,NULL,'2025-10-27 20:41:29','2025-10-27 20:41:29',NULL),(34428,NULL,34407,33533,NULL,0,NULL,'2025-10-27 20:41:29','2025-10-27 20:41:29',NULL),(34429,NULL,34408,33534,NULL,0,NULL,'2025-10-27 20:41:29','2025-10-27 20:41:29',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (34430,NULL,34409,33535,NULL,0,NULL,'2025-10-27 20:41:29','2025-10-27 20:41:29',NULL),(34431,NULL,34410,33536,NULL,0,NULL,'2025-10-27 20:41:29','2025-10-27 20:41:29',NULL),(34432,NULL,34411,33537,NULL,0,NULL,'2025-10-27 20:41:29','2025-10-27 20:41:29',NULL),(34433,NULL,34412,33538,NULL,0,NULL,'2025-10-27 20:41:29','2025-10-27 20:41:29',NULL),(34434,NULL,34413,33539,NULL,0,NULL,'2025-10-27 20:41:29','2025-10-27 20:41:29',NULL),(34435,NULL,34414,33540,NULL,0,NULL,'2025-10-27 20:41:29','2025-10-27 20:41:29',NULL),(34436,NULL,34415,33541,NULL,0,NULL,'2025-10-27 20:41:30','2025-10-27 20:41:30',NULL),(34437,NULL,34416,33542,NULL,0,NULL,'2025-10-27 20:41:30','2025-10-27 20:41:30',NULL),(34438,NULL,34417,33543,NULL,0,NULL,'2025-10-27 20:41:30','2025-10-27 20:41:30',NULL),(34439,NULL,34418,33544,NULL,0,NULL,'2025-10-27 20:41:30','2025-10-27 20:41:30',NULL),(34440,NULL,34419,33545,NULL,0,NULL,'2025-10-27 20:41:30','2025-10-27 20:41:30',NULL),(34441,NULL,34420,33546,NULL,0,NULL,'2025-10-27 20:41:30','2025-10-27 20:41:30',NULL),(34442,NULL,34421,33547,NULL,0,NULL,'2025-10-27 20:41:30','2025-10-27 20:41:30',NULL),(34443,NULL,34422,33548,NULL,0,NULL,'2025-10-27 20:41:30','2025-10-27 20:41:30',NULL),(34444,NULL,34423,33549,NULL,0,NULL,'2025-10-27 20:41:30','2025-10-27 20:41:30',NULL),(34445,NULL,34424,33550,NULL,0,NULL,'2025-10-27 20:41:31','2025-10-27 20:41:31',NULL),(34446,NULL,34425,33551,NULL,0,NULL,'2025-10-27 20:41:31','2025-10-27 20:41:31',NULL),(34447,NULL,34426,33552,NULL,0,NULL,'2025-10-27 20:41:31','2025-10-27 20:41:31',NULL),(34448,NULL,34427,33553,NULL,0,NULL,'2025-10-27 20:41:31','2025-10-27 20:41:31',NULL),(34449,NULL,34428,33554,NULL,0,NULL,'2025-10-27 20:41:31','2025-10-27 20:41:31',NULL),(34450,NULL,34429,33555,NULL,0,NULL,'2025-10-27 20:41:31','2025-10-27 20:41:31',NULL),(34451,NULL,34430,33556,NULL,0,NULL,'2025-10-27 20:41:31','2025-10-27 20:41:31',NULL),(34452,NULL,34431,33557,NULL,0,NULL,'2025-10-27 20:41:31','2025-10-27 20:41:31',NULL),(34453,NULL,34432,33558,NULL,0,NULL,'2025-10-27 20:41:31','2025-10-27 20:41:31',NULL),(34454,NULL,34433,33559,NULL,0,NULL,'2025-10-27 20:41:31','2025-10-27 20:41:31',NULL),(34455,NULL,34434,33560,NULL,0,NULL,'2025-10-27 20:41:31','2025-10-27 20:41:31',NULL),(34456,NULL,34435,33561,NULL,0,NULL,'2025-10-27 20:41:31','2025-10-27 20:41:31',NULL),(34457,NULL,34436,33562,NULL,0,NULL,'2025-10-27 20:41:32','2025-10-27 20:41:32',NULL),(34458,NULL,34437,33563,NULL,0,NULL,'2025-10-27 20:41:32','2025-10-27 20:41:32',NULL),(34459,NULL,34438,33564,NULL,0,NULL,'2025-10-27 20:41:32','2025-10-27 20:41:32',NULL),(34460,NULL,34439,33565,NULL,0,NULL,'2025-10-27 20:41:32','2025-10-27 20:41:32',NULL),(34461,NULL,34440,33566,NULL,0,NULL,'2025-10-27 20:41:32','2025-10-27 20:41:32',NULL),(34462,NULL,34441,33567,NULL,0,NULL,'2025-10-27 20:41:32','2025-10-27 20:41:32',NULL),(34463,NULL,34442,33568,NULL,0,NULL,'2025-10-27 20:41:32','2025-10-27 20:41:32',NULL),(34464,NULL,34443,33569,NULL,0,NULL,'2025-10-27 20:41:32','2025-10-27 20:41:32',NULL),(34465,NULL,34444,33570,NULL,0,NULL,'2025-10-27 20:41:32','2025-10-27 20:41:32',NULL),(34466,NULL,34445,33571,NULL,0,NULL,'2025-10-27 20:41:32','2025-10-27 20:41:32',NULL),(34467,NULL,34446,33572,NULL,0,NULL,'2025-10-27 20:41:32','2025-10-27 20:41:32',NULL),(34468,NULL,34447,33573,NULL,0,NULL,'2025-10-27 20:41:32','2025-10-27 20:41:32',NULL),(34469,NULL,34448,33574,NULL,0,NULL,'2025-10-27 20:41:33','2025-10-27 20:41:33',NULL),(34470,NULL,34449,33575,NULL,0,NULL,'2025-10-27 20:41:33','2025-10-27 20:41:33',NULL),(34471,NULL,34450,33576,NULL,0,NULL,'2025-10-27 20:41:33','2025-10-27 20:41:33',NULL),(34472,NULL,34451,33577,NULL,0,NULL,'2025-10-27 20:41:33','2025-10-27 20:41:33',NULL),(34473,NULL,34452,33578,NULL,0,NULL,'2025-10-27 20:41:33','2025-10-27 20:41:33',NULL),(34474,NULL,34453,33579,NULL,0,NULL,'2025-10-27 20:41:33','2025-10-27 20:41:33',NULL),(34475,NULL,34454,33580,NULL,0,NULL,'2025-10-27 20:41:33','2025-10-27 20:41:33',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (34476,NULL,34455,33581,NULL,0,NULL,'2025-10-27 20:41:33','2025-10-27 20:41:33',NULL),(34477,NULL,34456,33582,NULL,0,NULL,'2025-10-27 20:41:33','2025-10-27 20:41:33',NULL),(34478,NULL,34457,33583,NULL,0,NULL,'2025-10-27 20:41:33','2025-10-27 20:41:33',NULL),(34479,NULL,34458,33584,NULL,0,NULL,'2025-10-27 20:41:33','2025-10-27 20:41:33',NULL),(34480,NULL,34459,33585,NULL,0,NULL,'2025-10-27 20:41:33','2025-10-27 20:41:33',NULL),(34481,NULL,34460,33586,NULL,0,NULL,'2025-10-27 20:41:34','2025-10-27 20:41:34',NULL),(34482,NULL,34461,33587,NULL,0,NULL,'2025-10-27 20:41:34','2025-10-27 20:41:34',NULL),(34483,NULL,34462,33588,NULL,0,NULL,'2025-10-27 20:41:34','2025-10-27 20:41:34',NULL),(34484,NULL,34463,33589,NULL,0,NULL,'2025-10-27 20:41:34','2025-10-27 20:41:34',NULL),(34485,NULL,34464,33590,NULL,0,NULL,'2025-10-27 20:41:34','2025-10-27 20:41:34',NULL),(34486,NULL,34465,33591,NULL,0,NULL,'2025-10-27 20:41:34','2025-10-27 20:41:34',NULL),(34487,NULL,34466,33592,NULL,0,NULL,'2025-10-27 20:41:34','2025-10-27 20:41:34',NULL),(34488,NULL,34467,33593,NULL,0,NULL,'2025-10-27 20:41:34','2025-10-27 20:41:34',NULL),(34489,NULL,34468,33594,NULL,0,NULL,'2025-10-27 20:41:34','2025-10-27 20:41:34',NULL),(34490,NULL,34469,33595,NULL,0,NULL,'2025-10-27 20:41:34','2025-10-27 20:41:34',NULL),(34491,NULL,34470,33596,NULL,0,NULL,'2025-10-27 20:41:34','2025-10-27 20:41:34',NULL),(34492,NULL,34471,33597,NULL,0,NULL,'2025-10-27 20:41:35','2025-10-27 20:41:35',NULL),(34493,NULL,34472,33598,NULL,0,NULL,'2025-10-27 20:41:35','2025-10-27 20:41:35',NULL),(34494,NULL,34473,33599,NULL,0,NULL,'2025-10-27 20:41:35','2025-10-27 20:41:35',NULL),(34495,NULL,34474,33600,NULL,0,NULL,'2025-10-27 20:41:35','2025-10-27 20:41:35',NULL),(34496,NULL,34475,33601,NULL,0,NULL,'2025-10-27 20:41:35','2025-10-27 20:41:35',NULL),(34497,NULL,34476,33602,NULL,0,NULL,'2025-10-27 20:41:35','2025-10-27 20:41:35',NULL),(34498,NULL,34477,33603,NULL,0,NULL,'2025-10-27 20:41:35','2025-10-27 20:41:35',NULL),(34499,NULL,34478,33604,NULL,0,NULL,'2025-10-27 20:41:35','2025-10-27 20:41:35',NULL),(34500,NULL,34479,33605,NULL,0,NULL,'2025-10-27 20:41:35','2025-10-27 20:41:35',NULL),(34501,6941,34480,33608,NULL,0,NULL,'2025-11-20 19:16:53','2025-11-20 19:21:29','2025-11-20 19:21:29'),(34502,6941,34481,33609,NULL,0,NULL,'2025-11-20 19:16:53','2025-11-20 19:21:48','2025-11-20 19:21:48'),(34503,6941,34482,33610,NULL,0,NULL,'2025-11-20 19:16:54','2025-11-20 19:22:05','2025-11-20 19:22:05'),(34504,6941,34483,33611,NULL,0,NULL,'2025-11-20 19:16:54','2025-11-20 19:22:28','2025-11-20 19:22:28'),(34505,6941,34484,33608,NULL,0,NULL,'2025-11-20 19:21:29','2025-11-20 19:21:29',NULL),(34506,6941,34485,33609,NULL,0,NULL,'2025-11-20 19:21:48','2025-11-20 19:21:48',NULL),(34507,6941,34486,33610,NULL,0,NULL,'2025-11-20 19:22:05','2025-11-20 19:22:05',NULL),(34508,6941,34487,33611,NULL,0,NULL,'2025-11-20 19:22:28','2025-11-20 19:22:28',NULL);

--
-- Table structure for table `cta_cte_tesoreria`
--

CREATE TABLE `cta_cte_tesoreria` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `bind_apibank_movement_id` bigint(20) unsigned DEFAULT NULL COMMENT 'FK soft a bind_apibank_movements (movimiento que originó este registro)',
  `bind_apibank_transfer_id` bigint(20) unsigned DEFAULT NULL COMMENT 'FK soft a bind_apibank_transfers (transferencia que originó este registro)',
  `bind_sync_status` enum('pending','synced','error') COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Estado de sincronización: pending=pendiente, synced=sincronizado, error=error al sincronizar',
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `cta_cte_cliente_id` int(10) unsigned DEFAULT NULL,
  `nf_cta_cte_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned NOT NULL,
  `period_id` int(10) unsigned NOT NULL,
  `fecha` date DEFAULT NULL,
  `total` decimal(16,2) NOT NULL,
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cotizacion` decimal(9,2) NOT NULL DEFAULT '1.00',
  `comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `file` 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,
  `ticket_id` bigint(20) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cta_cte_tesoreria_person_id_foreign` (`person_id`),
  KEY `cta_cte_tesoreria_cta_cte_cliente_id_foreign` (`cta_cte_cliente_id`),
  KEY `cta_cte_tesoreria_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  KEY `cta_cte_tesoreria_period_id_foreign` (`period_id`),
  KEY `cta_cte_tesoreria_nf_cta_cte_id_foreign` (`nf_cta_cte_id`),
  KEY `cta_cte_tesoreria_moneda_id_foreign` (`moneda_id`),
  KEY `cta_cte_tesoreria_ticket_id_foreign` (`ticket_id`),
  KEY `idx_cct_bind_apibank_mov` (`bind_apibank_movement_id`),
  KEY `idx_cct_bind_apibank_trf` (`bind_apibank_transfer_id`),
  KEY `idx_cct_bind_sync_status` (`bind_sync_status`),
  CONSTRAINT `cta_cte_tesoreria_cta_cte_cliente_id_foreign` FOREIGN KEY (`cta_cte_cliente_id`) REFERENCES `cta_cte_cliente` (`id`),
  CONSTRAINT `cta_cte_tesoreria_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `cta_cte_tesoreria_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `cta_cte_tesoreria_nf_cta_cte_id_foreign` FOREIGN KEY (`nf_cta_cte_id`) REFERENCES `nf_cta_cte` (`id`),
  CONSTRAINT `cta_cte_tesoreria_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `cta_cte_tesoreria_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `cta_cte_tesoreria_ticket_id_foreign` FOREIGN KEY (`ticket_id`) REFERENCES `tickets` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=88 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_tesoreria`
--

INSERT INTO `cta_cte_tesoreria` VALUES (1,NULL,NULL,NULL,6941,43576,NULL,NULL,359,45555,'2019-04-08',25000.00,1,1.00,'',NULL,'2022-06-24 18:31:58','2022-06-24 18:32:27','2022-06-24 18:32:27',NULL),(2,NULL,NULL,NULL,6941,44719,NULL,NULL,757,45594,'2024-04-01',0.00,1,1.00,'Saldo Inicial',NULL,'2024-04-01 11:36:05','2024-04-01 11:36:05',NULL,NULL),(8,NULL,NULL,NULL,6941,44719,NULL,NULL,763,45594,'2024-04-01',0.00,1,1.00,'Saldo Inicial',NULL,'2024-04-01 11:40:58','2024-04-01 11:40:58',NULL,NULL),(9,NULL,NULL,NULL,6941,44719,20079,NULL,57,45594,'2024-04-01',6850.00,1,843.00,NULL,NULL,'2024-04-01 11:43:05','2024-04-01 12:10:40','2024-04-01 12:10:40',NULL),(10,NULL,NULL,NULL,6941,44719,20081,NULL,57,45577,'2023-02-08',4995.00,1,843.00,NULL,NULL,'2024-04-01 11:47:22','2024-04-01 11:47:22',NULL,NULL),(11,NULL,NULL,NULL,6941,44719,20083,NULL,57,45577,'2023-02-08',328050.48,1,843.00,NULL,NULL,'2024-04-01 12:04:50','2024-04-01 12:04:50',NULL,NULL),(12,NULL,NULL,NULL,6941,44719,NULL,NULL,764,45594,'2024-04-01',0.00,1,1.00,'Saldo Inicial',NULL,'2024-04-01 12:08:39','2024-04-01 12:08:39',NULL,NULL),(13,NULL,NULL,NULL,6941,44719,20085,NULL,57,45577,'2023-02-17',7000.00,1,843.00,NULL,NULL,'2024-04-01 12:09:35','2024-04-01 12:09:35',NULL,NULL),(14,NULL,NULL,NULL,6941,44719,20086,NULL,57,45577,'2023-02-08',6850.00,1,843.00,NULL,NULL,'2024-04-01 12:11:27','2024-04-01 12:11:27',NULL,NULL),(15,NULL,NULL,NULL,6941,44719,20088,NULL,57,45577,'2023-02-15',87120.00,1,843.00,NULL,NULL,'2024-04-01 12:14:31','2024-04-01 12:14:31',NULL,NULL),(16,NULL,NULL,NULL,6941,44719,20090,NULL,57,45577,'2023-02-22',34047.00,1,843.00,NULL,NULL,'2024-04-01 12:16:56','2024-04-01 12:16:56',NULL,NULL),(17,NULL,NULL,NULL,6941,44719,20092,NULL,57,45578,'2023-03-01',303000.00,1,843.00,NULL,NULL,'2024-04-03 11:13:09','2024-04-03 11:13:09',NULL,NULL),(18,NULL,NULL,NULL,6941,44719,20102,NULL,57,45579,'2023-04-11',40600.00,1,843.00,NULL,NULL,'2024-04-03 15:17:07','2024-04-03 15:17:07',NULL,NULL),(19,NULL,NULL,NULL,6941,44719,20103,NULL,57,45579,'2023-04-11',28213.50,1,843.00,NULL,NULL,'2024-04-03 15:18:14','2024-04-03 15:18:14',NULL,NULL),(20,NULL,NULL,NULL,6941,44719,20104,NULL,57,45579,'2023-04-11',65340.00,1,843.00,NULL,NULL,'2024-04-03 15:19:04','2024-04-03 15:19:04',NULL,NULL),(21,NULL,NULL,NULL,6941,44719,20105,NULL,57,45579,'2023-04-11',6473.50,1,843.00,NULL,NULL,'2024-04-03 15:19:47','2024-04-03 15:19:47',NULL,NULL),(22,NULL,NULL,NULL,6941,44719,20106,NULL,57,45579,'2023-04-11',43492.38,1,843.00,NULL,NULL,'2024-04-03 15:25:55','2024-04-03 15:25:55',NULL,NULL),(23,NULL,NULL,NULL,6941,44719,20107,NULL,57,45579,'2023-04-11',7000.00,1,843.00,NULL,NULL,'2024-04-03 15:26:38','2024-04-03 15:26:38',NULL,NULL),(24,NULL,NULL,NULL,6941,44719,20108,NULL,57,45579,'2023-04-11',26000.00,1,843.00,NULL,NULL,'2024-04-03 15:28:53','2024-04-03 15:28:53',NULL,NULL),(25,NULL,NULL,NULL,6941,44719,20109,NULL,57,45579,'2023-04-11',34047.00,1,843.00,NULL,NULL,'2024-04-03 15:31:06','2024-04-03 15:31:06',NULL,NULL),(26,NULL,NULL,NULL,6941,44719,20111,NULL,57,45579,'2023-04-11',9300.00,1,848.00,NULL,NULL,'2024-04-04 13:59:06','2024-04-04 13:59:06',NULL,NULL),(27,NULL,NULL,NULL,6941,44719,20128,NULL,57,45580,'2023-05-11',6000.00,1,848.00,NULL,NULL,'2024-04-04 14:39:25','2024-04-04 14:39:25',NULL,NULL),(28,NULL,NULL,NULL,6941,44719,20129,NULL,57,45580,'2023-05-11',14000.00,1,848.00,NULL,NULL,'2024-04-04 14:40:37','2024-04-04 14:40:37',NULL,NULL),(29,NULL,NULL,NULL,6941,44719,20130,NULL,57,45580,'2023-05-11',43492.38,1,848.00,NULL,NULL,'2024-04-04 14:41:18','2024-04-04 14:41:18',NULL,NULL),(30,NULL,NULL,NULL,6941,44719,20131,NULL,57,45579,'2023-04-11',17136.02,1,848.00,NULL,NULL,'2024-04-04 14:41:56','2024-04-04 14:57:17','2024-04-04 14:57:17',NULL),(31,NULL,NULL,NULL,6941,44719,20132,NULL,57,45580,'2023-05-11',46338.00,1,848.00,NULL,NULL,'2024-04-04 14:43:45','2024-04-04 14:43:45',NULL,NULL),(32,NULL,NULL,NULL,6941,44719,20133,NULL,57,45580,'2023-05-11',33100.00,1,848.00,NULL,NULL,'2024-04-04 14:45:39','2024-04-04 14:45:39',NULL,NULL);
INSERT INTO `cta_cte_tesoreria` VALUES (33,NULL,NULL,NULL,6941,44719,20134,NULL,57,45580,'2023-05-11',59000.00,1,848.00,NULL,NULL,'2024-04-04 14:47:03','2024-04-04 14:47:03',NULL,NULL),(34,NULL,NULL,NULL,6941,44719,20135,NULL,57,45580,'2023-05-11',19235.95,1,848.00,NULL,NULL,'2024-04-04 14:47:45','2024-04-04 14:47:45',NULL,NULL),(35,NULL,NULL,NULL,6941,44719,20136,NULL,57,45580,'2023-05-11',92600.00,1,848.00,NULL,NULL,'2024-04-04 14:48:25','2024-04-04 14:48:25',NULL,NULL),(36,NULL,NULL,NULL,6941,44719,20137,NULL,57,45580,'2023-05-11',100000.00,1,848.00,NULL,NULL,'2024-04-04 14:49:17','2024-04-04 14:49:17',NULL,NULL),(37,NULL,NULL,NULL,6941,44719,20138,NULL,57,45580,'2023-05-11',108900.00,1,848.00,NULL,NULL,'2024-04-04 14:50:12','2024-04-04 14:50:12',NULL,NULL),(38,NULL,NULL,NULL,6941,44719,20139,NULL,57,45580,'2023-05-11',17136.02,1,848.00,NULL,NULL,'2024-04-04 14:57:49','2024-04-04 14:57:49',NULL,NULL),(39,NULL,NULL,NULL,6941,44719,20155,NULL,57,45581,'2023-06-14',69600.00,1,848.00,NULL,NULL,'2024-04-04 16:35:07','2024-04-04 16:35:07',NULL,NULL),(40,NULL,NULL,NULL,6941,44719,20156,NULL,57,45580,'2023-05-03',12127.83,1,848.00,NULL,NULL,'2024-04-04 16:36:14','2024-04-04 16:37:50','2024-04-04 16:37:50',NULL),(41,NULL,NULL,NULL,6941,44719,20157,NULL,57,45581,'2023-06-14',46338.00,1,848.00,NULL,NULL,'2024-04-04 16:37:13','2024-04-04 16:37:13',NULL,NULL),(42,NULL,NULL,NULL,6941,44719,20158,NULL,57,45581,'2023-06-14',12127.83,1,848.00,NULL,NULL,'2024-04-04 16:38:18','2024-04-04 16:38:18',NULL,NULL),(43,NULL,NULL,NULL,6941,44719,20159,NULL,57,45581,'2023-06-14',9559.00,1,848.00,NULL,NULL,'2024-04-04 16:48:32','2024-04-04 16:48:32',NULL,NULL),(44,NULL,NULL,NULL,6941,44719,20160,NULL,57,45581,'2023-06-14',30000.00,1,848.00,NULL,NULL,'2024-04-04 16:49:11','2024-04-04 16:49:11',NULL,NULL),(45,NULL,NULL,NULL,6941,44719,20161,NULL,57,45581,'2023-06-14',20499.81,1,848.00,NULL,NULL,'2024-04-04 16:49:54','2024-04-04 16:49:54',NULL,NULL),(46,NULL,NULL,NULL,6941,44719,20162,NULL,57,45581,'2023-06-14',72487.30,1,848.00,NULL,NULL,'2024-04-04 16:50:54','2024-04-04 16:50:54',NULL,NULL),(47,NULL,NULL,NULL,6941,44719,20163,NULL,57,45581,'2023-06-14',145200.00,1,848.00,NULL,NULL,'2024-04-04 16:51:31','2024-04-04 16:51:31',NULL,NULL),(48,NULL,NULL,NULL,6941,44719,20178,NULL,57,45582,'2023-07-25',118000.00,1,848.00,NULL,NULL,'2024-04-04 20:51:59','2024-04-04 20:51:59',NULL,NULL),(49,NULL,NULL,NULL,6941,44719,20179,NULL,57,45582,'2023-07-25',140000.00,1,848.00,NULL,NULL,'2024-04-04 20:52:57','2024-04-04 20:52:57',NULL,NULL),(50,NULL,NULL,NULL,6941,44719,20180,NULL,57,45582,'2023-07-25',150048.72,1,848.00,NULL,NULL,'2024-04-04 20:53:44','2024-04-04 20:53:44',NULL,NULL),(51,NULL,NULL,NULL,6941,44719,20181,NULL,57,45582,'2023-07-25',12127.83,1,848.00,NULL,NULL,'2024-04-04 20:54:30','2024-04-04 20:54:30',NULL,NULL),(52,NULL,NULL,NULL,6941,44719,20182,NULL,57,45582,'2023-07-25',46338.00,1,848.00,NULL,NULL,'2024-04-04 20:55:16','2024-04-04 20:55:16',NULL,NULL),(53,NULL,NULL,NULL,6941,44719,20183,NULL,57,45582,'2023-07-25',26100.00,1,848.00,NULL,NULL,'2024-04-04 20:56:21','2024-04-04 20:56:21',NULL,NULL),(54,NULL,NULL,NULL,6941,44719,20184,NULL,57,45582,'2023-07-25',52099.72,1,848.00,NULL,NULL,'2024-04-04 20:57:14','2024-04-04 20:57:14',NULL,NULL),(55,NULL,NULL,NULL,6941,44719,20185,NULL,57,45582,'2023-07-25',21949.93,1,848.00,NULL,NULL,'2024-04-04 20:57:56','2024-04-04 20:57:56',NULL,NULL),(56,NULL,NULL,NULL,6941,44719,20186,NULL,57,45582,'2023-07-25',72600.00,1,848.00,NULL,NULL,'2024-04-04 20:58:55','2024-04-04 20:58:55',NULL,NULL),(57,NULL,NULL,NULL,6941,44719,20187,NULL,57,45582,'2023-07-25',58690.00,1,848.00,NULL,NULL,'2024-04-04 20:59:32','2024-04-04 20:59:32',NULL,NULL),(58,NULL,NULL,NULL,6941,44719,20196,NULL,57,45583,'2023-08-30',66688.32,1,849.00,NULL,NULL,'2024-04-05 13:40:09','2024-04-05 13:40:09',NULL,NULL),(59,NULL,NULL,NULL,6941,44719,20197,NULL,57,45583,'2023-08-30',8700.00,1,849.00,NULL,NULL,'2024-04-05 13:41:57','2024-04-05 13:41:57',NULL,NULL);
INSERT INTO `cta_cte_tesoreria` VALUES (60,NULL,NULL,NULL,6941,44719,20198,NULL,57,45583,'2023-08-30',26047.67,1,849.00,NULL,NULL,'2024-04-05 13:42:39','2024-04-05 13:42:39',NULL,NULL),(61,NULL,NULL,NULL,6941,44719,20199,NULL,57,45583,'2023-08-30',46338.00,1,849.00,NULL,NULL,'2024-04-05 13:43:18','2024-04-05 13:43:18',NULL,NULL),(62,NULL,NULL,NULL,6941,44719,20200,NULL,57,45583,'2023-08-30',25033.04,1,849.00,NULL,NULL,'2024-04-05 13:43:56','2024-04-05 13:43:56',NULL,NULL),(63,NULL,NULL,NULL,6941,44719,20201,NULL,57,45583,'2023-08-30',59000.00,1,849.00,NULL,NULL,'2024-04-05 13:44:35','2024-04-05 13:44:35',NULL,NULL),(64,NULL,NULL,NULL,6941,44719,20202,NULL,57,45583,'2023-08-30',70000.00,1,849.00,NULL,NULL,'2024-04-05 13:45:10','2024-04-05 13:45:10',NULL,NULL),(65,NULL,NULL,NULL,6941,44719,20203,NULL,57,45583,'2023-08-30',54450.00,1,849.00,NULL,NULL,'2024-04-05 13:46:01','2024-04-05 13:46:01',NULL,NULL),(66,NULL,NULL,NULL,6941,44719,20205,NULL,57,45583,'2023-08-30',5800.00,1,849.00,NULL,NULL,'2024-04-05 13:54:46','2024-04-05 13:54:46',NULL,NULL),(67,NULL,NULL,NULL,6941,44719,20217,NULL,57,45584,'2023-09-29',60435.00,1,905.00,NULL,NULL,'2024-04-07 11:06:57','2024-04-07 11:06:57',NULL,NULL),(68,NULL,NULL,NULL,6941,44719,20218,NULL,57,45594,'2024-04-07',33344.16,1,905.00,NULL,NULL,'2024-04-07 11:07:40','2024-04-07 11:08:13','2024-04-07 11:08:13',NULL),(69,NULL,NULL,NULL,6941,44719,20219,NULL,57,45584,'2023-09-29',33344.16,1,905.00,NULL,NULL,'2024-04-07 11:08:54','2024-04-07 11:08:54',NULL,NULL),(70,NULL,NULL,NULL,6941,44719,20220,NULL,57,45584,'2023-09-29',19949.27,1,905.00,NULL,NULL,'2024-04-07 11:09:27','2024-04-07 11:09:27',NULL,NULL),(71,NULL,NULL,NULL,6941,44719,20221,NULL,57,45584,'2023-09-29',59000.00,1,905.00,NULL,NULL,'2024-04-07 11:10:12','2024-04-07 11:10:12',NULL,NULL),(72,NULL,NULL,NULL,6941,44719,20222,NULL,57,45584,'2023-09-29',18238.81,1,905.00,NULL,NULL,'2024-04-07 11:10:49','2024-04-07 11:10:49',NULL,NULL),(73,NULL,NULL,NULL,6941,44719,20223,NULL,57,45584,'2023-09-29',46338.00,1,905.00,NULL,NULL,'2024-04-07 11:11:51','2024-04-07 11:11:51',NULL,NULL),(74,NULL,NULL,NULL,6941,44719,20224,NULL,57,45584,'2023-09-29',26100.00,1,905.00,NULL,NULL,'2024-04-07 11:13:07','2024-04-07 11:13:07',NULL,NULL),(75,NULL,NULL,NULL,6941,44719,20225,NULL,57,45584,'2023-09-29',70000.00,1,905.00,NULL,NULL,'2024-04-07 11:13:43','2024-04-07 11:13:43',NULL,NULL),(76,NULL,NULL,NULL,6941,44719,20226,NULL,57,45584,'2023-09-29',72600.00,1,905.00,NULL,NULL,'2024-04-07 11:14:17','2024-04-07 11:14:17',NULL,NULL),(77,NULL,NULL,NULL,6941,44719,NULL,NULL,765,45594,'2024-04-07',0.00,1,1.00,'Saldo Inicial',NULL,'2024-04-07 20:54:18','2024-04-07 20:54:18',NULL,NULL),(78,NULL,NULL,NULL,6941,44719,20239,NULL,57,45584,'2023-09-01',74690.92,1,905.00,NULL,NULL,'2024-04-07 20:55:49','2024-04-07 20:55:49',NULL,NULL),(79,NULL,NULL,NULL,6941,44719,20240,NULL,57,45584,'2023-09-01',82740.00,1,905.00,NULL,NULL,'2024-04-07 20:57:09','2024-04-07 20:57:09',NULL,NULL),(80,NULL,NULL,NULL,6941,44719,20241,NULL,57,45584,'2023-09-05',26940.65,1,905.00,NULL,NULL,'2024-04-07 20:58:03','2024-04-07 20:58:03',NULL,NULL),(81,NULL,NULL,NULL,6941,44719,20242,NULL,57,45584,'2023-09-19',26100.00,1,905.00,NULL,NULL,'2024-04-07 20:59:45','2024-04-07 20:59:45',NULL,NULL),(82,NULL,NULL,NULL,6941,44719,20243,NULL,57,45584,'2023-09-07',77961.96,1,905.00,NULL,NULL,'2024-04-07 21:02:07','2024-04-07 21:02:07',NULL,NULL),(83,NULL,NULL,NULL,6941,44719,20244,NULL,57,45584,'2023-09-08',59000.00,1,905.00,NULL,NULL,'2024-04-07 21:02:56','2024-04-07 21:02:56',NULL,NULL),(84,NULL,NULL,NULL,6941,44719,20245,NULL,57,45584,'2023-09-11',18919.30,1,905.00,NULL,NULL,'2024-04-07 21:04:23','2024-04-07 21:04:23',NULL,NULL),(85,NULL,NULL,NULL,6941,44719,20246,NULL,57,45584,'2023-09-12',46338.00,1,905.00,NULL,NULL,'2024-04-07 21:06:13','2024-04-07 21:06:13',NULL,NULL),(86,NULL,NULL,NULL,6941,44719,20247,NULL,57,45584,'2023-09-27',72600.00,1,905.00,NULL,NULL,'2024-04-07 21:06:52','2024-04-07 21:06:52',NULL,NULL);
INSERT INTO `cta_cte_tesoreria` VALUES (87,NULL,NULL,NULL,6941,44719,20248,NULL,57,45584,'2023-09-28',100000.00,1,905.00,NULL,NULL,'2024-04-07 21:08:15','2024-04-07 21:08:15',NULL,NULL);

--
-- Table structure for table `cta_cte_tesoreria_banco_cheq`
--

CREATE TABLE `cta_cte_tesoreria_banco_cheq` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_banco_id` int(10) unsigned NOT NULL,
  `chequera_tipo_id` int(10) unsigned NOT NULL,
  `serie` text COLLATE utf8mb4_unicode_ci,
  `numero_cheque` int(11) 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 `cta_cte_tesoreria_banco_cheq_person_id_foreign` (`person_id`),
  KEY `cta_cte_tesoreria_banco_cheq_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  KEY `cta_cte_tesoreria_banco_cheq_cta_cte_tesoreria_banco_id_foreign` (`cta_cte_tesoreria_banco_id`),
  KEY `cta_cte_tesoreria_banco_cheq_chequera_tipo_id_foreign` (`chequera_tipo_id`),
  CONSTRAINT `cta_cte_tesoreria_banco_cheq_chequera_tipo_id_foreign` FOREIGN KEY (`chequera_tipo_id`) REFERENCES `chequeras_tipos` (`id`),
  CONSTRAINT `cta_cte_tesoreria_banco_cheq_cta_cte_tesoreria_banco_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_banco_id`) REFERENCES `cta_cte_tesoreria_bancos` (`id`),
  CONSTRAINT `cta_cte_tesoreria_banco_cheq_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `cta_cte_tesoreria_banco_cheq_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_tesoreria_banco_cheq`
--

INSERT INTO `cta_cte_tesoreria_banco_cheq` VALUES (1,6941,44719,763,1,1,'0',1,1,'2024-04-01 11:40:58','2024-04-01 12:10:40',NULL);

--
-- Table structure for table `cta_cte_tesoreria_banco_claves`
--

CREATE TABLE `cta_cte_tesoreria_banco_claves` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_banco_id` int(10) unsigned NOT NULL,
  `descripcion_name` text COLLATE utf8mb4_unicode_ci,
  `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 `cta_cte_tesoreria_banco_claves_person_id_foreign` (`person_id`),
  KEY `ct_cuenta_id` (`cta_cte_tesoreria_cuenta_id`),
  KEY `ct_banco_id` (`cta_cte_tesoreria_banco_id`),
  CONSTRAINT `ct_banco_id` FOREIGN KEY (`cta_cte_tesoreria_banco_id`) REFERENCES `cta_cte_tesoreria_bancos` (`id`),
  CONSTRAINT `ct_cuenta_id` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `cta_cte_tesoreria_banco_claves_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_tesoreria_banco_claves`
--


--
-- Table structure for table `cta_cte_tesoreria_banco_comentarios`
--

CREATE TABLE `cta_cte_tesoreria_banco_comentarios` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_banco_id` int(10) unsigned NOT NULL,
  `fecha` datetime NOT NULL,
  `descripcion` longtext 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`),
  KEY `cta_cte_tesoreria_banco_comentarios_person_id_foreign` (`person_id`),
  KEY `ct_cuentas_id` (`cta_cte_tesoreria_cuenta_id`),
  KEY `ct_bancos_id` (`cta_cte_tesoreria_banco_id`),
  CONSTRAINT `ct_bancos_id` FOREIGN KEY (`cta_cte_tesoreria_banco_id`) REFERENCES `cta_cte_tesoreria_bancos` (`id`),
  CONSTRAINT `ct_cuentas_id` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `cta_cte_tesoreria_banco_comentarios_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_tesoreria_banco_comentarios`
--


--
-- Table structure for table `cta_cte_tesoreria_banco_estados`
--

CREATE TABLE `cta_cte_tesoreria_banco_estados` (
  `id` int(10) 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,
  `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 `cta_cte_tesoreria_banco_estados`
--

INSERT INTO `cta_cte_tesoreria_banco_estados` VALUES (1,NULL,'Habilitado',0,NULL,NULL,NULL),(2,NULL,'En Proceso',0,NULL,NULL,NULL),(3,NULL,'Bloqueado',0,NULL,NULL,NULL),(4,NULL,'Reconocimiento',0,NULL,NULL,NULL),(5,NULL,'Inhabilitado',0,NULL,NULL,NULL);

--
-- Table structure for table `cta_cte_tesoreria_bancos`
--

CREATE TABLE `cta_cte_tesoreria_bancos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned NOT NULL,
  `ctacte_banco_id` int(10) unsigned NOT NULL,
  `persona_empresa` int(11) NOT NULL DEFAULT '1',
  `zone_id` int(10) unsigned NOT NULL,
  `cuenta_contable_id` int(10) unsigned NOT NULL,
  `cuenta_contable_id_diferido` int(10) unsigned DEFAULT NULL,
  `cuenta_contable_id_pend_acred` int(10) unsigned DEFAULT NULL,
  `numero_cuenta` text COLLATE utf8mb4_unicode_ci,
  `cbu` text COLLATE utf8mb4_unicode_ci,
  `alias` text COLLATE utf8mb4_unicode_ci,
  `cta_cte_tesoreria_banco_estado_id` int(10) unsigned DEFAULT NULL,
  `person_id_relationed` int(10) unsigned 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 `cta_cte_tesoreria_bancos_person_id_foreign` (`person_id`),
  KEY `cta_cte_tesoreria_bancos_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  KEY `cta_cte_tesoreria_bancos_ctacte_banco_id_foreign` (`ctacte_banco_id`),
  KEY `cta_cte_tesoreria_bancos_zone_id_foreign` (`zone_id`),
  KEY `cta_cte_tesoreria_bancos_cuenta_contable_id_foreign` (`cuenta_contable_id`),
  KEY `cta_cte_tesoreria_bancos_cuenta_contable_id_diferido_foreign` (`cuenta_contable_id_diferido`),
  KEY `cta_cte_tesoreria_bancos_cuenta_contable_id_pend_acred_foreign` (`cuenta_contable_id_pend_acred`),
  KEY `cta_cte_tesoreria_bancos_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `ct_banco_estado_id` (`cta_cte_tesoreria_banco_estado_id`),
  CONSTRAINT `ct_banco_estado_id` FOREIGN KEY (`cta_cte_tesoreria_banco_estado_id`) REFERENCES `cta_cte_tesoreria_banco_estados` (`id`),
  CONSTRAINT `cta_cte_tesoreria_bancos_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `cta_cte_tesoreria_bancos_ctacte_banco_id_foreign` FOREIGN KEY (`ctacte_banco_id`) REFERENCES `ctacte_bancos` (`id`),
  CONSTRAINT `cta_cte_tesoreria_bancos_cuenta_contable_id_diferido_foreign` FOREIGN KEY (`cuenta_contable_id_diferido`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `cta_cte_tesoreria_bancos_cuenta_contable_id_foreign` FOREIGN KEY (`cuenta_contable_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `cta_cte_tesoreria_bancos_cuenta_contable_id_pend_acred_foreign` FOREIGN KEY (`cuenta_contable_id_pend_acred`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `cta_cte_tesoreria_bancos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `cta_cte_tesoreria_bancos_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `cta_cte_tesoreria_bancos_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_tesoreria_bancos`
--

INSERT INTO `cta_cte_tesoreria_bancos` VALUES (1,6941,44719,763,2,2,22,1029,1029,1029,'00460100048522','0110010520001000485224','1',NULL,NULL,1,'2024-04-01 11:40:58','2024-04-01 11:40:58',NULL);

--
-- Table structure for table `cta_cte_tesoreria_cuenta_tipos`
--

CREATE TABLE `cta_cte_tesoreria_cuenta_tipos` (
  `id` int(10) 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=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_tesoreria_cuenta_tipos`
--

INSERT INTO `cta_cte_tesoreria_cuenta_tipos` VALUES (1,NULL,'CAJA',1,NULL,NULL,NULL),(2,NULL,'BANCOS',1,NULL,NULL,NULL),(3,NULL,'CHEQUES',1,NULL,NULL,NULL),(4,NULL,'RETENCIONES EFECTUADAS',1,NULL,'2024-05-26 20:58:05',NULL),(5,NULL,'PERCEPCIONES EFECTUADAS',1,NULL,'2024-05-26 20:58:05',NULL),(6,NULL,'RESULTADO NEGATIVO',1,NULL,NULL,NULL),(7,NULL,'RESULTADO POSITIVO',1,NULL,NULL,NULL),(8,NULL,'MOVIMIENTO',1,NULL,NULL,NULL),(9,NULL,'RETENCIONES SUFRIDAS',1,NULL,NULL,NULL),(10,NULL,'PERCEPCIONES SUFRIDAS',1,NULL,NULL,NULL);

--
-- Table structure for table `cta_cte_tesoreria_cuentas`
--

CREATE TABLE `cta_cte_tesoreria_cuentas` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `bind_apibank_enabled` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Tiene Bind APIBank habilitado?',
  `bind_account_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'ID de cuenta en Bind APIBank (obtenido al configurar)',
  `user_id` int(10) unsigned DEFAULT NULL,
  `is_no_fiscal` tinyint(1) DEFAULT '0',
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `plan_cuenta_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_cuenta_tipo_id` int(10) unsigned NOT NULL DEFAULT '8',
  `retention_type_id` int(10) unsigned DEFAULT NULL,
  `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cuit` text COLLATE utf8mb4_unicode_ci,
  `cheque3ros` tinyint(1) NOT NULL DEFAULT '0',
  `cheque_emitidos` tinyint(1) NOT NULL DEFAULT '0',
  `tes_cta_cte` tinyint(1) NOT NULL DEFAULT '0',
  `tes_cuenta_origen` tinyint(1) NOT NULL DEFAULT '0',
  `tes_cuenta_destino` tinyint(1) NOT NULL DEFAULT '0',
  `conta_asientos` tinyint(1) 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 `cta_cte_tesoreria_cuentas_person_id_foreign` (`person_id`),
  KEY `cta_cte_tesoreria_cuentas_plan_cuenta_id_foreign` (`plan_cuenta_id`),
  KEY `cta_tes_tipo_id_foreign` (`cta_cte_tesoreria_cuenta_tipo_id`),
  KEY `cta_cte_tesoreria_cuentas_moneda_id_foreign` (`moneda_id`),
  KEY `cta_cte_tesoreria_cuentas_retention_type_id_foreign` (`retention_type_id`),
  KEY `idx_cctc_bind_apibank_enabled` (`bind_apibank_enabled`),
  KEY `idx_cctc_bind_account_id` (`bind_account_id`),
  CONSTRAINT `cta_cte_tesoreria_cuentas_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `cta_cte_tesoreria_cuentas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `cta_cte_tesoreria_cuentas_plan_cuenta_id_foreign` FOREIGN KEY (`plan_cuenta_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `cta_cte_tesoreria_cuentas_retention_type_id_foreign` FOREIGN KEY (`retention_type_id`) REFERENCES `retention_types` (`id`),
  CONSTRAINT `cta_tes_tipo_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_tipo_id`) REFERENCES `cta_cte_tesoreria_cuenta_tipos` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=766 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_tesoreria_cuentas`
--

INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (13,0,NULL,6941,0,1,1028,NULL,8,NULL,'SINDICATO DE OBREROS MARITIMOS UNIDOS','33520883199',0,0,0,0,0,0,1,'2019-10-19 02:10:24','2024-03-26 11:31:18',NULL),(20,0,NULL,NULL,0,1,20,NULL,8,NULL,'Anticipos Impuesto a las Ganancias',NULL,0,0,0,0,1,0,1,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(23,0,NULL,NULL,0,1,23,NULL,4,NULL,'Retenciones Impuesto a las Ganancias',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(25,0,NULL,NULL,0,1,25,NULL,4,NULL,'Retenciones de IVA',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(57,0,NULL,NULL,0,1,57,NULL,8,NULL,'Proveedores en Cta. Cte. locales',NULL,0,0,0,0,0,0,1,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(60,0,NULL,NULL,0,1,60,NULL,3,NULL,'Cheques emitidos ',NULL,0,1,1,1,1,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(62,0,NULL,NULL,0,1,62,NULL,8,NULL,'Sueldos y Jornales a pagar',NULL,0,0,0,0,1,0,1,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(140,0,NULL,NULL,0,1,140,NULL,6,NULL,'Intereses y Gastos bancarios',NULL,0,0,0,0,1,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(162,0,NULL,NULL,0,1,162,NULL,4,NULL,'Retenciones SUSS',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(176,0,NULL,NULL,0,1,176,NULL,3,NULL,'Cheques en Cartera',NULL,1,0,1,1,1,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(201,0,NULL,NULL,0,1,201,NULL,6,NULL,'Monotributo',NULL,0,0,0,0,1,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(203,0,NULL,NULL,0,1,203,NULL,6,NULL,'Autonomos',NULL,0,0,0,0,1,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(219,0,NULL,NULL,0,1,219,NULL,8,NULL,'Pagos AFIP',NULL,0,0,0,0,1,0,1,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(251,0,NULL,NULL,0,1,251,NULL,4,NULL,'Retenciones de IIBB Buenos Aires',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(252,0,NULL,NULL,0,1,252,NULL,4,NULL,'Retenciones de IIBB Capital Federal',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(253,0,NULL,NULL,0,1,253,NULL,4,NULL,'Retenciones de IIBB Catamarca',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(254,0,NULL,NULL,0,1,254,NULL,4,NULL,'Retenciones de IIBB Chaco',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(255,0,NULL,NULL,0,1,255,NULL,4,NULL,'Retenciones de IIBB Chubut',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(256,0,NULL,NULL,0,1,256,NULL,4,NULL,'Retenciones de IIBB Córdoba',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(257,0,NULL,NULL,0,1,257,NULL,4,NULL,'Retenciones de IIBB Corrientes',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(258,0,NULL,NULL,0,1,258,NULL,4,NULL,'Retenciones de IIBB Entre Ríos',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(259,0,NULL,NULL,0,1,259,NULL,4,NULL,'Retenciones de IIBB Formosa',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(260,0,NULL,NULL,0,1,260,NULL,4,NULL,'Retenciones de IIBB Jujuy',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(261,0,NULL,NULL,0,1,261,NULL,4,NULL,'Retenciones de IIBB La Pampa',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(262,0,NULL,NULL,0,1,262,NULL,4,NULL,'Retenciones de IIBB La Rioja',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(263,0,NULL,NULL,0,1,263,NULL,4,NULL,'Retenciones de IIBB Mendoza',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(264,0,NULL,NULL,0,1,264,NULL,4,NULL,'Retenciones de IIBB Misiones',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(265,0,NULL,NULL,0,1,265,NULL,4,NULL,'Retenciones de IIBB Neuquén',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(266,0,NULL,NULL,0,1,266,NULL,4,NULL,'Retenciones de IIBB Pascua Lama',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (267,0,NULL,NULL,0,1,267,NULL,4,NULL,'Retenciones de IIBB Río Negro',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(268,0,NULL,NULL,0,1,268,NULL,4,NULL,'Retenciones de IIBB Salta',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(269,0,NULL,NULL,0,1,269,NULL,4,NULL,'Retenciones de IIBB San Juan',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(270,0,NULL,NULL,0,1,270,NULL,4,NULL,'Retenciones de IIBB San Luis',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(271,0,NULL,NULL,0,1,271,NULL,4,NULL,'Retenciones de IIBB Santa Cruz',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(272,0,NULL,NULL,0,1,272,NULL,4,NULL,'Retenciones de IIBB Santa Fe',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(273,0,NULL,NULL,0,1,273,NULL,4,NULL,'Retenciones de IIBB Santiago del Estero',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(274,0,NULL,NULL,0,1,274,NULL,4,NULL,'Retenciones de IIBB Tierra del Fuego',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(275,0,NULL,NULL,0,1,275,NULL,4,NULL,'Retenciones de IIBB Tucuman',NULL,0,0,1,0,0,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(351,0,NULL,NULL,0,1,351,NULL,8,NULL,'BANCO SIRCREB',NULL,0,0,0,0,1,0,1,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(359,0,NULL,NULL,0,1,359,NULL,8,NULL,'Caja en Pesos',NULL,0,0,1,1,1,0,1,'2019-10-19 02:10:24','2023-03-20 23:16:58','2023-03-20 23:16:58'),(360,0,NULL,NULL,0,1,360,NULL,8,NULL,'Retenciones Bancarias de Ganancias a Favor',NULL,0,0,0,0,1,0,1,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(364,0,NULL,NULL,0,1,364,NULL,8,NULL,'Anticipo de Clientes',NULL,0,0,0,0,1,0,1,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(384,0,NULL,NULL,0,1,384,NULL,8,NULL,'Caja en Dolares',NULL,0,0,1,1,1,0,1,'2019-10-19 02:10:24','2023-03-20 23:16:58','2023-03-20 23:16:58'),(409,0,NULL,NULL,0,1,409,NULL,6,NULL,'IVA Crédito Fiscal No computable',NULL,0,0,0,0,1,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(418,0,NULL,NULL,0,1,418,NULL,8,NULL,'Deudas Bancarias',NULL,0,0,0,1,1,0,1,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(433,0,NULL,NULL,0,1,433,NULL,8,NULL,'Préstamo',NULL,0,0,0,1,1,0,1,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(441,0,NULL,NULL,0,1,441,NULL,8,NULL,'Leasing',NULL,0,0,0,1,1,0,1,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(448,0,NULL,NULL,0,1,448,NULL,8,NULL,'Planes de Pagos AFIP',NULL,0,0,0,1,1,0,1,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(450,0,NULL,NULL,0,1,450,NULL,3,NULL,'Cheques Rechazados',NULL,0,0,0,0,1,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(467,0,NULL,NULL,0,1,467,NULL,6,NULL,'Interés',NULL,0,0,0,0,1,0,1,'2019-10-19 02:10:24','2023-03-27 00:25:03',NULL),(468,0,NULL,NULL,0,1,14,NULL,8,NULL,'Deudores por ventas comunes',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(469,0,NULL,NULL,0,1,15,NULL,8,NULL,'Deudores por ventas morosos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(470,0,NULL,NULL,0,1,16,NULL,8,NULL,'Deudores en gestión judicial',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(471,0,NULL,NULL,0,1,17,NULL,8,NULL,'Previsión deudores incobrables',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(472,0,NULL,NULL,0,1,22,NULL,8,NULL,'Anticipo Impto.Ganancia Mínima Presunta',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(473,0,NULL,NULL,0,1,24,NULL,4,NULL,'Impuesto a las Ganancias (Saldo a favor)',NULL,0,0,0,0,0,1,0,'2020-02-06 17:23:07','2023-06-02 07:57:17',NULL),(474,0,NULL,NULL,0,1,27,NULL,8,NULL,'Anticipos de proveedores',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(475,0,NULL,NULL,0,1,28,NULL,8,NULL,'Depósito en garantía alquileres',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (476,0,NULL,NULL,0,1,29,NULL,8,NULL,'Derechos adquiridos a devengar',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(477,0,NULL,NULL,0,1,30,NULL,8,NULL,'Intereses a devengar',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(478,0,NULL,NULL,0,1,31,NULL,8,NULL,'Cuentas a rendir - Directores',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(479,0,NULL,NULL,0,1,32,NULL,8,NULL,'Alquileres no devengados',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(480,0,NULL,NULL,0,1,38,NULL,8,NULL,'Equipos de computación valores históricos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(481,0,NULL,NULL,0,1,39,NULL,8,NULL,'Equipos de computación ajuste',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(482,0,NULL,NULL,0,1,40,NULL,8,NULL,'Amortización Acumulada Equipos de comput.',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(483,0,NULL,NULL,0,1,42,NULL,8,NULL,'Instalaciones valores históricos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(484,0,NULL,NULL,0,1,43,NULL,8,NULL,'Instalaciones ajuste',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(485,0,NULL,NULL,0,1,44,NULL,8,NULL,'Amortización Acumulada Instalaciones',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(486,0,NULL,NULL,0,1,46,NULL,8,NULL,'Muebles y utiles valores históricos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(487,0,NULL,NULL,0,1,47,NULL,8,NULL,'Muebles y utiles ajuste',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(488,0,NULL,NULL,0,1,48,NULL,8,NULL,'Amortización Acumulada Muebles y Útiles',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(489,0,NULL,NULL,0,1,50,NULL,8,NULL,'Gastos de organización valores historicos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(490,0,NULL,NULL,0,1,51,NULL,8,NULL,'Gastos de organización ajuste',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(491,0,NULL,NULL,0,1,52,NULL,8,NULL,'Amortización acumulada gs. de organización',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(492,0,NULL,NULL,0,1,58,NULL,8,NULL,'Proveedores en cta. cte. exterior',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(493,0,NULL,NULL,0,1,59,NULL,8,NULL,'Derechos de exhibición a devengar',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(494,0,NULL,NULL,0,1,63,NULL,8,NULL,'Cargas sociales a pagar',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(495,0,NULL,NULL,0,1,64,NULL,8,NULL,'Sindicatos a Pagar',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(496,0,NULL,NULL,0,1,67,NULL,8,NULL,'IVA Debito Fiscal',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(497,0,NULL,NULL,0,1,68,NULL,8,NULL,'IVA Credito Fiscal',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(498,0,NULL,NULL,0,1,69,NULL,8,NULL,'Impuestos Internos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(499,0,NULL,NULL,0,1,70,NULL,8,NULL,'Impuestos al Combustible',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(500,0,NULL,NULL,0,1,71,NULL,8,NULL,'IVA Retenciones de terceros',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(501,0,NULL,NULL,0,1,72,NULL,5,NULL,'IVA Percepciones realiz.por terceros',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(502,0,NULL,NULL,0,1,73,NULL,8,NULL,'IVA Saldo a favor',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(503,0,NULL,NULL,0,1,74,NULL,8,NULL,'IVA a pagar',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(504,0,NULL,NULL,0,1,75,NULL,5,NULL,'Percepciones Ingresos Brutos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (505,0,NULL,NULL,0,1,76,NULL,8,NULL,'Otros Pagos AFIP',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(506,0,NULL,NULL,0,1,78,NULL,8,NULL,'Impuesto a los Ingresos Brutos Pasivo',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(507,0,NULL,NULL,0,1,79,NULL,8,NULL,'Impuesto a las Ganancias',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(508,0,NULL,NULL,0,1,80,NULL,8,NULL,'Impuesto a la Ganancia Mínima Presunta',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(509,0,NULL,NULL,0,1,81,NULL,8,NULL,'AFIP - Retenciones Impuesto a las Ganancias',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(510,0,NULL,NULL,0,1,82,NULL,8,NULL,'AFIP - Plan de Facilidades Decreto 338/02',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(511,0,NULL,NULL,0,1,87,NULL,8,NULL,'Acciones en circulación',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(512,0,NULL,NULL,0,1,88,NULL,8,NULL,'Ajuste del Capital',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(513,0,NULL,NULL,0,1,89,NULL,8,NULL,'Aportes Irrevocables Futuras Suscripciones',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(514,0,NULL,NULL,0,1,91,NULL,8,NULL,'Resultado del ejercicio',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(515,0,NULL,NULL,0,1,92,NULL,8,NULL,'Resultado ejercicios anteriores',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(516,0,NULL,NULL,0,1,93,NULL,8,NULL,'A.R.E.A.',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(517,0,NULL,NULL,0,1,96,NULL,7,NULL,'VENTAS',NULL,0,0,0,0,1,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(518,0,NULL,NULL,0,1,97,NULL,7,NULL,'Honorarios',NULL,0,0,0,0,1,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(519,0,NULL,NULL,0,1,99,NULL,7,NULL,'Descuentos obtenidos',NULL,0,0,0,0,1,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(520,0,NULL,NULL,0,1,100,NULL,7,NULL,'Reintegros por exportaciones',NULL,0,0,0,0,1,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(521,0,NULL,NULL,0,1,102,NULL,7,NULL,'Intereses Cobrados',NULL,0,0,0,0,1,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(522,0,NULL,NULL,0,1,103,NULL,7,NULL,'Diferencias de cambio',NULL,0,0,0,0,1,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(523,0,NULL,NULL,0,1,104,NULL,7,NULL,'Descuentos obtenidos',NULL,0,0,0,0,1,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(524,0,NULL,NULL,0,1,110,NULL,6,NULL,'Sueldos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(525,0,NULL,NULL,0,1,111,NULL,6,NULL,'Contribuciones',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(526,0,NULL,NULL,0,1,112,NULL,6,NULL,'Sindicato',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(527,0,NULL,NULL,0,1,114,NULL,8,NULL,'ACA',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(528,0,NULL,NULL,0,1,115,NULL,6,NULL,'Aereos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(529,0,NULL,NULL,0,1,116,NULL,6,NULL,'Alquiler',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(530,0,NULL,NULL,0,1,117,NULL,8,NULL,'AGUA AYSA',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(531,0,NULL,NULL,0,1,118,NULL,8,NULL,'TV Cablevision',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(532,0,NULL,NULL,0,1,119,NULL,1,NULL,'Caja Jubilacion Consejo',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(533,0,NULL,NULL,0,1,120,NULL,6,NULL,'Celulares',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(534,0,NULL,NULL,0,1,121,NULL,3,NULL,'Cheques',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(535,0,NULL,NULL,0,1,123,NULL,8,NULL,'Comida',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (536,0,NULL,NULL,0,1,126,NULL,6,NULL,'Fletes y acarreos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(537,0,NULL,NULL,0,1,127,NULL,8,NULL,'Luz Edesur',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(538,0,NULL,NULL,0,1,128,NULL,6,NULL,'Movilidad y Viáticos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(539,0,NULL,NULL,0,1,129,NULL,8,NULL,'Mantenimiento',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(540,0,NULL,NULL,0,1,130,NULL,8,NULL,'IVA No Computable',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(541,0,NULL,NULL,0,1,131,NULL,8,NULL,'Entretenimiento',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(542,0,NULL,NULL,0,1,132,NULL,6,NULL,'Amortización Bienes de Uso',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(543,0,NULL,NULL,0,1,135,NULL,6,NULL,'Gastos varios',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(544,0,NULL,NULL,0,1,136,NULL,6,NULL,'Ajuste por redondeo',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(545,0,NULL,NULL,0,1,137,NULL,6,NULL,'Deudores Incobrables',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(546,0,NULL,NULL,0,1,141,NULL,6,NULL,'Intereses Proveedores',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(547,0,NULL,NULL,0,1,143,NULL,6,NULL,'Diferencias de cambio',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(548,0,NULL,NULL,0,1,144,NULL,8,NULL,'Diferencia de Cambio Bces. en M.Extranjera',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(549,0,NULL,NULL,0,1,145,NULL,6,NULL,'Diferencia tipo cambio Vendedor/Comprador',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(550,0,NULL,NULL,0,1,146,NULL,8,NULL,'Diferencia por conversion en Bce. en Mon. Extranj.',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(551,0,NULL,NULL,0,1,147,NULL,8,NULL,'Diferencia de cambio CMV',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(552,0,NULL,NULL,0,1,148,NULL,8,NULL,'Diferencia de cambio PT',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(553,0,NULL,NULL,0,1,149,NULL,8,NULL,'Resultado por Exposición a la Inflación',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(554,0,NULL,NULL,0,1,150,NULL,8,NULL,'Diferencia de cambio PE',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(555,0,NULL,NULL,0,1,151,NULL,8,NULL,'Diferencia de cambio Ds.Vtas.',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:03',NULL),(556,0,NULL,NULL,0,1,152,NULL,6,NULL,'Diferencia de cambio ME',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(557,0,NULL,NULL,0,1,153,NULL,6,NULL,'Descuentos otorgados',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(558,0,NULL,NULL,0,1,155,NULL,6,NULL,'Impuesto a las Ganancias',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(559,0,NULL,NULL,0,1,156,NULL,6,NULL,'Impuesto a los Ingresos Brutos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(560,0,NULL,NULL,0,1,157,NULL,6,NULL,'Impuesto al Debito y Credito Bancario',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(561,0,NULL,NULL,0,1,159,NULL,6,NULL,'Pérdida por venta bienes de uso',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(562,0,NULL,NULL,0,1,160,NULL,6,NULL,'Inversiones',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(563,0,NULL,NULL,0,1,161,NULL,6,NULL,'Amortizaciones extraordinarias',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(564,0,NULL,NULL,0,1,178,NULL,8,NULL,'Google',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(565,0,NULL,NULL,0,1,188,NULL,6,NULL,'Publicidad',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (566,0,NULL,NULL,0,1,191,NULL,6,NULL,'Cargas Sociales',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(567,0,NULL,NULL,0,1,192,NULL,6,NULL,'Honorarios',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(568,0,NULL,NULL,0,1,193,NULL,6,NULL,'Telefono Fijo',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(569,0,NULL,NULL,0,1,198,NULL,6,NULL,'Seguros',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(570,0,NULL,NULL,0,1,199,NULL,6,NULL,'Internet',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(571,0,NULL,NULL,0,1,204,NULL,6,NULL,'Multas Impositivas',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(572,0,NULL,NULL,0,1,208,NULL,6,NULL,'Impuesto a los Ingresos Brutos - BS AS',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(573,0,NULL,NULL,0,1,209,NULL,6,NULL,'SIRCREB',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(574,0,NULL,NULL,0,1,212,NULL,6,NULL,'Tarjeta Visa',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(575,0,NULL,NULL,0,1,213,NULL,6,NULL,'Tarjeta American Express',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(576,0,NULL,NULL,0,1,214,NULL,6,NULL,'Tarjeta Mastercard',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(577,0,NULL,NULL,0,1,215,NULL,8,NULL,'Tarjeta Shopping',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(578,0,NULL,NULL,0,1,216,NULL,6,NULL,'Tarjeta Cencosud',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(579,0,NULL,NULL,0,1,217,NULL,6,NULL,'Compras',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(580,0,NULL,NULL,0,1,218,NULL,7,NULL,'Ventas No Gravadas',NULL,0,0,0,0,1,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(581,0,NULL,NULL,0,1,220,NULL,5,NULL,'Perc IVA -RG3337',NULL,0,0,0,0,0,1,0,'2020-02-06 17:23:07','2023-06-02 07:57:17',NULL),(582,0,NULL,NULL,0,1,221,NULL,6,NULL,'Imps. Internos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(583,0,NULL,NULL,0,1,222,NULL,6,NULL,'Imp. Gasoil',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(584,0,NULL,NULL,0,1,223,NULL,6,NULL,'Imp. Hídricos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(585,0,NULL,NULL,0,1,224,NULL,6,NULL,'ITC',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(586,0,NULL,NULL,0,1,225,NULL,5,NULL,'Perc IIBB  Buenos Aires',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(587,0,NULL,NULL,0,1,226,NULL,5,NULL,'Perc IIBB  Capital Federal',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(588,0,NULL,NULL,0,1,227,NULL,5,NULL,'Perc IIBB  Catamarca',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(589,0,NULL,NULL,0,1,228,NULL,5,NULL,'Perc IIBB  Chaco',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(590,0,NULL,NULL,0,1,229,NULL,5,NULL,'Perc IIBB  Chubut',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(591,0,NULL,NULL,0,1,230,NULL,5,NULL,'Perc IIBB  Córdoba',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(592,0,NULL,NULL,0,1,231,NULL,5,NULL,'Perc IIBB  Corrientes',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(593,0,NULL,NULL,0,1,232,NULL,5,NULL,'Perc IIBB  Entre Ríos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(594,0,NULL,NULL,0,1,233,NULL,5,NULL,'Perc IIBB  Formosa',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(595,0,NULL,NULL,0,1,234,NULL,5,NULL,'Perc IIBB  Jujuy',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(596,0,NULL,NULL,0,1,235,NULL,5,NULL,'Perc IIBB  La Pampa',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(597,0,NULL,NULL,0,1,236,NULL,5,NULL,'Perc IIBB  La Rioja',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (598,0,NULL,NULL,0,1,237,NULL,5,NULL,'Perc IIBB  Mendoza',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(599,0,NULL,NULL,0,1,238,NULL,5,NULL,'Perc IIBB  Misiones',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(600,0,NULL,NULL,0,1,239,NULL,5,NULL,'Perc IIBB  Neuquén',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(601,0,NULL,NULL,0,1,240,NULL,5,NULL,'Perc IIBB  Pascua Lama',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(602,0,NULL,NULL,0,1,241,NULL,5,NULL,'Perc IIBB  Río Negro',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(603,0,NULL,NULL,0,1,242,NULL,5,NULL,'Perc IIBB  Salta',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(604,0,NULL,NULL,0,1,243,NULL,5,NULL,'Perc IIBB  San Juan',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(605,0,NULL,NULL,0,1,244,NULL,5,NULL,'Perc IIBB  San Luis',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(606,0,NULL,NULL,0,1,245,NULL,5,NULL,'Perc IIBB  Santa Cruz',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(607,0,NULL,NULL,0,1,246,NULL,5,NULL,'Perc IIBB  Santa Fe',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(608,0,NULL,NULL,0,1,247,NULL,5,NULL,'Perc IIBB  Santiago del Estero',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(609,0,NULL,NULL,0,1,248,NULL,5,NULL,'Perc IIBB  Tierra del Fuego',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(610,0,NULL,NULL,0,1,249,NULL,5,NULL,'Perc IIBB  Tucuman',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(611,0,NULL,NULL,0,1,250,NULL,6,NULL,'Compras No Gravadas',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(612,0,NULL,NULL,0,1,276,NULL,6,NULL,'SIRCREB Buenos Aires',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(613,0,NULL,NULL,0,1,277,NULL,6,NULL,'SIRCREB Capital Federal',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(614,0,NULL,NULL,0,1,278,NULL,6,NULL,'SIRCREB Catamarca',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(615,0,NULL,NULL,0,1,279,NULL,6,NULL,'SIRCREB Chaco',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(616,0,NULL,NULL,0,1,280,NULL,6,NULL,'SIRCREB Chubut',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(617,0,NULL,NULL,0,1,281,NULL,6,NULL,'SIRCREB Córdoba',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(618,0,NULL,NULL,0,1,282,NULL,6,NULL,'SIRCREB Corrientes',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(619,0,NULL,NULL,0,1,283,NULL,6,NULL,'SIRCREB Entre Ríos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(620,0,NULL,NULL,0,1,284,NULL,6,NULL,'SIRCREB Formosa',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(621,0,NULL,NULL,0,1,285,NULL,6,NULL,'SIRCREB Jujuy',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(622,0,NULL,NULL,0,1,286,NULL,6,NULL,'SIRCREB La Pampa',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(623,0,NULL,NULL,0,1,287,NULL,6,NULL,'SIRCREB La Rioja',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(624,0,NULL,NULL,0,1,288,NULL,6,NULL,'SIRCREB Mendoza',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(625,0,NULL,NULL,0,1,289,NULL,6,NULL,'SIRCREB Misiones',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(626,0,NULL,NULL,0,1,290,NULL,6,NULL,'SIRCREB Neuquén',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(627,0,NULL,NULL,0,1,291,NULL,6,NULL,'SIRCREB Pascua Lama',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(628,0,NULL,NULL,0,1,292,NULL,6,NULL,'SIRCREB Río Negro',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (629,0,NULL,NULL,0,1,293,NULL,6,NULL,'SIRCREB Salta',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(630,0,NULL,NULL,0,1,294,NULL,6,NULL,'SIRCREB San Juan',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(631,0,NULL,NULL,0,1,295,NULL,6,NULL,'SIRCREB San Luis',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(632,0,NULL,NULL,0,1,296,NULL,6,NULL,'SIRCREB Santa Cruz',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(633,0,NULL,NULL,0,1,297,NULL,6,NULL,'SIRCREB Santa Fe',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(634,0,NULL,NULL,0,1,298,NULL,6,NULL,'SIRCREB Santiago del Estero',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(635,0,NULL,NULL,0,1,299,NULL,6,NULL,'SIRCREB Tierra del Fuego',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(636,0,NULL,NULL,0,1,300,NULL,6,NULL,'SIRCREB Tucuman',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(637,0,NULL,NULL,0,1,301,NULL,8,NULL,'IIBB a Favor Buenos Aires',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(638,0,NULL,NULL,0,1,302,NULL,8,NULL,'IIBB a Favor Capital Federal',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(639,0,NULL,NULL,0,1,303,NULL,8,NULL,'IIBB a Favor Catamarca',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(640,0,NULL,NULL,0,1,304,NULL,8,NULL,'IIBB a Favor Chaco',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(641,0,NULL,NULL,0,1,305,NULL,8,NULL,'IIBB a Favor Chubut',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(642,0,NULL,NULL,0,1,306,NULL,8,NULL,'IIBB a Favor Córdoba',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(643,0,NULL,NULL,0,1,307,NULL,8,NULL,'IIBB a Favor Corrientes',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(644,0,NULL,NULL,0,1,308,NULL,8,NULL,'IIBB a Favor Entre Ríos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(645,0,NULL,NULL,0,1,309,NULL,8,NULL,'IIBB a Favor Formosa',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(646,0,NULL,NULL,0,1,310,NULL,8,NULL,'IIBB a Favor Jujuy',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(647,0,NULL,NULL,0,1,311,NULL,8,NULL,'IIBB a Favor La Pampa',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(648,0,NULL,NULL,0,1,312,NULL,8,NULL,'IIBB a Favor La Rioja',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(649,0,NULL,NULL,0,1,313,NULL,8,NULL,'IIBB a Favor Mendoza',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:25:04',NULL),(650,0,NULL,NULL,0,1,314,NULL,8,NULL,'IIBB a Favor Misiones',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(651,0,NULL,NULL,0,1,315,NULL,8,NULL,'IIBB a Favor Neuquén',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(652,0,NULL,NULL,0,1,316,NULL,8,NULL,'IIBB a Favor Pascua Lama',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(653,0,NULL,NULL,0,1,317,NULL,8,NULL,'IIBB a Favor Río Negro',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(654,0,NULL,NULL,0,1,318,NULL,8,NULL,'IIBB a Favor Salta',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(655,0,NULL,NULL,0,1,319,NULL,8,NULL,'IIBB a Favor San Juan',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(656,0,NULL,NULL,0,1,320,NULL,8,NULL,'IIBB a Favor San Luis',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(657,0,NULL,NULL,0,1,321,NULL,8,NULL,'IIBB a Favor Santa Cruz',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(658,0,NULL,NULL,0,1,322,NULL,8,NULL,'IIBB a Favor Santa Fe',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (659,0,NULL,NULL,0,1,323,NULL,8,NULL,'IIBB a Favor Santiago del Estero',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(660,0,NULL,NULL,0,1,324,NULL,8,NULL,'IIBB a Favor Tierra del Fuego',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(661,0,NULL,NULL,0,1,325,NULL,8,NULL,'IIBB a Favor Tucuman',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(662,0,NULL,NULL,0,1,326,NULL,8,NULL,'IIBB a Pagar Buenos Aires',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(663,0,NULL,NULL,0,1,327,NULL,8,NULL,'IIBB a Pagar Capital Federal',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(664,0,NULL,NULL,0,1,328,NULL,8,NULL,'IIBB a Pagar Catamarca',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(665,0,NULL,NULL,0,1,329,NULL,8,NULL,'IIBB a Pagar Chaco',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(666,0,NULL,NULL,0,1,330,NULL,8,NULL,'IIBB a Pagar Chubut',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(667,0,NULL,NULL,0,1,331,NULL,8,NULL,'IIBB a Pagar Córdoba',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(668,0,NULL,NULL,0,1,332,NULL,8,NULL,'IIBB a Pagar Corrientes',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(669,0,NULL,NULL,0,1,333,NULL,8,NULL,'IIBB a Pagar Entre Ríos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(670,0,NULL,NULL,0,1,334,NULL,8,NULL,'IIBB a Pagar Formosa',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(671,0,NULL,NULL,0,1,335,NULL,8,NULL,'IIBB a Pagar Jujuy',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(672,0,NULL,NULL,0,1,336,NULL,8,NULL,'IIBB a Pagar La Pampa',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(673,0,NULL,NULL,0,1,337,NULL,8,NULL,'IIBB a Pagar La Rioja',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(674,0,NULL,NULL,0,1,338,NULL,8,NULL,'IIBB a Pagar Mendoza',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(675,0,NULL,NULL,0,1,339,NULL,8,NULL,'IIBB a Pagar Misiones',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(676,0,NULL,NULL,0,1,340,NULL,8,NULL,'IIBB a Pagar Neuquén',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(677,0,NULL,NULL,0,1,341,NULL,8,NULL,'IIBB a Pagar Pascua Lama',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(678,0,NULL,NULL,0,1,342,NULL,8,NULL,'IIBB a Pagar Río Negro',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(679,0,NULL,NULL,0,1,343,NULL,8,NULL,'IIBB a Pagar Salta',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(680,0,NULL,NULL,0,1,344,NULL,8,NULL,'IIBB a Pagar San Juan',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(681,0,NULL,NULL,0,1,345,NULL,8,NULL,'IIBB a Pagar San Luis',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(682,0,NULL,NULL,0,1,346,NULL,8,NULL,'IIBB a Pagar Santa Cruz',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(683,0,NULL,NULL,0,1,347,NULL,8,NULL,'IIBB a Pagar Santa Fe',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(684,0,NULL,NULL,0,1,348,NULL,8,NULL,'IIBB a Pagar Santiago del Estero',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(685,0,NULL,NULL,0,1,349,NULL,8,NULL,'IIBB a Pagar Tierra del Fuego',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(686,0,NULL,NULL,0,1,350,NULL,8,NULL,'IIBB a Pagar Tucuman',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(687,0,NULL,NULL,0,1,352,NULL,8,NULL,'Compensacion',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(688,0,NULL,NULL,0,1,353,NULL,8,NULL,'IVA Saldo Tecnico',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (689,0,NULL,NULL,0,1,354,NULL,8,NULL,'IVA Saldo Libre Disponibilidad',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(690,0,NULL,NULL,0,1,361,NULL,8,NULL,'Equipos de Computación',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(691,0,NULL,NULL,0,1,362,NULL,8,NULL,'Computadoras',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(692,0,NULL,NULL,0,1,363,NULL,8,NULL,'Muebles y Utiles',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(693,0,NULL,NULL,0,1,365,NULL,8,NULL,'Provision Honorarios',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(694,0,NULL,NULL,0,1,366,NULL,8,NULL,'Cta. Cte Directores',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(695,0,NULL,NULL,0,1,367,NULL,8,NULL,'Provisión Honorarios Directores',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(696,0,NULL,NULL,0,1,368,NULL,8,NULL,'Cuenta Particular Socio 1',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(697,0,NULL,NULL,0,1,369,NULL,8,NULL,'Capital',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(698,0,NULL,NULL,0,1,380,NULL,8,NULL,'Instalaciones',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(699,0,NULL,NULL,0,1,381,NULL,8,NULL,'Reserva Legal',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(700,0,NULL,NULL,0,1,382,NULL,8,NULL,'Reserva Legal',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(701,0,NULL,NULL,0,1,383,NULL,8,NULL,'Resultado no asignado',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(702,0,NULL,NULL,0,1,386,NULL,8,NULL,'PLAZO FIJO',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(703,0,NULL,NULL,0,1,388,NULL,8,NULL,'ACCIONES',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(704,0,NULL,NULL,0,1,389,NULL,8,NULL,'Inmuebles',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(705,0,NULL,NULL,0,1,390,NULL,8,NULL,'Vehiculos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(706,0,NULL,NULL,0,1,391,NULL,8,NULL,'Maquinarias',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(707,0,NULL,NULL,0,1,392,NULL,8,NULL,'MERCADERIAS',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(708,0,NULL,NULL,0,1,393,NULL,8,NULL,'OTROS',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(709,0,NULL,NULL,0,1,395,NULL,8,NULL,'Cuenta Particular Socio 2',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(710,0,NULL,NULL,0,1,396,NULL,6,NULL,'Comisiones Y gastos Bancarios',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(711,0,NULL,NULL,0,1,411,NULL,8,NULL,'Provisión Impuesto a las Ganancias',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(712,0,NULL,NULL,0,1,412,NULL,6,NULL,'Amortización Muebles y Útiles',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(713,0,NULL,NULL,0,1,413,NULL,6,NULL,'Amortización Equipos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(714,0,NULL,NULL,0,1,414,NULL,8,NULL,'Amortizacion Acumulada Equipos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(715,0,NULL,NULL,0,1,415,NULL,8,NULL,'Amortización Acumulada Maquinarias',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(716,0,NULL,NULL,0,1,416,NULL,8,NULL,'Materias Primas',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(717,0,NULL,NULL,0,1,419,NULL,8,NULL,'Rodados',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(718,0,NULL,NULL,0,1,420,NULL,8,NULL,'Amortización Acumulada Rodados',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(719,0,NULL,NULL,0,1,421,NULL,8,NULL,'Amortización Rodados',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (720,0,NULL,NULL,0,1,422,NULL,8,NULL,'Amortización Maquinarias',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(721,0,NULL,NULL,0,1,423,NULL,8,NULL,'Accesorios',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(722,0,NULL,NULL,0,1,424,NULL,8,NULL,'Amortización Acumulada Accesorios',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(723,0,NULL,NULL,0,1,426,NULL,8,NULL,'Reserva Facultativa',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(724,0,NULL,NULL,0,1,427,NULL,8,NULL,'Créditos por Impuestos Diferidos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(725,0,NULL,NULL,0,1,428,NULL,8,NULL,'Fondo de Comercio',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(726,0,NULL,NULL,0,1,429,NULL,8,NULL,'Amortizacion Acumulada Fondo de Comercio',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(727,0,NULL,NULL,0,1,430,NULL,8,NULL,'Intereses a devengar AGIP',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(728,0,NULL,NULL,0,1,431,NULL,8,NULL,'PFP IIBB',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(729,0,NULL,NULL,0,1,434,NULL,8,NULL,'Productos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(730,0,NULL,NULL,0,1,435,NULL,8,NULL,'Intereses a devengar PFP',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(731,0,NULL,NULL,0,1,437,NULL,8,NULL,'Imp. Ley 25413 Cred 0.6%',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(732,0,NULL,NULL,0,1,438,NULL,8,NULL,'Honorarios Directorio a Pagar',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(733,0,NULL,NULL,0,1,439,NULL,8,NULL,'Reserva para Futuras Inversiones',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(734,0,NULL,NULL,0,1,440,NULL,8,NULL,'TEAC - Trabajos Ejecutados a Certificar',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(735,0,NULL,NULL,0,1,444,NULL,8,NULL,'Banco Santander Rio Cta Cte',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(736,0,NULL,NULL,0,1,449,NULL,8,NULL,'Leasing',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(737,0,NULL,NULL,0,1,453,NULL,8,NULL,'Inversión Central Caribe',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(738,0,NULL,NULL,0,1,454,NULL,8,NULL,'Otras Inversiones',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(739,0,NULL,NULL,0,1,455,NULL,8,NULL,'Otros Créditos',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(740,0,NULL,NULL,0,1,456,NULL,8,NULL,'Provisión Honorarios Socio Gerente',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(741,0,NULL,NULL,0,1,459,NULL,8,NULL,'Moratoria SUSS a pagar',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(742,0,NULL,NULL,0,1,460,NULL,8,NULL,'Impuestos Municipales a Pagar',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(743,0,NULL,NULL,0,1,461,NULL,6,NULL,'Amortización Instalaciones',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(744,0,NULL,NULL,0,1,462,NULL,8,NULL,'Amortización Equipos de comput.',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(745,0,NULL,NULL,0,1,463,NULL,8,NULL,'Cuenta Particular Socio 3',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(746,0,NULL,NULL,0,1,464,NULL,8,NULL,'Cuenta Particular Socio 4',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(747,0,NULL,NULL,0,1,465,NULL,8,NULL,'Otras Reservas',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(748,0,NULL,NULL,0,1,466,NULL,8,NULL,'IGMP (Saldo a Favor)',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(749,0,NULL,NULL,0,1,468,NULL,8,NULL,'Productos en Proceso',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (750,0,NULL,NULL,0,1,469,NULL,8,NULL,'Depósitos en Garantía Socio Gerente',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(751,0,NULL,NULL,0,1,470,NULL,8,NULL,'Fondos Embargados',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(752,0,NULL,NULL,0,1,471,NULL,8,NULL,'Cuota Solid.',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(753,0,NULL,NULL,0,1,472,NULL,8,NULL,'Anticipo Honorarios Directores',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(754,0,NULL,NULL,0,1,473,NULL,8,NULL,'SICORE a Pagar',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(755,0,NULL,NULL,0,1,476,NULL,6,NULL,'RECPAM',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(756,0,NULL,NULL,0,1,478,NULL,6,NULL,'CO2 - Imp. Al Carbono',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:25:04',NULL),(757,0,NULL,6941,0,1,359,44719,1,NULL,'CAJA EN PESOS','00000000000',0,0,1,1,1,0,1,'2024-04-01 11:36:05','2024-04-01 11:36:05',NULL),(763,0,NULL,6941,0,1,1029,44719,2,NULL,'BANCO DE LA NACION ARGENTINA','00000000000',0,0,1,1,1,0,1,'2024-04-01 11:40:58','2024-04-01 11:40:58',NULL),(764,0,NULL,6941,0,1,1029,44719,1,NULL,'BANCO DE LA NACION ARGENTINA','00000000000',0,0,1,1,1,0,1,'2024-04-01 12:08:39','2024-04-01 12:08:39',NULL),(765,0,NULL,6941,0,1,1042,44719,1,NULL,'GS. A DEVOLVER CENTRO DE CAPITANES DE ULTRAMAR','00000000000',0,0,1,1,1,0,1,'2024-04-07 20:54:18','2024-04-07 20:54:18',NULL);

--
-- Table structure for table `cta_cte_tesoreria_detail`
--

CREATE TABLE `cta_cte_tesoreria_detail` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned DEFAULT NULL,
  `period_id` int(10) unsigned DEFAULT NULL,
  `saldo_id` int(10) unsigned NOT NULL,
  `monto` decimal(16,2) NOT NULL,
  `is_conciliado` tinyint(1) NOT NULL DEFAULT '0',
  `fecha` date DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cta_cte_tesoreria_detail_cta_cte_tesoreria_id_foreign` (`cta_cte_tesoreria_id`),
  KEY `cta_cte_tesoreria_detail_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  KEY `cta_cte_tesoreria_detail_person_id_foreign` (`person_id`),
  KEY `cta_cte_tesoreria_detail_period_id_foreign` (`period_id`),
  KEY `cta_cte_tesoreria_detail_saldo_id_foreign` (`saldo_id`),
  CONSTRAINT `cta_cte_tesoreria_detail_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `cta_cte_tesoreria_detail_cta_cte_tesoreria_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_id`) REFERENCES `cta_cte_tesoreria` (`id`),
  CONSTRAINT `cta_cte_tesoreria_detail_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `cta_cte_tesoreria_detail_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `cta_cte_tesoreria_detail_saldo_id_foreign` FOREIGN KEY (`saldo_id`) REFERENCES `conta_tipo_saldos` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=164 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_tesoreria_detail`
--

INSERT INTO `cta_cte_tesoreria_detail` VALUES (1,6941,2,757,44719,45594,1,0.00,0,'2024-04-01','2024-04-01 11:36:05','2024-04-01 11:36:05',NULL),(7,6941,8,763,44719,45594,1,0.00,0,'2024-04-01','2024-04-01 11:40:58','2024-04-01 11:40:58',NULL),(8,6941,9,57,44719,45594,1,6850.00,0,'2024-04-01','2024-04-01 11:43:05','2024-04-01 12:10:40','2024-04-01 12:10:40'),(9,6941,9,763,44719,45594,2,6850.00,0,'2024-04-01','2024-04-01 11:43:05','2024-04-01 12:10:40','2024-04-01 12:10:40'),(10,6941,10,57,44719,45577,1,4995.00,0,'2023-02-08','2024-04-01 11:47:22','2024-04-01 11:47:22',NULL),(11,6941,10,763,44719,45577,2,4995.00,0,'2023-02-08','2024-04-01 11:47:22','2024-04-01 11:47:22',NULL),(12,6941,11,57,44719,45577,1,328050.48,0,'2023-02-08','2024-04-01 12:04:50','2024-04-01 12:04:50',NULL),(13,6941,11,763,44719,45577,2,328050.48,0,'2023-02-08','2024-04-01 12:04:50','2024-04-01 12:04:50',NULL),(14,6941,12,764,44719,45594,1,0.00,0,'2024-04-01','2024-04-01 12:08:39','2024-04-01 12:08:39',NULL),(15,6941,13,57,44719,45577,1,7000.00,0,'2023-02-17','2024-04-01 12:09:35','2024-04-01 12:09:35',NULL),(16,6941,13,764,44719,45577,2,7000.00,0,'2023-02-17','2024-04-01 12:09:35','2024-04-01 12:09:35',NULL),(17,6941,14,57,44719,45577,1,6850.00,0,'2023-02-08','2024-04-01 12:11:27','2024-04-01 12:11:27',NULL),(18,6941,14,764,44719,45577,2,6850.00,0,'2023-02-08','2024-04-01 12:11:27','2024-04-01 12:11:27',NULL),(19,6941,15,57,44719,45577,1,87120.00,0,'2023-02-15','2024-04-01 12:14:31','2024-04-01 12:14:31',NULL),(20,6941,15,764,44719,45577,2,87120.00,0,'2023-02-15','2024-04-01 12:14:31','2024-04-01 12:14:31',NULL),(21,6941,16,57,44719,45577,1,34047.00,0,'2023-02-22','2024-04-01 12:16:56','2024-04-01 12:16:56',NULL),(22,6941,16,764,44719,45577,2,34047.00,0,'2023-02-22','2024-04-01 12:16:56','2024-04-01 12:16:56',NULL),(23,6941,17,57,44719,45578,1,303000.00,0,'2023-03-01','2024-04-03 11:13:10','2024-04-03 11:13:10',NULL),(24,6941,17,764,44719,45578,2,303000.00,0,'2023-03-01','2024-04-03 11:13:10','2024-04-03 11:13:10',NULL),(25,6941,18,57,44719,45579,1,40600.00,0,'2023-04-11','2024-04-03 15:17:07','2024-04-03 15:17:07',NULL),(26,6941,18,764,44719,45579,2,40600.00,0,'2023-04-11','2024-04-03 15:17:07','2024-04-03 15:17:07',NULL),(27,6941,19,57,44719,45579,1,28213.50,0,'2023-04-11','2024-04-03 15:18:14','2024-04-03 15:18:14',NULL),(28,6941,19,764,44719,45579,2,28213.50,0,'2023-04-11','2024-04-03 15:18:14','2024-04-03 15:18:14',NULL),(29,6941,20,57,44719,45579,1,65340.00,0,'2023-04-11','2024-04-03 15:19:04','2024-04-03 15:19:04',NULL),(30,6941,20,764,44719,45579,2,65340.00,0,'2023-04-11','2024-04-03 15:19:04','2024-04-03 15:19:04',NULL),(31,6941,21,57,44719,45579,1,6473.50,0,'2023-04-11','2024-04-03 15:19:47','2024-04-03 15:19:47',NULL),(32,6941,21,764,44719,45579,2,6473.50,0,'2023-04-11','2024-04-03 15:19:47','2024-04-03 15:19:47',NULL),(33,6941,22,57,44719,45579,1,43492.38,0,'2023-04-11','2024-04-03 15:25:55','2024-04-03 15:25:55',NULL),(34,6941,22,764,44719,45579,2,43492.38,0,'2023-04-11','2024-04-03 15:25:55','2024-04-03 15:25:55',NULL),(35,6941,23,57,44719,45579,1,7000.00,0,'2023-04-11','2024-04-03 15:26:38','2024-04-03 15:26:38',NULL),(36,6941,23,764,44719,45579,2,7000.00,0,'2023-04-11','2024-04-03 15:26:38','2024-04-03 15:26:38',NULL),(37,6941,24,57,44719,45579,1,26000.00,0,'2023-04-11','2024-04-03 15:28:53','2024-04-03 15:28:53',NULL),(38,6941,24,764,44719,45579,2,26000.00,0,'2023-04-11','2024-04-03 15:28:53','2024-04-03 15:28:53',NULL),(39,6941,25,57,44719,45579,1,34047.00,0,'2023-04-11','2024-04-03 15:31:06','2024-04-03 15:31:06',NULL),(40,6941,25,764,44719,45579,2,34047.00,0,'2023-04-11','2024-04-03 15:31:06','2024-04-03 15:31:06',NULL),(41,6941,26,57,44719,45579,1,9300.00,0,'2023-04-11','2024-04-04 13:59:06','2024-04-04 13:59:06',NULL),(42,6941,26,764,44719,45579,2,9300.00,0,'2023-04-11','2024-04-04 13:59:06','2024-04-04 13:59:06',NULL),(43,6941,27,57,44719,45580,1,6000.00,0,'2023-05-11','2024-04-04 14:39:25','2024-04-04 14:39:25',NULL);
INSERT INTO `cta_cte_tesoreria_detail` VALUES (44,6941,27,764,44719,45580,2,6000.00,0,'2023-05-11','2024-04-04 14:39:25','2024-04-04 14:39:25',NULL),(45,6941,28,57,44719,45580,1,14000.00,0,'2023-05-11','2024-04-04 14:40:37','2024-04-04 14:40:37',NULL),(46,6941,28,764,44719,45580,2,14000.00,0,'2023-05-11','2024-04-04 14:40:37','2024-04-04 14:40:37',NULL),(47,6941,29,57,44719,45580,1,43492.38,0,'2023-05-11','2024-04-04 14:41:18','2024-04-04 14:41:18',NULL),(48,6941,29,764,44719,45580,2,43492.38,0,'2023-05-11','2024-04-04 14:41:18','2024-04-04 14:41:18',NULL),(49,6941,30,57,44719,45579,1,17136.02,0,'2023-04-11','2024-04-04 14:41:56','2024-04-04 14:57:17','2024-04-04 14:57:17'),(50,6941,30,764,44719,45579,2,17136.02,0,'2023-04-11','2024-04-04 14:41:56','2024-04-04 14:57:17','2024-04-04 14:57:17'),(51,6941,31,57,44719,45580,1,46338.00,0,'2023-05-11','2024-04-04 14:43:45','2024-04-04 14:43:45',NULL),(52,6941,31,764,44719,45580,2,46338.00,0,'2023-05-11','2024-04-04 14:43:45','2024-04-04 14:43:45',NULL),(53,6941,32,57,44719,45580,1,33100.00,0,'2023-05-11','2024-04-04 14:45:39','2024-04-04 14:45:39',NULL),(54,6941,32,764,44719,45580,2,33100.00,0,'2023-05-11','2024-04-04 14:45:39','2024-04-04 14:45:39',NULL),(55,6941,33,57,44719,45580,1,59000.00,0,'2023-05-11','2024-04-04 14:47:03','2024-04-04 14:47:03',NULL),(56,6941,33,764,44719,45580,2,59000.00,0,'2023-05-11','2024-04-04 14:47:03','2024-04-04 14:47:03',NULL),(57,6941,34,57,44719,45580,1,19235.95,0,'2023-05-11','2024-04-04 14:47:45','2024-04-04 14:47:45',NULL),(58,6941,34,764,44719,45580,2,19235.95,0,'2023-05-11','2024-04-04 14:47:45','2024-04-04 14:47:45',NULL),(59,6941,35,57,44719,45580,1,92600.00,0,'2023-05-11','2024-04-04 14:48:25','2024-04-04 14:48:25',NULL),(60,6941,35,764,44719,45580,2,92600.00,0,'2023-05-11','2024-04-04 14:48:25','2024-04-04 14:48:25',NULL),(61,6941,36,57,44719,45580,1,100000.00,0,'2023-05-11','2024-04-04 14:49:17','2024-04-04 14:49:17',NULL),(62,6941,36,764,44719,45580,2,100000.00,0,'2023-05-11','2024-04-04 14:49:17','2024-04-04 14:49:17',NULL),(63,6941,37,57,44719,45580,1,108900.00,0,'2023-05-11','2024-04-04 14:50:12','2024-04-04 14:50:12',NULL),(64,6941,37,764,44719,45580,2,108900.00,0,'2023-05-11','2024-04-04 14:50:12','2024-04-04 14:50:12',NULL),(65,6941,38,57,44719,45580,1,17136.02,0,'2023-05-11','2024-04-04 14:57:49','2024-04-04 14:57:49',NULL),(66,6941,38,764,44719,45580,2,17136.02,0,'2023-05-11','2024-04-04 14:57:49','2024-04-04 14:57:49',NULL),(67,6941,39,57,44719,45581,1,69600.00,0,'2023-06-14','2024-04-04 16:35:07','2024-04-04 16:35:07',NULL),(68,6941,39,764,44719,45581,2,69600.00,0,'2023-06-14','2024-04-04 16:35:07','2024-04-04 16:35:07',NULL),(69,6941,40,57,44719,45580,1,12127.83,0,'2023-05-03','2024-04-04 16:36:14','2024-04-04 16:37:50','2024-04-04 16:37:50'),(70,6941,40,764,44719,45580,2,12127.83,0,'2023-05-03','2024-04-04 16:36:14','2024-04-04 16:37:50','2024-04-04 16:37:50'),(71,6941,41,57,44719,45581,1,46338.00,0,'2023-06-14','2024-04-04 16:37:13','2024-04-04 16:37:13',NULL),(72,6941,41,764,44719,45581,2,46338.00,0,'2023-06-14','2024-04-04 16:37:13','2024-04-04 16:37:13',NULL),(73,6941,42,57,44719,45581,1,12127.83,0,'2023-06-14','2024-04-04 16:38:18','2024-04-04 16:38:18',NULL),(74,6941,42,764,44719,45581,2,12127.83,0,'2023-06-14','2024-04-04 16:38:18','2024-04-04 16:38:18',NULL),(75,6941,43,57,44719,45581,1,9559.00,0,'2023-06-14','2024-04-04 16:48:32','2024-04-04 16:48:32',NULL),(76,6941,43,764,44719,45581,2,9559.00,0,'2023-06-14','2024-04-04 16:48:32','2024-04-04 16:48:32',NULL),(77,6941,44,57,44719,45581,1,30000.00,0,'2023-06-14','2024-04-04 16:49:11','2024-04-04 16:49:11',NULL),(78,6941,44,764,44719,45581,2,30000.00,0,'2023-06-14','2024-04-04 16:49:11','2024-04-04 16:49:11',NULL),(79,6941,45,57,44719,45581,1,20499.81,0,'2023-06-14','2024-04-04 16:49:54','2024-04-04 16:49:54',NULL),(80,6941,45,764,44719,45581,2,20499.81,0,'2023-06-14','2024-04-04 16:49:54','2024-04-04 16:49:54',NULL),(81,6941,46,57,44719,45581,1,72487.30,0,'2023-06-14','2024-04-04 16:50:54','2024-04-04 16:50:54',NULL);
INSERT INTO `cta_cte_tesoreria_detail` VALUES (82,6941,46,764,44719,45581,2,72487.30,0,'2023-06-14','2024-04-04 16:50:54','2024-04-04 16:50:54',NULL),(83,6941,47,57,44719,45581,1,145200.00,0,'2023-06-14','2024-04-04 16:51:31','2024-04-04 16:51:31',NULL),(84,6941,47,764,44719,45581,2,145200.00,0,'2023-06-14','2024-04-04 16:51:31','2024-04-04 16:51:31',NULL),(85,6941,48,57,44719,45582,1,118000.00,0,'2023-07-25','2024-04-04 20:51:59','2024-04-04 20:51:59',NULL),(86,6941,48,764,44719,45582,2,118000.00,0,'2023-07-25','2024-04-04 20:51:59','2024-04-04 20:51:59',NULL),(87,6941,49,57,44719,45582,1,140000.00,0,'2023-07-25','2024-04-04 20:52:57','2024-04-04 20:52:57',NULL),(88,6941,49,764,44719,45582,2,140000.00,0,'2023-07-25','2024-04-04 20:52:57','2024-04-04 20:52:57',NULL),(89,6941,50,57,44719,45582,1,150048.72,0,'2023-07-25','2024-04-04 20:53:44','2024-04-04 20:53:44',NULL),(90,6941,50,764,44719,45582,2,150048.72,0,'2023-07-25','2024-04-04 20:53:44','2024-04-04 20:53:44',NULL),(91,6941,51,57,44719,45582,1,12127.83,0,'2023-07-25','2024-04-04 20:54:30','2024-04-04 20:54:30',NULL),(92,6941,51,764,44719,45582,2,12127.83,0,'2023-07-25','2024-04-04 20:54:30','2024-04-04 20:54:30',NULL),(93,6941,52,57,44719,45582,1,46338.00,0,'2023-07-25','2024-04-04 20:55:16','2024-04-04 20:55:16',NULL),(94,6941,52,764,44719,45582,2,46338.00,0,'2023-07-25','2024-04-04 20:55:16','2024-04-04 20:55:16',NULL),(95,6941,53,57,44719,45582,1,26100.00,0,'2023-07-25','2024-04-04 20:56:21','2024-04-04 20:56:21',NULL),(96,6941,53,764,44719,45582,2,26100.00,0,'2023-07-25','2024-04-04 20:56:21','2024-04-04 20:56:21',NULL),(97,6941,54,57,44719,45582,1,52099.72,0,'2023-07-25','2024-04-04 20:57:14','2024-04-04 20:57:14',NULL),(98,6941,54,764,44719,45582,2,52099.72,0,'2023-07-25','2024-04-04 20:57:14','2024-04-04 20:57:14',NULL),(99,6941,55,57,44719,45582,1,21949.93,0,'2023-07-25','2024-04-04 20:57:56','2024-04-04 20:57:56',NULL),(100,6941,55,764,44719,45582,2,21949.93,0,'2023-07-25','2024-04-04 20:57:56','2024-04-04 20:57:56',NULL),(101,6941,56,57,44719,45582,1,72600.00,0,'2023-07-25','2024-04-04 20:58:55','2024-04-04 20:58:55',NULL),(102,6941,56,764,44719,45582,2,72600.00,0,'2023-07-25','2024-04-04 20:58:55','2024-04-04 20:58:55',NULL),(103,6941,57,57,44719,45582,1,58690.00,0,'2023-07-25','2024-04-04 20:59:32','2024-04-04 20:59:32',NULL),(104,6941,57,764,44719,45582,2,58690.00,0,'2023-07-25','2024-04-04 20:59:32','2024-04-04 20:59:32',NULL),(105,6941,58,57,44719,45583,1,66688.32,0,'2023-08-30','2024-04-05 13:40:09','2024-04-05 13:40:09',NULL),(106,6941,58,764,44719,45583,2,66688.32,0,'2023-08-30','2024-04-05 13:40:09','2024-04-05 13:40:09',NULL),(107,6941,59,57,44719,45583,1,8700.00,0,'2023-08-30','2024-04-05 13:41:57','2024-04-05 13:41:57',NULL),(108,6941,59,764,44719,45583,2,8700.00,0,'2023-08-30','2024-04-05 13:41:57','2024-04-05 13:41:57',NULL),(109,6941,60,57,44719,45583,1,26047.67,0,'2023-08-30','2024-04-05 13:42:39','2024-04-05 13:42:39',NULL),(110,6941,60,764,44719,45583,2,26047.67,0,'2023-08-30','2024-04-05 13:42:39','2024-04-05 13:42:39',NULL),(111,6941,61,57,44719,45583,1,46338.00,0,'2023-08-30','2024-04-05 13:43:18','2024-04-05 13:43:18',NULL),(112,6941,61,764,44719,45583,2,46338.00,0,'2023-08-30','2024-04-05 13:43:18','2024-04-05 13:43:18',NULL),(113,6941,62,57,44719,45583,1,25033.04,0,'2023-08-30','2024-04-05 13:43:56','2024-04-05 13:43:56',NULL),(114,6941,62,764,44719,45583,2,25033.04,0,'2023-08-30','2024-04-05 13:43:56','2024-04-05 13:43:56',NULL),(115,6941,63,57,44719,45583,1,59000.00,0,'2023-08-30','2024-04-05 13:44:35','2024-04-05 13:44:35',NULL),(116,6941,63,764,44719,45583,2,59000.00,0,'2023-08-30','2024-04-05 13:44:35','2024-04-05 13:44:35',NULL),(117,6941,64,57,44719,45583,1,70000.00,0,'2023-08-30','2024-04-05 13:45:10','2024-04-05 13:45:10',NULL),(118,6941,64,764,44719,45583,2,70000.00,0,'2023-08-30','2024-04-05 13:45:10','2024-04-05 13:45:10',NULL),(119,6941,65,57,44719,45583,1,54450.00,0,'2023-08-30','2024-04-05 13:46:01','2024-04-05 13:46:01',NULL);
INSERT INTO `cta_cte_tesoreria_detail` VALUES (120,6941,65,764,44719,45583,2,54450.00,0,'2023-08-30','2024-04-05 13:46:01','2024-04-05 13:46:01',NULL),(121,6941,66,57,44719,45583,1,5800.00,0,'2023-08-30','2024-04-05 13:54:46','2024-04-05 13:54:46',NULL),(122,6941,66,764,44719,45583,2,5800.00,0,'2023-08-30','2024-04-05 13:54:46','2024-04-05 13:54:46',NULL),(123,6941,67,57,44719,45584,1,60435.00,0,'2023-09-29','2024-04-07 11:06:57','2024-04-07 11:06:57',NULL),(124,6941,67,764,44719,45584,2,60435.00,0,'2023-09-29','2024-04-07 11:06:57','2024-04-07 11:06:57',NULL),(125,6941,68,57,44719,45594,1,33344.16,0,'2024-04-07','2024-04-07 11:07:40','2024-04-07 11:08:13','2024-04-07 11:08:13'),(126,6941,68,757,44719,45594,2,33344.16,0,'2024-04-07','2024-04-07 11:07:40','2024-04-07 11:08:13','2024-04-07 11:08:13'),(127,6941,69,57,44719,45584,1,33344.16,0,'2023-09-29','2024-04-07 11:08:54','2024-04-07 11:08:54',NULL),(128,6941,69,764,44719,45584,2,33344.16,0,'2023-09-29','2024-04-07 11:08:54','2024-04-07 11:08:54',NULL),(129,6941,70,57,44719,45584,1,19949.27,0,'2023-09-29','2024-04-07 11:09:27','2024-04-07 11:09:27',NULL),(130,6941,70,764,44719,45584,2,19949.27,0,'2023-09-29','2024-04-07 11:09:27','2024-04-07 11:09:27',NULL),(131,6941,71,57,44719,45584,1,59000.00,0,'2023-09-29','2024-04-07 11:10:12','2024-04-07 11:10:12',NULL),(132,6941,71,764,44719,45584,2,59000.00,0,'2023-09-29','2024-04-07 11:10:12','2024-04-07 11:10:12',NULL),(133,6941,72,57,44719,45584,1,18238.81,0,'2023-09-29','2024-04-07 11:10:49','2024-04-07 11:10:49',NULL),(134,6941,72,764,44719,45584,2,18238.81,0,'2023-09-29','2024-04-07 11:10:49','2024-04-07 11:10:49',NULL),(135,6941,73,57,44719,45584,1,46338.00,0,'2023-09-29','2024-04-07 11:11:51','2024-04-07 11:11:51',NULL),(136,6941,73,764,44719,45584,2,46338.00,0,'2023-09-29','2024-04-07 11:11:51','2024-04-07 11:11:51',NULL),(137,6941,74,57,44719,45584,1,26100.00,0,'2023-09-29','2024-04-07 11:13:07','2024-04-07 11:13:07',NULL),(138,6941,74,764,44719,45584,2,26100.00,0,'2023-09-29','2024-04-07 11:13:07','2024-04-07 11:13:07',NULL),(139,6941,75,57,44719,45584,1,70000.00,0,'2023-09-29','2024-04-07 11:13:43','2024-04-07 11:13:43',NULL),(140,6941,75,764,44719,45584,2,70000.00,0,'2023-09-29','2024-04-07 11:13:43','2024-04-07 11:13:43',NULL),(141,6941,76,57,44719,45584,1,72600.00,0,'2023-09-29','2024-04-07 11:14:17','2024-04-07 11:14:17',NULL),(142,6941,76,764,44719,45584,2,72600.00,0,'2023-09-29','2024-04-07 11:14:17','2024-04-07 11:14:17',NULL),(143,6941,77,765,44719,45594,1,0.00,0,'2024-04-07','2024-04-07 20:54:18','2024-04-07 20:54:18',NULL),(144,6941,78,57,44719,45584,1,74690.92,0,'2023-09-01','2024-04-07 20:55:49','2024-04-07 20:55:49',NULL),(145,6941,78,765,44719,45584,2,74690.92,0,'2023-09-01','2024-04-07 20:55:49','2024-04-07 20:55:49',NULL),(146,6941,79,57,44719,45584,1,82740.00,0,'2023-09-01','2024-04-07 20:57:09','2024-04-07 20:57:09',NULL),(147,6941,79,765,44719,45584,2,82740.00,0,'2023-09-01','2024-04-07 20:57:09','2024-04-07 20:57:09',NULL),(148,6941,80,57,44719,45584,1,26940.65,0,'2023-09-05','2024-04-07 20:58:03','2024-04-07 20:58:03',NULL),(149,6941,80,765,44719,45584,2,26940.65,0,'2023-09-05','2024-04-07 20:58:03','2024-04-07 20:58:03',NULL),(150,6941,81,57,44719,45584,1,26100.00,0,'2023-09-19','2024-04-07 20:59:45','2024-04-07 20:59:45',NULL),(151,6941,81,765,44719,45584,2,26100.00,0,'2023-09-19','2024-04-07 20:59:45','2024-04-07 20:59:45',NULL),(152,6941,82,57,44719,45584,1,77961.96,0,'2023-09-07','2024-04-07 21:02:07','2024-04-07 21:02:07',NULL),(153,6941,82,765,44719,45584,2,77961.96,0,'2023-09-07','2024-04-07 21:02:07','2024-04-07 21:02:07',NULL),(154,6941,83,57,44719,45584,1,59000.00,0,'2023-09-08','2024-04-07 21:02:56','2024-04-07 21:02:56',NULL),(155,6941,83,765,44719,45584,2,59000.00,0,'2023-09-08','2024-04-07 21:02:56','2024-04-07 21:02:56',NULL),(156,6941,84,57,44719,45584,1,18919.30,0,'2023-09-11','2024-04-07 21:04:23','2024-04-07 21:04:23',NULL),(157,6941,84,765,44719,45584,2,18919.30,0,'2023-09-11','2024-04-07 21:04:23','2024-04-07 21:04:23',NULL);
INSERT INTO `cta_cte_tesoreria_detail` VALUES (158,6941,85,57,44719,45584,1,46338.00,0,'2023-09-12','2024-04-07 21:06:13','2024-04-07 21:06:13',NULL),(159,6941,85,765,44719,45584,2,46338.00,0,'2023-09-12','2024-04-07 21:06:13','2024-04-07 21:06:13',NULL),(160,6941,86,57,44719,45584,1,72600.00,0,'2023-09-27','2024-04-07 21:06:52','2024-04-07 21:06:52',NULL),(161,6941,86,765,44719,45584,2,72600.00,0,'2023-09-27','2024-04-07 21:06:52','2024-04-07 21:06:52',NULL),(162,6941,87,57,44719,45584,1,100000.00,0,'2023-09-28','2024-04-07 21:08:15','2024-04-07 21:08:15',NULL),(163,6941,87,765,44719,45584,2,100000.00,0,'2023-09-28','2024-04-07 21:08:15','2024-04-07 21:08:15',NULL);

--
-- Table structure for table `ctacte_bancos`
--

CREATE TABLE `ctacte_bancos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `nombre` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `codigoBCRA` int(11) DEFAULT 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`)
) ENGINE=InnoDB AUTO_INCREMENT=82 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ctacte_bancos`
--

INSERT INTO `ctacte_bancos` VALUES (1,NULL,'BANCO DE GALICIA Y BUENOS AIRES S.A.',7,'30-50000173-5',NULL,NULL,NULL),(2,NULL,'BANCO DE LA NACION ARGENTINA',11,'30-50001091-2',NULL,NULL,NULL),(3,NULL,'BANCO DE LA PROVINCIA DE BUENOS AIRES',14,'33-99924210-9',NULL,NULL,NULL),(4,NULL,'INDUSTRIAL AND COMMERCIAL BANK OF CHINA',15,'30-70944784-6',NULL,NULL,NULL),(5,NULL,'CITIBANK N.A.',16,'30-50000562-5',NULL,NULL,NULL),(6,NULL,'BBVA BANCO FRANCES S.A.',17,'30-50000319-3',NULL,NULL,NULL),(7,NULL,'THE BANK OF TOKYO-MITSUBISHI UFJ, LTD.',18,'30-50001183-8',NULL,NULL,NULL),(8,NULL,'BANCO DE LA PROVINCIA DE CORDOBA S.A.',20,'30-99922856-5',NULL,NULL,NULL),(9,NULL,'BANCO SUPERVIELLE S.A.',27,'33-50000517-9',NULL,NULL,NULL),(10,NULL,'BANCO DE LA CIUDAD DE BUENOS AIRES',29,'30-99903208-3',NULL,NULL,NULL),(11,NULL,'BANCO PATAGONIA S.A.',34,'30-50000661-3',NULL,NULL,NULL),(12,NULL,'BANCO HIPOTECARIO S.A.',44,'30-50001107-2',NULL,NULL,NULL),(13,NULL,'BANCO DE SAN JUAN S.A.',45,'30-50000944-2',NULL,NULL,NULL),(14,NULL,'BANCO DEL TUCUMAN S.A.',60,'30-51794820-5',NULL,NULL,NULL),(15,NULL,'BANCO MUNICIPAL DE ROSARIO',65,'33-99918181-9',NULL,NULL,NULL),(16,NULL,'BANCO SANTANDER RIO S.A.',72,'30-50000845-4',NULL,NULL,NULL),(17,NULL,'BANCO DEL CHUBUT S.A.',83,'30-50001299-0',NULL,NULL,NULL),(18,NULL,'BANCO DE SANTA CRUZ S.A.',86,'30-50009880-1',NULL,NULL,NULL),(19,NULL,'BANCO DE LA PAMPA SOCIEDAD DE ECONOMÍA M',93,'30-50001251-6',NULL,NULL,NULL),(20,NULL,'BANCO DE CORRIENTES S.A.',94,'30-50001060-2',NULL,NULL,NULL),(21,NULL,'BANCO PROVINCIA DEL NEUQUÉN SOCIEDAD ANÓ',97,'30-50001404-7',NULL,NULL,NULL),(22,NULL,'BANCO INTERFINANZAS S.A.',147,'30-52271441-7',NULL,NULL,NULL),(23,NULL,'HSBC BANK ARGENTINA S.A.',150,'33-53718600-9',NULL,NULL,NULL),(24,NULL,'JPMORGAN CHASE BANK, NATIONAL ASSOCIATIO',165,'30-58313794-3',NULL,NULL,NULL),(25,NULL,'BANCO CREDICOOP COOPERATIVO LIMITADO',191,'30-57142135-2',NULL,NULL,NULL),(26,NULL,'BANCO DE VALORES S.A.',198,'30-57612427-5',NULL,NULL,NULL),(27,NULL,'BANCO ROELA S.A.',247,'30-53561044-0',NULL,NULL,NULL),(28,NULL,'BANCO MARIVA S.A.',254,'30-51642044-4',NULL,NULL,NULL),(29,NULL,'BANCO ITAU ARGENTINA S.A.',259,'30-58018941-1',NULL,NULL,NULL),(30,NULL,'BANK OF AMERICA, NATIONAL ASSOCIATION',262,'30-50005055-8',NULL,NULL,NULL),(31,NULL,'BNP PARIBAS',266,'30-58472756-6',NULL,NULL,NULL),(32,NULL,'BANCO PROVINCIA DE TIERRA DEL FUEGO',268,'30-57565578-1',NULL,NULL,NULL),(33,NULL,'BANCO DE LA REPUBLICA ORIENTAL DEL URUGU',269,'30-58833784-3',NULL,NULL,NULL),(34,NULL,'BANCO SAENZ S.A.',277,'30-53467243-4',NULL,NULL,NULL),(35,NULL,'BANCO MERIDIAN S.A.',281,'30-53448749-1',NULL,NULL,NULL),(36,NULL,'BANCO MACRO S.A.',285,'30-50001008-4',NULL,NULL,NULL),(37,NULL,'BANCO COMAFI SOCIEDAD ANONIMA',299,'30-60473101-8',NULL,NULL,NULL),(38,NULL,'BANCO DE INVERSION Y COMERCIO EXTERIOR S',300,'30-65112908-3',NULL,NULL,NULL),(39,NULL,'BANCO PIANO S.A.',301,'30-56915176-3',NULL,NULL,NULL),(40,NULL,'BANCO JULIO SOCIEDAD ANONIMA',305,'30-65744121-6',NULL,NULL,NULL),(41,NULL,'BANCO RIOJA SOCIEDAD ANONIMA UNIPERSONAL',309,'30-67185933-9',NULL,NULL,NULL),(42,NULL,'BANCO DEL SOL S.A.',310,'30-67793756-0',NULL,NULL,NULL),(43,NULL,'NUEVO BANCO DEL CHACO S. A.',311,'30-67015779-9',NULL,NULL,NULL),(44,NULL,'BANCO VOII S.A.',312,'30-54674163-6',NULL,NULL,NULL),(45,NULL,'BANCO DE FORMOSA S.A.',315,'30-67137590-0',NULL,NULL,NULL),(46,NULL,'BANCO CMF S.A.',319,'30-57661429-9',NULL,NULL,NULL),(47,NULL,'BANCO DE SANTIAGO DEL ESTERO S.A.',321,'33-68666464-9',NULL,NULL,NULL),(48,NULL,'BANCO INDUSTRIAL S.A.',322,'30-68502995-9',NULL,NULL,NULL),(49,NULL,'NUEVO BANCO DE SANTA FE SOCIEDAD ANONIMA',330,'30-69243266-1',NULL,NULL,NULL),(50,NULL,'BANCO CETELEM ARGENTINA S.A.',331,'30-69730636-2',NULL,NULL,NULL),(51,NULL,'BANCO DE SERVICIOS FINANCIEROS S.A.',332,'30-69726589-5',NULL,NULL,NULL),(52,NULL,'BANCO BRADESCO ARGENTINA S.A.U.',336,'30-70125555-7',NULL,NULL,NULL),(53,NULL,'BANCO DE SERVICIOS Y TRANSACCIONES S.A.',338,'30-70496099-5',NULL,NULL,NULL);
INSERT INTO `ctacte_bancos` VALUES (54,NULL,'RCI BANQUE S.A.',339,'30-70710834-3',NULL,NULL,NULL),(55,NULL,'BACS BANCO DE CREDITO Y SECURITIZACION S',340,'30-70722741-5',NULL,NULL,NULL),(56,NULL,'BANCO MASVENTAS S.A.',341,'30-54061826-3',NULL,NULL,NULL),(57,NULL,'BANCO WANAP S.A.',384,'30-71565463-2',NULL,NULL,NULL),(58,NULL,'NUEVO BANCO DE ENTRE RÍOS S.A.',386,'33-70799551-9',NULL,NULL,NULL),(59,NULL,'BANCO COLUMBIA S.A.',389,'30-51763749-8',NULL,NULL,NULL),(60,NULL,'BANCO BICA S.A.',426,'30-71233123-9',NULL,NULL,NULL),(61,NULL,'BANCO COINAG S.A.',431,'30-71419596-0',NULL,NULL,NULL),(62,NULL,'BANCO DE COMERCIO S.A.',432,'30-54203363-7',NULL,NULL,NULL),(63,NULL,'FORD CREDIT COMPAÑIA FINANCIERA S.A.',44059,'30-51654454-2',NULL,NULL,NULL),(64,NULL,'COMPAÑIA FINANCIERA ARGENTINA S.A.',44077,'30-53800640-4',NULL,NULL,NULL),(65,NULL,'VOLKWAGEN FINANCIAL SERVICES CIA.FIN.S.A',44088,'30-68241957-8',NULL,NULL,NULL),(66,NULL,'CORDIAL COMPAÑÍA FINANCIERA S.A.',44090,'30-70181085-2',NULL,NULL,NULL),(67,NULL,'FCA COMPAÑIA FINANCIERA S.A.',44092,'30-69230488-4',NULL,NULL,NULL),(68,NULL,'GPAT COMPAÑIA FINANCIERA S.A.',44093,'30-67856482-2',NULL,NULL,NULL),(69,NULL,'MERCEDES-BENZ COMPAÑÍA FINANCIERA ARGENT',44094,'30-70700229-4',NULL,NULL,NULL),(70,NULL,'ROMBO COMPAÑÍA FINANCIERA S.A.',44095,'33-70712490-9',NULL,NULL,NULL),(71,NULL,'JOHN DEERE CREDIT COMPAÑÍA FINANCIERA S.',44096,'30-70702485-9',NULL,NULL,NULL),(72,NULL,'PSA FINANCE ARGENTINA COMPAÑÍA FINANCIER',44098,'30-70784736-7',NULL,NULL,NULL),(73,NULL,'TOYOTA COMPAÑÍA FINANCIERA DE ARGENTINA',44099,'30-70900042-6',NULL,NULL,NULL),(74,NULL,'FINANDINO COMPAÑIA FINANCIERA S.A.',44100,'30-71259240-7',NULL,NULL,NULL),(75,NULL,'MONTEMAR COMPAÑIA FINANCIERA S.A.',45056,'30-58138551-6',NULL,NULL,NULL),(76,NULL,'MULTIFINANZAS COMPAÑIA FINANCIERA S.A.',45072,'30-62828435-7',NULL,NULL,NULL),(77,NULL,'CAJA DE CREDITO \"CUENCA\" COOPERATIVA LIM',65203,'30-71622694-4',NULL,NULL,NULL),(78,NULL,'MERCADO PAGO',NULL,NULL,NULL,NULL,NULL),(79,NULL,'UALA',NULL,NULL,NULL,NULL,NULL),(80,NULL,'ICBC',NULL,NULL,NULL,NULL,NULL),(81,NULL,'BMA SAU',NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `ctacte_bancos_datos`
--

CREATE TABLE `ctacte_bancos_datos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cuenta_conta_id` int(10) unsigned DEFAULT NULL,
  `nombre` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cuit` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `titular` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cuenta` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `num_cuenta` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cbu` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `alias` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ctacte_bancos_datos_cuenta_conta_id_foreign` (`cuenta_conta_id`),
  CONSTRAINT `ctacte_bancos_datos_cuenta_conta_id_foreign` FOREIGN KEY (`cuenta_conta_id`) REFERENCES `conta_plan_cuenta` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ctacte_bancos_datos`
--

INSERT INTO `ctacte_bancos_datos` VALUES (1,359,'santander rio','30-50000845-4','DANGELO FEDERICO','CTA UNICA','204-362546/4','0720204188000036254640',NULL,1,'2022-04-27 11:45:00','2022-04-27 11:56:05');

--
-- Table structure for table `ctacte_cheques`
--

CREATE TABLE `ctacte_cheques` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `asiento_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cuenta_conta_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_detail_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_cliente_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_cliente_id2` int(10) unsigned DEFAULT NULL,
  `cta_cte_cliente_detail_id` int(10) unsigned DEFAULT NULL,
  `nf_cta_cte_id2` int(10) unsigned DEFAULT NULL,
  `nf_cta_cte_id` int(10) unsigned DEFAULT NULL,
  `monto` decimal(16,2) DEFAULT NULL,
  `cheque3ros` tinyint(1) NOT NULL DEFAULT '0',
  `cheque_emitidos` tinyint(1) NOT NULL DEFAULT '0',
  `fecha` date DEFAULT NULL,
  `fecha_cobro` date DEFAULT NULL,
  `banco_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned DEFAULT NULL,
  `cuit` text COLLATE utf8mb4_unicode_ci,
  `titular` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `abierto_cruzado` int(11) NOT NULL DEFAULT '1',
  `is_no_a_la_orden` tinyint(1) NOT NULL DEFAULT '0',
  `numero` int(10) unsigned DEFAULT NULL,
  `foto` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comentario` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` int(11) 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 `ctacte_cheques_asiento_id_foreign` (`asiento_id`),
  KEY `ctacte_cheques_cuenta_conta_id_foreign` (`cuenta_conta_id`),
  KEY `ctacte_cheques_banco_id_foreign` (`banco_id`),
  KEY `ctacte_cheques_person_id_foreign` (`person_id`),
  KEY `ctacte_cheques_cta_cte_cliente_id2_foreign` (`cta_cte_cliente_id2`),
  KEY `ctacte_cheques_cta_cte_cliente_id_foreign` (`cta_cte_cliente_id`),
  KEY `cta_cte_tesorer_id` (`cta_cte_tesoreria_id`),
  KEY `ctacte_cheques_nf_cta_cte_id_foreign` (`nf_cta_cte_id`),
  KEY `ctacte_cheques_nf_cta_cte_id2_foreign` (`nf_cta_cte_id2`),
  KEY `ctacte_cheques_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  KEY `ctacte_cheques_cta_cte_cliente_detail_id_foreign` (`cta_cte_cliente_detail_id`),
  KEY `ctacte_cheques_cta_cte_tesoreria_detail_id_foreign` (`cta_cte_tesoreria_detail_id`),
  CONSTRAINT `cta_cte_tesorer_id` FOREIGN KEY (`cta_cte_tesoreria_id`) REFERENCES `cta_cte_tesoreria` (`id`),
  CONSTRAINT `ctacte_cheques_banco_id_foreign` FOREIGN KEY (`banco_id`) REFERENCES `ctacte_bancos` (`id`),
  CONSTRAINT `ctacte_cheques_cta_cte_cliente_detail_id_foreign` FOREIGN KEY (`cta_cte_cliente_detail_id`) REFERENCES `cta_cte_cliente_details` (`id`),
  CONSTRAINT `ctacte_cheques_cta_cte_cliente_id2_foreign` FOREIGN KEY (`cta_cte_cliente_id2`) REFERENCES `cta_cte_cliente` (`id`),
  CONSTRAINT `ctacte_cheques_cta_cte_cliente_id_foreign` FOREIGN KEY (`cta_cte_cliente_id`) REFERENCES `cta_cte_cliente` (`id`),
  CONSTRAINT `ctacte_cheques_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `ctacte_cheques_cta_cte_tesoreria_detail_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_detail_id`) REFERENCES `cta_cte_tesoreria_detail` (`id`),
  CONSTRAINT `ctacte_cheques_cuenta_conta_id_foreign` FOREIGN KEY (`cuenta_conta_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `ctacte_cheques_nf_cta_cte_id2_foreign` FOREIGN KEY (`nf_cta_cte_id2`) REFERENCES `nf_cta_cte` (`id`),
  CONSTRAINT `ctacte_cheques_nf_cta_cte_id_foreign` FOREIGN KEY (`nf_cta_cte_id`) REFERENCES `nf_cta_cte` (`id`),
  CONSTRAINT `ctacte_cheques_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ctacte_cheques`
--


--
-- Table structure for table `ctactegastos_centrocosto`
--

CREATE TABLE `ctactegastos_centrocosto` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `nombre` varchar(255) 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=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ctactegastos_centrocosto`
--

INSERT INTO `ctactegastos_centrocosto` VALUES (1,NULL,'OFICINA',NULL,NULL,NULL),(2,NULL,'FIJO',NULL,NULL,NULL),(3,NULL,'VARIABLE',NULL,NULL,NULL),(4,NULL,'GISELA',NULL,NULL,NULL),(5,NULL,'LIA',NULL,NULL,NULL),(6,NULL,'PADRES',NULL,NULL,NULL),(7,NULL,'CASA',NULL,NULL,NULL),(8,NULL,'VANESA',NULL,NULL,NULL);

--
-- Table structure for table `ctactegastos_cuenta_tipo`
--

CREATE TABLE `ctactegastos_cuenta_tipo` (
  `idCuentaTipo` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned DEFAULT NULL,
  `idTipo` 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 (`idCuentaTipo`),
  KEY `ctactegastos_cuenta_tipo_idtipo_foreign` (`idTipo`),
  KEY `ctactegastos_cuenta_tipo_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  CONSTRAINT `ctactegastos_cuenta_tipo_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `ctactegastos_cuenta_tipo_idtipo_foreign` FOREIGN KEY (`idTipo`) REFERENCES `ctactegastos_tiposdegastos` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ctactegastos_cuenta_tipo`
--

INSERT INTO `ctactegastos_cuenta_tipo` VALUES (1,NULL,NULL,3,NULL,NULL,NULL),(2,NULL,NULL,6,NULL,NULL,NULL),(3,NULL,NULL,3,NULL,NULL,NULL),(4,NULL,NULL,4,NULL,NULL,NULL),(5,NULL,NULL,5,NULL,NULL,NULL),(6,NULL,NULL,3,NULL,NULL,NULL),(7,NULL,NULL,4,NULL,NULL,NULL),(8,NULL,NULL,3,NULL,NULL,NULL),(9,NULL,NULL,4,NULL,NULL,NULL),(10,NULL,NULL,7,NULL,NULL,NULL),(11,NULL,NULL,8,NULL,NULL,NULL),(12,NULL,NULL,3,NULL,NULL,NULL),(13,NULL,NULL,3,NULL,NULL,NULL),(14,NULL,NULL,4,NULL,NULL,NULL),(15,NULL,NULL,1,NULL,NULL,NULL),(16,NULL,NULL,2,NULL,NULL,NULL),(17,NULL,NULL,5,NULL,NULL,NULL);

--
-- Table structure for table `ctactegastos_mensuales`
--

CREATE TABLE `ctactegastos_mensuales` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `CuentaTipo_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned NOT NULL DEFAULT '13',
  `TipoDeGasto_id` int(10) unsigned NOT NULL,
  `CentroCosto_id` int(10) unsigned NOT NULL,
  `gasto_cta_cte_tesoreria_cuenta_id` int(10) unsigned NOT NULL DEFAULT '13',
  `monto` decimal(16,2) DEFAULT NULL,
  `comentario` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` int(11) 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 `ctactegastos_mensuales_cuentatipo_id_foreign` (`CuentaTipo_id`),
  KEY `ctactegastos_mensuales_tipodegasto_id_foreign` (`TipoDeGasto_id`),
  KEY `ctactegastos_mensuales_centrocosto_id_foreign` (`CentroCosto_id`),
  KEY `ctactegastos_mensuales_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  KEY `ctactegastos_mensuales_gasto_cta_cte_tesoreria_cuenta_id_foreign` (`gasto_cta_cte_tesoreria_cuenta_id`),
  CONSTRAINT `ctactegastos_mensuales_centrocosto_id_foreign` FOREIGN KEY (`CentroCosto_id`) REFERENCES `ctactegastos_centrocosto` (`id`),
  CONSTRAINT `ctactegastos_mensuales_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `ctactegastos_mensuales_cuentatipo_id_foreign` FOREIGN KEY (`CuentaTipo_id`) REFERENCES `ctactegastos_cuenta_tipo` (`idCuentaTipo`),
  CONSTRAINT `ctactegastos_mensuales_gasto_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`gasto_cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `ctactegastos_mensuales_tipodegasto_id_foreign` FOREIGN KEY (`TipoDeGasto_id`) REFERENCES `ctactegastos_tiposdegastos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ctactegastos_mensuales`
--


--
-- Table structure for table `ctactegastos_tiposdegastos`
--

CREATE TABLE `ctactegastos_tiposdegastos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `nombre` varchar(255) 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`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ctactegastos_tiposdegastos`
--

INSERT INTO `ctactegastos_tiposdegastos` VALUES (1,NULL,'Oficina',NULL,NULL,NULL),(2,NULL,'Personales',NULL,NULL,NULL),(3,NULL,'Tarjeta VISA',NULL,NULL,NULL),(4,NULL,'Tarjeta Mastercard',NULL,NULL,NULL),(5,NULL,'Debito Automatico',NULL,NULL,NULL),(6,NULL,'American Express',NULL,NULL,NULL),(7,NULL,'Tarjeta Shopping',NULL,NULL,NULL),(8,NULL,'Tarjeta Cencosud',NULL,NULL,NULL),(9,NULL,'Tarjeta Coto',NULL,NULL,NULL),(10,NULL,'Tarjeta Nativa',NULL,NULL,NULL);

--
-- Table structure for table `cursos`
--

CREATE TABLE `cursos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `descripcion` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `fecha` date DEFAULT NULL,
  `hora` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `profesor` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cant_clases` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `duracion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `adjuntos` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `link_zoom` longtext COLLATE utf8mb4_unicode_ci,
  `cod_zoom` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contraseña_zoom` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `link_youtube` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `materiales` 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 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cursos`
--


--
-- Table structure for table `cursos_detail`
--

CREATE TABLE `cursos_detail` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `curso_id` int(10) unsigned NOT NULL,
  `field_name1` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `celular` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cursos_detail_curso_id_foreign` (`curso_id`),
  CONSTRAINT `cursos_detail_curso_id_foreign` FOREIGN KEY (`curso_id`) REFERENCES `cursos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cursos_detail`
--


--
-- Table structure for table `data_types`
--

CREATE TABLE `data_types` (
  `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 `data_types_description_unique` (`description`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `data_types`
--

INSERT INTO `data_types` VALUES (1,'Comprobantes XLS',1,'Importación','XLS','data/imports/receipts/xls',NULL,NULL),(2,'CITI-Ventas',1,'Importación','TXT','data/imports/receipts/CitiVentas',NULL,NULL),(3,'CITI Compras',2,'Exportación','TXT','data/exports/receipts/citi',NULL,NULL),(4,'CITI Ventas',2,'Exportación','TXT','data/exports/receipts/CitiVentasExport',NULL,NULL),(5,'Convenio Multilateral',2,'Exportación','TXT','data/exports/receipts/convenio',NULL,NULL),(6,'Libro IVA Digital',2,'Exportación','TXT','data/exports/receipts/libro_iva_digital',NULL,'2019-11-20 21:43:44'),(7,'Mis Comprobantes',1,'Importacion','','data/imports/receipts/mis_comprobantes',NULL,NULL),(8,'Consulta AFIP',3,'AFIP','','data/afip/index','2019-12-06 14:49:55','2019-12-06 14:49:55');

--
-- Table structure for table `dc_estados`
--

CREATE TABLE `dc_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=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_estados`
--

INSERT INTO `dc_estados` VALUES (1,NULL,'BORRADOR',1,NULL,'2023-08-07 00:08:25',NULL),(2,NULL,'TERMINADO',1,NULL,'2023-08-07 00:08:25',NULL),(3,NULL,'ELIMINADO',1,NULL,'2023-08-13 09:23:01',NULL),(4,NULL,'PAGADO',1,NULL,'2023-08-07 00:08:25','2023-08-07 00:08:25'),(5,NULL,'CONCILIADO',1,NULL,'2023-08-07 00:08:25','2023-08-07 00:08:25');

--
-- Table structure for table `dc_estados_decisiones`
--

CREATE TABLE `dc_estados_decisiones` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_tipo_id` bigint(20) 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`),
  KEY `dc_estados_decisiones_dc_orden_tipo_id_foreign` (`dc_orden_tipo_id`),
  CONSTRAINT `dc_estados_decisiones_dc_orden_tipo_id_foreign` FOREIGN KEY (`dc_orden_tipo_id`) REFERENCES `dc_ordenes_tipos` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_estados_decisiones`
--

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

--
-- Table structure for table `dc_firmas`
--

CREATE TABLE `dc_firmas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `show_firmante_dc` tinyint(1) NOT NULL DEFAULT '0',
  `show_create_dc` tinyint(1) NOT NULL DEFAULT '0',
  `faltan_firmas` tinyint(1) 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`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_firmas`
--

INSERT INTO `dc_firmas` VALUES (1,NULL,'NO',1,1,0,1,NULL,'2023-08-07 00:08:25',NULL),(2,NULL,'RECHAZADO',1,1,0,1,NULL,'2023-08-07 00:08:25',NULL),(3,NULL,'ACEPTADO',1,0,0,1,NULL,'2023-08-07 00:08:25',NULL),(4,NULL,'FALTAN FIRMAS',0,0,1,1,'2023-08-07 00:08:25','2023-08-07 00:08:25',NULL),(5,NULL,'EMITIDO',1,0,0,1,'2023-10-12 08:18:17','2023-10-12 08:18:17',NULL);

--
-- Table structure for table `dc_firmas_ordenes`
--

CREATE TABLE `dc_firmas_ordenes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `user_id_que_firma` int(10) unsigned NOT NULL,
  `dc_firma_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 `dc_firmas_ordenes_person_id_foreign` (`person_id`),
  KEY `dc_firmas_ordenes_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_firmas_ordenes_dc_firma_id_foreign` (`dc_firma_id`),
  CONSTRAINT `dc_firmas_ordenes_dc_firma_id_foreign` FOREIGN KEY (`dc_firma_id`) REFERENCES `dc_firmas` (`id`),
  CONSTRAINT `dc_firmas_ordenes_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_firmas_ordenes_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_firmas_ordenes`
--


--
-- Table structure for table `dc_firmas_reglas`
--

CREATE TABLE `dc_firmas_reglas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `importe` decimal(16,2) NOT NULL,
  `grupos_users_ids` 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 `dc_firmas_reglas_person_id_foreign` (`person_id`),
  KEY `dc_firmas_reglas_dc_orden_id_foreign` (`dc_orden_id`),
  CONSTRAINT `dc_firmas_reglas_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_firmas_reglas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_firmas_reglas`
--


--
-- Table structure for table `dc_orden_de_pago`
--

CREATE TABLE `dc_orden_de_pago` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT '2023-09-28 16:38:44',
  `dc_orden_id` bigint(20) unsigned NOT NULL DEFAULT '10',
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `request` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `dc_estado_id` bigint(20) unsigned NOT NULL DEFAULT '1',
  `dc_firma_id` bigint(20) unsigned 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 `dc_orden_de_pago_person_id_foreign` (`person_id`),
  KEY `dc_orden_de_pago_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `dc_orden_de_pago_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_orden_de_pago_dc_firma_id_foreign` (`dc_firma_id`),
  KEY `dc_orden_de_pago_dc_estado_id_foreign` (`dc_estado_id`),
  CONSTRAINT `dc_orden_de_pago_dc_estado_id_foreign` FOREIGN KEY (`dc_estado_id`) REFERENCES `dc_estados` (`id`),
  CONSTRAINT `dc_orden_de_pago_dc_firma_id_foreign` FOREIGN KEY (`dc_firma_id`) REFERENCES `dc_firmas` (`id`),
  CONSTRAINT `dc_orden_de_pago_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_orden_de_pago_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `dc_orden_de_pago_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 `dc_orden_de_pago`
--


--
-- Table structure for table `dc_orden_de_pago_cheques`
--

CREATE TABLE `dc_orden_de_pago_cheques` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_de_pago_id` bigint(20) unsigned NOT NULL,
  `ctacte_cheque_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 `dc_orden_de_pago_cheques_dc_orden_de_pago_id_foreign` (`dc_orden_de_pago_id`),
  KEY `dc_orden_de_pago_cheques_ctacte_cheque_id_foreign` (`ctacte_cheque_id`),
  CONSTRAINT `dc_orden_de_pago_cheques_ctacte_cheque_id_foreign` FOREIGN KEY (`ctacte_cheque_id`) REFERENCES `ctacte_cheques` (`id`),
  CONSTRAINT `dc_orden_de_pago_cheques_dc_orden_de_pago_id_foreign` FOREIGN KEY (`dc_orden_de_pago_id`) REFERENCES `dc_orden_de_pago` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_orden_de_pago_cheques`
--


--
-- Table structure for table `dc_orden_de_pago_receipts`
--

CREATE TABLE `dc_orden_de_pago_receipts` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_de_pago_id` bigint(20) unsigned NOT NULL,
  `receipt_id` int(10) unsigned DEFAULT NULL,
  `importe` decimal(16,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_orden_de_pago_receipts_dc_orden_de_pago_id_foreign` (`dc_orden_de_pago_id`),
  KEY `dc_orden_de_pago_receipts_receipt_id_foreign` (`receipt_id`),
  CONSTRAINT `dc_orden_de_pago_receipts_dc_orden_de_pago_id_foreign` FOREIGN KEY (`dc_orden_de_pago_id`) REFERENCES `dc_orden_de_pago` (`id`),
  CONSTRAINT `dc_orden_de_pago_receipts_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_orden_de_pago_receipts`
--


--
-- Table structure for table `dc_orden_files`
--

CREATE TABLE `dc_orden_files` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `file` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `original_name` text 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 `dc_orden_files_dc_orden_id_foreign` (`dc_orden_id`),
  CONSTRAINT `dc_orden_files_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_orden_files`
--


--
-- Table structure for table `dc_ordenes`
--

CREATE TABLE `dc_ordenes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_tipo_id` bigint(20) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned DEFAULT NULL,
  `titulo` text COLLATE utf8mb4_unicode_ci,
  `sucursal` int(11) NOT NULL DEFAULT '1',
  `numero` int(11) NOT NULL,
  `numero_text` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sector` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `solicitante` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `syj_empleado_id` int(10) unsigned DEFAULT NULL,
  `fecha` date NOT NULL,
  `fecha_entrega` date DEFAULT NULL,
  `fecha_asignacion` datetime DEFAULT NULL,
  `fecha_cumplido` datetime DEFAULT NULL,
  `condicion_venta_id` int(10) unsigned DEFAULT NULL,
  `is_pago_adelantado` tinyint(1) DEFAULT NULL,
  `is_garantia` tinyint(1) NOT NULL DEFAULT '0',
  `forma_de_entrega_id` int(10) unsigned DEFAULT NULL,
  `plazo_de_pago_id` int(10) unsigned DEFAULT NULL,
  `cantidades` decimal(16,2) NOT NULL,
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cotizacion` decimal(16,2) NOT NULL DEFAULT '1.00',
  `neto` decimal(16,2) NOT NULL,
  `iva` decimal(16,2) NOT NULL,
  `total` decimal(16,2) NOT NULL,
  `facturada` decimal(16,2) NOT NULL DEFAULT '0.00',
  `is_pagada` tinyint(1) NOT NULL,
  `garantia` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `mant_oferta` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comen_para_cliente` text COLLATE utf8mb4_unicode_ci,
  `comentario` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `dc_ov_origen_id` bigint(20) unsigned DEFAULT NULL,
  `dc_ov_status_cobranza_id` bigint(20) unsigned DEFAULT NULL,
  `dc_ov_status_factura_id` bigint(20) unsigned DEFAULT NULL,
  `dc_ov_status_entrega_id` bigint(20) unsigned DEFAULT NULL,
  `dc_ov_status_venta_id` bigint(20) unsigned DEFAULT NULL,
  `dc_estado_id` bigint(20) unsigned NOT NULL,
  `dc_estado_decision_id` bigint(20) unsigned DEFAULT NULL,
  `inv_orden_trabajo_id` bigint(20) unsigned DEFAULT NULL,
  `conta_cc_id` bigint(20) unsigned DEFAULT NULL,
  `origendestinoable_type` text COLLATE utf8mb4_unicode_ci,
  `origendestinoable_id` int(10) unsigned DEFAULT NULL,
  `is_multiples_ot` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `dc_orden_origen_destino_id` bigint(20) unsigned DEFAULT NULL,
  `is_completado` tinyint(1) NOT NULL DEFAULT '0',
  `is_credit` tinyint(1) DEFAULT NULL,
  `dc_firma_id` bigint(20) unsigned 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 `dc_ordenes_dc_orden_tipo_id_foreign` (`dc_orden_tipo_id`),
  KEY `dc_ordenes_person_id_foreign` (`person_id`),
  KEY `dc_ordenes_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `dc_ordenes_dc_estado_id_foreign` (`dc_estado_id`),
  KEY `dc_ordenes_conta_cc_id_foreign` (`conta_cc_id`),
  KEY `dc_ordenes_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  KEY `dc_ordenes_dc_orden_origen_destino_id_foreign` (`dc_orden_origen_destino_id`),
  KEY `dc_ordenes_moneda_id_foreign` (`moneda_id`),
  KEY `dc_ordenes_dc_firma_id_foreign` (`dc_firma_id`),
  KEY `dc_ordenes_syj_empleado_id_foreign` (`syj_empleado_id`),
  KEY `dc_ordenes_dc_estado_decision_id_foreign` (`dc_estado_decision_id`),
  KEY `dc_ordenes_dc_ov_origen_id_foreign` (`dc_ov_origen_id`),
  KEY `dc_ordenes_dc_ov_status_venta_id_foreign` (`dc_ov_status_venta_id`),
  KEY `dc_ordenes_dc_ov_status_entrega_id_foreign` (`dc_ov_status_entrega_id`),
  KEY `dc_ordenes_dc_ov_status_factura_id_foreign` (`dc_ov_status_factura_id`),
  KEY `dc_ordenes_dc_ov_status_cobranza_id_foreign` (`dc_ov_status_cobranza_id`),
  CONSTRAINT `dc_ordenes_conta_cc_id_foreign` FOREIGN KEY (`conta_cc_id`) REFERENCES `conta_centro_costos` (`id`),
  CONSTRAINT `dc_ordenes_dc_estado_decision_id_foreign` FOREIGN KEY (`dc_estado_decision_id`) REFERENCES `dc_estados_decisiones` (`id`),
  CONSTRAINT `dc_ordenes_dc_estado_id_foreign` FOREIGN KEY (`dc_estado_id`) REFERENCES `dc_estados` (`id`),
  CONSTRAINT `dc_ordenes_dc_firma_id_foreign` FOREIGN KEY (`dc_firma_id`) REFERENCES `dc_firmas` (`id`),
  CONSTRAINT `dc_ordenes_dc_orden_origen_destino_id_foreign` FOREIGN KEY (`dc_orden_origen_destino_id`) REFERENCES `dc_ordenes_origen_destino` (`id`),
  CONSTRAINT `dc_ordenes_dc_orden_tipo_id_foreign` FOREIGN KEY (`dc_orden_tipo_id`) REFERENCES `dc_ordenes_tipos` (`id`),
  CONSTRAINT `dc_ordenes_dc_ov_origen_id_foreign` FOREIGN KEY (`dc_ov_origen_id`) REFERENCES `dc_ov_origenes` (`id`),
  CONSTRAINT `dc_ordenes_dc_ov_status_cobranza_id_foreign` FOREIGN KEY (`dc_ov_status_cobranza_id`) REFERENCES `dc_ov_status_cobranza` (`id`),
  CONSTRAINT `dc_ordenes_dc_ov_status_entrega_id_foreign` FOREIGN KEY (`dc_ov_status_entrega_id`) REFERENCES `dc_ov_status_entrega` (`id`),
  CONSTRAINT `dc_ordenes_dc_ov_status_factura_id_foreign` FOREIGN KEY (`dc_ov_status_factura_id`) REFERENCES `dc_ov_status_factura` (`id`),
  CONSTRAINT `dc_ordenes_dc_ov_status_venta_id_foreign` FOREIGN KEY (`dc_ov_status_venta_id`) REFERENCES `dc_ov_status_venta` (`id`),
  CONSTRAINT `dc_ordenes_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `dc_ordenes_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `dc_ordenes_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `dc_ordenes_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `dc_ordenes_syj_empleado_id_foreign` FOREIGN KEY (`syj_empleado_id`) REFERENCES `syj_empleados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes`
--


--
-- Table structure for table `dc_ordenes_compra_coti`
--

CREATE TABLE `dc_ordenes_compra_coti` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_coti_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 `dc_ordenes_compra_coti_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_compra_coti_dc_orden_coti_id_foreign` (`dc_orden_coti_id`),
  CONSTRAINT `dc_ordenes_compra_coti_dc_orden_coti_id_foreign` FOREIGN KEY (`dc_orden_coti_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_compra_coti_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_compra_coti`
--


--
-- Table structure for table `dc_ordenes_compra_req`
--

CREATE TABLE `dc_ordenes_compra_req` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `dc_orden_req_id` bigint(20) unsigned NOT NULL,
  `dc_orden_req_detail_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 `dc_ordenes_compra_req_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_compra_req_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_ordenes_compra_req_dc_orden_req_id_foreign` (`dc_orden_req_id`),
  KEY `dc_ordenes_compra_req_dc_orden_req_detail_id_foreign` (`dc_orden_req_detail_id`),
  CONSTRAINT `dc_ordenes_compra_req_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_compra_req_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_compra_req_dc_orden_req_detail_id_foreign` FOREIGN KEY (`dc_orden_req_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_compra_req_dc_orden_req_id_foreign` FOREIGN KEY (`dc_orden_req_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_compra_req`
--


--
-- Table structure for table `dc_ordenes_cotizacion_req`
--

CREATE TABLE `dc_ordenes_cotizacion_req` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `dc_orden_req_id` bigint(20) unsigned NOT NULL,
  `dc_orden_req_detail_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 `dc_ordenes_cotizacion_req_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_cotizacion_req_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_ordenes_cotizacion_req_dc_orden_req_id_foreign` (`dc_orden_req_id`),
  KEY `dc_ordenes_cotizacion_req_dc_orden_req_detail_id_foreign` (`dc_orden_req_detail_id`),
  CONSTRAINT `dc_ordenes_cotizacion_req_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_cotizacion_req_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_cotizacion_req_dc_orden_req_detail_id_foreign` FOREIGN KEY (`dc_orden_req_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_cotizacion_req_dc_orden_req_id_foreign` FOREIGN KEY (`dc_orden_req_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_cotizacion_req`
--


--
-- Table structure for table `dc_ordenes_details`
--

CREATE TABLE `dc_ordenes_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_origen_destino_id` bigint(20) unsigned DEFAULT NULL,
  `origendestinoable_id` int(10) unsigned DEFAULT NULL,
  `origendestinoable_type` text COLLATE utf8mb4_unicode_ci,
  `cantidades` decimal(16,2) NOT NULL,
  `inv_deposito_id` bigint(20) unsigned DEFAULT NULL,
  `inv_producto_id` bigint(20) unsigned DEFAULT NULL,
  `inv_producto_id_destino` bigint(20) unsigned DEFAULT NULL,
  `prod_variant_id` bigint(20) unsigned DEFAULT NULL,
  `inv_deposito_id_destino` bigint(20) unsigned DEFAULT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `neto` decimal(16,2) NOT NULL,
  `desc_porc` decimal(16,2) DEFAULT NULL,
  `descuento` decimal(16,2) DEFAULT NULL,
  `system_tax_id` int(10) unsigned NOT NULL,
  `iva` decimal(16,2) NOT NULL,
  `subtotal` decimal(16,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_ordenes_details_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_details_inv_producto_id_foreign` (`inv_producto_id`),
  KEY `dc_ordenes_details_system_tax_id_foreign` (`system_tax_id`),
  KEY `dc_ordenes_details_inv_producto_id_destino_foreign` (`inv_producto_id_destino`),
  KEY `dc_ordenes_details_dc_orden_origen_destino_id_foreign` (`dc_orden_origen_destino_id`),
  KEY `dc_ordenes_details_inv_deposito_id_foreign` (`inv_deposito_id`),
  KEY `dc_ordenes_details_inv_deposito_id_destino_foreign` (`inv_deposito_id_destino`),
  KEY `dc_ordenes_details_prod_variant_id_foreign` (`prod_variant_id`),
  CONSTRAINT `dc_ordenes_details_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_details_dc_orden_origen_destino_id_foreign` FOREIGN KEY (`dc_orden_origen_destino_id`) REFERENCES `dc_ordenes_origen_destino` (`id`),
  CONSTRAINT `dc_ordenes_details_inv_deposito_id_destino_foreign` FOREIGN KEY (`inv_deposito_id_destino`) REFERENCES `inv_depositos` (`id`),
  CONSTRAINT `dc_ordenes_details_inv_deposito_id_foreign` FOREIGN KEY (`inv_deposito_id`) REFERENCES `inv_depositos` (`id`),
  CONSTRAINT `dc_ordenes_details_inv_producto_id_destino_foreign` FOREIGN KEY (`inv_producto_id_destino`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `dc_ordenes_details_inv_producto_id_foreign` FOREIGN KEY (`inv_producto_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `dc_ordenes_details_prod_variant_id_foreign` FOREIGN KEY (`prod_variant_id`) REFERENCES `prod_variants` (`id`) ON DELETE SET NULL,
  CONSTRAINT `dc_ordenes_details_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 `dc_ordenes_details`
--


--
-- Table structure for table `dc_ordenes_facturada`
--

CREATE TABLE `dc_ordenes_facturada` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `dc_orden_id` bigint(20) unsigned DEFAULT NULL,
  `fact_elec_receipt_id` int(11) DEFAULT NULL,
  `receipt_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_ordenes_facturada_person_id_foreign` (`person_id`),
  KEY `dc_ordenes_facturada_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_facturada_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  KEY `dc_ordenes_facturada_receipt_id_foreign` (`receipt_id`),
  CONSTRAINT `dc_ordenes_facturada_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_facturada_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `dc_ordenes_facturada_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_facturada`
--


--
-- Table structure for table `dc_ordenes_ingreso_compra`
--

CREATE TABLE `dc_ordenes_ingreso_compra` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `dc_orden_compra_id` bigint(20) unsigned NOT NULL,
  `dc_orden_compra_detail_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 `dc_ordenes_ingreso_compra_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_ingreso_compra_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_ordenes_ingreso_compra_dc_orden_compra_id_foreign` (`dc_orden_compra_id`),
  KEY `dc_ordenes_ingreso_compra_dc_orden_compra_detail_id_foreign` (`dc_orden_compra_detail_id`),
  CONSTRAINT `dc_ordenes_ingreso_compra_dc_orden_compra_detail_id_foreign` FOREIGN KEY (`dc_orden_compra_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_ingreso_compra_dc_orden_compra_id_foreign` FOREIGN KEY (`dc_orden_compra_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_ingreso_compra_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_ingreso_compra_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_ingreso_compra`
--


--
-- Table structure for table `dc_ordenes_ingxdev_rem_egr`
--

CREATE TABLE `dc_ordenes_ingxdev_rem_egr` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `dc_orden_rem_egr_id` bigint(20) unsigned NOT NULL,
  `dc_orden_rem_egr_detail_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 `dc_ordenes_ingxdev_rem_egr_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_ingxdev_rem_egr_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_ordenes_ingxdev_rem_egr_dc_orden_rem_egr_id_foreign` (`dc_orden_rem_egr_id`),
  KEY `dc_ordenes_ingxdev_rem_egr_dc_orden_rem_egr_detail_id_foreign` (`dc_orden_rem_egr_detail_id`),
  CONSTRAINT `dc_ordenes_ingxdev_rem_egr_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_ingxdev_rem_egr_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_ingxdev_rem_egr_dc_orden_rem_egr_detail_id_foreign` FOREIGN KEY (`dc_orden_rem_egr_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_ingxdev_rem_egr_dc_orden_rem_egr_id_foreign` FOREIGN KEY (`dc_orden_rem_egr_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_ingxdev_rem_egr`
--


--
-- Table structure for table `dc_ordenes_logs`
--

CREATE TABLE `dc_ordenes_logs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) unsigned DEFAULT NULL,
  `loggable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `loggable_id` bigint(20) unsigned NOT NULL,
  `related_id` bigint(20) unsigned DEFAULT NULL,
  `related_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comentario` text 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 `dc_ordenes_logs_loggable_type_loggable_id_index` (`loggable_type`,`loggable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_logs`
--


--
-- Table structure for table `dc_ordenes_origen_destino`
--

CREATE TABLE `dc_ordenes_origen_destino` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `modelo` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_deposito` tinyint(1) 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`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_origen_destino`
--

INSERT INTO `dc_ordenes_origen_destino` VALUES (1,NULL,'Orden de Trabajo','App\\Models\\Inventario\\InvOrdenTrabajo',0,1,NULL,NULL,NULL),(2,NULL,'Centro de Costos','App\\Models\\Inventario\\InvOrdenTrabajoHorasTipo',0,1,NULL,'2023-09-12 22:30:30',NULL),(3,NULL,'Deposito','App\\Models\\Inventario\\InvDeposito',1,1,NULL,'2024-05-07 20:10:49',NULL),(4,NULL,'Empleado','App\\Models\\SyJEmpleado',0,0,NULL,'2023-07-03 22:13:24',NULL);

--
-- Table structure for table `dc_ordenes_pdf_templates`
--

CREATE TABLE `dc_ordenes_pdf_templates` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `dc_orden_tipo_id` bigint(20) unsigned NOT NULL,
  `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `vista_blade` text COLLATE utf8mb4_unicode_ci,
  `pdf_base_path` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tipo_plantilla` enum('blade','pdf_base') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'blade',
  `configuracion` json 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`),
  UNIQUE KEY `unique_person_tipo_template` (`person_id`,`dc_orden_tipo_id`),
  KEY `dc_ordenes_pdf_templates_dc_orden_tipo_id_foreign` (`dc_orden_tipo_id`),
  CONSTRAINT `dc_ordenes_pdf_templates_dc_orden_tipo_id_foreign` FOREIGN KEY (`dc_orden_tipo_id`) REFERENCES `dc_ordenes_tipos` (`id`),
  CONSTRAINT `dc_ordenes_pdf_templates_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_pdf_templates`
--


--
-- Table structure for table `dc_ordenes_revocadas`
--

CREATE TABLE `dc_ordenes_revocadas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned 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 `dc_ordenes_revocadas_dc_orden_id_foreign` (`dc_orden_id`),
  CONSTRAINT `dc_ordenes_revocadas_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_revocadas`
--


--
-- Table structure for table `dc_ordenes_servicio_compra`
--

CREATE TABLE `dc_ordenes_servicio_compra` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `dc_orden_compra_id` bigint(20) unsigned NOT NULL,
  `dc_orden_compra_detail_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 `dc_ordenes_servicio_compra_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_servicio_compra_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_ordenes_servicio_compra_dc_orden_compra_id_foreign` (`dc_orden_compra_id`),
  KEY `dc_ordenes_servicio_compra_dc_orden_compra_detail_id_foreign` (`dc_orden_compra_detail_id`),
  CONSTRAINT `dc_ordenes_servicio_compra_dc_orden_compra_detail_id_foreign` FOREIGN KEY (`dc_orden_compra_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_servicio_compra_dc_orden_compra_id_foreign` FOREIGN KEY (`dc_orden_compra_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_servicio_compra_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_servicio_compra_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_servicio_compra`
--


--
-- Table structure for table `dc_ordenes_tipos`
--

CREATE TABLE `dc_ordenes_tipos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `usabilidad` 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`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_tipos`
--

INSERT INTO `dc_ordenes_tipos` VALUES (1,NULL,'ORDEN DE COMPRAS',NULL,1,NULL,'2022-09-09 16:54:33',NULL),(2,NULL,'ORDEN DE VENTAS',NULL,1,NULL,'2022-09-09 16:54:33',NULL),(3,NULL,'PRESUPUESTO',NULL,1,NULL,NULL,NULL),(4,NULL,'REQUERIMIENTO',NULL,1,NULL,NULL,NULL),(5,NULL,'REMITO DE INGRESO',NULL,1,NULL,'2023-06-12 23:32:15',NULL),(6,NULL,'REMITO DE EGRESO',NULL,1,NULL,NULL,NULL),(7,NULL,'REMITO INTERNO',NULL,1,NULL,NULL,NULL),(8,NULL,'REMITO DE INGRESO','Es lo mismo que un remito de ingreso, \n        pero los productosa ingresar provienen de una Orden de Compra',1,NULL,NULL,NULL),(9,NULL,'REMITO DE SERVICIO','Es un remito de Ingreso de un servicio que se\n        asigna directo a una OT',1,NULL,NULL,NULL),(10,NULL,'ORDEN DE PAGO',NULL,1,'2023-09-28 16:38:44','2023-09-28 16:38:44',NULL),(11,NULL,'ANULACION REQUERIMIENTOS',NULL,1,'2024-04-02 23:30:47','2024-04-02 23:30:47',NULL),(12,NULL,'ANULACION COMPRAS PRODUCTOS',NULL,1,'2024-04-02 23:30:47','2024-04-02 23:30:47',NULL),(13,NULL,'ANULACION COMPRAS SERVICIOS',NULL,1,'2024-04-02 23:30:47','2024-04-02 23:30:47',NULL),(14,NULL,'REMITO DE GASTO',NULL,1,'2024-05-07 20:10:49','2024-05-07 20:10:49',NULL),(15,NULL,'COTIZACIONES',NULL,1,'2024-06-26 07:52:41','2024-06-26 07:52:41',NULL),(16,NULL,'REMITO INGRESO-DEVOLUCION',NULL,1,'2024-09-02 13:17:15','2024-09-02 13:17:15',NULL),(17,NULL,'REMITO EGRESO-DEVOLUCION',NULL,1,'2024-10-17 08:50:49','2024-10-17 08:50:49',NULL),(18,NULL,'REMITO','Es un remito de servicio, que no tiene ni ingreso ni egreso',1,'2024-12-03 21:45:11','2024-12-03 21:45:11',NULL),(19,NULL,'Remito de Cliente','Se usa en las Ordenes de Venta para demostrar que se entrego mercaderia al cliente',1,NULL,NULL,NULL),(20,NULL,'Orden de Compra de Cliente','Es la OC que envia el cliente para que se le haga el pedido',1,NULL,NULL,NULL),(21,NULL,'Solicitud de Facturacion','Es un documento que se usa para que se pueda facturar',1,NULL,NULL,NULL),(22,NULL,'Ordenes de Compra','Es una OC para Empresas',1,NULL,NULL,NULL);

--
-- Table structure for table `dc_ov_cta_cte_cliente`
--

CREATE TABLE `dc_ov_cta_cte_cliente` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `cta_cte_cliente_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_ov_cta_cte_cliente_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_cta_cte_cliente_cta_cte_cliente_id_foreign` (`cta_cte_cliente_id`),
  CONSTRAINT `dc_ov_cta_cte_cliente_cta_cte_cliente_id_foreign` FOREIGN KEY (`cta_cte_cliente_id`) REFERENCES `cta_cte_cliente` (`id`),
  CONSTRAINT `dc_ov_cta_cte_cliente_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_cta_cte_cliente`
--


--
-- Table structure for table `dc_ov_fact_electronicas`
--

CREATE TABLE `dc_ov_fact_electronicas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `fact_elec_receipt_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_ov_fact_electronicas_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_fact_electronicas_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  CONSTRAINT `dc_ov_fact_electronicas_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ov_fact_electronicas_fact_elec_receipt_id_foreign` FOREIGN KEY (`fact_elec_receipt_id`) REFERENCES `fact_elec_receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_fact_electronicas`
--


--
-- Table structure for table `dc_ov_oc_presupuestos`
--

CREATE TABLE `dc_ov_oc_presupuestos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_presupuesto_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 `dc_ov_oc_presupuestos_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_oc_presupuestos_dc_orden_presupuesto_id_foreign` (`dc_orden_presupuesto_id`),
  CONSTRAINT `dc_ov_oc_presupuestos_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ov_oc_presupuestos_dc_orden_presupuesto_id_foreign` FOREIGN KEY (`dc_orden_presupuesto_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_oc_presupuestos`
--


--
-- Table structure for table `dc_ov_ocs`
--

CREATE TABLE `dc_ov_ocs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_compra_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 `dc_ov_ocs_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_ocs_dc_orden_compra_id_foreign` (`dc_orden_compra_id`),
  CONSTRAINT `dc_ov_ocs_dc_orden_compra_id_foreign` FOREIGN KEY (`dc_orden_compra_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ov_ocs_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_ocs`
--


--
-- Table structure for table `dc_ov_origenes`
--

CREATE TABLE `dc_ov_origenes` (
  `id` bigint(20) 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`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_origenes`
--

INSERT INTO `dc_ov_origenes` VALUES (1,NULL,'Taller',1,NULL,NULL,NULL),(2,NULL,'Comercial',1,NULL,NULL,NULL),(3,NULL,'Repuestos',1,NULL,NULL,NULL);

--
-- Table structure for table `dc_ov_origenes_users`
--

CREATE TABLE `dc_ov_origenes_users` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `dc_ov_origen_id` bigint(20) unsigned NOT NULL,
  `user_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 `dc_ov_origenes_users_dc_ov_origen_id_foreign` (`dc_ov_origen_id`),
  CONSTRAINT `dc_ov_origenes_users_dc_ov_origen_id_foreign` FOREIGN KEY (`dc_ov_origen_id`) REFERENCES `dc_ov_origenes` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_origenes_users`
--


--
-- Table structure for table `dc_ov_ots`
--

CREATE TABLE `dc_ov_ots` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `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 `dc_ov_ots_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_ots_ot_id_foreign` (`ot_id`),
  CONSTRAINT `dc_ov_ots_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ov_ots_ot_id_foreign` FOREIGN KEY (`ot_id`) REFERENCES `inv_orden_trabajos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_ots`
--


--
-- Table structure for table `dc_ov_pres_clientes`
--

CREATE TABLE `dc_ov_pres_clientes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_pres_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 `dc_ov_pres_clientes_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_pres_clientes_dc_orden_pres_id_foreign` (`dc_orden_pres_id`),
  CONSTRAINT `dc_ov_pres_clientes_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ov_pres_clientes_dc_orden_pres_id_foreign` FOREIGN KEY (`dc_orden_pres_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_pres_clientes`
--


--
-- Table structure for table `dc_ov_rem_clientes`
--

CREATE TABLE `dc_ov_rem_clientes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_rem_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 `dc_ov_rem_clientes_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_rem_clientes_dc_orden_rem_id_foreign` (`dc_orden_rem_id`),
  CONSTRAINT `dc_ov_rem_clientes_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ov_rem_clientes_dc_orden_rem_id_foreign` FOREIGN KEY (`dc_orden_rem_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_rem_clientes`
--


--
-- Table structure for table `dc_ov_remc_occ`
--

CREATE TABLE `dc_ov_remc_occ` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `dc_orden_id` bigint(20) unsigned DEFAULT NULL,
  `dc_orden_detail_id` bigint(20) unsigned DEFAULT NULL,
  `dc_occ_id` bigint(20) unsigned DEFAULT NULL,
  `dc_occ_detail_id` bigint(20) unsigned DEFAULT NULL,
  `user_id` bigint(20) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_ov_remc_occ_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_remc_occ_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_ov_remc_occ_dc_occ_id_foreign` (`dc_occ_id`),
  KEY `dc_ov_remc_occ_dc_occ_detail_id_foreign` (`dc_occ_detail_id`),
  CONSTRAINT `dc_ov_remc_occ_dc_occ_detail_id_foreign` FOREIGN KEY (`dc_occ_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ov_remc_occ_dc_occ_id_foreign` FOREIGN KEY (`dc_occ_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ov_remc_occ_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ov_remc_occ_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_remc_occ`
--


--
-- Table structure for table `dc_ov_sol_facturacion`
--

CREATE TABLE `dc_ov_sol_facturacion` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_sol_facturacion_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 `dc_ov_sol_facturacion_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_sol_facturacion_dc_sol_facturacion_id_foreign` (`dc_sol_facturacion_id`),
  CONSTRAINT `dc_ov_sol_facturacion_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ov_sol_facturacion_dc_sol_facturacion_id_foreign` FOREIGN KEY (`dc_sol_facturacion_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_sol_facturacion`
--


--
-- Table structure for table `dc_ov_status_cobranza`
--

CREATE TABLE `dc_ov_status_cobranza` (
  `id` bigint(20) 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`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_status_cobranza`
--

INSERT INTO `dc_ov_status_cobranza` VALUES (1,NULL,'Pendiente',1,NULL,NULL,NULL),(2,NULL,'Parcial',1,NULL,NULL,NULL),(3,NULL,'Completa',1,NULL,NULL,NULL);

--
-- Table structure for table `dc_ov_status_entrega`
--

CREATE TABLE `dc_ov_status_entrega` (
  `id` bigint(20) 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`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_status_entrega`
--

INSERT INTO `dc_ov_status_entrega` VALUES (1,NULL,'Pendiente',1,NULL,NULL,NULL),(2,NULL,'Parcial',1,NULL,NULL,NULL),(3,NULL,'Completa',1,NULL,NULL,NULL);

--
-- Table structure for table `dc_ov_status_factura`
--

CREATE TABLE `dc_ov_status_factura` (
  `id` bigint(20) 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`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_status_factura`
--

INSERT INTO `dc_ov_status_factura` VALUES (1,NULL,'Pendiente',1,NULL,NULL,NULL),(2,NULL,'Facturable',1,NULL,NULL,NULL),(3,NULL,'Facturado Parcialmente',1,NULL,NULL,NULL),(4,NULL,'Facturado Totalmente',1,NULL,NULL,NULL);

--
-- Table structure for table `dc_ov_status_venta`
--

CREATE TABLE `dc_ov_status_venta` (
  `id` bigint(20) 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`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_status_venta`
--

INSERT INTO `dc_ov_status_venta` VALUES (1,NULL,'Pendiente',1,NULL,NULL,NULL),(2,NULL,'Presupuesto',1,NULL,NULL,NULL),(3,NULL,'Venta',1,NULL,NULL,NULL),(4,NULL,'Rechazada',1,NULL,NULL,NULL);

--
-- Table structure for table `dc_sol_fac_occ`
--

CREATE TABLE `dc_sol_fac_occ` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL COMMENT 'Solicitud Facturación (tipo 21)',
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL COMMENT 'Detalle de SF',
  `dc_occ_id` bigint(20) unsigned NOT NULL COMMENT 'OC Cliente (tipo 20)',
  `dc_occ_detail_id` bigint(20) unsigned NOT NULL COMMENT 'Detalle de OCC',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `idx_sf` (`dc_orden_id`),
  KEY `idx_occ` (`dc_occ_id`),
  KEY `dc_sol_fac_occ_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_sol_fac_occ_dc_occ_detail_id_foreign` (`dc_occ_detail_id`),
  CONSTRAINT `dc_sol_fac_occ_dc_occ_detail_id_foreign` FOREIGN KEY (`dc_occ_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_sol_fac_occ_dc_occ_id_foreign` FOREIGN KEY (`dc_occ_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_sol_fac_occ_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_sol_fac_occ_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_sol_fac_occ`
--


--
-- Table structure for table `despachos`
--

CREATE TABLE `despachos` (
  `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,
  `moneda_id` int(10) unsigned NOT NULL,
  `fecha` datetime NOT NULL DEFAULT '2025-04-28 16:06:04',
  `is_ponderacion_autom` tinyint(1) NOT NULL DEFAULT '1',
  `is_garantia` tinyint(1) NOT NULL DEFAULT '0',
  `numero` int(10) unsigned DEFAULT NULL,
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total_parte_1` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total_parte_2` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total_parte_3` decimal(16,2) NOT NULL DEFAULT '0.00',
  `cotizacion` 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 `despachos_person_id_foreign` (`person_id`),
  KEY `despachos_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `despachos_moneda_id_foreign` (`moneda_id`),
  CONSTRAINT `despachos_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `despachos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `despachos_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 `despachos`
--


--
-- Table structure for table `despachos_cierres`
--

CREATE TABLE `despachos_cierres` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `despacho_id` bigint(20) unsigned NOT NULL,
  `receipt_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `inv_producto_id` bigint(20) unsigned DEFAULT NULL,
  `costo_antes` decimal(16,2) NOT NULL DEFAULT '0.00',
  `cantidades` decimal(16,2) DEFAULT '0.00',
  `precio_x_cantidad` decimal(16,2) DEFAULT '0.00',
  `ratio` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `incremento` decimal(16,2) NOT NULL DEFAULT '0.00',
  `incremento_x_cantidad` decimal(16,2) DEFAULT '0.00',
  `costo_despues` 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 `despachos_cierres_despacho_id_foreign` (`despacho_id`),
  KEY `despachos_cierres_receipt_id_foreign` (`receipt_id`),
  KEY `despachos_cierres_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `despachos_cierres_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `despachos_cierres_inv_producto_id_foreign` (`inv_producto_id`),
  CONSTRAINT `despachos_cierres_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `despachos_cierres_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `despachos_cierres_despacho_id_foreign` FOREIGN KEY (`despacho_id`) REFERENCES `despachos` (`id`),
  CONSTRAINT `despachos_cierres_inv_producto_id_foreign` FOREIGN KEY (`inv_producto_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `despachos_cierres_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `despachos_cierres`
--


--
-- Table structure for table `despachos_details`
--

CREATE TABLE `despachos_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `despacho_id` bigint(20) unsigned NOT NULL,
  `despacho_parte_id` bigint(20) unsigned NOT NULL,
  `receipt_id` int(10) unsigned DEFAULT NULL,
  `porcentaje_ponderacion` decimal(8,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 `despachos_details_despacho_id_foreign` (`despacho_id`),
  KEY `despachos_details_despacho_parte_id_foreign` (`despacho_parte_id`),
  KEY `despachos_details_receipt_id_foreign` (`receipt_id`),
  CONSTRAINT `despachos_details_despacho_id_foreign` FOREIGN KEY (`despacho_id`) REFERENCES `despachos` (`id`),
  CONSTRAINT `despachos_details_despacho_parte_id_foreign` FOREIGN KEY (`despacho_parte_id`) REFERENCES `despachos_partes` (`id`),
  CONSTRAINT `despachos_details_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `despachos_details`
--


--
-- Table structure for table `despachos_files`
--

CREATE TABLE `despachos_files` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `despacho_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 `despachos_files_despacho_id_foreign` (`despacho_id`),
  CONSTRAINT `despachos_files_despacho_id_foreign` FOREIGN KEY (`despacho_id`) REFERENCES `despachos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `despachos_files`
--


--
-- Table structure for table `despachos_partes`
--

CREATE TABLE `despachos_partes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT 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`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `despachos_partes`
--

INSERT INTO `despachos_partes` VALUES (1,NULL,'Facturas del Proveedor',1,NULL,NULL,NULL),(2,NULL,'Despachos de Importacion',1,NULL,NULL,NULL),(3,NULL,'Facturas de Logistica',1,NULL,NULL,NULL);

--
-- Table structure for table `deudas_impositivas`
--

CREATE TABLE `deudas_impositivas` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `vto_impuesto_id` int(10) unsigned NOT NULL,
  `periodo_deuda` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `concepto` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT 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 `deudas_impositivas_vto_impuesto_id_foreign` (`vto_impuesto_id`),
  KEY `deudas_impositivas_person_id_foreign` (`person_id`),
  CONSTRAINT `deudas_impositivas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `deudas_impositivas_vto_impuesto_id_foreign` FOREIGN KEY (`vto_impuesto_id`) REFERENCES `vto_impuestos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `deudas_impositivas`
--


--
-- Table structure for table `ejer_anteriores`
--

CREATE TABLE `ejer_anteriores` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `anio` int(11) NOT NULL,
  `ventas` decimal(16,2) DEFAULT NULL,
  `compras` decimal(16,2) DEFAULT NULL,
  `sueldos` decimal(16,2) DEFAULT NULL,
  `impuesto` decimal(16,2) DEFAULT NULL,
  `apagar` decimal(16,2) DEFAULT NULL,
  `afavor` decimal(16,2) DEFAULT NULL,
  `comentario` varchar(255) 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 `ejer_anteriores_person_id_foreign` (`person_id`),
  CONSTRAINT `ejer_anteriores_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ejer_anteriores`
--


--
-- Table structure for table `estado_civil`
--

CREATE TABLE `estado_civil` (
  `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 `estado_civil_descripcion_unique` (`descripcion`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `estado_civil`
--

INSERT INTO `estado_civil` VALUES (1,NULL,'Separado Legal',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL),(2,NULL,'Separado de Hecho',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL),(3,NULL,'Divorciado',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL),(4,NULL,'Convivencia',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL),(5,NULL,'Soltero',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL),(6,NULL,'Casado',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL),(7,NULL,'Viudo',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL);

--
-- Table structure for table `fa_masiva`
--

CREATE TABLE `fa_masiva` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `person_id` int(11) NOT NULL,
  `user_id` int(11) 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 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fa_masiva`
--


--
-- Table structure for table `fa_masiva_detalle`
--

CREATE TABLE `fa_masiva_detalle` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `fa_masiva_id` int(11) NOT NULL,
  `cliente_id` int(11) NOT NULL,
  `tipo_comprobante_id` int(10) unsigned NOT NULL DEFAULT '1',
  `zone_id` int(10) unsigned NOT NULL DEFAULT '22',
  `activity_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cond_frente_iva_id` int(10) unsigned NOT NULL DEFAULT '1',
  `system_tax_id` int(10) unsigned NOT NULL DEFAULT '1',
  `concepto_id` int(10) unsigned NOT NULL DEFAULT '1',
  `taxable_iibb` int(10) unsigned NOT NULL DEFAULT '2',
  `renglon1` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `importe1` decimal(20,2) DEFAULT NULL,
  `renglon2` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `importe2` decimal(20,2) DEFAULT NULL,
  `renglon3` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `importe3` decimal(20,2) DEFAULT NULL,
  `punto_venta_id` int(11) DEFAULT NULL,
  `fecha_comprobante` date DEFAULT NULL,
  `fecha_facturado_desde` date DEFAULT NULL,
  `fecha_facturado_hasta` date DEFAULT NULL,
  `fecha_vencimiento_pago` date DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fa_masiva_detalle_concepto_id_foreign` (`concepto_id`),
  KEY `fa_masiva_detalle_system_tax_id_foreign` (`system_tax_id`),
  KEY `fa_masiva_detalle_cond_frente_iva_id_foreign` (`cond_frente_iva_id`),
  KEY `fa_masiva_detalle_zone_id_foreign` (`zone_id`),
  KEY `fa_masiva_detalle_tipo_comprobante_id_foreign` (`tipo_comprobante_id`),
  KEY `fa_masiva_detalle_activity_id_foreign` (`activity_id`),
  CONSTRAINT `fa_masiva_detalle_activity_id_foreign` FOREIGN KEY (`activity_id`) REFERENCES `activities` (`id`),
  CONSTRAINT `fa_masiva_detalle_concepto_id_foreign` FOREIGN KEY (`concepto_id`) REFERENCES `fact_elec_conceptos_afip` (`id`),
  CONSTRAINT `fa_masiva_detalle_cond_frente_iva_id_foreign` FOREIGN KEY (`cond_frente_iva_id`) REFERENCES `fac_elec_cond_frente_iva` (`id`),
  CONSTRAINT `fa_masiva_detalle_system_tax_id_foreign` FOREIGN KEY (`system_tax_id`) REFERENCES `system_taxes` (`id`),
  CONSTRAINT `fa_masiva_detalle_tipo_comprobante_id_foreign` FOREIGN KEY (`tipo_comprobante_id`) REFERENCES `receipt_types` (`id`),
  CONSTRAINT `fa_masiva_detalle_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fa_masiva_detalle`
--


--
-- Table structure for table `fa_masiva_stock`
--

CREATE TABLE `fa_masiva_stock` (
  `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,
  `data` 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 `fa_masiva_stock_person_id_foreign` (`person_id`),
  KEY `fa_masiva_stock_person_id_relationed_foreign` (`person_id_relationed`),
  CONSTRAINT `fa_masiva_stock_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `fa_masiva_stock_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 `fa_masiva_stock`
--


--
-- Table structure for table `fac_elec_cond_frente_iva`
--

CREATE TABLE `fac_elec_cond_frente_iva` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) 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 `fac_elec_cond_frente_iva_name_unique` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fac_elec_cond_frente_iva`
--

INSERT INTO `fac_elec_cond_frente_iva` VALUES (1,'IVA Responsable Inscripto','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(2,'IVA Sujeto Exento','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(3,'Consumidor Final','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(4,'Responsable Monotributo','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(5,'Proveedor del Exterior','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(6,'Cliente del Exterior','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(7,'IVA Liberado - Ley Nº 19.640','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(8,'IVA Responsable Inscripto - Agente de Percepción','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(9,'Monotributista Social','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(10,'IVA No Alcanzado','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL);

--
-- Table structure for table `fac_elec_unidad_medidas`
--

CREATE TABLE `fac_elec_unidad_medidas` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) 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 `fac_elec_unidad_medidas_name_unique` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fac_elec_unidad_medidas`
--

INSERT INTO `fac_elec_unidad_medidas` VALUES (1,'Grs','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(2,'Kg','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(3,'Mts','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(4,'Mts2','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(5,'Mts3','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(6,'Lts','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(7,'1000 Kwh','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(8,'Unidades','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(9,'Pares','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(10,'Doc','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(11,'Quilates','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(12,'Millares','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(13,'Milimetros','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(14,'Mm 3','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(15,'Km','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(16,'Hectolitros','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(17,'Cm','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(18,'Cm 3','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL);

--
-- Table structure for table `fact_elec_conceptos_afip`
--

CREATE TABLE `fact_elec_conceptos_afip` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `afip_comprobante_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fact_elec_conceptos_afip`
--

INSERT INTO `fact_elec_conceptos_afip` VALUES (1,1,'Producto','2019-03-13 13:29:34','2019-03-13 13:29:34'),(2,2,'Servicios','2019-03-13 13:29:34','2019-03-13 13:29:34'),(3,3,'Productos y Servicios','2019-03-13 13:29:34','2019-03-13 13:29:34');

--
-- Table structure for table `fact_elec_perc_ret`
--

CREATE TABLE `fact_elec_perc_ret` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `codigo_afip` int(10) unsigned NOT NULL,
  `other_tax_id` int(10) unsigned 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 `fact_elec_perc_ret_other_tax_id_foreign` (`other_tax_id`),
  CONSTRAINT `fact_elec_perc_ret_other_tax_id_foreign` FOREIGN KEY (`other_tax_id`) REFERENCES `other_taxes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fact_elec_perc_ret`
--

INSERT INTO `fact_elec_perc_ret` VALUES (1,NULL,'Per./Ret de Imp. a las Ganancias',1,1032,1,NULL,NULL,NULL),(2,NULL,'Per./Ret de IVA',1,1000,1,NULL,NULL,NULL),(3,NULL,'Per./Ret de IIBB',2,1006,1,NULL,NULL,NULL),(4,NULL,'Impuestos Internos',4,1001,1,NULL,NULL,NULL),(5,NULL,'Impuestos Municipales',3,1031,1,NULL,NULL,NULL);

--
-- Table structure for table `fact_elec_perc_ret_details`
--

CREATE TABLE `fact_elec_perc_ret_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `fact_elec_perc_ret_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `fact_elec_receipt_id` int(10) unsigned NOT NULL,
  `detalle` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `zone_id` int(10) unsigned DEFAULT NULL,
  `base_imponible` decimal(16,2) DEFAULT NULL,
  `alicuota` decimal(16,2) DEFAULT NULL,
  `importe` decimal(16,2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fact_elec_perc_ret_details_fact_elec_perc_ret_id_foreign` (`fact_elec_perc_ret_id`),
  KEY `fact_elec_perc_ret_details_person_id_foreign` (`person_id`),
  KEY `fact_elec_perc_ret_details_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  KEY `fact_elec_perc_ret_details_zone_id_foreign` (`zone_id`),
  CONSTRAINT `fact_elec_perc_ret_details_fact_elec_perc_ret_id_foreign` FOREIGN KEY (`fact_elec_perc_ret_id`) REFERENCES `fact_elec_perc_ret` (`id`),
  CONSTRAINT `fact_elec_perc_ret_details_fact_elec_receipt_id_foreign` FOREIGN KEY (`fact_elec_receipt_id`) REFERENCES `fact_elec_receipts` (`id`),
  CONSTRAINT `fact_elec_perc_ret_details_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `fact_elec_perc_ret_details_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
