(643,0,'SELECCIONE',485,464,0,0,0,0,NULL,0,30,'HAB. 11',0,NULL,1,NULL,NULL,50000,11,50000,0,0,0,50000,2,'V','MESAS','2025-09-24 15:57:30','2025-09-24 15:58:10','2025-09-24 15:57:30',NULL,'2025-09-24 15:58:10',81,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 11',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(644,0,'SELECCIONE',486,465,0,0,0,0,NULL,0,30,'HAB. 11',0,NULL,1,NULL,NULL,50000,11,50000,0,0,0,50000,2,'V','MESAS','2025-09-25 12:07:32','2025-09-25 12:08:06','2025-09-25 12:07:32',NULL,'2025-09-25 12:08:06',81,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 11',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(645,0,'SELECCIONE',487,466,0,0,0,0,NULL,0,40,'HAB. 04',0,NULL,1,NULL,NULL,60000,4,60000,0,0,0,60000,2,'V','MESAS','2025-09-26 08:46:39','2025-09-26 08:47:05','2025-09-26 08:46:39',NULL,'2025-09-26 08:47:05',81,4,1,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 04',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(646,0,'SELECCIONE',488,467,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-09-27 09:22:29','2025-09-27 09:23:22','2025-09-27 09:22:29',NULL,'2025-09-27 09:23:22',81,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(647,0,'SELECCIONE',489,468,0,0,0,0,NULL,0,45,'HAB. 09',0,NULL,1,NULL,NULL,50000,9,50000,0,0,0,50000,2,'V','MESAS','2025-10-01 07:56:06','2025-10-01 08:03:16','2025-10-01 07:56:06',NULL,'2025-10-01 08:03:16',81,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 09',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(648,0,'SELECCIONE',489,468,0,0,0,0,NULL,0,15,'estadia por horas',0,NULL,1,NULL,NULL,30000,9,30000,0,0,0,30000,2,'V','MESAS','2025-10-01 08:02:17','2025-10-01 08:03:16','2025-10-01 08:02:17',NULL,'2025-10-01 08:03:16',81,4,1,0,0,2000,0,30000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'Adicional',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,2000.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(650,0,'SELECCIONE',490,469,0,0,0,0,NULL,0,40,'HAB. 04',0,NULL,1,NULL,NULL,60000,4,60000,0,0,0,60000,2,'V','MESAS','2025-10-04 20:21:14','2025-10-04 20:21:50','2025-10-04 20:21:14',NULL,'2025-10-04 20:21:50',81,4,1,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 04',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(651,0,'SELECCIONE',491,470,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,1,NULL,NULL,70000,6,70000,0,0,0,70000,2,'V','MESAS','2025-10-10 21:15:43','2025-10-10 21:22:16','2025-10-10 21:15:43',NULL,'2025-10-10 21:22:16',114,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 06',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(652,0,'SELECCIONE',492,471,0,0,0,0,NULL,0,45,'HAB. 09',0,NULL,1,NULL,NULL,50000,9,50000,0,0,0,50000,2,'V','MESAS','2025-10-10 21:22:56','2025-10-10 21:23:20','2025-10-10 21:22:56',NULL,'2025-10-10 21:23:20',105,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 09',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(653,0,'SELECCIONE',493,472,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-10-15 20:25:53','2025-10-15 20:26:18','2025-10-15 20:25:53',NULL,'2025-10-15 20:26:18',81,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(654,0,'SELECCIONE',494,473,0,0,0,0,NULL,0,45,'HAB. 09',0,NULL,1,NULL,NULL,50000,9,50000,0,0,0,50000,2,'V','MESAS','2025-10-16 10:42:04','2025-10-16 10:42:24','2025-10-16 10:42:04',NULL,'2025-10-16 10:42:24',105,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 09',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(655,0,'SELECCIONE',495,474,0,0,0,0,NULL,0,46,'HAB....10',0,NULL,4,NULL,NULL,50000,10,200000,0,0,0,200000,2,'V','MESAS','2025-10-16 11:48:07','2025-10-16 11:50:36','2025-10-16 11:48:07',NULL,'2025-10-16 11:50:36',19,4,1,0,0,0,0,200000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 10',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(656,0,'SELECCIONE',496,475,0,0,0,0,NULL,0,31,'HAB. 12',0,NULL,1,NULL,NULL,60000,5,60000,0,0,0,60000,2,'V','MESAS','2025-10-17 21:04:14','2025-10-17 21:05:32','2025-10-17 21:04:14',NULL,'2025-10-17 21:05:32',81,4,1,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 12',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(657,0,'SELECCIONE',497,476,0,0,0,0,NULL,0,32,'HAB. 13',0,NULL,1,NULL,NULL,60000,13,60000,0,0,0,60000,2,'V','MESAS','2025-10-17 21:28:28','2025-10-17 21:29:19','2025-10-17 21:28:28',NULL,'2025-10-17 21:29:19',81,4,1,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 13',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(658,0,'SELECCIONE',498,477,0,0,0,0,NULL,0,32,'HAB. 13',0,NULL,1,NULL,NULL,60000,12,60000,0,0,0,60000,2,'V','MESAS','2025-10-18 16:02:02','2025-10-18 16:04:52','2025-10-18 16:02:02',NULL,'2025-10-18 16:04:52',115,4,1,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 13',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(659,0,'SELECCIONE',499,478,0,0,0,0,NULL,0,32,'HAB. 13',0,NULL,1,NULL,NULL,60000,13,60000,0,0,0,60000,2,'V','MESAS','2025-10-18 16:05:18','2025-10-18 16:06:13','2025-10-18 16:05:18',NULL,'2025-10-18 16:06:13',115,4,1,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 13',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(660,0,'SELECCIONE',500,479,0,0,0,0,NULL,0,32,'HAB. 13',0,NULL,1,NULL,NULL,60000,13,60000,0,0,0,60000,2,'V','MESAS','2025-10-18 16:06:22','2025-10-18 16:07:03','2025-10-18 16:06:22',NULL,'2025-10-18 16:07:03',115,4,1,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 13',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(661,0,'SELECCIONE',501,480,0,0,0,0,NULL,0,32,'HAB. 13',0,NULL,1,NULL,NULL,60000,13,60000,0,0,0,60000,2,'V','MESAS','2025-10-18 16:07:11','2025-10-18 16:07:43','2025-10-18 16:07:11',NULL,'2025-10-18 16:07:43',115,4,1,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 13',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(662,0,'SELECCIONE',502,481,0,0,0,0,NULL,0,31,'HAB. 12',0,NULL,1,NULL,NULL,60000,12,60000,0,0,0,60000,2,'V','MESAS','2025-10-18 16:07:54','2025-10-18 16:08:23','2025-10-18 16:07:54',NULL,'2025-10-18 16:08:23',115,4,1,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 12',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(663,0,'SELECCIONE',503,482,0,0,0,0,NULL,0,43,'HAB. 07',0,NULL,1,NULL,NULL,65000,7,65000,0,0,0,65000,2,'V','MESAS','2025-10-18 16:08:31','2025-10-18 16:09:06','2025-10-18 16:08:31',NULL,'2025-10-18 16:09:06',115,4,1,0,0,0,0,65000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 07',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(664,0,'SELECCIONE',504,483,0,0,0,0,NULL,0,32,'HAB. 13',0,NULL,1,NULL,NULL,60000,13,60000,0,0,0,60000,2,'V','MESAS','2025-10-18 16:25:56','2025-10-18 16:26:15','2025-10-18 16:25:56',NULL,'2025-10-18 16:26:15',81,4,1,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 13',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(665,0,'SELECCIONE',505,484,0,0,0,0,NULL,0,34,'HAB. 15',0,NULL,1,NULL,NULL,65000,15,65000,0,0,0,65000,2,'V','MESAS','2025-10-18 18:01:25','2025-10-18 18:03:23','2025-10-18 18:01:25',NULL,'2025-10-18 18:03:23',115,4,1,0,0,0,0,65000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 15',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(666,0,'SELECCIONE',506,485,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-10-20 07:29:40','2025-10-20 08:02:41','2025-10-20 07:29:40',NULL,'2025-10-20 08:02:41',81,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(667,0,'SELECCIONE',507,486,0,0,0,0,NULL,0,30,'HAB. 11',0,NULL,1,NULL,NULL,50000,11,50000,0,0,0,50000,2,'V','MESAS','2025-10-20 18:09:16','2025-10-20 18:10:09','2025-10-20 18:09:16',NULL,'2025-10-20 18:10:09',81,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 11',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(668,0,'SELECCIONE',508,487,0,0,0,0,NULL,0,46,'HAB....10',0,NULL,1,NULL,NULL,50000,10,50000,0,0,0,50000,2,'V','MESAS','2025-10-21 14:38:41','2025-10-21 14:39:31','2025-10-21 14:38:41',NULL,'2025-10-21 14:39:31',105,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 10',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(669,0,'SELECCIONE',509,488,0,0,0,0,NULL,0,30,'HAB. 11',0,NULL,1,NULL,NULL,50000,11,50000,0,0,0,50000,2,'V','MESAS','2025-10-21 14:40:03','2025-10-21 14:40:30','2025-10-21 14:40:03',NULL,'2025-10-21 14:40:30',81,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 11',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(670,0,'SELECCIONE',510,489,0,0,0,0,NULL,0,33,'HAB. 14',0,NULL,1,NULL,NULL,70000,14,70000,0,0,0,70000,2,'V','MESAS','2025-10-21 14:45:25','2025-10-21 14:50:42','2025-10-21 14:45:25',NULL,'2025-10-21 14:50:42',113,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 14',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(671,0,'SELECCIONE',511,490,0,0,0,0,NULL,0,33,'HAB. 14',0,NULL,1,NULL,NULL,70000,14,70000,0,0,0,70000,2,'V','MESAS','2025-10-21 14:50:54','2025-10-21 14:52:42','2025-10-21 14:50:54',NULL,'2025-10-21 14:52:42',113,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 14',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(672,0,'SELECCIONE',512,491,0,0,0,0,NULL,0,33,'HAB. 14',0,NULL,1,NULL,NULL,70000,14,70000,0,0,0,70000,2,'V','MESAS','2025-10-21 14:53:03','2025-10-21 14:53:46','2025-10-21 14:53:03',NULL,'2025-10-21 14:53:46',113,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 14',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(673,0,'SELECCIONE',513,492,0,0,0,0,NULL,0,33,'HAB. 14',0,NULL,1,NULL,NULL,70000,14,70000,0,0,0,70000,2,'V','MESAS','2025-10-21 14:54:02','2025-10-21 14:54:34','2025-10-21 14:54:02',NULL,'2025-10-21 14:54:34',113,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 14',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(674,0,'SELECCIONE',514,493,0,0,0,0,NULL,0,33,'HAB. 14',0,NULL,1,NULL,NULL,70000,14,70000,0,0,0,70000,2,'V','MESAS','2025-10-21 14:55:10','2025-10-21 14:56:07','2025-10-21 14:55:10',NULL,'2025-10-21 14:56:07',113,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 14',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(675,0,'SELECCIONE',515,494,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,1,NULL,NULL,70000,6,70000,0,0,0,70000,2,'V','MESAS','2025-10-21 14:59:26','2025-10-21 15:00:13','2025-10-21 14:59:26',NULL,'2025-10-21 15:00:13',113,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 06',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(676,0,'SELECCIONE',516,495,0,0,0,0,NULL,0,33,'HAB. 14',0,NULL,1,NULL,NULL,70000,14,70000,0,0,0,70000,2,'V','MESAS','2025-10-21 15:00:21','2025-10-21 15:01:53','2025-10-21 15:00:21',NULL,'2025-10-21 15:01:53',113,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 14',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(677,0,'SELECCIONE',517,496,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,1,NULL,NULL,70000,6,70000,0,0,0,70000,2,'V','MESAS','2025-10-21 15:02:17','2025-10-21 15:03:49','2025-10-21 15:02:17',NULL,'2025-10-21 15:03:49',113,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 06',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(678,0,'SELECCIONE',518,497,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,1,NULL,NULL,70000,6,70000,0,0,0,70000,2,'V','MESAS','2025-10-21 15:03:59','2025-10-21 15:04:33','2025-10-21 15:03:59',NULL,'2025-10-21 15:04:33',113,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 06',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(679,0,'SELECCIONE',519,498,0,0,0,0,NULL,0,46,'HAB....10',0,NULL,1,NULL,NULL,50000,10,50000,0,0,0,50000,2,'V','MESAS','2025-10-22 20:57:23','2025-10-22 20:58:35','2025-10-22 20:57:23',NULL,'2025-10-22 20:58:35',81,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 10',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(680,0,'SELECCIONE',520,499,0,0,0,0,NULL,0,45,'HAB. 09',0,NULL,1,NULL,NULL,50000,9,50000,0,0,0,50000,2,'V','MESAS','2025-10-23 12:49:38','2025-10-23 12:50:46','2025-10-23 12:49:38',NULL,'2025-10-23 12:50:46',105,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 09',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(681,0,'SELECCIONE',521,500,0,0,0,0,NULL,0,32,'HAB. 13',0,NULL,1,NULL,NULL,60000,13,60000,0,0,0,60000,2,'V','MESAS','2025-10-23 12:50:56','2025-10-23 12:51:16','2025-10-23 12:50:56',NULL,'2025-10-23 12:51:16',81,4,1,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 13',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(682,0,'SELECCIONE',522,501,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,1,NULL,NULL,70000,11,70000,0,0,0,70000,2,'V','MESAS','2025-10-23 12:53:48','2025-10-23 12:55:13','2025-10-23 12:53:48',NULL,'2025-10-23 12:55:13',113,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 06',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(683,0,'SELECCIONE',523,502,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,1,NULL,NULL,70000,6,70000,0,0,0,70000,2,'V','MESAS','2025-10-23 12:55:30','2025-10-23 12:56:32','2025-10-23 12:55:30',NULL,'2025-10-23 12:56:32',113,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 06',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(684,0,'SELECCIONE',524,503,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,1,NULL,NULL,70000,6,70000,0,0,0,70000,2,'V','MESAS','2025-10-23 12:56:41','2025-10-23 12:57:11','2025-10-23 12:56:41',NULL,'2025-10-23 12:57:11',113,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 06',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(685,0,'SELECCIONE',525,504,0,0,0,0,NULL,0,45,'HAB. 09',0,NULL,1,NULL,NULL,50000,9,50000,0,0,0,50000,2,'V','MESAS','2025-10-24 09:57:42','2025-10-24 09:58:24','2025-10-24 09:57:42',NULL,'2025-10-24 09:58:24',81,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 09',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(686,0,'SELECCIONE',526,505,0,0,0,0,NULL,0,30,'HAB. 11',0,NULL,1,NULL,NULL,50000,11,50000,0,0,0,50000,2,'V','MESAS','2025-10-25 12:47:28','2025-10-25 12:47:57','2025-10-25 12:47:28',NULL,'2025-10-25 12:47:57',105,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 11',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(687,0,'SELECCIONE',527,506,0,0,0,0,NULL,0,45,'HAB. 09',0,NULL,1,NULL,NULL,50000,9,50000,0,0,0,50000,2,'V','MESAS','2025-10-26 10:21:57','2025-10-26 10:22:23','2025-10-26 10:21:57',NULL,'2025-10-26 10:22:23',81,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 09',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(688,0,'SELECCIONE',528,507,0,0,0,0,NULL,0,46,'HAB....10',0,NULL,1,NULL,NULL,50000,10,50000,0,0,0,50000,2,'V','MESAS','2025-10-30 11:07:58','2025-10-30 11:08:22','2025-10-30 11:07:58',NULL,'2025-10-30 11:08:22',81,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 10',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(689,0,'SELECCIONE',529,508,0,0,0,0,NULL,0,46,'HAB....10',0,NULL,1,NULL,NULL,50000,10,50000,0,0,0,50000,2,'V','MESAS','2025-10-30 11:08:38','2025-10-30 11:08:57','2025-10-30 11:08:38',NULL,'2025-10-30 11:08:57',81,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 10',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(690,0,'SELECCIONE',530,509,0,0,0,0,NULL,0,30,'HAB. 11',0,NULL,1,NULL,NULL,50000,11,50000,0,0,0,50000,2,'V','MESAS','2025-10-31 20:46:13','2025-10-31 20:46:44','2025-10-31 20:46:13',NULL,'2025-10-31 20:46:44',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 11',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(691,0,'SELECCIONE',531,510,0,0,0,0,NULL,0,30,'HAB. 11',0,NULL,1,NULL,NULL,50000,11,50000,0,0,0,50000,2,'V','MESAS','2025-10-31 20:46:53','2025-10-31 20:47:36','2025-10-31 20:46:53',NULL,'2025-10-31 20:47:36',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 11',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(692,0,'SELECCIONE',532,511,0,0,0,0,NULL,0,30,'HAB. 11',0,NULL,1,NULL,NULL,50000,11,50000,0,0,0,50000,2,'V','MESAS','2025-10-31 20:47:48','2025-10-31 20:48:33','2025-10-31 20:47:48',NULL,'2025-10-31 20:48:33',2,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 11',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(693,0,'SELECCIONE',533,512,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-10-31 20:49:27','2025-10-31 20:50:11','2025-10-31 20:49:27',NULL,'2025-10-31 20:50:11',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(694,0,'SELECCIONE',534,513,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-10-31 20:50:20','2025-10-31 20:51:07','2025-10-31 20:50:20',NULL,'2025-10-31 20:51:07',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(695,0,'SELECCIONE',535,514,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-10-31 20:51:27','2025-10-31 20:51:59','2025-10-31 20:51:27',NULL,'2025-10-31 20:51:59',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(696,0,'SELECCIONE',536,515,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-10-31 20:52:21','2025-10-31 20:53:17','2025-10-31 20:52:21',NULL,'2025-10-31 20:53:17',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(697,0,'SELECCIONE',537,516,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-10-31 20:53:34','2025-10-31 20:54:46','2025-10-31 20:53:34',NULL,'2025-10-31 20:54:46',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(698,0,'SELECCIONE',538,517,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-10-31 20:55:05','2025-10-31 20:55:32','2025-10-31 20:55:05',NULL,'2025-10-31 20:55:33',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(699,0,'SELECCIONE',539,518,0,0,0,0,NULL,0,32,'HAB. 13',0,NULL,1,NULL,NULL,60000,2,60000,0,0,0,60000,2,'V','MESAS','2025-10-31 20:57:28','2025-10-31 20:58:09','2025-10-31 20:57:28',NULL,'2025-10-31 20:58:09',178,4,1,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 13',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(700,0,'SELECCIONE',540,519,0,0,0,0,NULL,0,33,'HAB. 14',0,NULL,1,NULL,NULL,70000,14,70000,0,0,0,70000,2,'V','MESAS','2025-10-31 20:58:19','2025-10-31 20:59:12','2025-10-31 20:58:19',NULL,'2025-10-31 20:59:12',178,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 14',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(701,0,'SELECCIONE',541,520,0,0,0,0,NULL,0,33,'HAB. 14',0,NULL,1,NULL,NULL,70000,14,70000,0,0,0,70000,2,'V','MESAS','2025-10-31 20:59:23','2025-10-31 21:00:12','2025-10-31 20:59:23',NULL,'2025-10-31 21:00:12',178,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 14',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(702,0,'SELECCIONE',542,521,0,0,0,0,NULL,0,33,'HAB. 14',0,NULL,1,NULL,NULL,70000,14,70000,0,0,0,70000,2,'V','MESAS','2025-10-31 21:02:01','2025-10-31 21:02:50','2025-10-31 21:02:01',NULL,'2025-10-31 21:02:50',178,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 14',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(703,0,'SELECCIONE',543,522,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,1,50000,0,0,0,50000,2,'V','MESAS','2025-11-01 14:08:25','2025-11-01 14:08:48','2025-11-01 14:08:25',NULL,'2025-11-01 14:08:48',105,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(704,0,'SELECCIONE',544,523,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-03 20:58:12','2025-11-03 20:59:27','2025-11-03 20:58:12',NULL,'2025-11-03 20:59:27',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(705,0,'SELECCIONE',545,524,0,0,0,0,NULL,0,32,'HAB. 13',0,NULL,1,NULL,NULL,60000,13,60000,0,0,0,60000,2,'V','MESAS','2025-11-03 20:59:36','2025-11-03 21:00:14','2025-11-03 20:59:36',NULL,'2025-11-03 21:00:14',178,4,1,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 13',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(706,0,'SELECCIONE',546,525,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-03 21:00:44','2025-11-03 21:01:13','2025-11-03 21:00:44',NULL,'2025-11-03 21:01:13',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(707,0,'SELECCIONE',547,526,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-03 21:01:24','2025-11-03 21:01:49','2025-11-03 21:01:24',NULL,'2025-11-03 21:01:49',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(708,0,'SELECCIONE',548,527,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-03 21:02:10','2025-11-03 21:12:46','2025-11-03 21:02:10',NULL,'2025-11-03 21:12:46',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(709,0,'SELECCIONE',549,528,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-03 21:15:58','2025-11-03 21:16:41','2025-11-03 21:15:58',NULL,'2025-11-03 21:16:41',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(710,0,'SELECCIONE',550,529,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-05 21:35:29','2025-11-05 21:40:09','2025-11-05 21:35:29',NULL,'2025-11-05 21:40:09',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(711,0,'SELECCIONE',551,530,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-05 21:40:40','2025-11-05 21:42:02','2025-11-05 21:40:40',NULL,'2025-11-05 21:42:02',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(712,0,'SELECCIONE',552,531,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-05 21:42:23','2025-11-05 21:43:27','2025-11-05 21:42:23',NULL,'2025-11-05 21:43:27',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(713,0,'SELECCIONE',553,532,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,1,50000,0,0,0,50000,2,'V','MESAS','2025-11-05 21:45:52','2025-11-05 21:46:31','2025-11-05 21:45:52',NULL,'2025-11-05 21:46:31',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(714,0,'SELECCIONE',554,533,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-05 21:47:26','2025-11-05 21:48:17','2025-11-05 21:47:26',NULL,'2025-11-05 21:48:17',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(715,0,'SELECCIONE',555,534,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-05 21:50:04','2025-11-05 21:50:55','2025-11-05 21:50:04',NULL,'2025-11-05 21:50:55',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(716,0,'SELECCIONE',556,535,0,0,0,0,NULL,0,33,'HAB. 14',0,NULL,1,NULL,NULL,70000,14,70000,0,0,0,70000,2,'V','MESAS','2025-11-05 22:08:53','2025-11-05 22:09:27','2025-11-05 22:08:53',NULL,'2025-11-05 22:09:27',121,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 14',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(717,0,'SELECCIONE',557,536,0,0,0,0,NULL,0,33,'HAB. 14',0,NULL,1,NULL,NULL,70000,14,70000,0,0,0,70000,2,'V','MESAS','2025-11-06 08:19:27','2025-11-06 08:23:03','2025-11-06 08:19:27',NULL,'2025-11-06 08:23:03',121,4,1,0,0,0,0,70000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 14',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(718,0,'SELECCIONE',558,537,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-10 18:14:57','2025-11-10 18:15:55','2025-11-10 18:14:57',NULL,'2025-11-10 18:15:55',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(719,0,'SELECCIONE',559,538,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-10 18:16:02','2025-11-10 18:16:41','2025-11-10 18:16:02',NULL,'2025-11-10 18:16:41',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(720,0,'SELECCIONE',560,539,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-10 18:16:51','2025-11-10 18:17:16','2025-11-10 18:16:51',NULL,'2025-11-10 18:17:16',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(721,0,'SELECCIONE',561,540,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-10 18:17:28','2025-11-10 18:18:19','2025-11-10 18:17:28',NULL,'2025-11-10 18:18:19',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(722,0,'SELECCIONE',562,541,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-10 18:20:33','2025-11-10 18:22:46','2025-11-10 18:20:33',NULL,'2025-11-10 18:22:46',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(723,0,'SELECCIONE',563,542,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-10 18:23:13','2025-11-10 18:24:24','2025-11-10 18:23:13',NULL,'2025-11-10 18:24:24',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(724,0,'SELECCIONE',564,543,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-10 18:24:33','2025-11-10 18:25:00','2025-11-10 18:24:33',NULL,'2025-11-10 18:25:00',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(725,0,'SELECCIONE',565,544,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-10 18:25:09','2025-11-10 18:27:11','2025-11-10 18:25:09',NULL,'2025-11-10 18:27:11',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(726,0,'SELECCIONE',566,545,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-10 18:29:42','2025-11-10 18:30:24','2025-11-10 18:29:42',NULL,'2025-11-10 18:30:24',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(727,0,'SELECCIONE',567,546,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-10 18:30:41','2025-11-10 18:31:14','2025-11-10 18:30:41',NULL,'2025-11-10 18:31:14',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(728,0,'SELECCIONE',568,547,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-10 18:31:28','2025-11-10 18:31:57','2025-11-10 18:31:28',NULL,'2025-11-10 18:31:57',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(729,0,'SELECCIONE',569,548,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-10 18:32:05','2025-11-10 18:32:33','2025-11-10 18:32:05',NULL,'2025-11-10 18:32:33',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(730,0,'SELECCIONE',570,549,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-11 11:07:53','2025-11-11 11:08:46','2025-11-11 11:07:53',NULL,'2025-11-11 11:08:46',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(731,0,'SELECCIONE',571,550,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-11 11:08:55','2025-11-11 11:09:22','2025-11-11 11:08:55',NULL,'2025-11-11 11:09:22',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(732,0,'SELECCIONE',572,551,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-11 11:09:34','2025-11-11 11:10:01','2025-11-11 11:09:34',NULL,'2025-11-11 11:10:01',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(733,0,'SELECCIONE',573,552,0,0,0,0,NULL,0,46,'HAB....10',0,NULL,1,NULL,NULL,50000,10,50000,0,0,0,50000,2,'V','MESAS','2025-11-11 15:39:07','2025-11-11 15:39:29','2025-11-11 15:39:07',NULL,'2025-11-11 15:39:29',81,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 10',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(734,0,'SELECCIONE',574,553,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-14 23:37:43','2025-11-14 23:38:22','2025-11-14 23:37:43',NULL,'2025-11-14 23:38:22',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(735,0,'SELECCIONE',575,554,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-14 23:38:31','2025-11-14 23:41:00','2025-11-14 23:38:31',NULL,'2025-11-14 23:41:00',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(736,0,'SELECCIONE',576,555,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-14 23:41:08','2025-11-14 23:43:28','2025-11-14 23:41:08',NULL,'2025-11-14 23:43:28',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(737,0,'SELECCIONE',577,556,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-14 23:44:03','2025-11-14 23:45:02','2025-11-14 23:44:03',NULL,'2025-11-14 23:45:02',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(738,0,'SELECCIONE',578,557,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-14 23:45:49','2025-11-14 23:47:19','2025-11-14 23:45:49',NULL,'2025-11-14 23:47:19',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(739,0,'SELECCIONE',579,558,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-14 23:47:26','2025-11-14 23:53:57','2025-11-14 23:47:26',NULL,'2025-11-14 23:53:57',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(740,0,'SELECCIONE',580,559,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-14 23:54:36','2025-11-14 23:55:16','2025-11-14 23:54:36',NULL,'2025-11-14 23:55:16',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(741,0,'SELECCIONE',581,560,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-14 23:55:24','2025-11-14 23:56:47','2025-11-14 23:55:24',NULL,'2025-11-14 23:56:47',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(742,0,'SELECCIONE',582,561,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-14 23:57:02','2025-11-14 23:59:33','2025-11-14 23:57:02',NULL,'2025-11-14 23:59:33',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(743,0,'SELECCIONE',583,562,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-14 23:59:47','2025-11-15 00:00:29','2025-11-14 23:59:47',NULL,'2025-11-15 00:00:29',2,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(744,0,'SELECCIONE',584,563,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-15 00:01:02','2025-11-15 00:01:51','2025-11-15 00:01:02',NULL,'2025-11-15 00:01:51',2,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(745,0,'SELECCIONE',585,564,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-15 00:02:34','2025-11-15 00:05:07','2025-11-15 00:02:34',NULL,'2025-11-15 00:05:07',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(746,0,'SELECCIONE',586,565,0,0,0,0,NULL,0,43,'HAB. 07',0,NULL,1,NULL,NULL,65000,7,65000,0,0,0,65000,2,'V','MESAS','2025-11-20 16:03:52','2025-11-20 16:04:20','2025-11-20 16:03:52',NULL,'2025-11-20 16:04:20',81,4,1,0,0,0,0,65000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 07',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(747,0,'SELECCIONE',587,566,0,0,0,0,NULL,0,46,'HAB....10',0,NULL,1,NULL,NULL,50000,10,50000,0,0,0,50000,2,'V','MESAS','2025-11-20 16:04:36','2025-11-20 16:05:13','2025-11-20 16:04:36',NULL,'2025-11-20 16:05:13',81,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 10',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(748,0,'SELECCIONE',588,567,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-20 16:10:40','2025-11-20 16:11:20','2025-11-20 16:10:40',NULL,'2025-11-20 16:11:20',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(749,0,'SELECCIONE',589,568,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-20 16:11:39','2025-11-20 16:12:06','2025-11-20 16:11:39',NULL,'2025-11-20 16:12:06',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(750,0,'SELECCIONE',590,569,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-20 16:12:13','2025-11-20 16:12:55','2025-11-20 16:12:13',NULL,'2025-11-20 16:12:55',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(751,0,'SELECCIONE',591,570,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-20 16:13:04','2025-11-20 16:13:48','2025-11-20 16:13:04',NULL,'2025-11-20 16:13:48',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(752,0,'SELECCIONE',592,571,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-20 16:13:56','2025-11-20 16:14:47','2025-11-20 16:13:56',NULL,'2025-11-20 16:14:47',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(753,0,'SELECCIONE',593,572,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-20 16:14:55','2025-11-20 16:15:27','2025-11-20 16:14:55',NULL,'2025-11-20 16:15:27',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(754,0,'SELECCIONE',594,573,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-20 16:20:57','2025-11-20 16:21:50','2025-11-20 16:20:57',NULL,'2025-11-20 16:21:50',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(755,0,'SELECCIONE',595,574,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-20 16:21:58','2025-11-20 16:23:19','2025-11-20 16:21:58',NULL,'2025-11-20 16:23:19',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(756,0,'SELECCIONE',596,575,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-20 16:23:29','2025-11-20 16:23:59','2025-11-20 16:23:29',NULL,'2025-11-20 16:23:59',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(757,0,'SELECCIONE',597,576,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-20 16:24:05','2025-11-20 16:24:55','2025-11-20 16:24:05',NULL,'2025-11-20 16:24:55',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(758,0,'SELECCIONE',598,577,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-20 16:25:08','2025-11-20 16:25:30','2025-11-20 16:25:08',NULL,'2025-11-20 16:25:30',2,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(759,0,'SELECCIONE',599,578,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-20 16:27:11','2025-11-20 16:29:30','2025-11-20 16:27:11',NULL,'2025-11-20 16:29:30',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(760,0,'SELECCIONE',600,579,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-20 16:31:02','2025-11-20 16:32:15','2025-11-20 16:31:02',NULL,'2025-11-20 16:32:15',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(761,0,'SELECCIONE',601,580,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-20 16:32:43','2025-11-20 16:33:32','2025-11-20 16:32:43',NULL,'2025-11-20 16:33:32',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(762,0,'SELECCIONE',602,581,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-20 16:34:01','2025-11-20 16:34:26','2025-11-20 16:34:01',NULL,'2025-11-20 16:34:26',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(763,0,'SELECCIONE',603,582,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-20 16:34:50','2025-11-20 16:35:30','2025-11-20 16:34:50',NULL,'2025-11-20 16:35:30',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(764,0,'SELECCIONE',604,583,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 08:25:39','2025-11-26 08:27:29','2025-11-26 08:25:39',NULL,'2025-11-26 08:27:29',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(765,0,'SELECCIONE',605,584,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 08:27:41','2025-11-26 08:29:23','2025-11-26 08:27:41',NULL,'2025-11-26 08:29:23',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(766,0,'SELECCIONE',606,585,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 08:29:31','2025-11-26 08:30:11','2025-11-26 08:29:31',NULL,'2025-11-26 08:30:11',2,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(767,0,'SELECCIONE',607,586,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 08:30:38','2025-11-26 08:31:27','2025-11-26 08:30:38',NULL,'2025-11-26 08:31:27',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(768,0,'SELECCIONE',608,587,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 08:31:37','2025-11-26 08:33:17','2025-11-26 08:31:37',NULL,'2025-11-26 08:33:17',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(769,0,'SELECCIONE',609,588,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 16:50:53','2025-11-26 16:57:25','2025-11-26 16:50:53',NULL,'2025-11-26 16:57:25',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(770,0,'SELECCIONE',610,589,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 09:01:30','2025-11-26 16:58:22','2025-11-26 09:01:30',NULL,'2025-11-26 16:58:22',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(771,0,'SELECCIONE',611,590,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 16:58:47','2025-11-26 16:59:22','2025-11-26 16:58:47',NULL,'2025-11-26 16:59:22',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(772,0,'SELECCIONE',612,591,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 21:44:07','2025-11-26 22:48:10','2025-11-26 21:44:07',NULL,'2025-11-26 22:48:10',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(773,0,'SELECCIONE',613,592,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 22:48:30','2025-11-26 22:52:11','2025-11-26 22:48:30',NULL,'2025-11-26 22:52:12',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(774,0,'SELECCIONE',614,593,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,50000,2,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 22:52:36','2025-11-26 22:53:26','2025-11-26 22:52:36',NULL,'2025-11-26 22:53:26',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 02',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(775,0,'SELECCIONE',615,594,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 17:16:17','2025-11-26 22:58:43','2025-11-26 17:16:17',NULL,'2025-11-26 22:58:43',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(776,0,'SELECCIONE',616,595,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 22:58:51','2025-11-26 22:59:23','2025-11-26 22:58:51',NULL,'2025-11-26 22:59:23',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(777,0,'SELECCIONE',617,596,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 22:59:46','2025-11-26 23:01:07','2025-11-26 22:59:46',NULL,'2025-11-26 23:01:07',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(778,0,'SELECCIONE',618,597,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 23:05:59','2025-11-26 23:07:19','2025-11-26 23:05:59',NULL,'2025-11-26 23:07:19',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(779,0,'SELECCIONE',619,598,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 23:07:52','2025-11-26 23:09:30','2025-11-26 23:07:52',NULL,'2025-11-26 23:09:30',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(780,0,'SELECCIONE',620,599,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,50000,3,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 23:17:26','2025-11-26 23:18:13','2025-11-26 23:17:26',NULL,'2025-11-26 23:18:13',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 03',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(781,0,'SELECCIONE',621,600,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 23:28:03','2025-11-26 23:28:57','2025-11-26 23:28:03',NULL,'2025-11-26 23:28:57',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(782,0,'SELECCIONE',622,601,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 23:29:06','2025-11-26 23:29:55','2025-11-26 23:29:06',NULL,'2025-11-26 23:29:55',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(783,0,'SELECCIONE',623,602,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 23:30:06','2025-11-26 23:30:40','2025-11-26 23:30:06',NULL,'2025-11-26 23:30:40',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(784,0,'SELECCIONE',624,603,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 23:33:00','2025-11-26 23:34:19','2025-11-26 23:33:00',NULL,'2025-11-26 23:34:19',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(785,0,'SELECCIONE',625,604,0,0,0,0,NULL,0,44,'HAB.08',0,NULL,1,NULL,NULL,50000,8,50000,0,0,0,50000,2,'V','MESAS','2025-11-26 23:34:31','2025-11-26 23:35:36','2025-11-26 23:34:31',NULL,'2025-11-26 23:35:36',178,4,1,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 3','','SELECCIONE',1,0,1,0,'HAB 08',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1),(786,0,'SELECCIONE',626,605,0,0,0,0,NULL,0,41,'HAB 05',0,NULL,1,NULL,NULL,60000,5,60000,0,0,0,60000,2,'V','MESAS','2025-11-26 23:46:24','2025-11-26 23:48:10','2025-11-26 23:46:24',NULL,'2025-11-26 23:48:10',122,4,1,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,0,0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'hotelmontana','PISO 2','','SELECCIONE',1,0,1,0,'HAB 05',NULL,NULL,NULL,_binary '\0',NULL,_binary '\0',NULL,_binary '\0',_binary '\0',NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,0.00,0,0,0,0,NULL,0,0,0,'valordeventa',1);

--
-- Table structure for table `ventas2`
--

CREATE TABLE `ventas2` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `codvendedor` int NOT NULL DEFAULT '0',
  `refventas` varchar(25) DEFAULT NULL,
  `situacioncocina` varchar(50) DEFAULT NULL,
  `idfactura` bigint unsigned NOT NULL,
  `consecutivo` int NOT NULL,
  `INCREMENTO` int NOT NULL,
  `codarticulo` int NOT NULL,
  `codsituacion` int NOT NULL,
  `porcentajedescuento` double DEFAULT '0',
  `referenciafront` varchar(15) DEFAULT NULL,
  `impuesto` double DEFAULT '0',
  `idarticulo` bigint unsigned NOT NULL,
  `descripcion` varchar(120) DEFAULT NULL,
  `esmodificador` int DEFAULT '0',
  `nombrearticulo` varchar(100) DEFAULT NULL,
  `cantidad` double NOT NULL DEFAULT '0',
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `idmesa` int NOT NULL DEFAULT '1',
  `bruto` double NOT NULL DEFAULT '0',
  `baseunitario` double NOT NULL DEFAULT '0',
  `ivaunitario` double NOT NULL DEFAULT '0',
  `descuento` int NOT NULL DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `cc` bigint unsigned NOT NULL,
  `documento` varchar(3) NOT NULL DEFAULT 'V',
  `origen` varchar(8) NOT NULL DEFAULT 'MESAS',
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `HORAINI` datetime DEFAULT NULL,
  `HORAFIN` datetime DEFAULT NULL,
  `ultimaedicion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idcliente` bigint unsigned NOT NULL DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `abonado` int NOT NULL DEFAULT '0',
  `idfacturaqueabona` int NOT NULL DEFAULT '0',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `iva` double NOT NULL DEFAULT '0',
  `esbolsillo` int NOT NULL DEFAULT '0',
  `idvendedor` bigint unsigned NOT NULL DEFAULT '1',
  `escortesia` int NOT NULL DEFAULT '0',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `idnc` bigint unsigned NOT NULL DEFAULT '1',
  `nc` int DEFAULT '0',
  `idusuarionc` bigint unsigned NOT NULL DEFAULT '1',
  `mediodepago` varchar(25) NOT NULL DEFAULT 'EFECTIVO',
  `comision` int NOT NULL DEFAULT '0',
  `devolucionrevisada` int DEFAULT '0',
  `fechaabonado` datetime DEFAULT NULL,
  `fechamc` datetime DEFAULT NULL,
  `tienenc` int NOT NULL DEFAULT '0',
  `marcadoparanc` int NOT NULL DEFAULT '0',
  `servicio` int NOT NULL DEFAULT '0',
  `subido` int NOT NULL DEFAULT '0',
  `CODMODIF` varchar(2) NOT NULL DEFAULT '0',
  `esmodif` int NOT NULL DEFAULT '0',
  `CODARTICULOABAJO` varchar(12) NOT NULL DEFAULT '',
  `PRECIOIVA` int NOT NULL DEFAULT '0',
  `NUMMODIF` int NOT NULL DEFAULT '0',
  `numservicio` int NOT NULL DEFAULT '0',
  `aliasespera` int NOT NULL DEFAULT '1',
  `impresiones` int NOT NULL DEFAULT '1',
  `IDMOTIVODTO` varchar(2) NOT NULL DEFAULT '-1',
  `DETALLEDENUMLINEA` varchar(2) NOT NULL DEFAULT '0',
  `FAMILIAAENA` varchar(2) NOT NULL DEFAULT '0',
  `DETALLEMODIF` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_NUMERO` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_N` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_SERIE` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_FO` varchar(2) NOT NULL DEFAULT '-1',
  `NORDERTIQUET` varchar(1) NOT NULL DEFAULT '0',
  `SORDERTIQUET` varchar(1) NOT NULL DEFAULT '',
  `REQ` int NOT NULL DEFAULT '0',
  `COSTEIVA` int NOT NULL DEFAULT '0',
  `DTO` int NOT NULL DEFAULT '0',
  `TIPO` varchar(2) NOT NULL DEFAULT 'V',
  `CODMACRO` int NOT NULL DEFAULT '0',
  `CODFORMATO` int NOT NULL DEFAULT '0',
  `NUMLINEA` int NOT NULL DEFAULT '1',
  `codigociudad` varchar(5) DEFAULT NULL,
  `email` varchar(5) DEFAULT NULL,
  `codigopostal` varchar(5) DEFAULT NULL,
  `codigodepartamento` varchar(5) DEFAULT NULL,
  `departamento` varchar(5) DEFAULT NULL,
  `ciudad` varchar(5) DEFAULT NULL,
  `cufe` varchar(5) DEFAULT NULL,
  `unidaddemedida` varchar(25) DEFAULT NULL,
  `esnota` int DEFAULT '0',
  `unidadesdemedida` varchar(25) DEFAULT NULL,
  `impreso` int DEFAULT '0',
  `domicilio` int DEFAULT '0',
  `domicilioexterno` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  `zonaventas` varchar(25) DEFAULT NULL,
  `seccionventas` varchar(25) DEFAULT NULL,
  `situacioncocina2` varchar(25) DEFAULT 'SELECCIONE',
  `TIPOIVA` int DEFAULT '1',
  `porcentajecomision` decimal(5,2) DEFAULT '0.00',
  `impultraprocesados` int DEFAULT '0',
  `impazucaradas` int DEFAULT '0',
  `campovalor` varchar(25) DEFAULT NULL,
  `sesiones` int DEFAULT '1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idfactura` (`idfactura`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idcc` (`cc`),
  KEY `idcliente` (`idcliente`),
  KEY `idusuario` (`idusuario`),
  KEY `idz` (`idz`),
  KEY `idvendedor` (`idvendedor`)
) ENGINE=InnoDB AUTO_INCREMENT=81 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `ventas2`
--

INSERT INTO `ventas2` (`id`, `codvendedor`, `refventas`, `situacioncocina`, `idfactura`, `consecutivo`, `INCREMENTO`, `codarticulo`, `codsituacion`, `porcentajedescuento`, `referenciafront`, `impuesto`, `idarticulo`, `descripcion`, `esmodificador`, `nombrearticulo`, `cantidad`, `comentario`, `observaciones`, `valorunitario`, `idmesa`, `bruto`, `baseunitario`, `ivaunitario`, `descuento`, `valortotal`, `cc`, `documento`, `origen`, `fecha`, `fechacreacion`, `HORAINI`, `HORAFIN`, `ultimaedicion`, `idcliente`, `idusuario`, `idz`, `abonado`, `idfacturaqueabona`, `costomedio`, `porcentajeiva`, `base`, `iva`, `esbolsillo`, `idvendedor`, `escortesia`, `idcaja`, `idnc`, `nc`, `idusuarionc`, `mediodepago`, `comision`, `devolucionrevisada`, `fechaabonado`, `fechamc`, `tienenc`, `marcadoparanc`, `servicio`, `subido`, `CODMODIF`, `esmodif`, `CODARTICULOABAJO`, `PRECIOIVA`, `NUMMODIF`, `numservicio`, `aliasespera`, `impresiones`, `IDMOTIVODTO`, `DETALLEDENUMLINEA`, `FAMILIAAENA`, `DETALLEMODIF`, `ABONODE_NUMERO`, `ABONODE_N`, `ABONODE_SERIE`, `ABONODE_FO`, `NORDERTIQUET`, `SORDERTIQUET`, `REQ`, `COSTEIVA`, `DTO`, `TIPO`, `CODMACRO`, `CODFORMATO`, `NUMLINEA`, `codigociudad`, `email`, `codigopostal`, `codigodepartamento`, `departamento`, `ciudad`, `cufe`, `unidaddemedida`, `esnota`, `unidadesdemedida`, `impreso`, `domicilio`, `domicilioexterno`, `pv`, `zonaventas`, `seccionventas`, `situacioncocina2`, `TIPOIVA`, `porcentajecomision`, `impultraprocesados`, `impazucaradas`, `campovalor`, `sesiones`) VALUES (1,0,'','SELECCIONE',1,3902,0,0,0,0,NULL,0,2,'una semana',0,NULL,1,NULL,NULL,200000,1,200000,0,0,0,200000,2,'V','MESAS','2023-04-01 16:47:57','2023-04-01 16:47:57','2023-04-01 16:46:00',NULL,'2023-04-01 16:47:57',2,4,0,0,0,0,0,200000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(2,0,'CEPILLO DENTAL','SELECCIONE',2,1,0,0,0,0,NULL,0,22,'CEPILLLO DENTAL',0,NULL,1,NULL,NULL,3500,1,3500,0,0,0,3500,2,'V','MESAS','2023-04-26 15:31:23','2023-04-26 15:31:23','2023-04-26 15:31:14',NULL,'2023-04-26 15:31:23',2,4,0,0,0,0,19,2941.1764705882356,558.8235294117648,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(3,0,'AGUA BOTELLA','SELECCIONE',3,2,0,0,0,0,NULL,0,8,'AGUA BOTELLA PERSONAL',0,NULL,1,NULL,NULL,2000,1,2000,0,0,0,2000,2,'V','MESAS','2023-04-26 16:05:44','2023-04-26 16:05:44','2023-04-26 16:00:52',NULL,'2023-04-26 16:05:44',2,4,0,0,0,0,0,2000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(4,0,'AGUA BOTELLA','SELECCIONE',4,3,0,0,0,0,NULL,0,8,'AGUA BOTELLA PERSONAL',0,NULL,1,NULL,NULL,2000,1,2000,0,0,0,2000,2,'V','MESAS','2023-05-10 17:21:41','2023-05-10 17:21:41','2023-05-10 17:20:24',NULL,'2023-05-10 17:21:41',2,4,0,0,0,0,0,2000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(5,0,'DESODORANTE','SELECCIONE',5,4,0,0,0,0,NULL,0,95,'',0,NULL,1,NULL,NULL,1500,1,1500,0,0,0,1500,2,'V','MESAS','2023-08-26 05:12:22','2023-08-25 23:59:59','2023-07-05 15:16:49',NULL,'2023-08-26 05:12:22',2,4,0,0,0,0,0,1500,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(6,0,'AGUA BOTELLA','SELECCIONE',5,4,0,0,0,0,NULL,0,8,'AGUA BOTELLA PERSONAL',0,NULL,1,NULL,NULL,2000,1,2000,0,0,0,2000,2,'V','MESAS','2023-08-26 05:12:22','2023-08-25 23:59:59','2023-08-25 23:59:59',NULL,'2023-08-26 05:12:22',2,4,0,0,0,2000,0,2000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(7,0,'ALKASELTZER','SELECCIONE',5,4,0,0,0,0,NULL,0,21,'ALKASELTZER UNIDAD',0,NULL,1,NULL,NULL,1500,1,1500,0,0,0,1500,2,'V','MESAS','2023-08-26 05:12:22','2023-08-25 23:59:59','2023-08-25 23:59:59',NULL,'2023-08-26 05:12:22',2,4,0,0,0,1500,19,1260.5042016806724,239.49579831932772,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,3,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(8,0,'ALKASELTZER','SELECCIONE',5,4,0,0,0,0,NULL,0,21,'ALKASELTZER UNIDAD',0,NULL,1,NULL,NULL,1500,1,1500,0,0,0,1500,2,'V','MESAS','2023-08-26 05:12:22','2023-08-25 23:59:59','2023-08-25 23:59:59',NULL,'2023-08-26 05:12:22',2,4,0,0,0,1500,19,1260.5042016806724,239.49579831932772,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(12,0,'AGUA BOTELLA','SELECCIONE',6,5,0,0,0,0,NULL,0,8,'AGUA BOTELLA PERSONAL',0,NULL,1,NULL,NULL,2000,1,2000,0,0,0,2000,2,'V','MESAS','2023-08-26 10:08:16','2023-08-26 10:08:16','2023-08-26 10:08:07',NULL,'2023-08-26 10:08:16',2,4,0,0,0,2000,0,2000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(13,0,'HAB 704','SELECCIONE',7,6,0,0,0,0,NULL,0,90,'*HABITACION',0,NULL,1,NULL,NULL,13000,1,13000,0,0,0,13000,2,'V','MESAS','2023-08-26 10:08:47','2023-08-26 10:08:47','2023-08-26 10:08:38',NULL,'2023-08-26 10:08:47',2,4,0,0,0,0,0,13000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(14,0,'AGUA BOTELLA','SELECCIONE',8,7,0,0,0,0,NULL,0,8,'AGUA BOTELLA PERSONAL',0,NULL,1,NULL,NULL,2000,1,2000,0,0,0,2000,2,'V','MESAS','2023-08-26 10:10:27','2023-08-26 10:10:27','2023-08-26 10:10:16',NULL,'2023-08-26 10:10:27',2,1,0,0,0,2000,0,2000,0,0,1,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(15,0,'AGUA BOTELLA','SELECCIONE',9,8,0,0,0,0,NULL,0,8,'AGUA BOTELLA PERSONAL',0,NULL,1,NULL,NULL,2000,1,2000,0,0,0,2000,2,'V','MESAS','2023-08-26 10:11:39','2023-08-26 10:11:39','2023-08-26 10:10:48',NULL,'2023-08-26 10:11:39',2,4,0,0,0,2000,0,2000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(16,0,'ALKASELTZER','SELECCIONE',9,8,0,0,0,0,NULL,0,21,'ALKASELTZER UNIDAD',0,NULL,1,NULL,NULL,1500,1,1500,0,0,0,1500,2,'V','MESAS','2023-08-26 10:11:39','2023-08-26 10:11:39','2023-08-26 10:10:49',NULL,'2023-08-26 10:11:39',2,4,0,0,0,1500,19,1260.5042016806724,239.49579831932772,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(17,0,'ANTIOQUEÑO BOTELLA','SELECCIONE',9,8,0,0,0,0,NULL,0,2,'BOTELLA DE AGUARDIENTE',0,NULL,1,NULL,NULL,43000,1,43000,0,0,0,43000,2,'V','MESAS','2023-08-26 10:11:39','2023-08-26 10:11:39','2023-08-26 10:10:50',NULL,'2023-08-26 10:11:39',2,4,0,0,0,43000,5,40952.380952380954,2047.6190476190477,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,3,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'HABITACIONES','SELECCIONE',1,0.00,0,0,NULL,1),(18,0,'BRANDY DOMECQ BOTELL','SELECCIONE',9,8,0,0,0,0,NULL,0,6,'BOTELLA DE BRANDY',0,NULL,1,NULL,NULL,53000,1,53000,0,0,0,53000,2,'V','MESAS','2023-08-26 10:11:39','2023-08-26 10:11:39','2023-08-26 10:10:51',NULL,'2023-08-26 10:11:39',2,4,0,0,0,53000,5,50476.19047619047,2523.809523809524,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,4,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(22,0,'AGUA BOTELLA','SELECCIONE',10,9,0,0,0,0,NULL,0,8,'AGUA BOTELLA PERSONAL',0,NULL,2,NULL,NULL,2000,1,4000,0,0,0,4000,2,'V','MESAS','2023-08-26 10:42:28','2023-08-26 10:42:27','2023-08-26 10:41:35',NULL,'2023-08-26 10:42:28',2,7,0,0,0,2000,0,4000,0,0,7,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(23,0,'CREMA DENTAL','SELECCIONE',10,9,0,0,0,0,NULL,0,23,'CREMA DENTAL PERSONAL',0,NULL,1,NULL,NULL,2500,1,2500,0,0,0,2500,2,'V','MESAS','2023-08-26 10:42:28','2023-08-26 10:42:27','2023-08-26 10:41:44',NULL,'2023-08-26 10:42:28',2,7,0,0,0,2500,19,2100.840336134454,399.15966386554624,0,7,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(24,0,'HAB 509','SELECCIONE',10,9,0,0,0,0,NULL,0,74,'-HABITACION',0,NULL,1,NULL,NULL,12000,1,12000,0,0,0,12000,2,'V','MESAS','2023-08-26 10:42:28','2023-08-26 10:42:27','2023-08-26 10:42:01',NULL,'2023-08-26 10:42:28',2,7,0,0,0,0,0,12000,0,0,7,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,3,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(25,0,'AGUA BOTELLA','SELECCIONE',11,10,0,0,0,0,NULL,0,8,'AGUA BOTELLA PERSONAL',0,NULL,1,NULL,NULL,2000,1,2000,0,0,0,2000,2,'V','MESAS','2023-08-26 11:20:43','2023-08-26 11:20:43','2023-08-26 11:19:59',NULL,'2023-08-26 11:20:43',15,7,0,0,0,2000,0,2000,0,0,7,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(26,0,'AGUA BOTELLA','SELECCIONE',11,10,0,0,0,0,NULL,0,8,'AGUA BOTELLA PERSONAL',0,NULL,1,NULL,NULL,2000,1,2000,0,0,0,2000,2,'V','MESAS','2023-08-26 11:20:43','2023-08-26 11:20:43','2023-08-26 11:20:00',NULL,'2023-08-26 11:20:43',15,7,0,0,0,2000,0,2000,0,0,7,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(27,0,'HAB 704','SELECCIONE',11,10,0,0,0,0,NULL,0,90,'*HABITACION',0,NULL,1,NULL,NULL,13000,1,13000,0,0,0,13000,2,'V','MESAS','2023-08-26 11:20:43','2023-08-26 11:20:43','2023-08-26 11:20:12',NULL,'2023-08-26 11:20:43',15,7,0,0,0,0,0,13000,0,0,7,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,3,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(28,0,'GASEOSA','SELECCIONE',12,11,0,0,0,0,NULL,0,7,'GASEOSA PERSONAL',0,NULL,1,NULL,NULL,2000,2,2000,0,0,0,2000,2,'V','MESAS','2023-08-26 11:21:59','2023-08-26 11:21:59','2023-08-26 11:21:42',NULL,'2023-08-26 11:21:59',2,7,0,0,0,2000,0,2000,0,0,7,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(29,0,'GASEOSA','SELECCIONE',12,11,0,0,0,0,NULL,0,7,'GASEOSA PERSONAL',0,NULL,1,NULL,NULL,2000,2,2000,0,0,0,2000,2,'V','MESAS','2023-08-26 11:21:59','2023-08-26 11:21:59','2023-08-26 11:21:44',NULL,'2023-08-26 11:21:59',2,7,0,0,0,2000,0,2000,0,0,7,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(30,0,'GASEOSA','SELECCIONE',12,11,0,0,0,0,NULL,0,7,'GASEOSA PERSONAL',0,NULL,1,NULL,NULL,2000,2,2000,0,0,0,2000,2,'V','MESAS','2023-08-26 11:21:59','2023-08-26 11:21:59','2023-08-26 11:21:44',NULL,'2023-08-26 11:21:59',2,7,0,0,0,2000,0,2000,0,0,7,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,3,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(31,0,'ALKASELTZER','SELECCIONE',13,12,0,0,0,0,NULL,0,21,'ALKASELTZER UNIDAD',0,NULL,1,NULL,NULL,1500,1,1500,0,0,0,1500,2,'V','MESAS','2023-09-28 14:32:41','2023-09-28 14:32:41','2023-09-28 14:32:32',NULL,'2023-09-28 14:32:41',2,1,0,0,0,1500,19,1260.5042016806724,239.49579831932772,0,1,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(32,0,'HAB 06','SELECCIONE',14,13,0,0,0,0,NULL,0,42,'HABI.',0,NULL,3,NULL,NULL,60000,5,180000,0,0,0,180000,2,'V','MESAS','2023-10-06 10:32:44','2023-10-06 10:32:44','2023-10-06 10:26:04',NULL,'2023-10-06 10:32:44',2,4,0,0,0,0,0,180000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(33,0,'HAB 06','SELECCIONE',15,2,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,3,NULL,NULL,60000,6,180000,0,0,0,180000,2,'V','MESAS','2023-10-06 10:55:29','2023-10-06 10:55:29','2023-10-06 10:54:40',NULL,'2023-10-06 10:55:29',2,4,0,0,0,0,0,180000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(34,0,'HAB 06','SELECCIONE',16,3,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,3,NULL,NULL,60000,6,180000,0,0,0,180000,2,'V','MESAS','2023-10-06 11:18:24','2023-10-06 11:18:24','2023-10-06 11:18:02',NULL,'2023-10-06 11:18:24',2,4,0,0,0,0,0,180000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(35,0,'HAB 06','SELECCIONE',17,4,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,3,NULL,NULL,60000,6,180000,0,0,0,180000,2,'V','MESAS','2023-10-06 12:19:43','2023-10-06 12:19:43','2023-10-06 12:03:06',NULL,'2023-10-06 12:19:43',16,4,0,0,0,0,0,180000,0,0,14,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(36,0,'HAB 06','SELECCIONE',18,5,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,3,NULL,NULL,60000,6,180000,0,0,0,180000,2,'V','MESAS','2023-10-06 16:37:43','2023-10-06 16:37:43','2023-10-06 16:30:17',NULL,'2023-10-06 16:37:43',16,4,0,0,0,0,0,180000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(37,0,'HAB 06','SELECCIONE',19,6,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,3,NULL,NULL,60000,6,180000,0,0,0,180000,2,'V','MESAS','2023-10-06 16:42:36','2023-10-06 16:42:36','2023-10-06 16:41:12',NULL,'2023-10-06 16:42:36',16,4,0,0,0,0,0,180000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,0.00,0,0,NULL,1),(38,0,'ANTIOQUEÑO BOTELLA','SELECCIONE',20,7,0,0,0,0,NULL,0,2,'BOTELLA DE AGUARDIENTE',0,NULL,1,NULL,NULL,43000,1,43000,0,0,0,43000,2,'V','MESAS','2023-11-30 09:46:02','2023-11-30 09:46:14','2023-11-30 09:46:02',NULL,'2023-11-30 09:46:14',2,1,0,0,0,43000,0,43000,0,0,1,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'HABITACIONES','SELECCIONE',1,NULL,0,0,NULL,1),(39,0,'HAB 05','SELECCIONE',21,7,0,0,0,0,NULL,0,41,'HAB 05',0,NULL,1,NULL,NULL,50000,5,50000,0,0,0,50000,2,'V','MESAS','2023-11-30 10:01:08','2023-11-30 10:07:12','2023-11-30 10:01:08',NULL,'2023-11-30 10:07:12',8,4,0,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(40,0,'HAB 02','SELECCIONE',22,8,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,40000,2,40000,0,0,0,40000,2,'V','MESAS','2023-11-30 12:43:30','2023-11-30 12:43:56','2023-11-30 12:43:30',NULL,'2023-11-30 12:43:56',2,4,0,0,0,0,0,40000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(41,0,'HAB 02','SELECCIONE',23,9,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,40000,2,40000,0,0,0,40000,2,'V','MESAS','2023-11-30 12:44:43','2023-11-30 12:45:44','2023-11-30 12:44:43',NULL,'2023-11-30 12:45:44',9,4,0,0,0,0,0,40000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(42,0,'HAB 03','SELECCIONE',24,10,0,0,0,0,NULL,0,39,'HAB 03',0,NULL,1,NULL,NULL,40000,1,40000,0,0,0,40000,2,'C','MESAS','2023-12-16 18:40:53','2023-12-16 19:05:30','2023-12-16 18:40:53',NULL,'2023-12-16 19:05:30',10,4,0,0,0,0,0,40000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(43,0,'HAB 02','SELECCIONE',24,10,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,40000,1,40000,0,0,0,40000,2,'C','MESAS','2023-12-16 18:41:06','2023-12-16 19:05:30','2023-12-16 18:41:06',NULL,'2023-12-16 19:05:30',10,4,0,0,0,0,0,40000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(44,0,'HAB 06','SELECCIONE',24,10,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,1,NULL,NULL,60000,1,60000,0,0,0,60000,2,'C','MESAS','2023-12-16 18:41:18','2023-12-16 19:05:30','2023-12-16 18:41:18',NULL,'2023-12-16 19:05:30',10,4,0,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,3,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(45,0,'HAB 14','SELECCIONE',25,11,0,0,0,0,NULL,0,33,'HAB. 14',0,NULL,5,NULL,NULL,60000,14,300000,0,0,0,300000,2,'V','MESAS','2023-12-17 11:46:53','2023-12-17 11:54:01','2023-12-17 11:46:53',NULL,'2023-12-17 11:54:01',12,4,0,0,0,0,0,300000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(46,0,'HAB 06','SELECCIONE',26,12,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,3,NULL,NULL,60000,6,180000,0,0,0,180000,2,'V','MESAS','2024-02-14 16:32:26','2024-02-15 11:20:14','2024-02-14 16:32:26',NULL,'2024-02-15 11:20:14',19,4,0,0,0,0,0,180000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(47,0,'HAB 06','SELECCIONE',27,13,0,0,0,33.333333333333,NULL,0,42,'HAB. 06',0,NULL,3,NULL,NULL,60000,5,180000,0,0,60000,120000.0000000006,2,'V','MESAS','2024-02-15 11:37:13','2024-02-15 11:40:17','2024-02-15 11:37:13',NULL,'2024-02-15 11:40:17',19,4,0,0,0,0,0,120000.0000000006,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(48,0,'HAB 06','SELECCIONE',28,14,0,0,0,33.333333333333,NULL,0,42,'HAB. 06',0,NULL,3,NULL,NULL,60000,6,180000,0,0,60000,120000.0000000006,2,'V','MESAS','2024-02-15 11:58:29','2024-02-15 12:00:07','2024-02-15 11:58:29',NULL,'2024-02-15 12:00:07',19,4,0,0,0,0,0,120000.0000000006,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(49,0,'HAB 06','SELECCIONE',29,15,0,0,0,33.333333333333,NULL,0,42,'HAB. 06',0,NULL,3,NULL,NULL,60000,6,180000,0,0,60000,120000.0000000006,2,'V','MESAS','2024-02-15 12:01:04','2024-02-15 12:03:39','2024-02-15 12:01:04',NULL,'2024-02-15 12:03:39',2,4,0,0,0,0,0,120000.0000000006,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(50,0,'HAB 06','SELECCIONE',30,16,0,0,0,33.333333333333,NULL,0,42,'HAB. 06',0,NULL,3,NULL,NULL,60000,6,180000,0,0,60000,120000.0000000006,2,'V','MESAS','2024-02-15 12:04:36','2024-02-15 12:06:25','2024-02-15 12:04:36',NULL,'2024-02-15 12:06:25',2,4,0,0,0,0,0,120000.0000000006,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(51,0,'HAB 06','SELECCIONE',31,17,0,0,0,33.333333333333,NULL,0,42,'HAB. 06',0,NULL,3,NULL,NULL,60000,6,180000,0,0,60000,120000.0000000006,2,'V','MESAS','2024-02-15 12:07:30','2024-02-15 12:10:02','2024-02-15 12:07:30',NULL,'2024-02-15 12:10:02',19,4,0,0,0,0,0,120000.0000000006,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(52,0,'HAB 01','SELECCIONE',32,18,0,0,0,0,NULL,0,38,'HAB. 01',0,NULL,1,NULL,NULL,40000,1,40000,0,0,0,40000,2,'V','MESAS','2024-02-16 08:45:37','2024-02-16 16:00:16','2024-02-16 08:45:37',NULL,'2024-02-16 16:00:16',9,4,0,0,0,0,0,40000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(53,0,'HAB 02','SELECCIONE',32,18,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,40000,1,40000,0,0,0,40000,2,'V','MESAS','2024-02-16 14:12:36','2024-02-16 16:00:16','2024-02-16 14:12:36',NULL,'2024-02-16 16:00:16',9,4,0,0,0,0,0,40000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(55,0,'HAB 06','SELECCIONE',33,19,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,1,NULL,NULL,60000,6,60000,0,0,0,60000,2,'V','MESAS','2024-03-09 13:14:32','2024-03-09 13:16:19','2024-03-09 13:14:32',NULL,'2024-03-09 13:16:20',25,4,0,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(56,0,'HAB 13','SELECCIONE',33,19,0,0,0,0,NULL,0,32,'HAB. 13',0,NULL,1,NULL,NULL,50000,6,50000,0,0,0,50000,2,'V','MESAS','2024-03-09 13:14:35','2024-03-09 13:16:19','2024-03-09 13:14:35',NULL,'2024-03-09 13:16:20',25,4,0,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(58,0,'HAB 01','SELECCIONE',34,20,0,0,0,0,NULL,0,38,'HAB. 01',0,NULL,2,NULL,NULL,40000,1,80000,0,0,0,80000,2,'V','MESAS','2024-03-11 20:58:51','2024-03-11 21:30:46','2024-03-11 20:58:51',NULL,'2024-03-11 21:30:46',28,4,0,0,0,0,0,80000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(59,0,'HAB 06','SELECCIONE',34,20,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,3,NULL,NULL,60000,1,180000,0,0,0,180000,2,'V','MESAS','2024-03-11 20:59:15','2024-03-11 21:30:46','2024-03-11 20:59:15',NULL,'2024-03-11 21:30:46',28,4,0,0,0,0,0,180000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(61,0,'HAB 01','SELECCIONE',35,21,0,0,0,0,NULL,0,38,'HAB. 01',0,NULL,1,NULL,NULL,40000,1,40000,0,0,0,40000,2,'V','MESAS','2024-04-09 06:40:52','2024-04-09 06:56:17','2024-04-09 06:40:52',NULL,'2024-04-09 06:56:17',32,4,0,0,0,0,0,40000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(62,0,'HAB 01','SELECCIONE',37,22,0,0,0,28.571428571429,NULL,0,38,'HAB. 01',0,NULL,21,NULL,NULL,40000,1,840000,0,0,11429,599999.9999999964,2,'V','MESAS','2024-04-10 18:44:56','2024-04-10 18:50:42','2024-04-10 18:44:56',NULL,'2024-04-10 18:50:42',38,4,0,0,0,0,0,599999.9999999964,0,0,14,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(63,0,'HAB 12','SELECCIONE',38,23,0,0,0,0,NULL,0,31,'HAB. 12',0,NULL,1,NULL,NULL,50000,12,50000,0,0,0,50000,2,'V','MESAS','2024-04-19 16:05:29','2024-04-19 16:09:11','2024-04-19 16:05:29',NULL,'2024-04-19 16:09:11',23,4,0,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(64,0,'HAB 13','SELECCIONE',38,23,0,0,0,0,NULL,0,32,'HAB. 13',0,NULL,1,NULL,NULL,50000,12,50000,0,0,0,50000,2,'V','MESAS','2024-04-19 16:05:30','2024-04-19 16:09:11','2024-04-19 16:05:30',NULL,'2024-04-19 16:09:11',23,4,0,0,0,0,0,50000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(66,0,'HAB 06','SELECCIONE',39,24,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,1,NULL,NULL,60000,6,60000,0,0,0,60000,2,'V','MESAS','2024-05-03 21:48:24','2024-05-03 21:52:49','2024-05-03 21:48:24',NULL,'2024-05-03 21:52:49',41,4,0,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(67,0,'HAB 02','SELECCIONE',39,24,0,0,0,0,NULL,0,29,'HAB. 02',0,NULL,1,NULL,NULL,40000,6,40000,0,0,0,40000,2,'V','MESAS','2024-05-03 21:51:07','2024-05-03 21:52:49','2024-05-03 21:51:07',NULL,'2024-05-03 21:52:49',41,4,0,0,0,0,0,40000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(69,0,'HAB 01','SELECCIONE',40,25,0,0,0,0,NULL,0,38,'HAB. 01',0,NULL,6,NULL,NULL,40000,1,240000,0,0,0,240000,2,'V','MESAS','2024-05-03 21:56:56','2024-05-03 22:00:09','2024-05-03 21:56:56',NULL,'2024-05-03 22:00:09',38,4,0,0,0,0,0,240000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(70,0,'HAB 06','SELECCIONE',41,26,0,0,0,0,NULL,0,42,'HAB. 06',0,NULL,1,NULL,NULL,60000,6,60000,0,0,0,60000,2,'V','MESAS','2024-05-04 15:55:46','2024-05-04 15:59:44','2024-05-04 15:55:46',NULL,'2024-05-04 15:59:44',42,4,0,0,0,0,0,60000,0,0,14,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(71,0,'HAB 07','SELECCIONE',41,26,0,0,0,0,NULL,0,43,'HAB. 07',0,NULL,1,NULL,NULL,60000,6,60000,0,0,0,60000,2,'V','MESAS','2024-05-04 15:55:48','2024-05-04 15:59:44','2024-05-04 15:55:48',NULL,'2024-05-04 15:59:44',42,4,0,0,0,0,0,60000,0,0,14,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(73,0,'HAB 14','SELECCIONE',42,27,0,0,0,0,NULL,0,33,'HAB. 14',0,NULL,1,NULL,NULL,60000,13,60000,0,0,0,60000,2,'V','MESAS','2024-05-04 16:03:46','2024-05-04 16:04:39','2024-05-04 16:03:46',NULL,'2024-05-04 16:04:39',43,4,0,0,0,0,0,60000,0,0,14,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(74,0,'HAB 15','SELECCIONE',42,27,0,0,0,0,NULL,0,34,'HAB. 15',0,NULL,1,NULL,NULL,60000,13,60000,0,0,0,60000,2,'V','MESAS','2024-05-04 16:03:59','2024-05-04 16:04:39','2024-05-04 16:03:59',NULL,'2024-05-04 16:04:39',43,4,0,0,0,0,0,60000,0,0,14,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(76,0,'HAB 13','SELECCIONE',43,28,0,0,0,0,NULL,0,32,'HAB. 13',0,NULL,13,NULL,NULL,50000,13,650000,0,0,0,650000,2,'V','MESAS','2024-05-05 11:17:33','2024-05-05 11:21:16','2024-05-05 11:17:33',NULL,'2024-05-05 11:21:16',44,4,0,0,0,0,0,650000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(77,0,'HAB 01','SELECCIONE',44,29,0,0,0,0,NULL,0,38,'HAB. 01',0,NULL,3,NULL,NULL,40000,1,120000,0,0,0,120000,2,'V','MESAS','2024-05-06 21:53:34','2024-05-06 23:59:59','2024-05-06 21:53:34',NULL,'2024-05-07 05:49:58',19,4,0,0,0,0,0,120000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(78,0,'HAB 01','SELECCIONE',45,30,0,0,0,0,NULL,0,38,'HAB. 01',0,NULL,3,NULL,NULL,40000,1,120000,0,0,0,120000,2,'V','MESAS','2024-05-06 23:59:59','2024-05-07 06:39:56','2024-05-06 23:59:59',NULL,'2024-05-07 06:39:56',19,4,0,0,0,0,0,120000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(79,0,'HAB 12','SELECCIONE',46,31,0,0,0,0,NULL,0,31,'HAB. 12',0,NULL,4,NULL,NULL,50000,14,200000,0,0,0,200000,2,'V','MESAS','2024-05-18 18:03:20','2024-05-18 18:10:09','2024-05-18 18:03:20',NULL,'2024-05-18 18:10:09',46,4,0,0,0,0,0,200000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1),(80,0,'HAB 14','SELECCIONE',46,31,0,0,0,0,NULL,0,33,'HAB. 14',0,NULL,1,NULL,NULL,60000,14,60000,0,0,0,60000,2,'V','MESAS','2024-05-18 18:03:25','2024-05-18 18:10:09','2024-05-18 18:03:25',NULL,'2024-05-18 18:10:09',46,4,0,0,0,0,0,60000,0,0,4,0,1,1,0,1,'EFECTIVO',0,0,NULL,NULL,0,0,0,0,'0',0,'',0,0,0,1,1,'-1','0','0','0','0','0','0','-1','0','',0,0,0,'V',0,0,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'UNIDAD',0,NULL,0,0,0,'residenciaselrey',NULL,'','SELECCIONE',1,NULL,0,0,NULL,1);

--
-- Table structure for table `ventas2018`
--

CREATE TABLE `ventas2018` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `codvendedor` int NOT NULL DEFAULT '0',
  `REFERENCIA` varchar(20) DEFAULT NULL,
  `situacioncocina` varchar(50) DEFAULT NULL,
  `idfactura` bigint unsigned NOT NULL,
  `consecutivo` int NOT NULL,
  `INCREMENTO` int NOT NULL,
  `codarticulo` int NOT NULL,
  `codsituacion` int NOT NULL,
  `porcentajedescuento` double DEFAULT '0',
  `referenciafront` varchar(15) DEFAULT NULL,
  `impuesto` double DEFAULT '0',
  `idarticulo` bigint unsigned NOT NULL,
  `descripcion` varchar(120) DEFAULT NULL,
  `esmodificador` int DEFAULT '0',
  `nombrearticulo` varchar(100) DEFAULT NULL,
  `cantidad` double NOT NULL DEFAULT '0',
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `idmesa` int NOT NULL DEFAULT '1',
  `bruto` double NOT NULL DEFAULT '0',
  `baseunitario` double NOT NULL DEFAULT '0',
  `ivaunitario` double NOT NULL DEFAULT '0',
  `descuento` int NOT NULL DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `cc` int DEFAULT '2',
  `documento` varchar(3) NOT NULL DEFAULT 'V',
  `origen` varchar(25) DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `HORAINI` datetime DEFAULT NULL,
  `HORAFIN` datetime DEFAULT NULL,
  `ultimaedicion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idcliente` bigint unsigned NOT NULL DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `abonado` int NOT NULL DEFAULT '0',
  `idfacturaqueabona` int NOT NULL DEFAULT '0',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `iva` double NOT NULL DEFAULT '0',
  `esbolsillo` int NOT NULL DEFAULT '0',
  `idvendedor` bigint unsigned NOT NULL DEFAULT '1',
  `escortesia` int NOT NULL DEFAULT '0',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `idnc` bigint unsigned NOT NULL DEFAULT '1',
  `nc` int DEFAULT '0',
  `idusuarionc` bigint unsigned NOT NULL DEFAULT '1',
  `mediodepago` varchar(25) NOT NULL DEFAULT 'EFECTIVO',
  `comision` int NOT NULL DEFAULT '0',
  `devolucionrevisada` int DEFAULT '0',
  `fechaabonado` datetime DEFAULT NULL,
  `fechamc` datetime DEFAULT NULL,
  `tienenc` int NOT NULL DEFAULT '0',
  `marcadoparanc` int NOT NULL DEFAULT '0',
  `servicio` int NOT NULL DEFAULT '0',
  `subido` int NOT NULL DEFAULT '0',
  `CODMODIF` int DEFAULT '0',
  `esmodif` int NOT NULL DEFAULT '0',
  `CODARTICULOABAJO` varchar(12) NOT NULL DEFAULT '',
  `PRECIOIVA` int NOT NULL DEFAULT '0',
  `NUMMODIF` int NOT NULL DEFAULT '0',
  `numservicio` int NOT NULL DEFAULT '0',
  `aliasespera` int NOT NULL DEFAULT '1',
  `impresiones` int NOT NULL DEFAULT '1',
  `IDMOTIVODTO` varchar(2) NOT NULL DEFAULT '-1',
  `DETALLEDENUMLINEA` varchar(2) NOT NULL DEFAULT '0',
  `FAMILIAAENA` varchar(2) NOT NULL DEFAULT '0',
  `DETALLEMODIF` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_NUMERO` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_N` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_SERIE` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_FO` varchar(2) NOT NULL DEFAULT '-1',
  `NORDERTIQUET` varchar(1) NOT NULL DEFAULT '0',
  `SORDERTIQUET` varchar(1) NOT NULL DEFAULT '',
  `REQ` int NOT NULL DEFAULT '0',
  `COSTEIVA` int NOT NULL DEFAULT '0',
  `DTO` int NOT NULL DEFAULT '0',
  `TIPO` varchar(2) NOT NULL DEFAULT 'V',
  `CODMACRO` int NOT NULL DEFAULT '0',
  `CODFORMATO` int NOT NULL DEFAULT '0',
  `NUMLINEA` int NOT NULL DEFAULT '1',
  `codigociudad` varchar(5) DEFAULT NULL,
  `email` varchar(5) DEFAULT NULL,
  `codigopostal` varchar(5) DEFAULT NULL,
  `codigodepartamento` varchar(5) DEFAULT NULL,
  `departamento` varchar(5) DEFAULT NULL,
  `ciudad` varchar(5) DEFAULT NULL,
  `cufe` varchar(5) DEFAULT NULL,
  `unidaddemedida` varchar(25) DEFAULT NULL,
  `esnota` int DEFAULT '0',
  `unidadesdemedida` varchar(25) DEFAULT NULL,
  `impreso` int DEFAULT '0',
  `domicilio` int DEFAULT '0',
  `domicilioexterno` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'residenciaselrey',
  `zonaventas` varchar(25) DEFAULT NULL,
  `seccionventas` varchar(25) DEFAULT NULL,
  `situacioncocina2` varchar(25) DEFAULT 'SELECCIONE',
  `integraconfamilia` int DEFAULT '1',
  `codmodifpapa` int DEFAULT '0',
  `TIPOIVA` int DEFAULT '1',
  `sesubearappi` int DEFAULT '0',
  `refventas` varchar(20) DEFAULT NULL,
  `placa` varchar(6) DEFAULT NULL,
  `iddomiciliario` int DEFAULT NULL,
  `horaaceptado` datetime DEFAULT NULL,
  `comandaaceptada` bit(1) DEFAULT b'0',
  `horaacancelada` datetime DEFAULT NULL,
  `comandacancelada` bit(1) DEFAULT b'0',
  `motivocancela` varchar(25) DEFAULT NULL,
  `paqueterecibido` bit(1) DEFAULT b'0',
  `hora_paqueterecibido` bit(1) DEFAULT b'0',
  `porcentajecomision` decimal(5,2) DEFAULT '0.00',
  `articulovence` date DEFAULT NULL,
  `deberecoger` datetime DEFAULT NULL,
  `imei` varchar(50) DEFAULT NULL,
  `factor` int DEFAULT '1',
  `idusuarioredime` int DEFAULT NULL,
  `usuarioredime` varchar(50) DEFAULT NULL,
  `fecharedime` datetime DEFAULT NULL,
  `costomenu` decimal(9,2) DEFAULT '0.00',
  `comensales` int DEFAULT '0',
  `impultraprocesados` int DEFAULT '0',
  `impazucaradas` int DEFAULT '0',
  `idmayornomina` int DEFAULT '0',
  `tipodescuento` varchar(15) DEFAULT NULL,
  `porcentajesobrecargoeventos` double DEFAULT '0',
  `sobrecargoeventos` double DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idfactura` (`idfactura`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idcc` (`cc`),
  KEY `idcliente` (`idcliente`),
  KEY `idusuario` (`idusuario`),
  KEY `idz` (`idz`),
  KEY `idvendedor` (`idvendedor`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `ventas2018`
--


--
-- Table structure for table `ventas2019`
--

CREATE TABLE `ventas2019` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `codvendedor` int NOT NULL DEFAULT '0',
  `REFERENCIA` varchar(20) DEFAULT NULL,
  `situacioncocina` varchar(50) DEFAULT NULL,
  `idfactura` bigint unsigned NOT NULL,
  `consecutivo` int NOT NULL,
  `INCREMENTO` int NOT NULL,
  `codarticulo` int NOT NULL,
  `codsituacion` int NOT NULL,
  `porcentajedescuento` double DEFAULT '0',
  `referenciafront` varchar(15) DEFAULT NULL,
  `impuesto` double DEFAULT '0',
  `idarticulo` bigint unsigned NOT NULL,
  `descripcion` varchar(120) DEFAULT NULL,
  `esmodificador` int DEFAULT '0',
  `nombrearticulo` varchar(100) DEFAULT NULL,
  `cantidad` double NOT NULL DEFAULT '0',
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `idmesa` int NOT NULL DEFAULT '1',
  `bruto` double NOT NULL DEFAULT '0',
  `baseunitario` double NOT NULL DEFAULT '0',
  `ivaunitario` double NOT NULL DEFAULT '0',
  `descuento` int NOT NULL DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `cc` int DEFAULT '2',
  `documento` varchar(3) NOT NULL DEFAULT 'V',
  `origen` varchar(25) DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `HORAINI` datetime DEFAULT NULL,
  `HORAFIN` datetime DEFAULT NULL,
  `ultimaedicion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idcliente` bigint unsigned NOT NULL DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `abonado` int NOT NULL DEFAULT '0',
  `idfacturaqueabona` int NOT NULL DEFAULT '0',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `iva` double NOT NULL DEFAULT '0',
  `esbolsillo` int NOT NULL DEFAULT '0',
  `idvendedor` bigint unsigned NOT NULL DEFAULT '1',
  `escortesia` int NOT NULL DEFAULT '0',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `idnc` bigint unsigned NOT NULL DEFAULT '1',
  `nc` int DEFAULT '0',
  `idusuarionc` bigint unsigned NOT NULL DEFAULT '1',
  `mediodepago` varchar(25) NOT NULL DEFAULT 'EFECTIVO',
  `comision` int NOT NULL DEFAULT '0',
  `devolucionrevisada` int DEFAULT '0',
  `fechaabonado` datetime DEFAULT NULL,
  `fechamc` datetime DEFAULT NULL,
  `tienenc` int NOT NULL DEFAULT '0',
  `marcadoparanc` int NOT NULL DEFAULT '0',
  `servicio` int NOT NULL DEFAULT '0',
  `subido` int NOT NULL DEFAULT '0',
  `CODMODIF` int DEFAULT '0',
  `esmodif` int NOT NULL DEFAULT '0',
  `CODARTICULOABAJO` varchar(12) NOT NULL DEFAULT '',
  `PRECIOIVA` int NOT NULL DEFAULT '0',
  `NUMMODIF` int NOT NULL DEFAULT '0',
  `numservicio` int NOT NULL DEFAULT '0',
  `aliasespera` int NOT NULL DEFAULT '1',
  `impresiones` int NOT NULL DEFAULT '1',
  `IDMOTIVODTO` varchar(2) NOT NULL DEFAULT '-1',
  `DETALLEDENUMLINEA` varchar(2) NOT NULL DEFAULT '0',
  `FAMILIAAENA` varchar(2) NOT NULL DEFAULT '0',
  `DETALLEMODIF` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_NUMERO` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_N` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_SERIE` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_FO` varchar(2) NOT NULL DEFAULT '-1',
  `NORDERTIQUET` varchar(1) NOT NULL DEFAULT '0',
  `SORDERTIQUET` varchar(1) NOT NULL DEFAULT '',
  `REQ` int NOT NULL DEFAULT '0',
  `COSTEIVA` int NOT NULL DEFAULT '0',
  `DTO` int NOT NULL DEFAULT '0',
  `TIPO` varchar(2) NOT NULL DEFAULT 'V',
  `CODMACRO` int NOT NULL DEFAULT '0',
  `CODFORMATO` int NOT NULL DEFAULT '0',
  `NUMLINEA` int NOT NULL DEFAULT '1',
  `codigociudad` varchar(5) DEFAULT NULL,
  `email` varchar(5) DEFAULT NULL,
  `codigopostal` varchar(5) DEFAULT NULL,
  `codigodepartamento` varchar(5) DEFAULT NULL,
  `departamento` varchar(5) DEFAULT NULL,
  `ciudad` varchar(5) DEFAULT NULL,
  `cufe` varchar(5) DEFAULT NULL,
  `unidaddemedida` varchar(25) DEFAULT NULL,
  `esnota` int DEFAULT '0',
  `unidadesdemedida` varchar(25) DEFAULT NULL,
  `impreso` int DEFAULT '0',
  `domicilio` int DEFAULT '0',
  `domicilioexterno` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'residenciaselrey',
  `zonaventas` varchar(25) DEFAULT NULL,
  `seccionventas` varchar(25) DEFAULT NULL,
  `situacioncocina2` varchar(25) DEFAULT 'SELECCIONE',
  `integraconfamilia` int DEFAULT '1',
  `codmodifpapa` int DEFAULT '0',
  `TIPOIVA` int DEFAULT '1',
  `sesubearappi` int DEFAULT '0',
  `refventas` varchar(20) DEFAULT NULL,
  `placa` varchar(6) DEFAULT NULL,
  `iddomiciliario` int DEFAULT NULL,
  `horaaceptado` datetime DEFAULT NULL,
  `comandaaceptada` bit(1) DEFAULT b'0',
  `horaacancelada` datetime DEFAULT NULL,
  `comandacancelada` bit(1) DEFAULT b'0',
  `motivocancela` varchar(25) DEFAULT NULL,
  `paqueterecibido` bit(1) DEFAULT b'0',
  `hora_paqueterecibido` bit(1) DEFAULT b'0',
  `porcentajecomision` decimal(5,2) DEFAULT '0.00',
  `articulovence` date DEFAULT NULL,
  `deberecoger` datetime DEFAULT NULL,
  `imei` varchar(50) DEFAULT NULL,
  `factor` int DEFAULT '1',
  `idusuarioredime` int DEFAULT NULL,
  `usuarioredime` varchar(50) DEFAULT NULL,
  `fecharedime` datetime DEFAULT NULL,
  `costomenu` decimal(9,2) DEFAULT '0.00',
  `comensales` int DEFAULT '0',
  `impultraprocesados` int DEFAULT '0',
  `impazucaradas` int DEFAULT '0',
  `idmayornomina` int DEFAULT '0',
  `tipodescuento` varchar(15) DEFAULT NULL,
  `porcentajesobrecargoeventos` double DEFAULT '0',
  `sobrecargoeventos` double DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idfactura` (`idfactura`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idcc` (`cc`),
  KEY `idcliente` (`idcliente`),
  KEY `idusuario` (`idusuario`),
  KEY `idz` (`idz`),
  KEY `idvendedor` (`idvendedor`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `ventas2019`
--


--
-- Table structure for table `ventas2020`
--

CREATE TABLE `ventas2020` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `codvendedor` int NOT NULL DEFAULT '0',
  `REFERENCIA` varchar(20) DEFAULT NULL,
  `situacioncocina` varchar(50) DEFAULT NULL,
  `idfactura` bigint unsigned NOT NULL,
  `consecutivo` int NOT NULL,
  `INCREMENTO` int NOT NULL,
  `codarticulo` int NOT NULL,
  `codsituacion` int NOT NULL,
  `porcentajedescuento` double DEFAULT '0',
  `referenciafront` varchar(15) DEFAULT NULL,
  `impuesto` double DEFAULT '0',
  `idarticulo` bigint unsigned NOT NULL,
  `descripcion` varchar(120) DEFAULT NULL,
  `esmodificador` int DEFAULT '0',
  `nombrearticulo` varchar(100) DEFAULT NULL,
  `cantidad` double NOT NULL DEFAULT '0',
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `idmesa` int NOT NULL DEFAULT '1',
  `bruto` double NOT NULL DEFAULT '0',
  `baseunitario` double NOT NULL DEFAULT '0',
  `ivaunitario` double NOT NULL DEFAULT '0',
  `descuento` int NOT NULL DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `cc` int DEFAULT '2',
  `documento` varchar(3) NOT NULL DEFAULT 'V',
  `origen` varchar(25) DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `HORAINI` datetime DEFAULT NULL,
  `HORAFIN` datetime DEFAULT NULL,
  `ultimaedicion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idcliente` bigint unsigned NOT NULL DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `abonado` int NOT NULL DEFAULT '0',
  `idfacturaqueabona` int NOT NULL DEFAULT '0',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `iva` double NOT NULL DEFAULT '0',
  `esbolsillo` int NOT NULL DEFAULT '0',
  `idvendedor` bigint unsigned NOT NULL DEFAULT '1',
  `escortesia` int NOT NULL DEFAULT '0',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `idnc` bigint unsigned NOT NULL DEFAULT '1',
  `nc` int DEFAULT '0',
  `idusuarionc` bigint unsigned NOT NULL DEFAULT '1',
  `mediodepago` varchar(25) NOT NULL DEFAULT 'EFECTIVO',
  `comision` int NOT NULL DEFAULT '0',
  `devolucionrevisada` int DEFAULT '0',
  `fechaabonado` datetime DEFAULT NULL,
  `fechamc` datetime DEFAULT NULL,
  `tienenc` int NOT NULL DEFAULT '0',
  `marcadoparanc` int NOT NULL DEFAULT '0',
  `servicio` int NOT NULL DEFAULT '0',
  `subido` int NOT NULL DEFAULT '0',
  `CODMODIF` int DEFAULT '0',
  `esmodif` int NOT NULL DEFAULT '0',
  `CODARTICULOABAJO` varchar(12) NOT NULL DEFAULT '',
  `PRECIOIVA` int NOT NULL DEFAULT '0',
  `NUMMODIF` int NOT NULL DEFAULT '0',
  `numservicio` int NOT NULL DEFAULT '0',
  `aliasespera` int NOT NULL DEFAULT '1',
  `impresiones` int NOT NULL DEFAULT '1',
  `IDMOTIVODTO` varchar(2) NOT NULL DEFAULT '-1',
  `DETALLEDENUMLINEA` varchar(2) NOT NULL DEFAULT '0',
  `FAMILIAAENA` varchar(2) NOT NULL DEFAULT '0',
  `DETALLEMODIF` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_NUMERO` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_N` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_SERIE` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_FO` varchar(2) NOT NULL DEFAULT '-1',
  `NORDERTIQUET` varchar(1) NOT NULL DEFAULT '0',
  `SORDERTIQUET` varchar(1) NOT NULL DEFAULT '',
  `REQ` int NOT NULL DEFAULT '0',
  `COSTEIVA` int NOT NULL DEFAULT '0',
  `DTO` int NOT NULL DEFAULT '0',
  `TIPO` varchar(2) NOT NULL DEFAULT 'V',
  `CODMACRO` int NOT NULL DEFAULT '0',
  `CODFORMATO` int NOT NULL DEFAULT '0',
  `NUMLINEA` int NOT NULL DEFAULT '1',
  `codigociudad` varchar(5) DEFAULT NULL,
  `email` varchar(5) DEFAULT NULL,
  `codigopostal` varchar(5) DEFAULT NULL,
  `codigodepartamento` varchar(5) DEFAULT NULL,
  `departamento` varchar(5) DEFAULT NULL,
  `ciudad` varchar(5) DEFAULT NULL,
  `cufe` varchar(5) DEFAULT NULL,
  `unidaddemedida` varchar(25) DEFAULT NULL,
  `esnota` int DEFAULT '0',
  `unidadesdemedida` varchar(25) DEFAULT NULL,
  `impreso` int DEFAULT '0',
  `domicilio` int DEFAULT '0',
  `domicilioexterno` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'residenciaselrey',
  `zonaventas` varchar(25) DEFAULT NULL,
  `seccionventas` varchar(25) DEFAULT NULL,
  `situacioncocina2` varchar(25) DEFAULT 'SELECCIONE',
  `integraconfamilia` int DEFAULT '1',
  `codmodifpapa` int DEFAULT '0',
  `TIPOIVA` int DEFAULT '1',
  `sesubearappi` int DEFAULT '0',
  `refventas` varchar(20) DEFAULT NULL,
  `placa` varchar(6) DEFAULT NULL,
  `iddomiciliario` int DEFAULT NULL,
  `horaaceptado` datetime DEFAULT NULL,
  `comandaaceptada` bit(1) DEFAULT b'0',
  `horaacancelada` datetime DEFAULT NULL,
  `comandacancelada` bit(1) DEFAULT b'0',
  `motivocancela` varchar(25) DEFAULT NULL,
  `paqueterecibido` bit(1) DEFAULT b'0',
  `hora_paqueterecibido` bit(1) DEFAULT b'0',
  `porcentajecomision` decimal(5,2) DEFAULT '0.00',
  `articulovence` date DEFAULT NULL,
  `deberecoger` datetime DEFAULT NULL,
  `imei` varchar(50) DEFAULT NULL,
  `factor` int DEFAULT '1',
  `idusuarioredime` int DEFAULT NULL,
  `usuarioredime` varchar(50) DEFAULT NULL,
  `fecharedime` datetime DEFAULT NULL,
  `costomenu` decimal(9,2) DEFAULT '0.00',
  `comensales` int DEFAULT '0',
  `impultraprocesados` int DEFAULT '0',
  `impazucaradas` int DEFAULT '0',
  `idmayornomina` int DEFAULT '0',
  `tipodescuento` varchar(15) DEFAULT NULL,
  `porcentajesobrecargoeventos` double DEFAULT '0',
  `sobrecargoeventos` double DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idfactura` (`idfactura`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idcc` (`cc`),
  KEY `idcliente` (`idcliente`),
  KEY `idusuario` (`idusuario`),
  KEY `idz` (`idz`),
  KEY `idvendedor` (`idvendedor`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `ventas2020`
--


--
-- Table structure for table `ventas2021`
--

CREATE TABLE `ventas2021` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `codvendedor` int NOT NULL DEFAULT '0',
  `REFERENCIA` varchar(20) DEFAULT NULL,
  `situacioncocina` varchar(50) DEFAULT NULL,
  `idfactura` bigint unsigned NOT NULL,
  `consecutivo` int NOT NULL,
  `INCREMENTO` int NOT NULL,
  `codarticulo` int NOT NULL,
  `codsituacion` int NOT NULL,
  `porcentajedescuento` double DEFAULT '0',
  `referenciafront` varchar(15) DEFAULT NULL,
  `impuesto` double DEFAULT '0',
  `idarticulo` bigint unsigned NOT NULL,
  `descripcion` varchar(120) DEFAULT NULL,
  `esmodificador` int DEFAULT '0',
  `nombrearticulo` varchar(100) DEFAULT NULL,
  `cantidad` double NOT NULL DEFAULT '0',
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `idmesa` int NOT NULL DEFAULT '1',
  `bruto` double NOT NULL DEFAULT '0',
  `baseunitario` double NOT NULL DEFAULT '0',
  `ivaunitario` double NOT NULL DEFAULT '0',
  `descuento` int NOT NULL DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `cc` int DEFAULT '2',
  `documento` varchar(3) NOT NULL DEFAULT 'V',
  `origen` varchar(25) DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `HORAINI` datetime DEFAULT NULL,
  `HORAFIN` datetime DEFAULT NULL,
  `ultimaedicion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idcliente` bigint unsigned NOT NULL DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `abonado` int NOT NULL DEFAULT '0',
  `idfacturaqueabona` int NOT NULL DEFAULT '0',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `iva` double NOT NULL DEFAULT '0',
  `esbolsillo` int NOT NULL DEFAULT '0',
  `idvendedor` bigint unsigned NOT NULL DEFAULT '1',
  `escortesia` int NOT NULL DEFAULT '0',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `idnc` bigint unsigned NOT NULL DEFAULT '1',
  `nc` int DEFAULT '0',
  `idusuarionc` bigint unsigned NOT NULL DEFAULT '1',
  `mediodepago` varchar(25) NOT NULL DEFAULT 'EFECTIVO',
  `comision` int NOT NULL DEFAULT '0',
  `devolucionrevisada` int DEFAULT '0',
  `fechaabonado` datetime DEFAULT NULL,
  `fechamc` datetime DEFAULT NULL,
  `tienenc` int NOT NULL DEFAULT '0',
  `marcadoparanc` int NOT NULL DEFAULT '0',
  `servicio` int NOT NULL DEFAULT '0',
  `subido` int NOT NULL DEFAULT '0',
  `CODMODIF` int DEFAULT '0',
  `esmodif` int NOT NULL DEFAULT '0',
  `CODARTICULOABAJO` varchar(12) NOT NULL DEFAULT '',
  `PRECIOIVA` int NOT NULL DEFAULT '0',
  `NUMMODIF` int NOT NULL DEFAULT '0',
  `numservicio` int NOT NULL DEFAULT '0',
  `aliasespera` int NOT NULL DEFAULT '1',
  `impresiones` int NOT NULL DEFAULT '1',
  `IDMOTIVODTO` varchar(2) NOT NULL DEFAULT '-1',
  `DETALLEDENUMLINEA` varchar(2) NOT NULL DEFAULT '0',
  `FAMILIAAENA` varchar(2) NOT NULL DEFAULT '0',
  `DETALLEMODIF` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_NUMERO` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_N` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_SERIE` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_FO` varchar(2) NOT NULL DEFAULT '-1',
  `NORDERTIQUET` varchar(1) NOT NULL DEFAULT '0',
  `SORDERTIQUET` varchar(1) NOT NULL DEFAULT '',
  `REQ` int NOT NULL DEFAULT '0',
  `COSTEIVA` int NOT NULL DEFAULT '0',
  `DTO` int NOT NULL DEFAULT '0',
  `TIPO` varchar(2) NOT NULL DEFAULT 'V',
  `CODMACRO` int NOT NULL DEFAULT '0',
  `CODFORMATO` int NOT NULL DEFAULT '0',
  `NUMLINEA` int NOT NULL DEFAULT '1',
  `codigociudad` varchar(5) DEFAULT NULL,
  `email` varchar(5) DEFAULT NULL,
  `codigopostal` varchar(5) DEFAULT NULL,
  `codigodepartamento` varchar(5) DEFAULT NULL,
  `departamento` varchar(5) DEFAULT NULL,
  `ciudad` varchar(5) DEFAULT NULL,
  `cufe` varchar(5) DEFAULT NULL,
  `unidaddemedida` varchar(25) DEFAULT NULL,
  `esnota` int DEFAULT '0',
  `unidadesdemedida` varchar(25) DEFAULT NULL,
  `impreso` int DEFAULT '0',
  `domicilio` int DEFAULT '0',
  `domicilioexterno` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'residenciaselrey',
  `zonaventas` varchar(25) DEFAULT NULL,
  `seccionventas` varchar(25) DEFAULT NULL,
  `situacioncocina2` varchar(25) DEFAULT 'SELECCIONE',
  `integraconfamilia` int DEFAULT '1',
  `codmodifpapa` int DEFAULT '0',
  `TIPOIVA` int DEFAULT '1',
  `sesubearappi` int DEFAULT '0',
  `refventas` varchar(20) DEFAULT NULL,
  `placa` varchar(6) DEFAULT NULL,
  `iddomiciliario` int DEFAULT NULL,
  `horaaceptado` datetime DEFAULT NULL,
  `comandaaceptada` bit(1) DEFAULT b'0',
  `horaacancelada` datetime DEFAULT NULL,
  `comandacancelada` bit(1) DEFAULT b'0',
  `motivocancela` varchar(25) DEFAULT NULL,
  `paqueterecibido` bit(1) DEFAULT b'0',
  `hora_paqueterecibido` bit(1) DEFAULT b'0',
  `porcentajecomision` decimal(5,2) DEFAULT '0.00',
  `articulovence` date DEFAULT NULL,
  `deberecoger` datetime DEFAULT NULL,
  `imei` varchar(50) DEFAULT NULL,
  `factor` int DEFAULT '1',
  `idusuarioredime` int DEFAULT NULL,
  `usuarioredime` varchar(50) DEFAULT NULL,
  `fecharedime` datetime DEFAULT NULL,
  `costomenu` decimal(9,2) DEFAULT '0.00',
  `comensales` int DEFAULT '0',
  `impultraprocesados` int DEFAULT '0',
  `impazucaradas` int DEFAULT '0',
  `idmayornomina` int DEFAULT '0',
  `tipodescuento` varchar(15) DEFAULT NULL,
  `porcentajesobrecargoeventos` double DEFAULT '0',
  `sobrecargoeventos` double DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idfactura` (`idfactura`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idcc` (`cc`),
  KEY `idcliente` (`idcliente`),
  KEY `idusuario` (`idusuario`),
  KEY `idz` (`idz`),
  KEY `idvendedor` (`idvendedor`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `ventas2021`
--


--
-- Table structure for table `ventas2022`
--

CREATE TABLE `ventas2022` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `codvendedor` int NOT NULL DEFAULT '0',
  `REFERENCIA` varchar(20) DEFAULT NULL,
  `situacioncocina` varchar(50) DEFAULT NULL,
  `idfactura` bigint unsigned NOT NULL,
  `consecutivo` int NOT NULL,
  `INCREMENTO` int NOT NULL,
  `codarticulo` int NOT NULL,
  `codsituacion` int NOT NULL,
  `porcentajedescuento` double DEFAULT '0',
  `referenciafront` varchar(15) DEFAULT NULL,
  `impuesto` double DEFAULT '0',
  `idarticulo` bigint unsigned NOT NULL,
  `descripcion` varchar(120) DEFAULT NULL,
  `esmodificador` int DEFAULT '0',
  `nombrearticulo` varchar(100) DEFAULT NULL,
  `cantidad` double NOT NULL DEFAULT '0',
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `idmesa` int NOT NULL DEFAULT '1',
  `bruto` double NOT NULL DEFAULT '0',
  `baseunitario` double NOT NULL DEFAULT '0',
  `ivaunitario` double NOT NULL DEFAULT '0',
  `descuento` int NOT NULL DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `cc` int DEFAULT '2',
  `documento` varchar(3) NOT NULL DEFAULT 'V',
  `origen` varchar(25) DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `HORAINI` datetime DEFAULT NULL,
  `HORAFIN` datetime DEFAULT NULL,
  `ultimaedicion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idcliente` bigint unsigned NOT NULL DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `abonado` int NOT NULL DEFAULT '0',
  `idfacturaqueabona` int NOT NULL DEFAULT '0',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `iva` double NOT NULL DEFAULT '0',
  `esbolsillo` int NOT NULL DEFAULT '0',
  `idvendedor` bigint unsigned NOT NULL DEFAULT '1',
  `escortesia` int NOT NULL DEFAULT '0',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `idnc` bigint unsigned NOT NULL DEFAULT '1',
  `nc` int DEFAULT '0',
  `idusuarionc` bigint unsigned NOT NULL DEFAULT '1',
  `mediodepago` varchar(25) NOT NULL DEFAULT 'EFECTIVO',
  `comision` int NOT NULL DEFAULT '0',
  `devolucionrevisada` int DEFAULT '0',
  `fechaabonado` datetime DEFAULT NULL,
  `fechamc` datetime DEFAULT NULL,
  `tienenc` int NOT NULL DEFAULT '0',
  `marcadoparanc` int NOT NULL DEFAULT '0',
  `servicio` int NOT NULL DEFAULT '0',
  `subido` int NOT NULL DEFAULT '0',
  `CODMODIF` int DEFAULT '0',
  `esmodif` int NOT NULL DEFAULT '0',
  `CODARTICULOABAJO` varchar(12) NOT NULL DEFAULT '',
  `PRECIOIVA` int NOT NULL DEFAULT '0',
  `NUMMODIF` int NOT NULL DEFAULT '0',
  `numservicio` int NOT NULL DEFAULT '0',
  `aliasespera` int NOT NULL DEFAULT '1',
  `impresiones` int NOT NULL DEFAULT '1',
  `IDMOTIVODTO` varchar(2) NOT NULL DEFAULT '-1',
  `DETALLEDENUMLINEA` varchar(2) NOT NULL DEFAULT '0',
  `FAMILIAAENA` varchar(2) NOT NULL DEFAULT '0',
  `DETALLEMODIF` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_NUMERO` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_N` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_SERIE` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_FO` varchar(2) NOT NULL DEFAULT '-1',
  `NORDERTIQUET` varchar(1) NOT NULL DEFAULT '0',
  `SORDERTIQUET` varchar(1) NOT NULL DEFAULT '',
  `REQ` int NOT NULL DEFAULT '0',
  `COSTEIVA` int NOT NULL DEFAULT '0',
  `DTO` int NOT NULL DEFAULT '0',
  `TIPO` varchar(2) NOT NULL DEFAULT 'V',
  `CODMACRO` int NOT NULL DEFAULT '0',
  `CODFORMATO` int NOT NULL DEFAULT '0',
  `NUMLINEA` int NOT NULL DEFAULT '1',
  `codigociudad` varchar(5) DEFAULT NULL,
  `email` varchar(5) DEFAULT NULL,
  `codigopostal` varchar(5) DEFAULT NULL,
  `codigodepartamento` varchar(5) DEFAULT NULL,
  `departamento` varchar(5) DEFAULT NULL,
  `ciudad` varchar(5) DEFAULT NULL,
  `cufe` varchar(5) DEFAULT NULL,
  `unidaddemedida` varchar(25) DEFAULT NULL,
  `esnota` int DEFAULT '0',
  `unidadesdemedida` varchar(25) DEFAULT NULL,
  `impreso` int DEFAULT '0',
  `domicilio` int DEFAULT '0',
  `domicilioexterno` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'residenciaselrey',
  `zonaventas` varchar(25) DEFAULT NULL,
  `seccionventas` varchar(25) DEFAULT NULL,
  `situacioncocina2` varchar(25) DEFAULT 'SELECCIONE',
  `integraconfamilia` int DEFAULT '1',
  `codmodifpapa` int DEFAULT '0',
  `TIPOIVA` int DEFAULT '1',
  `sesubearappi` int DEFAULT '0',
  `refventas` varchar(20) DEFAULT NULL,
  `placa` varchar(6) DEFAULT NULL,
  `iddomiciliario` int DEFAULT NULL,
  `horaaceptado` datetime DEFAULT NULL,
  `comandaaceptada` bit(1) DEFAULT b'0',
  `horaacancelada` datetime DEFAULT NULL,
  `comandacancelada` bit(1) DEFAULT b'0',
  `motivocancela` varchar(25) DEFAULT NULL,
  `paqueterecibido` bit(1) DEFAULT b'0',
  `hora_paqueterecibido` bit(1) DEFAULT b'0',
  `porcentajecomision` decimal(5,2) DEFAULT '0.00',
  `articulovence` date DEFAULT NULL,
  `deberecoger` datetime DEFAULT NULL,
  `imei` varchar(50) DEFAULT NULL,
  `factor` int DEFAULT '1',
  `idusuarioredime` int DEFAULT NULL,
  `usuarioredime` varchar(50) DEFAULT NULL,
  `fecharedime` datetime DEFAULT NULL,
  `costomenu` decimal(9,2) DEFAULT '0.00',
  `comensales` int DEFAULT '0',
  `impultraprocesados` int DEFAULT '0',
  `impazucaradas` int DEFAULT '0',
  `idmayornomina` int DEFAULT '0',
  `tipodescuento` varchar(15) DEFAULT NULL,
  `porcentajesobrecargoeventos` double DEFAULT '0',
  `sobrecargoeventos` double DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idfactura` (`idfactura`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idcc` (`cc`),
  KEY `idcliente` (`idcliente`),
  KEY `idusuario` (`idusuario`),
  KEY `idz` (`idz`),
  KEY `idvendedor` (`idvendedor`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `ventas2022`
--


--
-- Table structure for table `ventas2023`
--

CREATE TABLE `ventas2023` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `codvendedor` int NOT NULL DEFAULT '0',
  `REFERENCIA` varchar(20) DEFAULT NULL,
  `situacioncocina` varchar(50) DEFAULT NULL,
  `idfactura` bigint unsigned NOT NULL,
  `consecutivo` int NOT NULL,
  `INCREMENTO` int NOT NULL,
  `codarticulo` int NOT NULL,
  `codsituacion` int NOT NULL,
  `porcentajedescuento` double DEFAULT '0',
  `referenciafront` varchar(15) DEFAULT NULL,
  `impuesto` double DEFAULT '0',
  `idarticulo` bigint unsigned NOT NULL,
  `descripcion` varchar(120) DEFAULT NULL,
  `esmodificador` int DEFAULT '0',
  `nombrearticulo` varchar(100) DEFAULT NULL,
  `cantidad` double NOT NULL DEFAULT '0',
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `idmesa` int NOT NULL DEFAULT '1',
  `bruto` double NOT NULL DEFAULT '0',
  `baseunitario` double NOT NULL DEFAULT '0',
  `ivaunitario` double NOT NULL DEFAULT '0',
  `descuento` int NOT NULL DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `cc` int DEFAULT '2',
  `documento` varchar(3) NOT NULL DEFAULT 'V',
  `origen` varchar(25) DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `HORAINI` datetime DEFAULT NULL,
  `HORAFIN` datetime DEFAULT NULL,
  `ultimaedicion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idcliente` bigint unsigned NOT NULL DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `abonado` int NOT NULL DEFAULT '0',
  `idfacturaqueabona` int NOT NULL DEFAULT '0',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `iva` double NOT NULL DEFAULT '0',
  `esbolsillo` int NOT NULL DEFAULT '0',
  `idvendedor` bigint unsigned NOT NULL DEFAULT '1',
  `escortesia` int NOT NULL DEFAULT '0',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `idnc` bigint unsigned NOT NULL DEFAULT '1',
  `nc` int DEFAULT '0',
  `idusuarionc` bigint unsigned NOT NULL DEFAULT '1',
  `mediodepago` varchar(25) NOT NULL DEFAULT 'EFECTIVO',
  `comision` int NOT NULL DEFAULT '0',
  `devolucionrevisada` int DEFAULT '0',
  `fechaabonado` datetime DEFAULT NULL,
  `fechamc` datetime DEFAULT NULL,
  `tienenc` int NOT NULL DEFAULT '0',
  `marcadoparanc` int NOT NULL DEFAULT '0',
  `servicio` int NOT NULL DEFAULT '0',
  `subido` int NOT NULL DEFAULT '0',
  `CODMODIF` int DEFAULT '0',
  `esmodif` int NOT NULL DEFAULT '0',
  `CODARTICULOABAJO` varchar(12) NOT NULL DEFAULT '',
  `PRECIOIVA` int NOT NULL DEFAULT '0',
  `NUMMODIF` int NOT NULL DEFAULT '0',
  `numservicio` int NOT NULL DEFAULT '0',
  `aliasespera` int NOT NULL DEFAULT '1',
  `impresiones` int NOT NULL DEFAULT '1',
  `IDMOTIVODTO` varchar(2) NOT NULL DEFAULT '-1',
  `DETALLEDENUMLINEA` varchar(2) NOT NULL DEFAULT '0',
  `FAMILIAAENA` varchar(2) NOT NULL DEFAULT '0',
  `DETALLEMODIF` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_NUMERO` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_N` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_SERIE` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_FO` varchar(2) NOT NULL DEFAULT '-1',
  `NORDERTIQUET` varchar(1) NOT NULL DEFAULT '0',
  `SORDERTIQUET` varchar(1) NOT NULL DEFAULT '',
  `REQ` int NOT NULL DEFAULT '0',
  `COSTEIVA` int NOT NULL DEFAULT '0',
  `DTO` int NOT NULL DEFAULT '0',
  `TIPO` varchar(2) NOT NULL DEFAULT 'V',
  `CODMACRO` int NOT NULL DEFAULT '0',
  `CODFORMATO` int NOT NULL DEFAULT '0',
  `NUMLINEA` int NOT NULL DEFAULT '1',
  `codigociudad` varchar(5) DEFAULT NULL,
  `email` varchar(5) DEFAULT NULL,
  `codigopostal` varchar(5) DEFAULT NULL,
  `codigodepartamento` varchar(5) DEFAULT NULL,
  `departamento` varchar(5) DEFAULT NULL,
  `ciudad` varchar(5) DEFAULT NULL,
  `cufe` varchar(5) DEFAULT NULL,
  `unidaddemedida` varchar(25) DEFAULT NULL,
  `esnota` int DEFAULT '0',
  `unidadesdemedida` varchar(25) DEFAULT NULL,
  `impreso` int DEFAULT '0',
  `domicilio` int DEFAULT '0',
  `domicilioexterno` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'residenciaselrey',
  `zonaventas` varchar(25) DEFAULT NULL,
  `seccionventas` varchar(25) DEFAULT NULL,
  `situacioncocina2` varchar(25) DEFAULT 'SELECCIONE',
  `integraconfamilia` int DEFAULT '1',
  `codmodifpapa` int DEFAULT '0',
  `TIPOIVA` int DEFAULT '1',
  `sesubearappi` int DEFAULT '0',
  `refventas` varchar(20) DEFAULT NULL,
  `placa` varchar(6) DEFAULT NULL,
  `iddomiciliario` int DEFAULT NULL,
  `horaaceptado` datetime DEFAULT NULL,
  `comandaaceptada` bit(1) DEFAULT b'0',
  `horaacancelada` datetime DEFAULT NULL,
  `comandacancelada` bit(1) DEFAULT b'0',
  `motivocancela` varchar(25) DEFAULT NULL,
  `paqueterecibido` bit(1) DEFAULT b'0',
  `hora_paqueterecibido` bit(1) DEFAULT b'0',
  `porcentajecomision` decimal(5,2) DEFAULT '0.00',
  `articulovence` date DEFAULT NULL,
  `deberecoger` datetime DEFAULT NULL,
  `imei` varchar(50) DEFAULT NULL,
  `factor` int DEFAULT '1',
  `idusuarioredime` int DEFAULT NULL,
  `usuarioredime` varchar(50) DEFAULT NULL,
  `fecharedime` datetime DEFAULT NULL,
  `costomenu` decimal(9,2) DEFAULT '0.00',
  `comensales` int DEFAULT '0',
  `impultraprocesados` int DEFAULT '0',
  `impazucaradas` int DEFAULT '0',
  `idmayornomina` int DEFAULT '0',
  `tipodescuento` varchar(15) DEFAULT NULL,
  `porcentajesobrecargoeventos` double DEFAULT '0',
  `sobrecargoeventos` double DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idfactura` (`idfactura`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idcc` (`cc`),
  KEY `idcliente` (`idcliente`),
  KEY `idusuario` (`idusuario`),
  KEY `idz` (`idz`),
  KEY `idvendedor` (`idvendedor`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `ventas2023`
--


--
-- Table structure for table `ventas3`
--

CREATE TABLE `ventas3` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `codvendedor` int NOT NULL DEFAULT '0',
  `REFERENCIA` varchar(20) DEFAULT NULL,
  `situacioncocina` varchar(50) DEFAULT NULL,
  `idfactura` bigint unsigned NOT NULL,
  `consecutivo` int NOT NULL,
  `INCREMENTO` int NOT NULL,
  `codarticulo` int NOT NULL,
  `codsituacion` int NOT NULL,
  `porcentajedescuento` double DEFAULT '0',
  `referenciafront` varchar(15) DEFAULT NULL,
  `impuesto` double DEFAULT '0',
  `idarticulo` bigint unsigned NOT NULL,
  `descripcion` varchar(120) DEFAULT NULL,
  `esmodificador` int DEFAULT '0',
  `nombrearticulo` varchar(100) DEFAULT NULL,
  `cantidad` double NOT NULL DEFAULT '0',
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `idmesa` int NOT NULL DEFAULT '1',
  `bruto` double NOT NULL DEFAULT '0',
  `baseunitario` double NOT NULL DEFAULT '0',
  `ivaunitario` double NOT NULL DEFAULT '0',
  `descuento` int NOT NULL DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `cc` int DEFAULT '2',
  `documento` varchar(3) NOT NULL DEFAULT 'V',
  `origen` varchar(25) DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `HORAINI` datetime DEFAULT NULL,
  `HORAFIN` datetime DEFAULT NULL,
  `ultimaedicion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `idcliente` bigint unsigned NOT NULL DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `idz` bigint unsigned NOT NULL DEFAULT '1',
  `abonado` int NOT NULL DEFAULT '0',
  `idfacturaqueabona` int NOT NULL DEFAULT '0',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `iva` double NOT NULL DEFAULT '0',
  `esbolsillo` int NOT NULL DEFAULT '0',
  `idvendedor` bigint unsigned NOT NULL DEFAULT '1',
  `escortesia` int NOT NULL DEFAULT '0',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `idnc` bigint unsigned NOT NULL DEFAULT '1',
  `nc` int DEFAULT '0',
  `idusuarionc` bigint unsigned NOT NULL DEFAULT '1',
  `mediodepago` varchar(25) NOT NULL DEFAULT 'EFECTIVO',
  `comision` int NOT NULL DEFAULT '0',
  `devolucionrevisada` int DEFAULT '0',
  `fechaabonado` datetime DEFAULT NULL,
  `fechamc` datetime DEFAULT NULL,
  `tienenc` int NOT NULL DEFAULT '0',
  `marcadoparanc` int NOT NULL DEFAULT '0',
  `servicio` int NOT NULL DEFAULT '0',
  `subido` int NOT NULL DEFAULT '0',
  `CODMODIF` int DEFAULT '0',
  `esmodif` int NOT NULL DEFAULT '0',
  `CODARTICULOABAJO` varchar(12) NOT NULL DEFAULT '',
  `PRECIOIVA` int NOT NULL DEFAULT '0',
  `NUMMODIF` int NOT NULL DEFAULT '0',
  `numservicio` int NOT NULL DEFAULT '0',
  `aliasespera` int NOT NULL DEFAULT '1',
  `impresiones` int NOT NULL DEFAULT '1',
  `IDMOTIVODTO` varchar(2) NOT NULL DEFAULT '-1',
  `DETALLEDENUMLINEA` varchar(2) NOT NULL DEFAULT '0',
  `FAMILIAAENA` varchar(2) NOT NULL DEFAULT '0',
  `DETALLEMODIF` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_NUMERO` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_N` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_SERIE` varchar(2) NOT NULL DEFAULT '0',
  `ABONODE_FO` varchar(2) NOT NULL DEFAULT '-1',
  `NORDERTIQUET` varchar(1) NOT NULL DEFAULT '0',
  `SORDERTIQUET` varchar(1) NOT NULL DEFAULT '',
  `REQ` int NOT NULL DEFAULT '0',
  `COSTEIVA` int NOT NULL DEFAULT '0',
  `DTO` int NOT NULL DEFAULT '0',
  `TIPO` varchar(2) NOT NULL DEFAULT 'V',
  `CODMACRO` int NOT NULL DEFAULT '0',
  `CODFORMATO` int NOT NULL DEFAULT '0',
  `NUMLINEA` int NOT NULL DEFAULT '1',
  `codigociudad` varchar(5) DEFAULT NULL,
  `email` varchar(5) DEFAULT NULL,
  `codigopostal` varchar(5) DEFAULT NULL,
  `codigodepartamento` varchar(5) DEFAULT NULL,
  `departamento` varchar(5) DEFAULT NULL,
  `ciudad` varchar(5) DEFAULT NULL,
  `cufe` varchar(5) DEFAULT NULL,
  `unidaddemedida` varchar(25) DEFAULT NULL,
  `esnota` int DEFAULT '0',
  `unidadesdemedida` varchar(25) DEFAULT NULL,
  `impreso` int DEFAULT '0',
  `domicilio` int DEFAULT '0',
  `domicilioexterno` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'residenciaselrey',
  `zonaventas` varchar(25) DEFAULT NULL,
  `seccionventas` varchar(25) DEFAULT NULL,
  `situacioncocina2` varchar(25) DEFAULT 'SELECCIONE',
  `integraconfamilia` int DEFAULT '1',
  `codmodifpapa` int DEFAULT '0',
  `TIPOIVA` int DEFAULT '1',
  `sesubearappi` int DEFAULT '0',
  `refventas` varchar(20) DEFAULT NULL,
  `placa` varchar(6) DEFAULT NULL,
  `iddomiciliario` int DEFAULT NULL,
  `horaaceptado` datetime DEFAULT NULL,
  `comandaaceptada` bit(1) DEFAULT b'0',
  `horaacancelada` datetime DEFAULT NULL,
  `comandacancelada` bit(1) DEFAULT b'0',
  `motivocancela` varchar(25) DEFAULT NULL,
  `paqueterecibido` bit(1) DEFAULT b'0',
  `hora_paqueterecibido` bit(1) DEFAULT b'0',
  `porcentajecomision` decimal(5,2) DEFAULT '0.00',
  `articulovence` date DEFAULT NULL,
  `deberecoger` datetime DEFAULT NULL,
  `imei` varchar(50) DEFAULT NULL,
  `factor` int DEFAULT '1',
  `idusuarioredime` int DEFAULT NULL,
  `usuarioredime` varchar(50) DEFAULT NULL,
  `fecharedime` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idfactura` (`idfactura`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idcc` (`cc`),
  KEY `idcliente` (`idcliente`),
  KEY `idusuario` (`idusuario`),
  KEY `idz` (`idz`),
  KEY `idvendedor` (`idvendedor`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `ventas3`
--


--
-- Table structure for table `ventasauxiliar`
--

CREATE TABLE `ventasauxiliar` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `idmesarelacionada` int DEFAULT '0',
  `estadoimpresion` int DEFAULT '0',
  `identificador` varchar(100) DEFAULT NULL,
  `referenciapayu` varchar(200) DEFAULT NULL,
  `referenciafront` varchar(15) DEFAULT NULL,
  `descripcion` varchar(120) DEFAULT NULL,
  `pagarcontraentrega` int DEFAULT '0',
  `idmesa` int DEFAULT '1',
  `descuento` double NOT NULL DEFAULT '0',
  `codsituacion` int DEFAULT NULL,
  `idcliente` bigint unsigned NOT NULL DEFAULT '1',
  `idarticulo` bigint unsigned NOT NULL,
  `cc` int DEFAULT '2',
  `origen` varchar(15) DEFAULT 'MESAS',
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double DEFAULT '0',
  `cantidad` int DEFAULT '0',
  `valortotal` double DEFAULT '0',
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechaentregado` datetime DEFAULT NULL,
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `idvendedor` bigint unsigned NOT NULL DEFAULT '1',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `nota` varchar(25) NOT NULL DEFAULT '',
  `observacion` varchar(25) NOT NULL DEFAULT '',
  `despachado` int NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃ² el producto',
  `entregado` int NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃ² el producto',
  `enespera` int NOT NULL DEFAULT '0' COMMENT 'para que el mesero ya no pueda eliminar',
  `comision` int NOT NULL DEFAULT '0',
  `porcentajedescuento` double DEFAULT '0',
  `impuesto` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `servicio` double NOT NULL DEFAULT '0',
  `CODMODIF` int NOT NULL DEFAULT '0',
  `numlinea` int NOT NULL DEFAULT '0',
  `esmodif` int NOT NULL DEFAULT '0',
  `situacioncocina` varchar(50) DEFAULT NULL,
  `CODARTICULOABAJO` int NOT NULL DEFAULT '0',
  `COD_SATELITE` varchar(25) DEFAULT NULL,
  `unidaddemedida` varchar(25) DEFAULT NULL,
  `impreso` int DEFAULT '0',
  `unidadesdemedida` varchar(25) DEFAULT NULL,
  `domicilio` int DEFAULT '0',
  `domicilioexterno` int DEFAULT '0',
  `PrecuentaCallcenter` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  `placa` varchar(8) DEFAULT NULL,
  `seccion` varchar(25) DEFAULT NULL,
  `bodega` varchar(25) DEFAULT NULL,
  `situacioncocina2` varchar(25) DEFAULT 'SELECCIONE',
  `refventas` varchar(20) DEFAULT NULL,
  `referencia` varchar(25) DEFAULT NULL,
  `enviaraproduccion` int DEFAULT '0',
  `baseunitario` decimal(11,2) DEFAULT '0.00',
  `impuestounitario` decimal(11,2) DEFAULT '0.00',
  `iddomiciliario` int DEFAULT NULL,
  `ultimocostev` double DEFAULT '0',
  `recibidovaux` double DEFAULT '0',
  `devueltavaux` double DEFAULT '0',
  `seccionventas` varchar(25) DEFAULT NULL,
  `porcentajecomision` decimal(5,2) DEFAULT '0.00',
  `articulovence` date DEFAULT NULL,
  `imei` varchar(50) DEFAULT NULL,
  `factor` int DEFAULT '1',
  `sefactura` bit(1) DEFAULT b'1',
  `costomenu` decimal(11,2) DEFAULT '0.00',
  `comensales` int DEFAULT '0',
  `comanda` varchar(10) DEFAULT '0',
  `impultraprocesados` int DEFAULT '0',
  `impazucaradas` int DEFAULT '0',
  `comocalculardescuento` varchar(10) DEFAULT 'porcentaje',
  `recibidoencallcenter` int DEFAULT '0',
  `tipodescuento` varchar(15) DEFAULT NULL,
  `porcentajesobrecargoeventos` double DEFAULT '0',
  `sobrecargoeventos` double DEFAULT '0',
  `sgroupname` int DEFAULT '0',
  `campovalor` varchar(25) DEFAULT 'valordeventa',
  `proximocosto` double DEFAULT '0',
  `sesiones` int DEFAULT '1',
  `ultimafechaimpresionprecuenta` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idarticulo` (`idarticulo`),
  KEY `idcc` (`cc`),
  KEY `idusuario` (`idusuario`),
  KEY `idvendedor` (`idvendedor`),
  KEY `idcliente` (`idcliente`),
  CONSTRAINT `ventasauxiliar_ibfk_3` FOREIGN KEY (`idusuario`) REFERENCES `clientes` (`id`),
  CONSTRAINT `ventasauxiliar_ibfk_4` FOREIGN KEY (`idvendedor`) REFERENCES `clientes` (`id`),
  CONSTRAINT `ventasauxiliar_ibfk_6` FOREIGN KEY (`idcliente`) REFERENCES `clientes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=153 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `ventasauxiliar`
--


--
-- Table structure for table `ventasauxiliar2`
--

CREATE TABLE `ventasauxiliar2` (
  `idmesarelacionada` int DEFAULT '0',
  `estadoimpresion` int DEFAULT '0',
  `identificador` varchar(100) DEFAULT NULL,
  `referenciapayu` varchar(200) DEFAULT NULL,
  `referenciafront` varchar(15) DEFAULT NULL,
  `descripcion` varchar(120) DEFAULT NULL,
  `pagarcontraentrega` int DEFAULT '0',
  `idmesa` int DEFAULT '1',
  `descuento` double NOT NULL DEFAULT '0',
  `codsituacion` int DEFAULT NULL,
  `idcliente` bigint unsigned NOT NULL DEFAULT '1',
  `idarticulo` bigint unsigned NOT NULL,
  `cc` bigint unsigned NOT NULL DEFAULT '2',
  `origen` varchar(25) DEFAULT NULL,
  `comentario` varchar(200) DEFAULT NULL,
  `observaciones` varchar(200) DEFAULT NULL,
  `valorunitario` double NOT NULL DEFAULT '0',
  `cantidad` int DEFAULT '0',
  `valortotal` double NOT NULL DEFAULT '0',
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechacreacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `fechaentregado` datetime DEFAULT NULL,
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `costomedio` double DEFAULT '0',
  `porcentajeiva` double NOT NULL DEFAULT '0',
  `idvendedor` bigint unsigned NOT NULL DEFAULT '1',
  `idcaja` bigint unsigned NOT NULL DEFAULT '1',
  `nota` varchar(25) NOT NULL DEFAULT '',
  `observacion` varchar(25) NOT NULL DEFAULT '',
  `despachado` int NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃ² el producto',
  `entregado` int NOT NULL DEFAULT '0' COMMENT 'Significa que la cocina ya sirviÃ² el producto',
  `enespera` int NOT NULL DEFAULT '0' COMMENT 'para que el mesero ya no pueda eliminar',
  `comision` int NOT NULL DEFAULT '0',
  `porcentajedescuento` double NOT NULL DEFAULT '0',
  `impuesto` double NOT NULL DEFAULT '0',
  `base` double NOT NULL DEFAULT '0',
  `servicio` double NOT NULL DEFAULT '0',
  `CODMODIF` int NOT NULL DEFAULT '0',
  `numlinea` int NOT NULL DEFAULT '0',
  `esmodif` int NOT NULL DEFAULT '0',
  `situacioncocina` varchar(50) DEFAULT NULL,
  `CODARTICULOABAJO` int NOT NULL DEFAULT '0',
  `COD_SATELITE` varchar(25) DEFAULT NULL,
  `unidaddemedida` varchar(25) DEFAULT NULL,
  `impreso` int DEFAULT '0',
  `unidadesdemedida` varchar(25) DEFAULT NULL,
  `domicilio` int DEFAULT '0',
  `domicilioexterno` int DEFAULT '0',
  `PrecuentaCallcenter` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  `placa` varchar(8) DEFAULT NULL,
  `seccion` varchar(25) DEFAULT NULL,
  `bodega` varchar(25) DEFAULT NULL,
  `id` int DEFAULT '0',
  KEY `idarticulo` (`idarticulo`),
  KEY `idcc` (`cc`),
  KEY `idusuario` (`idusuario`),
  KEY `idvendedor` (`idvendedor`),
  KEY `idcliente` (`idcliente`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `ventasauxiliar2`
--


--
-- Table structure for table `ventasporhoras`
--

CREATE TABLE `ventasporhoras` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `fecha` date DEFAULT NULL,
  `dato0` double NOT NULL DEFAULT '0',
  `dato1` double NOT NULL DEFAULT '0',
  `dato2` double NOT NULL DEFAULT '0',
  `dato3` double NOT NULL DEFAULT '0',
  `dato4` double NOT NULL DEFAULT '0',
  `dato5` double NOT NULL DEFAULT '0',
  `dato6` double NOT NULL DEFAULT '0',
  `cc` int NOT NULL DEFAULT '0',
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `ventasporhoras`
--


--
-- Table structure for table `z`
--

CREATE TABLE `z` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `fecha` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `consecutivo` int NOT NULL DEFAULT '1',
  `descuento` double NOT NULL DEFAULT '0',
  `plataseparados` double NOT NULL DEFAULT '0',
  `domicilios` double NOT NULL DEFAULT '0',
  `ventaefectivo` double NOT NULL DEFAULT '0',
  `abonosseparados` double NOT NULL DEFAULT '0',
  `bruto` double NOT NULL DEFAULT '0',
  `total` double NOT NULL DEFAULT '0',
  `cantidaddearticulos` int NOT NULL DEFAULT '0',
  `idusuario` bigint unsigned NOT NULL DEFAULT '1',
  `devoluciones` double NOT NULL DEFAULT '0',
  `cc` bigint unsigned NOT NULL DEFAULT '1',
  `idcierre` int NOT NULL DEFAULT '0',
  `abonos` double NOT NULL DEFAULT '0',
  `bolsillos` double NOT NULL DEFAULT '0',
  `compras` double NOT NULL DEFAULT '0',
  `consumobolsillos` double NOT NULL DEFAULT '0',
  `ventaacredito` double NOT NULL DEFAULT '0',
  `pagofacturascredito` double NOT NULL DEFAULT '0',
  `otrosgastos` double NOT NULL DEFAULT '0',
  `gastossinafectarcaja` double NOT NULL DEFAULT '0',
  `idcaja` bigint unsigned NOT NULL,
  `otrosingresos` double NOT NULL DEFAULT '0',
  `cortesia` double NOT NULL DEFAULT '0',
  `cantidaddearticuloscortesia` double NOT NULL DEFAULT '0',
  `servicios` double DEFAULT '0',
  `fisico` int DEFAULT '0',
  `prestamoaempleados` double DEFAULT '0',
  `domicilio` int DEFAULT '0',
  `abonosprestamos` int DEFAULT '0',
  `base` int DEFAULT '0',
  `ifood` int DEFAULT '0',
  `rappi` int DEFAULT '0',
  `efectivo` int DEFAULT '0',
  `transferencias` int DEFAULT '0',
  `datafono` int DEFAULT '0',
  `observaciones` varchar(200) DEFAULT NULL,
  `domicilioexterno` int DEFAULT '0',
  `notasdebitoencompra` int DEFAULT '0',
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  `abonosordenservicio` double DEFAULT '0',
  `nequi` int DEFAULT '0',
  `notascreditoenventas` double DEFAULT '0',
  `otrosgastossinafectarcaja` double DEFAULT '0',
  `devolucionesdedinero` double DEFAULT '0',
  `sistecredito` int DEFAULT '0',
  `prestamosalaempresa` int DEFAULT '0',
  `abonosprestamosin` int DEFAULT '0',
  `nomina` int DEFAULT '0',
  `anticipos` int DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `idusuario` (`idusuario`),
  KEY `cc` (`cc`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `z`
--

INSERT INTO `z` (`id`, `fecha`, `consecutivo`, `descuento`, `plataseparados`, `domicilios`, `ventaefectivo`, `abonosseparados`, `bruto`, `total`, `cantidaddearticulos`, `idusuario`, `devoluciones`, `cc`, `idcierre`, `abonos`, `bolsillos`, `compras`, `consumobolsillos`, `ventaacredito`, `pagofacturascredito`, `otrosgastos`, `gastossinafectarcaja`, `idcaja`, `otrosingresos`, `cortesia`, `cantidaddearticuloscortesia`, `servicios`, `fisico`, `prestamoaempleados`, `domicilio`, `abonosprestamos`, `base`, `ifood`, `rappi`, `efectivo`, `transferencias`, `datafono`, `observaciones`, `domicilioexterno`, `notasdebitoencompra`, `pv`, `abonosordenservicio`, `nequi`, `notascreditoenventas`, `otrosgastossinafectarcaja`, `devolucionesdedinero`, `sistecredito`, `prestamosalaempresa`, `abonosprestamosin`, `nomina`, `anticipos`) VALUES (1,'2020-12-24 19:28:24',1,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,0,0,'CHICKENDEN',0,0,0,0,804.27,0,0,0,0,0),(2,'2024-06-08 09:36:51',1,540000.0000000007,0,0,5848502,1440000,6528502,5988502,158,1,900000,2,0,0,0,7233400,0,140000,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,0,0,'CHICKENDEN',0,0,0,0,0,0,0,0,0,0);

--
-- Table structure for table `zonas`
--

CREATE TABLE `zonas` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `zona` varchar(25) DEFAULT NULL,
  `cc` bigint unsigned NOT NULL,
  `orden` int DEFAULT '0',
  `oculto` int DEFAULT '0',
  `COD_SATELITEZ` varchar(25) DEFAULT 'SELECCIONE',
  `pv` varchar(25) DEFAULT 'residenciaselrey',
  `idusuario` int DEFAULT '0',
  `eshotel` int DEFAULT '0',
  `activo` tinyint unsigned DEFAULT '1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `cc` (`cc`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `zonas`
--

INSERT INTO `zonas` (`id`, `zona`, `cc`, `orden`, `oculto`, `COD_SATELITEZ`, `pv`, `idusuario`, `eshotel`, `activo`) VALUES (1,'PISO 2',2,2,0,'SELECCIONE','residenciaselrey',0,1,1),(2,'PISO 3',2,3,0,'SELECCIONE','residenciaselrey',0,1,1),(3,'PISO 4',2,4,1,'SELECCIONE','residenciaselrey',0,1,1),(4,'PISO 5',2,5,1,'SELECCIONE','residenciaselrey',0,1,1),(5,'PISO 6',2,6,1,'SELECCIONE','residenciaselrey',0,1,1),(6,'PISO 7',2,7,1,'SELECCIONE','residenciaselrey',0,1,1);

--
-- Table structure for table `zonasclientes`
--

CREATE TABLE `zonasclientes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `codigozona` varchar(10) DEFAULT NULL,
  `nombrezona` varchar(25) DEFAULT NULL,
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `zonasclientes`
--


--
-- Table structure for table `zonashabitaciones`
--

CREATE TABLE `zonashabitaciones` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `zona` varchar(25) DEFAULT NULL,
  `cc` bigint unsigned NOT NULL,
  `orden` int DEFAULT '0',
  `oculto` int DEFAULT '0',
  `COD_SATELITEZ` varchar(25) DEFAULT 'SELECCIONE',
  `pv` varchar(25) DEFAULT 'CHICKENDEN',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`),
  KEY `cc` (`cc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `zonashabitaciones`
--


--
-- Dumping routines for database 'hotelmontana'
--
/*!50003 DROP FUNCTION IF EXISTS `biscaridfactura` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `biscaridfactura`(`consecutivoin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
SET P=(select id from facturas where consecutivo=consecutivoin);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `biscarnombrecc` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `biscarnombrecc`(`ccin` INT(11)) RETURNS varchar(110) CHARSET utf8mb3
    SQL SECURITY INVOKER
BEGIN
DECLARE P VARCHAR(110);
SET P=(select centrodecostos from centrosdecostos where id=ccin);
RETURN ifnull(P,'DESCONOCIDO');
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `bucarnombredeltercero` */;
DELIMITER ;;
CREATE DEFINER=`wwcont_pruebas`@`%.%.%.%` FUNCTION `bucarnombredeltercero`(`idin` INT(11)) RETURNS varchar(110) CHARSET latin1
    SQL SECURITY INVOKER
BEGIN DECLARE P varchar(110); SET P=(select concat(ifnull(primernombre,''),' ',ifnull(segundonombre,''),' ',ifnull(primerapellido,''),' ',ifnull(segundoapellido,''),' ',ifnull(razonsocial,''),' ',ifnull(nombrecomercial,'')) from clientes where id=idin); RETURN ifnull(P,'DESCONOCIDO'); END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscadescripcionporrefcruzada` */;
DELIMITER ;;
CREATE DEFINER=`controll_chickenden`@`vps-385963.appitecintegraciones.com` FUNCTION `buscadescripcionporrefcruzada`(`refin` INT(11)) RETURNS varchar(50) CHARSET utf8mb3
    SQL SECURITY INVOKER
BEGIN declare a varchar(50); set a=(select descripcion from articulos where referenciacruzada=refin); return ifnull(a,'ERROR EN REFERENCIA CRUZADA'); end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarabonos` */;
DELIMITER ;;
CREATE DEFINER=`controll_chickenden`@`vps-385963.appitecintegraciones.com` FUNCTION `buscarabonos`(`idfacturain` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN DECLARE P INT(11); SET P=(select sum(valor) from abonos where idfactura=idfacturain and nc=0); RETURN ifnull(P,0); END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarabonosencompras` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarabonosencompras`(`idfacturain` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN DECLARE P double; SET P=(select sum(valor) from abonoscompras where idmayorcompras=idfacturain); RETURN ifnull(P,0); END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarabonosenseparados` */;
DELIMITER ;;
CREATE DEFINER=`controll_chickenden`@`162.214.175.121` FUNCTION `buscarabonosenseparados`(`idfacturain` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN DECLARE P double; SET P=(select sum(valor) from abonosseparados where idmayorseparados=idfacturain and nc=0 and idgasto=0); RETURN ifnull(P,0); END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarajustesproducto` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarajustesproducto`(`idin` INT(11), `fecha1` DATE, `fecha2` DATE) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
SET P=(select sum(cantidad) from ajustesdeinventario where idarticulo=idin and cast(fechacreacion as date) BETWEEN fecha1 and fecha2);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarbajasproducto` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarbajasproducto`(`idin` INT(11), `fecha1` DATE, `fecha2` DATE) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
SET P=(select sum(cantidad) from bajas where idarticulo=idin and cast(fecha as date)  BETWEEN fecha1 and fecha2);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarbarriotercero` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarbarriotercero`(`idin` INT(11)) RETURNS varchar(110) CHARSET latin1
    SQL SECURITY INVOKER
BEGIN
DECLARE P varchar(110);
SET P=(select barrio from clientes where id=idin);
RETURN ifnull(P,'');
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarcajaenfactura` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcajaenfactura`(`consecutivoin` INT(11), `ccin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN DECLARE P INT(11); SET P=(select idcaja from facturas where consecutivo=consecutivoin and cc=ccin limit 1); RETURN ifnull(P,1); END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarcantidaddeldia` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcantidaddeldia`(`idarticuloin` INT(11), `fechain` DATE) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P DOUBLE;
SET P=(select AVG(cantidad) from inventarioinicial where idarticulo=idarticuloin and cast(fechacracion as date)=fechain);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarcantidadennotasdebito` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcantidadennotasdebito`(`idarticuloin` INT(11), `idmayorin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P int(11);
set P=(select sum(cantidad) from lineasnotasdebito where idmayor=idmayorin and idarticulo=idarticuloin);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarccdelarticulo` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarccdelarticulo`(`idin` INT(4)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(4);
SET P=(select cc from articulos where id=idin);
RETURN ifnull(P,-1);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarceduladeltercero` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarceduladeltercero`(`idin` INT(11)) RETURNS varchar(110) CHARSET latin1
    SQL SECURITY INVOKER
BEGIN
DECLARE P varchar(20);
SET P=(select ifnull(cedula,'') from clientes where id=idin);
RETURN ifnull(P,'DESCONOCIDO');
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarclientedelamesa` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarclientedelamesa`(`idmesain` INT(11)) RETURNS varchar(50) CHARSET latin1
BEGIN declare rs varchar(50); set rs=(select idcliente from ventasauxiliar where idmesa=idmesain limit 1); set rs=ifnull(rs,1); if rs>1 THEN set rs=bucarnombredeltercero(rs); ELSE set rs=''; end if; if rs='CLIENTES VARIOS' then set rs='';end if; return rs; end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarcodigoformapago` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcodigoformapago`(`forma` VARCHAR(100)) RETURNS int
begin 
declare rs int(11);
set rs=(select orden from mediosdepago where mediodepago=forma);
return ifnull(rs,-1);
end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarcodsituacion` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcodsituacion`(`idarticuloin` INT(11)) RETURNS varchar(100) CHARSET latin1
    SQL SECURITY INVOKER
BEGIN
declare rs varchar(150);
set rs=(select situacioncocina from articulos where id=idarticuloin);
return ifnull(rs,'Situacion indefinida');
end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarcomprasporproductomesyano` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcomprasporproductomesyano`(`idin` INT(11), `mesin` INT(2), `anoin` INT(4)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
SET P=(select sum(cantidad) from compras where idarticulo=idin and
       month(fecha)=mesin and year(fecha)=anoin);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarcomprasproducto` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcomprasproducto`(`idin` INT(11), `fecha1` DATE, `fecha2` DATE) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
SET P=(select sum(cantidad*factor) from compras where idarticulo=idin and cast(fecha as date)  BETWEEN fecha1 and fecha2);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarconsumosproducto` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarconsumosproducto`(`idin` INT(11), `fecha1` DATE, `fecha2` DATE) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
SET P=(SELECT sum(movimientosdeinventario.cantidad)  from movimientosdeinventario where 
        idarticulo=idin and  cast(fechacreacion as date) between '' and '' 
         and (ventana='VENTAS' or ventana='CORTESIAS' OR ventana='DEVOLUCIONES'));
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarconteoproducto` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarconteoproducto`(`idin` INT(11), `fecha1` DATE) RETURNS varchar(11) CHARSET utf8mb3
    SQL SECURITY INVOKER
BEGIN
DECLARE P VARCHAR(11);
SET P=(select cantidad from inventarioinicial,mayoresinventarioinicial where idarticulo=idin and fecha=fecha1 and idmayor=mayoresinventarioinicial.id);
RETURN ifnull(P,'NA');
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarcostomedio` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcostomedio`(`idarticulo` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN DECLARE P double; SET P=(select costomedio from articulos where id=idarticulo); RETURN ifnull(P,0); END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarcreditosdeldia` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcreditosdeldia`(`ccin` INT(4), `fechain` DATE) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
SET P=(
    select sum(facturas.total) from facturas 
       where cc=ccin and cast(fecha as date)=fechain and documento='C');
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarcuentacompras` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcuentacompras`(`idin` INT(11)) RETURNS varchar(25) CHARSET latin1
    NO SQL
    SQL SECURITY INVOKER
BEGIN
declare a varchar(25);
set a=(select articulos.cuentacompras from articulos where id=idin);
return ifnull(a,'');
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarcuentacosto` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcuentacosto`(`idin` INT(11)) RETURNS varchar(25) CHARSET latin1
    NO SQL
    SQL SECURITY INVOKER
BEGIN
declare a varchar(25);
set a=(select articulos.cuentacosto from articulos where id=idin);
return ifnull(a,'');
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarcuentaventa` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarcuentaventa`(`idin` INT(11)) RETURNS varchar(25) CHARSET latin1
    NO SQL
    SQL SECURITY INVOKER
BEGIN
declare a varchar(25);
set a=(select articulos.cuentaventa from articulos where id=idin);
return ifnull(a,'');
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscardescripcion` */;
DELIMITER ;;
CREATE DEFINER=`controll_chickenden`@`localhost` FUNCTION `buscardescripcion`(`idin` INT(11)) RETURNS varchar(150) CHARSET utf8mb3
    SQL SECURITY INVOKER
BEGIN
DECLARE P varchar(150);
SET P=(select ifnull(descripcion,'') from articulos where id=idin );
RETURN ifnull(P,'');
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscardescuendoespecial` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscardescuendoespecial`(`lineain` VARCHAR(50), `idgrupoin` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN declare r double; set r=(select porcentaje from descuentosporgrupo where linea=lineain and idgrupo=idgrupoin); return ifnull(r,0); end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscardescuentoporfecha` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscardescuentoporfecha`(`idarticuloin` INT(11), `horain` DATE) RETURNS int
    SQL SECURITY INVOKER
BEGIN
declare rs int(11);
set rs=(select porcentaje from porcentajesdescuentoarticulos,fechasdescuentos where fechasdescuentos.id=porcentajesdescuentoarticulos.idfecha and idarticulo=idarticuloin and fechasdescuentos.fecha=horain limit 1);
return ifnull(rs,0);
end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscardiadelasemana` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscardiadelasemana`(`fechain` DATETIME) RETURNS varchar(25) CHARSET utf8mb3
    SQL SECURITY INVOKER
BEGIN
declare a varchar(25);declare b int(1);
set a='';

set b=(select DAYOFWEEK(fechain));
if b=2 then set a='Lunes'; 
elseif b=3 then set a='Martes' ;
elseif b=4 then set a='Miércoles'; 
elseif b=5 then set a='Jueves' ;
elseif b=6 then set a='Viernes';
elseif b=7 then set a='Sábado';
elseif b=1 then set a='Domingo'; 
end if;
return a;
end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscardirecciontercero` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscardirecciontercero`(`idin` INT(11)) RETURNS varchar(110) CHARSET latin1
    SQL SECURITY INVOKER
BEGIN
DECLARE P varchar(110);
SET P=(select direccion from clientes where id=idin);
RETURN ifnull(P,'');
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarfactor` */;
DELIMITER ;;
CREATE DEFINER=`wwcont_pruebas`@`%.%.%.%` FUNCTION `buscarfactor`(`idin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN declare rs int(5); set rs=(select factor from unidadesdemedida where id=idin); return ifnull(rs,1); end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarfechadefactura` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarfechadefactura`(`consecutivoin` INT(11)) RETURNS date
    SQL SECURITY INVOKER
BEGIN
DECLARE P DATE;
SET P=(select cast(fecha as date) from ventas where consecutivo=consecutivoin LIMIT 1);
RETURN ifnull(P,'');
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarfisicoproducto` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarfisicoproducto`(`idin` INT(11), `fecha1` DATE) RETURNS varchar(11) CHARSET utf8mb3
    SQL SECURITY INVOKER
BEGIN
DECLARE P VARCHAR(11);
SET P=(select fisico from inventarioinicial,mayoresinventarioinicial where idarticulo=idin and fecha=fecha1 and idmayor=mayoresinventarioinicial.id);
RETURN ifnull(P,'NA');
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscaridclientedelamesa` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscaridclientedelamesa`(`idmesain` INT(11), `id99` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN DECLARE rs int(1); set rs=(select idcliente from ventasauxiliar where idmesa=idmesain limit 1);
return ifnull(rs,id99); end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscaridmeseroactual` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscaridmeseroactual`(`idmesain` INT(11), `id99` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN DECLARE rs int(11); set rs=(select idvendedor  from ventasauxiliar where idmesa=idmesain limit 1); return ifnull(rs,id99); end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscaridporrefcruzada` */;
DELIMITER ;;
CREATE DEFINER=`controll_chickenden`@`vps-385963.appitecintegraciones.com` FUNCTION `buscaridporrefcruzada`(`refin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN declare a int(11); set a=(select id from articulos where referenciacruzada=refin); return ifnull(a,0); end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscaridseccion` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscaridseccion`(`seccionin` VARCHAR(50)) RETURNS int
    SQL SECURITY INVOKER
BEGIN DECLARE P int(11); SET P=(select ifnull(id,0) from secciones where seccion=seccionin); RETURN ifnull(P,0); END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscaridunicodecliente` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscaridunicodecliente`(`nombrein` VARCHAR(100)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
SET P=(select id from clientes where primernombre=nombrein);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscaridunidad` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscaridunidad`(`unidadin` VARCHAR(50), `ccin` INT(1)) RETURNS int
    SQL SECURITY INVOKER
BEGIN DECLARE P int(11); SET P=(select ifnull(id,1) from unidadesdemedida where unidaddemedida=unidadin and cc=ccin); RETURN ifnull(P,1); END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarimpresora` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarimpresora`(`situacionin` VARCHAR(100)) RETURNS varchar(105) CHARSET latin1
    SQL SECURITY INVOKER
BEGIN
declare rs varchar(150);
set rs=(select nombreimpresora from situacionesdecocina where situacioncocina=situacionin);
return ifnull(rs,'Situacion indefinida');
end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarinventariodeinsumos` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarinventariodeinsumos`(`idarticuloin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE q int(11);
SET q=(select tienecomposicion from articulos where id=idarticuloin);
if(q=0) THEN  
set q=(select cantidad from articulos where id=idarticuloin);
ELSE 
SET q=(select min(cantidad) from articulos where id in(select idinsumo from componentesarticulos where idarticulo=idarticuloin));
END IF;
RETURN ifnull(q,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarlineadelarticulo` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarlineadelarticulo`(`idarticuloin` INT(11)) RETURNS varchar(100) CHARSET latin1
    SQL SECURITY INVOKER
BEGIN DECLARE rs varchar(100); 
set rs=(select linea  from articulos where id=idarticuloin ); return ifnull(rs,''); end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarmediodepago` */;
DELIMITER ;;
CREATE DEFINER=`controll_chickenden`@`localhost` FUNCTION `buscarmediodepago`(`idin` INT) RETURNS varchar(15) CHARSET latin1
    NO SQL
BEGIN
declare a varchar(15);
declare b int(1);
set b=(select count(id) from registrosmediosdepago where idfactura=idin);
       if b>1 then 
       set a='VARIOS';
       ELSE
       set a=(select mediodepago from registrosmediosdepago where idfactura=idin);
       end if;
       return a;
end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarnombrecc` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnombrecc`(`ccin` INT(11)) RETURNS varchar(110) CHARSET utf8mb3
    SQL SECURITY INVOKER
BEGIN
DECLARE P VARCHAR(110);
SET P=(select centrodecostos from centrosdecostos where id=ccin);
RETURN ifnull(P,'DESCONOCIDO');
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarnombreclientedelamesa` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnombreclientedelamesa`(`idmesain` INT(11)) RETURNS varchar(100) CHARSET latin1
    SQL SECURITY INVOKER
BEGIN
DECLARE rs varchar(100);
set rs=(select bucarnombredeltercero(idcliente) from ventasauxiliar where idmesa=idmesain limit 1);
return ifnull(rs,'');
end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarnombredelamesa` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnombredelamesa`(`idin` INT(5)) RETURNS varchar(50) CHARSET latin1
    NO SQL
BEGIN
declare a varchar(50);
set a=(select nombre from mesas where id=idin);
return ifnull(a,' '); 
end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarnombredelamesadividida` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnombredelamesadividida`(`idmesain` INT(11)) RETURNS varchar(25) CHARSET latin1
    SQL SECURITY INVOKER
BEGIN
declare a varchar(25);
set a=(select mesas.nombre from mesas, ventasauxiliar where ventasauxiliar.idmesarelacionada=mesas.id and ventasauxiliar.idmesa=idmesain limit 1);
RETURN ifnull(a,'');
end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarnombredelarticulo` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnombredelarticulo`(`idin` INT(11)) RETURNS varchar(400) CHARSET utf8mb3
    SQL SECURITY INVOKER
BEGIN DECLARE P varchar(400); SET P=(select descripcion from articulos where id=idin); RETURN ifnull(P,''); END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarnotassencompras` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnotassencompras`(`idmayorin` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN DECLARE P int(11); SET P=(select sum(valortotal) from notasdebito where idmayorescompras=idmayorin); RETURN ifnull(P,0); END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarnumlinea` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnumlinea`(`identif` VARCHAR(50), `esmodifin` INT(1)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P int(2);
if  esmodifin=0 then 
SET P=(select 1+max(numlinea) from ventasauxiliar where idmesa=identif and esmodif=0);
else 
SET P=(select max(numlinea) from ventasauxiliar where idmesa=identif and esmodif=0);
end if;
RETURN ifnull(P,1);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarnumlineaporcliente` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnumlineaporcliente`(`idclientein` VARCHAR(50), `esmodifin` INT(1)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P int(2);
if  esmodifin=0 then 
SET P=(select 1+max(numlinea) from ventasauxiliar where idcliente=idclientein);
else 
SET P=(select max(numlinea) from ventasauxiliar where idcliente=idclientein and esmodif=0);
end if;
RETURN ifnull(P,1);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarnumlineatomapedidos` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarnumlineatomapedidos`(`identif` VARCHAR(50), `esmodifin` INT(1)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P int(2);
if  esmodifin=0 then 
SET P=(select 1+max(numlinea) from ventasauxiliar where identificador=identif and esmodif=0);
else 
SET P=(select max(numlinea) from ventasauxiliar where identificador=identif and esmodif=0);
end if;
RETURN ifnull(P,1);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarordendia` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarordendia`(`a` VARCHAR(10)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
declare b int(1);
set b=0;


if a='Lunes' then set b=1; 
elseif  a='Martes'  then set b=2;
elseif  a='Miércoles' then set b=3;
elseif   a='Jueves'  then set b=4;
elseif  a='Viernes' then set b=5;
elseif  a='Sábado' then set b=6;
elseif   a='Domingo' then set b=7;
end if;
return b;
end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarporcentaje` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarporcentaje`(`ccin` INT(11), `idarticuloin` INT(11), `idclientein` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
if ccin=9 then return 15; end if;
SET P=(select preciosespeciales.porcentaje from preciosespeciales,articulos where idcliente=idclientein and articulos.id=idarticuloin and articulos.linea=preciosespeciales.linea);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarporcentajeporgrupo` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarporcentajeporgrupo`(`ccin` INT(4), `idclientein` INT(11), `idarticuloin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN DECLARE P INT(11); SET P=(select descuentosporgrupo.porcentaje from descuentosporgrupo,articulos,clientes,gruposdepersonas where clientes.id=idclientein and articulos.id=idarticuloin and articulos.linea=descuentosporgrupo.linea and clientes.idgrupo=gruposdepersonas.id and descuentosporgrupo.idgrupo=gruposdepersonas.id); RETURN ifnull(P,0); END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarpreciodeventa` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarpreciodeventa`(`idin` INT) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
SET P=(select preciodeventa from paraventas where id=idin);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarprecioiva` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarprecioiva`(`numlineain` INT(11), `idfacturain` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN
declare rs double;
set rs=(select sum(valortotal) from ventas where idfactura=idfacturain and numlinea=numlineain );
return ifnull(rs,0);
end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarpreciomaximo` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarpreciomaximo`(`idin` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN
DECLARE P DOUBLE;
SET P=(select MAX(valorgramo) from compras where idarticulo=idin);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarpreciominimo` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarpreciominimo`(`idin` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN
DECLARE P DOUBLE;
    SET P=(select MIN(valorgramo) from compras where idarticulo=idin);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarpreciopromedio` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarpreciopromedio`(`idin` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
SET P=(select AVG(valorgramo) from compras where idarticulo=idin);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarrecibe` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarrecibe`(`idin` INT(11)) RETURNS varchar(200) CHARSET latin1
    SQL SECURITY INVOKER
BEGIN
DECLARE P VARCHAR(200);
SET P=(select recibe from paraventas where id=idin);
RETURN ifnull(P,'');
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarreferencia` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarreferencia`(`idarticuloin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN DECLARE P INT(11); SET P=(select referencia from articulos where id=idarticuloin ); RETURN ifnull(P,0); END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarsaldodelafactura` */;
DELIMITER ;;
CREATE DEFINER=`wwcont_residenciaselrey`@`vps-435806.controlweb.co` FUNCTION `buscarsaldodelafactura`(`idfacturain` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN DECLARE P INT(11); DECLARE aabonado INT(11); declare doc varchar(1); set doc=(select documento from facturas where id=idfacturain); if(doc='V') then RETURN 0; ELSE set aabonado=(select abonado from facturas where id=idfacturain); if aabonado>0 then set P= 0; else SET P=(select total  -retencion+servicio -buscarabonos(idfacturain) -valornc from facturas where id=idfacturain); end if; RETURN ifnull(P,0); END IF; END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarsaldodelamayor` */;
DELIMITER ;;
CREATE DEFINER=`wwcont_residenciaselrey`@`162.240.7.104` FUNCTION `buscarsaldodelamayor`(`idmayorin` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN DECLARE P double; declare notas int(11); DECLARE aabonado double; declare doc varchar(7); set notas=buscarnotassencompras(idmayorin); set doc=(select documento from mayorescompras where id=idmayorin); if(doc='CONTADO') then RETURN 0; ELSE SET P=(select base+iva-descuento - otrosdescuentos -buscarabonosencompras(idmayorin) - descuentocomercial from mayorescompras where id=idmayorin); SET P=P-notas; RETURN ifnull(P,0); END IF; END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarsaldodelamayorseparados` */;
DELIMITER ;;
CREATE DEFINER=`controll_chickenden`@`vps-385963.appitecintegraciones.com` FUNCTION `buscarsaldodelamayorseparados`(`idmayorin` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN DECLARE P double; DECLARE aabonado double; SET P=(select total -buscarabonosenseparados(idmayorin) from mayoresseparados where id=idmayorin); RETURN ifnull(P,0); END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarsaldodelcliente` */;
DELIMITER ;;
CREATE DEFINER=`controll_chickenden`@`localhost` FUNCTION `buscarsaldodelcliente`(`idclientein` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN DECLARE P FLOAT(11); DECLARE Q FLOAT(11); DECLARE S FLOAT(11); SET P=(select sum(saldo) from facturas where idcliente=idclientein and documento='C' and abonado=0); set P=ifnull(P,0); set Q=(select sum(saldo) from mayoresseparados where idcliente=idclientein and abonado=0); set Q=ifnull(Q,0); set S=(select sum(saldo) from prestamos where idcliente=idclientein); set S=ifnull(S,0); RETURN ROUND(p+q+S,2); END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarsaldodelprestamo` */;
DELIMITER ;;
CREATE DEFINER=`wwcont_residenciaselrey`@`%.%.%.%` FUNCTION `buscarsaldodelprestamo`(`idin` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN
    declare a double;
    set a=(select sum(valor) from abonosprestamos  where idprestamo=idin);
    set a=ifnull(a,0);
    return (select plazo*valorcuota+valorcuotainicial-a from prestamos where id=idin);
    end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarsaldodelprestamoin` */;
DELIMITER ;;
CREATE DEFINER=`wwcont_residenciaselrey`@`%.%.%.%` FUNCTION `buscarsaldodelprestamoin`(`idin` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN
     declare a double;
     set a=(select sum(valor) from abonosprestamosin  where idprestamo=idin);
     set a=ifnull(a,0);
     return (select valor-a from prestamosalaempresa where id=idin);
     end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarsaldodelproveedor` */;
DELIMITER ;;
CREATE DEFINER=`wwcont_residenciaselrey`@`%.%.%.%` FUNCTION `buscarsaldodelproveedor`(`idclientein` INT(11)) RETURNS int
    SQL SECURITY INVOKER
begin DECLARE P INT(11); DECLARE Q INT(11);  DECLARE prestamos INT(11); 
SET prestamos=(select sum(saldo) from prestamosalaempresa where idcliente=idclientein);
SET P=(select sum(valor-descuento) from mayorescompras where idproveedor=idclientein and documento='CREDITO');
SET Q=(select sum(abonoscompras.valor) from abonoscompras,mayorescompras where mayorescompras.idproveedor=idclientein and abonoscompras.idmayorcompras=mayorescompras.id);
set prestamos=ifnull(prestamos,0); set P=ifnull(P,0); 
set Q=ifnull(Q,0); 
RETURN P+prestamos-Q; END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarseccion` */;
DELIMITER ;;
CREATE DEFINER=`wwcont_pruebas`@`%.%.%.%` FUNCTION `buscarseccion`(`idin` INT(11)) RETURNS varchar(25) CHARSET utf8mb3
    SQL SECURITY INVOKER
BEGIN
DECLARE a varchar(25);
set a=(select  seccion from  secciones where id=idin);
return ifnull(a,'');
end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscartelefonotercero` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscartelefonotercero`(`idin` INT(11)) RETURNS varchar(110) CHARSET latin1
    SQL SECURITY INVOKER
BEGIN
DECLARE P varchar(110);
SET P=(select concat(ifnull(telefono,''),' ',ifnull(celular,'')) from clientes where id=idin);
RETURN ifnull(P,'');
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscartrasladosabodega` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscartrasladosabodega`(`idin` INT(11), `fecha1` DATE, `fecha2` DATE) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
SET P=(select sum(cantidad) from traslados where idarticulo=idin and cast(fechacreacion as date) BETWEEN fecha1 and fecha2) and origen<>'MESAS';
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscartrasladosproducto` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscartrasladosproducto`(`idin` INT(11), `fecha1` DATE, `fecha2` DATE) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
SET P=(select sum(cantidad) from traslados where idarticulo=idin and cast(fechacreacion as date) BETWEEN fecha1 and fecha2);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarultimaventa` */;
DELIMITER ;;
CREATE DEFINER=`wwcont_residenciaselrey`@`%.%.%.%` FUNCTION `buscarultimaventa`(`idin` INT(11)) RETURNS date
    SQL SECURITY INVOKER
BEGIN
        DECLARE P DATE;
        SET P=(select cast(fechacreacion as date) from ventas where idarticulo=idin order by id desc limit 1); 
        return ifnull(P,'');
        END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarultimoabonodecompras` */;
DELIMITER ;;
CREATE DEFINER=`controll_chickenden`@`localhost` FUNCTION `buscarultimoabonodecompras`(`idclientein` INT(11)) RETURNS varchar(25) CHARSET latin1
    SQL SECURITY INVOKER
BEGIN
declare rs varchar(25);
set rs=(select max(abonoscompras.fechacreacion) from abonoscompras,mayorescompras where idmayorcompras=mayorescompras.id and mayorescompras.idproveedor=idclientein  );
return ifnull(rs,'SIN ABONOS');
end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarunidaddemedida` */;
DELIMITER ;;
CREATE DEFINER=`restaura_chickenden`@`localhost` FUNCTION `buscarunidaddemedida`(`idin` INT(11)) RETURNS varchar(50) CHARSET latin1
    SQL SECURITY INVOKER
BEGIN declare rs varchar(50); set rs=(select unidaddemedida from unidadesdemedida where id=idin); return ifnull(rs,'DESCONOCIDO'); end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarvalordelamesa` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarvalordelamesa`(`idmesain` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN DECLARE rs double; set rs=(select sum(valortotal) from ventasauxiliar where idmesa=idmesain); return ifnull(rs,0); end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarvalordelanotadebito` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarvalordelanotadebito`(`idndin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN DECLARE P int(11); SET P=(select valortotal from notasdebito where id=idndin); RETURN ifnull(P,0); END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarventasdelusuario` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarventasdelusuario`(`idin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P int(11);
SET P=(select ifnull(sum(total),0) from facturas where idvendedor =idin and cast(fechacreacion as date)=cast(now()as date) and abonado=0 );
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarventasporproductoyvendedor` */;
DELIMITER ;;
CREATE DEFINER=`restaura_chickenden`@`localhost` FUNCTION `buscarventasporproductoyvendedor`(`idvendedorin` INT(11), `idarticuloin` INT(11), `mesin` INT(2)) RETURNS int
    SQL SECURITY INVOKER
begin
declare a int(11);
set a=(select sum(cantidad) from ventas where nc=0 and abonado=0 and idvendedor=idvendedorin and idarticulo=idarticuloin and year(fechacreacion)=year(now()) and month(fechacreacion)=mesin);
return ifnull(a,0);
end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarventasproducto` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarventasproducto`(`idin` INT, `fecha1` DATE, `fecha2` DATE) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
SET P=(select sum(cantidad) from ventas where idarticulo=idin and fechacreacion BETWEEN fecha1 and fecha2);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarventasproductoanoymes` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buscarventasproductoanoymes`(`idin` INT(11), `mesin` INT(2), `anoin` INT(4)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
SET P=(select sum(cantidad) from ventas where idarticulo=idin and month(fechacreacion)=mesin and year(fechacreacion)=anoin);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `buscarzona` */;
DELIMITER ;;
CREATE DEFINER=`controll_chickenden`@`162.214.175.121` FUNCTION `buscarzona`(`idin` INT(11)) RETURNS varchar(25) CHARSET latin1
    SQL SECURITY INVOKER
BEGIN
DECLARE a varchar(25);
set a=(select ifnull(zona,'DESCONOCIDO') from zonas,mesas where zonas.id=mesas.idzona and mesas.id=idin);
return ifnull(a,'DESCONOCIDO');
end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `calcularcostodelafactura` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `calcularcostodelafactura`(`idfacturain` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN
DECLARE P DOUBLE;
SET P=(select sum(cantidad*costomedio)  from ventas where idfactura=idfacturain);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `calcularcostopomedio` */;
DELIMITER ;;
CREATE DEFINER=`controll_chickenden`@`vps-385963.appitecintegraciones.com` FUNCTION `calcularcostopomedio`(`idin` INT(11)) RETURNS double
    SQL SECURITY INVOKER
begin
declare a double;
declare b double;
declare c double;
declare d double;
declare e double;
declare f double;
set d=(select valorgramo from compras where idarticulo=idin order by id desc limit 1);
set e=(select costomedio from articulos where id=idin);
set f=(select ultimocoste from articulos where id=idin);
set d=ifnull(d,0);
set a=(SELECT sum(cantidad*factor) from compras where  
idarticulo=idin and month(fecha)=month(now()) and year(fecha)=year(now()));
       set b=(SELECT sum(valortotal) from compras where  
idarticulo=idin and month(fecha)=month(now()) and year(fecha)=year(now()));
       set a=ifnull(a,1);
       set b=ifnull(b,0);
set c=  (b*1.0/a*1.0);
if c= 0 then set c=d; end if;
if c= 0 and e>0 then set c=e; end if;
if c= 0 and f>0 then set c=f; end if;
return c;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `calcularcostoseguningredientes` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `calcularcostoseguningredientes`(`idarticuloin` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN
DECLARE P double;
SET P=(select sum(articulos.costomedio*componentesarticulos.cantidad) 
from articulos,componentesarticulos where articulos.id=idinsumo and idarticulo=idarticuloin);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `calcular_disponibilidad` */;
DELIMITER ;;
CREATE DEFINER=`wwcont_residenciaselrey`@`%.%.%.%` FUNCTION `calcular_disponibilidad`(`idarticuloin` INT) RETURNS double
BEGIN
    DECLARE vtienecomposicion INT;
    DECLARE compromiso INT;
    DECLARE cantidadactual DOUBLE;

    
    SELECT tienecomposicion INTO vtienecomposicion
    FROM articulos
    WHERE id = idarticuloin;

    
    SELECT IFNULL(SUM(factor * cantidad), 0) INTO compromiso
    FROM ventasauxiliar
    WHERE idarticulo = idarticuloin;

    
    IF vtienecomposicion < 1 THEN
        SELECT cantidad INTO cantidadactual
        FROM articulos
        WHERE id = idarticuloin;
    ELSE
        SELECT  MIN(a2.cantidad / c.cantidad) INTO cantidadactual FROM articulos a1 LEFT JOIN componentesarticulos c ON a1.id = c.idarticulo LEFT JOIN articulos a2 ON c.idinsumo = a2.id WHERE c.cantidad>0 and a1.id = idarticuloin;
    END IF;

    
   
        RETURN  cantidadactual- compromiso;
    
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `cantidaddecompras` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `cantidaddecompras`(`idin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P int(4);
SET P=(select count(id) from compras where idarticulo=idin);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `comisionporclientes` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `comisionporclientes`(`idarticulo` INT(11), `idclientein` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P int(6);
DECLARE q varchar(50);
SET q=(select grupo from clientes  where id=idclientein);
if(q='ENTRENADORES') THEN  
SET P=(select comision from articulos where id=idarticulo);
ELSE 
SET P=(select (-valordistribuidor+valordeventa)/2 from articulos where id=idarticulo);
END IF;
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `comisionpreciopublico` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `comisionpreciopublico`(`idarticulo` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P int(6);
SET P=(select (-valordistribuidor+valordeventa)/2 from articulos where id=idarticulo);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `contararticulosenlamesa` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `contararticulosenlamesa`(`idarticuloin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(4);
SET P=(select sum(cantidad) from ventasauxiliar where idarticulo=idarticuloin);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `contarlineasdelamesa` */;
DELIMITER ;;
CREATE DEFINER=`wwcont_residenciaselrey`@`%.%.%.%` FUNCTION `contarlineasdelamesa`(`idin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN DECLARE P int(11); declare notas int(11); set notas=(select count(id) from ventasauxiliar where idmesa=idin);RETURN ifnull(notas,0); END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `contarlineasdemayorescompras` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `contarlineasdemayorescompras`(`idmayorin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN DECLARE P double; SET P=(select count(id) from compras where idmayor=idmayorin); RETURN ifnull(P,0); END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `contarlineasenventa` */;
DELIMITER ;;
CREATE DEFINER=`controll_chickenden`@`localhost` FUNCTION `contarlineasenventa`(`idin` INT(11)) RETURNS int
    NO SQL
    SQL SECURITY INVOKER
begin declare a int(3); set a=(select count(id) from ventas where idfactura=idin and abonado=0 and nc=0 and esmodif=0); return ifnull(a,0); end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `contarventasanuladas` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `contarventasanuladas`(`idarticuloin` INT(11), `idzin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P int(11);
set P=(select sum(cantidad) from ventas where idz=idzin and idarticulo=idarticuloin and abonado=1);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `contarventasbrutas` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `contarventasbrutas`(`idarticuloin` INT(11), `idzin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P int(11);
set P=(select sum(cantidad) from ventas where idz=idzin and idarticulo=idarticuloin);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `desvestcompras` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `desvestcompras`(`idin` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN
DECLARE P double;
DECLARE q double;
SET q=(select buscarpreciopromedio(idin));
SET P=(select sum((valorgramo-q)*(valorgramo-q)) from compras where idarticulo=idin);
RETURN ifnull(SQRT(P),0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `esfestivo` */;
DELIMITER ;;
CREATE DEFINER=`controll_chickenden`@`162.214.175.121` FUNCTION `esfestivo`(`fechain` DATE) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
SET P=(select id from festivos where fecha=fechain);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `espadre` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `espadre`(`idarticuloin` INT(11), `idinsumoin` INT(11), `idusuarioin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
declare idarticuloactual int(11);
delete from auxiliarbuscarpadre where idusuario=idusuarioin;
if idarticuloin=idinsumoin then 
return 1;
end if;
insert into auxiliarbuscarpadre(idusuario,a)
select idusuarioin,idarticulo  from componentesarticulos where idinsumo=idarticuloin;
while (select count(a) from auxiliarbuscarpadre where idusuario=idusuarioin)>0 do 
set idarticuloactual=(select a from auxiliarbuscarpadre where idusuario=idusuarioin limit 1);

if(idarticuloactual=idinsumoin)then return 1;end if;
insert into auxiliarbuscarpadre(idusuario,a)
select idusuarioin,idarticulo from componentesarticulos where idinsumo=idarticuloactual;
delete from auxiliarbuscarpadre  where a=idarticuloactual;
end while;
RETURN 0;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `facturatienemodificadores` */;
DELIMITER ;;
CREATE DEFINER=`controll_chickenden`@`162.214.175.121` FUNCTION `facturatienemodificadores`(`idin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
begin declare a int(3);declare b int(1); 
set b=0;
set a=(select count(id) from ventas where idfactura=idin and esmodif=1); 
if(a>0) then set b=1;end if;
return b; end ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `mirarsienventatienecomposicion` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `mirarsienventatienecomposicion`(`idarticuloin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
declare a int(2);
set a=(select count(componentesarticulos.id) from componentesarticulos,articulos where idarticulo=articulos.id and articulos.referencia=idarticuloin);
RETURN ifnull(a,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `mirarsitienecomposicion` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `mirarsitienecomposicion`(`idarticuloin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P int(1);
SET P=(select count(id) from componentesarticulos where idarticulo=idarticuloin);
IF p<1 THEN return '0';
else return 1;
END IF;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `sepuedeborrarfamiliademodificadores` */;
DELIMITER ;;
CREATE DEFINER=`controll_chickenden`@`vps-385963.appitecintegraciones.com` FUNCTION `sepuedeborrarfamiliademodificadores`(`idin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(2);
DECLARE Q INT(2);
SET P=(select count(id) from asignacionarticulosfamiliasmodificadores where idfamilia=idin);
SET Q=(select count(id) from modificadores where idfamilia=idin);
RETURN if(P+Q>0,0,1);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `sumarventasanuladas` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `sumarventasanuladas`(`idarticuloin` INT(11), `idzin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P int(11);
set P=(select sum(valortotal-cantidad*descuento) from ventas where idz=idzin and idarticulo=idarticuloin and abonado=1);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `sumarventasbrutas` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `sumarventasbrutas`(`idarticuloin` INT(11), `idzin` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P int(11);
set P=(select sum(valortotal-cantidad*descuento) from ventas where idz=idzin and idarticulo=idarticuloin);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `totalcompradeestecliente` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `totalcompradeestecliente`(`idclientein` INT(11)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
SET P=(select SUM(total) from facturas where idcliente=idclientein);
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `totalizarventaauxiliar` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `totalizarventaauxiliar`(`idmesain` INT(11)) RETURNS double
    SQL SECURITY INVOKER
BEGIN
DECLARE P DOUBLE;
SET P=(SELECT ifnull(SUM(valortotal),0)/10 FROM ventasauxiliar where idmesa=idmesain);
RETURN P;
END ;;
DELIMITER ;
/*!50003 DROP FUNCTION IF EXISTS `ventasentrehoras` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `ventasentrehoras`(`ccin` INT(3), `fecha1` DATE, `hora1` VARCHAR(9), `hora2` VARCHAR(9)) RETURNS int
    SQL SECURITY INVOKER
BEGIN
DECLARE P INT(11);
SET P=(select sum(valortotal) from ventas where cc=ccin and fecha between concat(fecha1,hora1) and concat(fecha1,hora2) ) ;
RETURN ifnull(P,0);
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `cambiarcostoencascada` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `cambiarcostoencascada`(IN `idarticuloin` BIGINT(20), IN `ccin` BIGINT(20))
    SQL SECURITY INVOKER
BEGIN
declare idtablaactual int(11);
declare idarticuloactual int(11);
delete from auxiliarcambiodeprecios where cc=ccin;
insert into auxiliarcambiodeprecios(idarticulo,idinsumo,cantidad,cc)
select idarticulo,idinsumo,cantidad,ccin from componentesarticulos where idinsumo=idarticuloin;
while (select count(id) from auxiliarcambiodeprecios  where cc=ccin)>0 do 
set idtablaactual=(select id from auxiliarcambiodeprecios where cc=ccin limit 1);
set idarticuloactual=(select idarticulo from auxiliarcambiodeprecios where id=idtablaactual);
update articulos set subido=0,costomedio=calcularcostoseguningredientes(idarticuloactual) where id=idarticuloactual;
insert into auxiliarcambiodeprecios(idarticulo,idinsumo,cantidad,cc)
select idarticulo,idinsumo,cantidad,ccin from componentesarticulos where idinsumo=idarticuloactual;
delete from auxiliarcambiodeprecios  where id=idtablaactual;
end while;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `cotizarreceta` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `cotizarreceta`(IN `idusuarioin` INT(11), IN `tipodecotizacion` INT(1))
    SQL SECURITY INVOKER
BEGIN
declare idtablaactual int(11);
declare idcotizacionactual int(11);
declare cantidadactual double;
declare cantidadcotizacionactual double;
declare idarticuloactual int(11);
declare idarticuloparacotizar int(11);
if(select count(id) from auxiliarcotizarreceta)=0 THEN
truncate table auxiliarcotizarreceta;
else
delete from auxiliarcotizarreceta where idusuario=idusuarioin;
end if;
if(select count(id) from respuestacotizacionreceta)=0 THEN
truncate table respuestacotizacionreceta;
else
delete from respuestacotizacionreceta where idusuario=idusuarioin;
end if;




insert into respuestacotizacionreceta(idarticulo,idinsumo,cantidad,idusuario)
select 0,idarticulo,cantidad,idusuarioin from cotizaciondereceta where mirarsitienecomposicion(idarticulo)=0;









while(select count(id) from cotizaciondereceta where idusuario=idusuarioin and revisado=0)>0 DO
set idcotizacionactual=(select id from cotizaciondereceta  where idusuario=idusuarioin and revisado=0 limit 1);
set cantidadcotizacionactual=(select cantidad from cotizaciondereceta  where id=idcotizacionactual);
set idarticuloparacotizar=(select idarticulo from cotizaciondereceta  where id=idcotizacionactual);
insert into auxiliarcotizarreceta(idarticulo,idinsumo,cantidad,idusuario)
select idarticulo,idinsumo,cantidad*cantidadcotizacionactual,idusuarioin from componentesarticulos where idarticulo=idarticuloparacotizar;
while (select count(id) from auxiliarcotizarreceta  where idusuario=idusuarioin)>0 do 
set idtablaactual=(select id from auxiliarcotizarreceta  where idusuario=idusuarioin limit 1);
set idarticuloactual=(select idinsumo from auxiliarcotizarreceta where id=idtablaactual);
set cantidadactual=(select cantidad from auxiliarcotizarreceta where id=idtablaactual);
if(mirarsitienecomposicion(idarticuloactual)=0) THEN
insert into respuestacotizacionreceta(idarticulo,idinsumo,cantidad,idusuario)
values(0,idarticuloactual,cantidadactual,idusuarioin);
ELSE
insert into auxiliarcotizarreceta(idarticulo,idinsumo,cantidad,idusuario)
select idarticuloactual,idinsumo,cantidad*cantidadactual,idusuarioin from componentesarticulos where idarticulo=idarticuloactual;
end IF;
delete from auxiliarcotizarreceta  where id=idtablaactual;
end while;
update cotizaciondereceta set revisado=1 where id=idcotizacionactual;
end while;
if(tipodecotizacion=0) then 
select sum(respuestacotizacionreceta.cantidad) as cantidad,articulos.descripcion,articulos.costomedio as costo,unidaddemedida from respuestacotizacionreceta,articulos,unidadesdemedida where idinsumo=articulos.id and idunidaddemedida=unidadesdemedida.id GROUP by descripcion;
else 
select sum(respuestacotizacionreceta.cantidad) as cantidad,articulos.descripcion,articulos.ultimocoste as costo,unidaddemedida from respuestacotizacionreceta,articulos,unidadesdemedida where idinsumo=articulos.id and idunidaddemedida=unidadesdemedida.id GROUP by descripcion;
end if;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `detallarsurecetaagrupada` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `detallarsurecetaagrupada`(IN `idarticuloin` INT(11), IN `idusuarioin` INT(11))
    SQL SECURITY INVOKER
BEGIN
declare idtablaactual int(11);
declare cantidadactual double;
declare idarticuloactual int(11);
if(select count(id) from auxiliarcostoagrupado)=0 THEN
truncate table auxiliarcostoagrupado;
else
delete from auxiliarcostoagrupado where idusuario=idusuarioin;
end if;

if(select count(id) from respuestacostoagrupado)=0 THEN
truncate table respuestacostoagrupado;
else
delete from respuestacostoagrupado where idusuario=idusuarioin;
end if;



insert into auxiliarcostoagrupado(idarticulo,idinsumo,cantidad,idusuario)
select idarticulo,idinsumo,cantidad,idusuarioin from componentesarticulos where idarticulo=idarticuloin;
while (select count(id) from auxiliarcostoagrupado  where idusuario=idusuarioin)>0 do 
set idtablaactual=(select id from auxiliarcostoagrupado  where idusuario=idusuarioin limit 1);
set idarticuloactual=(select idinsumo from auxiliarcostoagrupado where id=idtablaactual);
set cantidadactual=(select cantidad from auxiliarcostoagrupado where id=idtablaactual);
if(mirarsitienecomposicion(idarticuloactual)=0) THEN
insert into respuestacostoagrupado(idarticulo,idinsumo,cantidad,idusuario)
values(0,idarticuloactual,cantidadactual,idusuarioin);
ELSE
insert into auxiliarcostoagrupado(idarticulo,idinsumo,cantidad,idusuario)
select idarticuloactual,idinsumo,cantidad*cantidadactual,idusuarioin from componentesarticulos where idarticulo=idarticuloactual;
end IF;
delete from auxiliarcostoagrupado  where id=idtablaactual;
end while;
select sum(respuestacostoagrupado.cantidad) as cantidad,articulos.descripcion,articulos.costomedio,unidaddemedida from respuestacostoagrupado,articulos,unidadesdemedida where idinsumo=articulos.id and idunidaddemedida=unidadesdemedida.id GROUP by descripcion;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `truncarventasauxiliar` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `truncarventasauxiliar`()
    SQL SECURITY INVOKER
BEGIN
declare n int(11);
set n =(select count(id) from ventasauxiliar);
if n=0 then 
truncate table ventasauxiliar;
end if;
END ;;
DELIMITER ;


