INSERT INTO `ec_ventas` (`id_venta`, `folio`, `folio_fiscal`, `numero_orden`, `certificado_csd`, `sello_digital`, `cadena_original`, `certificado_sat`, `fecha`, `hora`, `subtotal`, `iva`, `total`, `id_usuario`, `id_sucursal`, `id_cliente`, `facturado`, `id_forma_pago`, `id_metodo_pago`, `fecha_timbrado`, `cancelado`, `clave_cliente`, `cfdi`, `fecha_real`, `hora_real`, `facturacion_productos_especificos`, `es_venta_linea`, `id_status_facturacion`, `folio_sistema_general`) VALUES
(593, 'B593', '1cb61a19-37f9-4e1e-b7c3-3b64cf7765a9', 'CS593', '', 'dyjA/aNh/qyI7vWyflno3Mtbf8Lugv8Bk2/6WFQTccZvkjk741c16B1OUCDfhiWjEWPjXnFj5y6kr+dbq6ztTP1WW+qekAHPTstWznZ86c9ozTseQDoe/YWwLUDSR+Ih45iiAkVwsufjbPGq995Qd5VO68CWWQdrbKPiB/wDYvzjXpaU3Td4isCx7BotmLn08H7VRv1THBkLGcy8sGbmy3S417wBApz8z8W7yOSu/Em5YZXdU3X3ePA6C7ZS+rNQkDfzHduJouLL+Veq/emmZg/yPl0xrhnjiHwmmGVu4l2tt0OTBew8bcNAfGp47TChyEeQJtfOU1m42rfABPPwPw==', '||1.1|1cb61a19-37f9-4e1e-b7c3-3b64cf7765a9|2023-12-18T17:17:26|LSO1306189R5|dyjA/aNh/qyI7vWyflno3Mtbf8Lugv8Bk2/6WFQTccZvkjk741c16B1OUCDfhiWjEWPjXnFj5y6kr+dbq6ztTP1WW+qekAHPTstWznZ86c9ozTseQDoe/YWwLUDSR+Ih45iiAkVwsufjbPGq995Qd5VO68CWWQdrbKPiB/wDYvzjXpaU3Td4isCx7BotmLn08H7VRv1THBkLGcy8sGbmy3S417wBApz8z8W7yOSu/Em5YZXdU3X3ePA6C7ZS+rNQkDfzHduJouLL+Veq/emmZg/yPl0xrhnjiHwmmGVu4l2tt0OTBew8bcNAfGp47TChyEeQJtfOU1m42rfABPPwPw==|00001000000509846663||', 'BQGni2IevNgFUby9Q35YeIbOrwIO4Yi4c34xoBPrSLTxjUyylG0aD8bd4wBiLtZnTIgpbtsxaYUDi9qe97hnxyv2elGo6rd8IAGTB0sPqg+dLnpQgclgCuTGt/Wm3ywLlviWsbMYlXCymcjnKnP4klxOURY+oaQClR03FGc8wnSnR4hxrYsLy8ppCDnJtqf7S1mTw3NQ3rOkthugZAgdpxKDua1SEgojfGlidVE51tVBAy3kTLjvLlvzM35ZLD/pbVvMt9WZncKZhmsV/CRJZ0h2M/Os9814M7v//cvk2L9txazKitBDxMvwfrZnl9sMS9hSWF2UHPcgZOeA8qdVsg==', '2023-12-07', '22:38:35', 11514.60, 1842.34, 13213.00, 12, 1, 11684, 1, 14, 1, '2023-12-18 17:17:26', 0, '', '2', '2023-12-18', '17:17:24', 0, b'0', 0, ''),
(594, 'B594', '', 'CS594', '', '', '', '', '2023-12-13', '10:59:02', 761.00, 0.00, 761.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(595, 'B595', '', 'CS595', '', '', '', '', '2023-12-13', '12:03:36', 345.00, 0.00, 345.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(596, 'B596', '', 'CS596', '', '', '', '', '2023-12-13', '12:55:10', 225.00, 0.00, 225.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(597, 'B597', '', 'CS597', '', '', '', '', '2023-12-13', '13:02:51', 235.00, 0.00, 235.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(598, 'B598', '', 'CS598', '', '', '', '', '2023-12-13', '13:15:10', 190.00, 0.00, 190.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(599, 'B599', '', 'CS599', '', '', '', '', '2023-12-13', '13:28:57', 575.00, 0.00, 575.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(600, 'B600', '', 'CS600', '', '', '', '', '2023-12-13', '13:42:43', 1143.00, 0.00, 1143.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(601, 'B601', '1598689b-1289-4097-885f-c489824b883e', 'CS601', '', 'Gmc8ON2Ip350ANqQnd7KDnXM6L+RMFZYE5Xv0NL9a9qiKA5odJpdWz10rdd60hIS0y94SbmS27ijnI2J1Vuc6w04niictIQi4UfaeTj/AFaW8JQbNrLlgz9X4dTBdBRQhYij8ZSbeL+DgEXMpfKdTWhhnwsSxg/QjyEeBaGdNiqivAGdBc4XghNTVWQQILMHmJCk8F7zLJymrKRnrKb+Nhk+lyW6q7TX3IhRpSzSdSrsHD/E2WgAEwn1b9fjF3fH7JFMtpZfQvtz3b70VLTiPKRRQHb0Lsv6x8EtUanKL8ugIUMAdaKttzwjHr0V7Cu11Wsb5EchgO1aR4EOrI8R3A==', '||1.1|1598689b-1289-4097-885f-c489824b883e|2023-12-19T18:48:06|LSO1306189R5|Gmc8ON2Ip350ANqQnd7KDnXM6L+RMFZYE5Xv0NL9a9qiKA5odJpdWz10rdd60hIS0y94SbmS27ijnI2J1Vuc6w04niictIQi4UfaeTj/AFaW8JQbNrLlgz9X4dTBdBRQhYij8ZSbeL+DgEXMpfKdTWhhnwsSxg/QjyEeBaGdNiqivAGdBc4XghNTVWQQILMHmJCk8F7zLJymrKRnrKb+Nhk+lyW6q7TX3IhRpSzSdSrsHD/E2WgAEwn1b9fjF3fH7JFMtpZfQvtz3b70VLTiPKRRQHb0Lsv6x8EtUanKL8ugIUMAdaKttzwjHr0V7Cu11Wsb5EchgO1aR4EOrI8R3A==|00001000000509846663||', 'a9ysI7Qerxv5ABC2ODGggl3dSEX1qEWwFk2mkGOaqFQcAzOwAjpVhiwIuZKSJ5guDDCXjONRzCMvriYgw69P0KDo8hWGXzLXTogKlNHJz4YUaCvxW9fGdjpwmxzu2MaZn7It2dR0PeyUI65yhJjpnccFV8qmWQ61bvfgYBByBUgor6Siq2apsY0508sUObmnYeDApywJHiUqew/vY6cj4PIAImQQQR9iPYFNbsIBnq4qvXT0ZAImDPHrSKtO642v9Jy1ylsQI5+blOhYJCJ9GvMvtb24P+jnyEKEg1GJ8oJbvtB41Cp2mCTE0FL7nh2+nZ85qGgKdHTYv3ZvskZdGw==', '2023-12-13', '13:42:43', 409.59, 65.53, 470.00, 12, 1, 11653, 1, 1, 1, '2023-12-19 18:48:06', 0, '', '2', '2023-12-19', '18:48:06', 0, b'0', 0, ''),
(602, 'B602', '', 'CS602', '', '', '', '', '2023-12-13', '13:44:14', 505.00, 0.00, 505.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(603, 'B603', '', 'CS603', '', '', '', '', '2023-12-13', '13:45:02', 720.00, 0.00, 720.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(604, 'B604', '', 'CS604', '', '', '', '', '2023-12-13', '14:01:32', 1009.00, 0.00, 1009.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(605, 'B605', '', 'CS605', '', '', '', '', '2023-12-13', '14:04:48', 1459.00, 0.00, 1459.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(606, 'B606', '', 'CS606', '', '', '', '', '2023-12-13', '14:15:51', 621.00, 0.00, 621.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(607, 'B607', '', 'CS607', '', '', '', '', '2023-12-13', '14:17:35', 725.00, 0.00, 725.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(608, 'B608', '', 'CS608', '', '', '', '', '2023-12-13', '14:22:10', 270.00, 0.00, 270.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(609, 'B609', '', 'CS609', '', '', '', '', '2023-12-13', '14:23:26', 1500.00, 0.00, 1500.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(610, 'B610', '', 'CS610', '', '', '', '', '2023-12-13', '14:25:42', 1110.00, 0.00, 1110.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(611, 'B611', '', 'CS611', '', '', '', '', '2023-12-13', '15:00:35', 1225.00, 0.00, 1225.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(612, 'B612', '', 'CS612', '', '', '', '', '2023-12-13', '15:04:01', 1002.00, 0.00, 1002.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(613, 'B613', '', 'CS613', '', '', '', '', '2023-12-13', '15:09:46', 219.00, 0.00, 219.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(614, 'B614', '', 'CS614', '', '', '', '', '2023-12-13', '15:32:51', 1810.00, 0.00, 1810.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(615, 'B615', '', 'CS615', '', '', '', '', '2023-12-13', '15:45:34', 954.00, 0.00, 954.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(616, 'B616', '', 'CS616', '', '', '', '', '2023-12-13', '16:31:38', 885.00, 0.00, 885.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(617, 'B617', '', 'CS617', '', '', '', '', '2023-12-13', '17:17:16', 405.00, 0.00, 405.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(618, 'B618', '', 'CS618', '', '', '', '', '2023-12-13', '17:28:40', 450.00, 0.00, 450.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(619, 'B619', '', 'CS619', '', '', '', '', '2023-12-13', '17:40:30', 1314.00, 0.00, 1314.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(620, 'B620', '', 'CS620', '', '', '', '', '2023-12-13', '17:42:28', 75.00, 0.00, 75.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(621, 'B621', '', 'CS621', '', '', '', '', '2023-12-13', '17:46:38', 1090.00, 0.00, 1090.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(622, 'B622', '', 'CS622', '', '', '', '', '2023-12-13', '17:53:57', 380.00, 0.00, 380.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(623, 'B623', '', 'CS623', '', '', '', '', '2023-12-13', '18:47:27', 790.00, 0.00, 790.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(624, 'B624', '', 'CS624', '', '', '', '', '2023-12-13', '18:47:27', 761.00, 0.00, 761.00, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(625, 'B625', '', 'CS625', '', '', '', '', '2023-12-13', '18:54:51', 530.00, 0.00, 530.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(626, 'B626', '', 'CS626', '', '', '', '', '2023-12-13', '18:56:43', 565.00, 0.00, 565.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(627, 'B627', '', 'CS627', '', '', '', '', '2023-12-13', '19:03:11', 575.00, 0.00, 575.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(628, 'B628', 'c12d9cdb-2739-4f73-b82c-63c5f9e5c579', 'CS628', '', 'POaVy5oGU/8kjKQNhRHdyZLYlZ2D7yvqG98Zo/bQsw9MeFuvgeFddGv3xLsmzFAQMOlXIEPpqJhK+GX2QQlSWPiU6lVLLg9+G/WWk1y6J0y0vf0iOEST5EmnaMkaoLpLyhCVNBBpkzxrdM6sSh7bDacteF+hm2yqsBT/0+qCUaDQkQrPjv7lPKan/UESdFtfjAMUJyjpyRAfd//it+SdqjheFWCUO/RtMMLlpftCWlmmQGfnaFdTEGkOVoUecnEzoNbA2Hdeq0GQmt6UxME1tMqbHMhzsmbISl8bnfYhXqcgGS7kwEkx0OR6T5bUKSTzHs7dYS2d7MgognTFA/rL5w==', '||1.1|c12d9cdb-2739-4f73-b82c-63c5f9e5c579|2023-12-19T19:04:19|LSO1306189R5|POaVy5oGU/8kjKQNhRHdyZLYlZ2D7yvqG98Zo/bQsw9MeFuvgeFddGv3xLsmzFAQMOlXIEPpqJhK+GX2QQlSWPiU6lVLLg9+G/WWk1y6J0y0vf0iOEST5EmnaMkaoLpLyhCVNBBpkzxrdM6sSh7bDacteF+hm2yqsBT/0+qCUaDQkQrPjv7lPKan/UESdFtfjAMUJyjpyRAfd//it+SdqjheFWCUO/RtMMLlpftCWlmmQGfnaFdTEGkOVoUecnEzoNbA2Hdeq0GQmt6UxME1tMqbHMhzsmbISl8bnfYhXqcgGS7kwEkx0OR6T5bUKSTzHs7dYS2d7MgognTFA/rL5w==|00001000000509846663||', 'KG5HD/g6L5xNbj/0OJEz4RQL22rDn+edUhdY8eAz+V+2AyPTqyquyD9WMLA/QRmjHbBfLd9FnonyQdSuV2yUIuUnakvSw3ewTClx/V94H5YEENax85ShuYAlW7DIF9tmX/elOsvjkhma6FBP9skV2aIi8O+HlzfyaL3unLkb17Qq5oNEXSGvsu2vU8nlpcwy9cDX4gS7BP1lnSTLEsOzAm5wjgcnaEJHNpyPoHcheA3QGk/PO0YTrA2MGySn1zuO+lKUnl66FO+QK9rMeRghtxIA9QBIEUKNKSJ5CgYvnCQZLs0puCeeBT788kkMxPCwG8beqiy9+8usv7Xj51WOvQ==', '2023-12-13', '19:12:53', 2568.97, 411.04, 2980.01, 12, 1, 11537, 1, 14, 1, '2023-12-19 19:04:19', 0, '', '2', '2023-12-19', '19:04:19', 0, b'0', 0, ''),
(629, 'B629', '', 'CS629', '', '', '', '', '2023-12-13', '19:19:23', 1406.00, 0.00, 1406.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(630, 'B630', '', 'CS630', '', '', '', '', '2023-12-13', '19:24:46', 694.00, 0.00, 694.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(631, 'B631', '', 'CS631', '', '', '', '', '2023-12-13', '19:29:44', 430.00, 0.00, 430.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(632, 'B632', '', 'CS632', '', '', '', '', '2023-12-13', '19:32:58', 2510.00, 0.00, 2510.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(633, 'B633', '', 'CS633', '', '', '', '', '2023-12-13', '19:32:58', 1145.24, 0.00, 1145.24, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(634, 'B634', '', 'CS634', '', '', '', '', '2023-12-13', '19:33:54', 345.00, 0.00, 345.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(635, 'B635', '', 'CS635', '', '', '', '', '2023-12-13', '19:34:58', 1260.00, 0.00, 1260.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(636, 'B636', '488a376f-ef4a-4ef7-aacd-277207e92cc2', 'CS636', '', 'AiIXv9/2zg//3MPZLoBqWpK6CeRgyZcOREEEnzhzfBMIeRYLCj4wDay8T7zj8212Q0Zf3J5In/cVSGN2vWqYR3E3wAEsWkjscEQinRsYuw88dcAFRhLWODCxD4DOThXD/An+dOFjXaqd5hBAIz4GPan3b5pnO4L3mHtrPdnMrEsLgmr/s2v5aQRCnQsNKsphopMpwEzjUl6Hik6nP6/JVwWdRjzbZSNG4CenUvPn9aazO1wVDYoNLSQ1ZKjm9pE3WnjZPWzxOL5PHfnyTlRCVNINsmvTV+iyvr4sMAswpEynhuaefBHBsvOkDi+5oT63I+a+YcNgZycQEvLT3rcFsQ==', '||1.1|488a376f-ef4a-4ef7-aacd-277207e92cc2|2023-12-19T18:45:27|LSO1306189R5|AiIXv9/2zg//3MPZLoBqWpK6CeRgyZcOREEEnzhzfBMIeRYLCj4wDay8T7zj8212Q0Zf3J5In/cVSGN2vWqYR3E3wAEsWkjscEQinRsYuw88dcAFRhLWODCxD4DOThXD/An+dOFjXaqd5hBAIz4GPan3b5pnO4L3mHtrPdnMrEsLgmr/s2v5aQRCnQsNKsphopMpwEzjUl6Hik6nP6/JVwWdRjzbZSNG4CenUvPn9aazO1wVDYoNLSQ1ZKjm9pE3WnjZPWzxOL5PHfnyTlRCVNINsmvTV+iyvr4sMAswpEynhuaefBHBsvOkDi+5oT63I+a+YcNgZycQEvLT3rcFsQ==|00001000000509846663||', 'bKtS5jCewk50LAwLw8QkgddUSc3sqlFjcazyHcardC5bSwmXFdlzrIHbFia8jlBwWH/yjEb6wge956KeRzsx+ZAZ2QkDc8yYgfKNySbbdAQyYqIMweYqGkbEYSpCF5s+KNyQ6IzymSQfP9rx1U4wL12LOpVG6DYB/hSaqkYXfQQ5dDK4vFfihARqkurL0GttfgsPY+8bXFNUsn+gVzBN1QyIqRznDD7qtOie9K0Sa/IJWRZ9xXEbrh3XIVRZTg0waz+BkcVdjxd3Q9xIzrIOl0PG+ZDQagXTR+93oN5B9buG1CdhHRw2A46XZqjS0NDispQfcnH20U2rKCbmgTBhdQ==', '2023-12-13', '19:34:58', 288.79, 46.21, 335.00, 12, 1, 10553, 1, 1, 1, '2023-12-19 18:45:27', 0, '', '2', '2023-12-19', '18:45:26', 0, b'0', 0, ''),
(637, 'B637', '', 'CS637', '', '', '', '', '2023-12-13', '19:50:50', 265.00, 0.00, 265.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(638, 'B638', '', 'CS638', '', '', '', '', '2023-12-13', '19:54:51', 140.00, 0.00, 140.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(639, 'B639', '', 'CS639', '', '', '', '', '2023-12-13', '19:56:00', 665.00, 0.00, 665.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(640, 'B640', '', 'CS640', '', '', '', '', '2023-12-13', '19:59:57', 115.00, 0.00, 115.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(641, 'B641', '', 'CS641', '', '', '', '', '2023-12-13', '20:15:49', 1340.00, 0.00, 1340.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(642, 'B642', '', 'CS642', '', '', '', '', '2023-12-13', '20:22:12', 1205.00, 0.00, 1205.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(643, 'B643', '', 'CS643', '', '', '', '', '2023-12-13', '20:26:23', 290.00, 0.00, 290.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(644, 'B644', '', 'CS644', '', '', '', '', '2023-12-13', '20:28:14', 1834.00, 0.00, 1834.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(645, 'B645', '', 'CS645', '', '', '', '', '2023-12-13', '20:43:45', 529.00, 0.00, 529.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(646, 'B646', '', 'CS646', '', '', '', '', '2023-12-13', '21:02:57', 945.00, 0.00, 945.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(647, 'B647', '', 'CS647', '', '', '', '', '2023-12-13', '21:03:38', 290.00, 0.00, 290.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(648, 'B648', '', 'CS648', '', '', '', '', '2023-12-13', '21:04:27', 430.00, 0.00, 430.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(649, 'B649', '3d3f2573-1ee5-4bad-866e-e116408046c0', 'CS649', '', 'OUYxuulbrRloRk33kg10Dpx1AJd4SOq3NrLki0s/eAdLYxBOys1MnY+cdzCYKC33iVcO610fY8cMT3JLthpnYpNJiVCXAksin/RRNR3KkNTzl4p+CZyY0eM1pEHeNn/maSBbosfBNuxmndjtAks+/GIrUYLlOVgmmWluRUcoejZYjNJ4slwQFE8UGwdjYgWIseg1UekR6cMpcCFJiC6Ayl8/GxohweqT+I6L6q+a0gJ6Km4XuL5wQZ2hh1M2kleIJDDp/mZJC+h1VzGg2wntKKfDTMvu9L6tqiZ4EWacoPsLDNU7uHmWyQnWRROVhhOScyCgRGaS9b4SLDsYysTi7Q==', '||1.1|3d3f2573-1ee5-4bad-866e-e116408046c0|2023-12-19T19:47:04|LSO1306189R5|OUYxuulbrRloRk33kg10Dpx1AJd4SOq3NrLki0s/eAdLYxBOys1MnY+cdzCYKC33iVcO610fY8cMT3JLthpnYpNJiVCXAksin/RRNR3KkNTzl4p+CZyY0eM1pEHeNn/maSBbosfBNuxmndjtAks+/GIrUYLlOVgmmWluRUcoejZYjNJ4slwQFE8UGwdjYgWIseg1UekR6cMpcCFJiC6Ayl8/GxohweqT+I6L6q+a0gJ6Km4XuL5wQZ2hh1M2kleIJDDp/mZJC+h1VzGg2wntKKfDTMvu9L6tqiZ4EWacoPsLDNU7uHmWyQnWRROVhhOScyCgRGaS9b4SLDsYysTi7Q==|00001000000509846663||', 'oChnVhyhANOKVXPj0FK6294BkSSJm1kSha7A1mJGQHOAmtMTCZfrKD2nCn+Tu7SyALssPfNp4vTTETHHitSeAenBM9GvQ9Fa60+Y8c53d0QdNSZ/FBUfBbvkkrBoqIsOUIzT5ApsM1g01TrKCmPgeNhkL4uX8mldztZ3Jk3phZGpxKnqtmyt2BmOmYdXUfYc9H/vvpsZEpmh52s5Tr+zs3Xmq/2HEuUMgDBaYBlofXVjs+wFRRXnqHt5mIeYNVTTkEtaM33BLefklO2VEzj8OQIpnra2NqiWb00m3IdzFrWnIKbfsCUJUWxcOh4dT9jbC4YZ2cYt+ngktI5yb493ZA==', '2023-12-13', '21:14:07', 2835.73, 453.72, 3254.00, 12, 1, 11543, 1, 14, 1, '2023-12-19 19:47:04', 0, '', '2', '2023-12-19', '19:47:04', 0, b'0', 0, ''),
(650, 'B650', '', 'CS650', '', '', '', '', '2023-12-13', '95:25:09', 2089.00, 0.00, 2089.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(651, 'B651', '5989a865-bdb8-4af2-bf99-decabca3685d', 'CS651', '', 'WWqLJ7ym1wNKDUSMmfQpcD8Est78XA1WRWaTAU1w4J2ZqbFk98UESy328JHhfmEQiO6c9KFoVy6NcV7WlrtoOnj2T+kM10hXSCfbWmXr+rYVG8ldww9tWkbpYjqdAAGjVoyETr1g45Z8iLvwtGFdObBXkA1rcmY6zbKPKP2ZvYsWLS/gXSeV1cI1br37Y+HI9QjoG6xIsbdlBPQ5YNCtXX1WYRRLqDH8EvVZlRyX42m5B4W49K5Q6Ox1HtSQUiNmjBNClcPGZMUVmSTHPOBmdYJt++FUIPqkDiVOKEcgcmSZYvb6PkJ2Kx8BVcKlFSXdt2vCcwHyWw9wdv2NmwL+3Q==', '||1.1|5989a865-bdb8-4af2-bf99-decabca3685d|2023-12-19T18:44:18|LSO1306189R5|WWqLJ7ym1wNKDUSMmfQpcD8Est78XA1WRWaTAU1w4J2ZqbFk98UESy328JHhfmEQiO6c9KFoVy6NcV7WlrtoOnj2T+kM10hXSCfbWmXr+rYVG8ldww9tWkbpYjqdAAGjVoyETr1g45Z8iLvwtGFdObBXkA1rcmY6zbKPKP2ZvYsWLS/gXSeV1cI1br37Y+HI9QjoG6xIsbdlBPQ5YNCtXX1WYRRLqDH8EvVZlRyX42m5B4W49K5Q6Ox1HtSQUiNmjBNClcPGZMUVmSTHPOBmdYJt++FUIPqkDiVOKEcgcmSZYvb6PkJ2Kx8BVcKlFSXdt2vCcwHyWw9wdv2NmwL+3Q==|00001000000509846663||', 'DJNiYl42OmHKyM4Z8jv+nHCtIzmK3jDNDXGeiEc8oW8kR0ZJh3OjKDGQOIGBflxEdfa+jMIO/lNhW6PpD5XEvKDW8rlnRG6LTHwIm3A4T/LPYch+0WNFhmo/BSSoT5zLYh5Su/O60xgYa6T5CaPsJAToLCilaEdtScGtcCZqjnGYptXNH6I2zJtcQqbogYmINgxBFLLq3ONQSCKIi3WNwIyz0ayiSmAQ3xQMudkqH8aLmCynpfEyQCacFsWjo6bTF3+00SOUKL1FF8WlJamreUmOoK7yGEAi9RQN9jkyuJuheZruqHaVbslpr5pTXpsq2JRI6ajVd0yFzIAOsllEQw==', '2023-12-13', '95:25:09', 150.76, 24.12, 173.00, 12, 1, 11012, 1, 1, 1, '2023-12-19 18:44:18', 0, '', '2', '2023-12-19', '18:44:18', 0, b'0', 0, ''),
(652, 'B652', '', 'CS652', '', '', '', '', '2023-12-14', '10:43:30', 860.00, 0.00, 860.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(653, 'B653', '', 'CS653', '', '', '', '', '2023-12-14', '10:49:43', 4449.00, 0.00, 4449.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(654, 'B654', '', 'CS654', '', '', '', '', '2023-12-14', '11:58:10', 219.00, 0.00, 219.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(655, 'B655', '', 'CS655', '', '', '', '', '2023-12-14', '12:03:47', 315.00, 0.00, 315.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(656, 'B656', '', 'CS656', '', '', '', '', '2023-12-14', '12:33:02', 670.00, 0.00, 670.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(657, 'B657', '', 'CS657', '', '', '', '', '2023-12-14', '12:37:05', 170.00, 0.00, 170.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(658, 'B658', '', 'CS658', '', '', '', '', '2023-12-14', '13:40:34', 1545.00, 0.00, 1545.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(659, 'B659', '', 'CS659', '', '', '', '', '2023-12-14', '13:55:07', 765.00, 0.00, 765.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(660, 'B660', '', 'CS660', '', '', '', '', '2023-12-14', '14:01:53', 875.00, 0.00, 875.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(661, 'B661', '', 'CS661', '', '', '', '', '2023-12-14', '14:23:52', 210.00, 0.00, 210.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(662, 'B662', '', 'CS662', '', '', '', '', '2023-12-14', '14:34:31', 2024.00, 0.00, 2024.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(663, 'B663', '', 'CS663', '', '', '', '', '2023-12-14', '14:34:31', 860.00, 0.00, 860.00, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(664, 'B664', '', 'CS664', '', '', '', '', '2023-12-14', '14:36:40', 490.00, 0.00, 490.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(665, 'B665', '', 'CS665', '', '', '', '', '2023-12-14', '14:46:45', 185.00, 0.00, 185.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(666, 'B666', '', 'CS666', '', '', '', '', '2023-12-14', '14:55:23', 830.00, 0.00, 830.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(667, 'B667', '', 'CS667', '', '', '', '', '2023-12-14', '15:10:34', 390.00, 0.00, 390.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(668, 'B668', '', 'CS668', '', '', '', '', '2023-12-14', '15:14:50', 4365.00, 0.00, 4365.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(669, 'B669', '', 'CS669', '', '', '', '', '2023-12-14', '15:20:20', 290.00, 0.00, 290.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(670, 'B670', '', 'CS670', '', '', '', '', '2023-12-14', '15:21:15', 795.00, 0.00, 795.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(671, 'B671', '', 'CS671', '', '', '', '', '2023-12-14', '15:46:36', 3128.00, 0.00, 3128.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(672, 'B672', '', 'CS672', '', '', '', '', '2023-12-14', '16:38:47', 450.00, 0.00, 450.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(673, 'B673', '', 'CS673', '', '', '', '', '2023-12-14', '16:38:47', 1164.12, 0.00, 1164.12, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(674, 'B674', 'f4b65294-29e9-4504-97e3-085fb2cfa3c2', 'CS674', '', 'XK+FKvlKrxUeQbcvaBXGsQ63EARVhQhtUqZH2G0FxiXvWEauloicA5gZKPSikbLIHFG9HB5b6qm0RbU5cENyPjGwA31ml7GVBp2cG8jRw1pTYAgDz+mjdTpenjT0PXBrGVXnhbPWjS95KAwhC0AzCyLVUCBIQCYdr4ApQtw8DWuUK38b5+OgwC+qusQWNQy3dNocwMRe/K3EWJ/Jf4vI6ZAA8H1gp/SP+riYk0qeHNdnxssgFXlnw7EkD7pRpinhedXmXX4ZhRYgV+gPwJRMnbDH3JFTk2DG8z6W30nMoqy28DpFY2uQnuPKXcoirJeH7C2Od25rRsixCuqWqrlKnw==', '||1.1|f4b65294-29e9-4504-97e3-085fb2cfa3c2|2023-12-19T18:58:47|LSO1306189R5|XK+FKvlKrxUeQbcvaBXGsQ63EARVhQhtUqZH2G0FxiXvWEauloicA5gZKPSikbLIHFG9HB5b6qm0RbU5cENyPjGwA31ml7GVBp2cG8jRw1pTYAgDz+mjdTpenjT0PXBrGVXnhbPWjS95KAwhC0AzCyLVUCBIQCYdr4ApQtw8DWuUK38b5+OgwC+qusQWNQy3dNocwMRe/K3EWJ/Jf4vI6ZAA8H1gp/SP+riYk0qeHNdnxssgFXlnw7EkD7pRpinhedXmXX4ZhRYgV+gPwJRMnbDH3JFTk2DG8z6W30nMoqy28DpFY2uQnuPKXcoirJeH7C2Od25rRsixCuqWqrlKnw==|00001000000509846663||', 'mPlOJco2wX+Gzsd0cUL4n/HzgfQvlIxuUmVt5XvyEG+e2QFy6tiuv11x9u4IYeBV8kBj1g5OD9j99wvo8FlaAF49+a6Vv25NwbSFN9XHXHbPIPaJzCSkeyQll1SI8hBYwvxtFyB9hTkHtKgW0JUhQHtexmKB5qzQpDYaXnjMTTLu7OZKucOoYdw2iTvlZRWdPgd8q2MJwfKqbCoLiqc6VKOKi3wSiGmShzg2ra4hcvbdw4+uBCNDtUAk1cXt6gU93bLoOKmAVTVf5MV5bfYoUsIYVr1MynmIOgmo3ZS+BcNc7t6nHxU527EY3mY/j9Fl7kKDUeV8kwEO7J/8LCs1Ig==', '2023-12-14', '16:39:18', 503.70, 80.59, 578.00, 12, 1, 10959, 1, 14, 1, '2023-12-19 18:58:47', 0, '', '2', '2023-12-19', '18:58:47', 0, b'0', 0, ''),
(675, 'B675', '', 'CS675', '', '', '', '', '2023-12-14', '16:41:21', 1070.00, 0.00, 1070.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(676, 'B676', '', 'CS676', '', '', '', '', '2023-12-14', '16:45:00', 135.00, 0.00, 135.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(677, 'B677', '', 'CS677', '', '', '', '', '2023-12-14', '16:50:38', 1305.00, 0.00, 1305.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(678, 'B678', '397d1887-0ab8-418b-aaca-3a00f144a81a', 'CS678', '', 'Qv0Mn8zKTRLgyUH35iaocEeXnF8JVGVOVSWOU1OMhrjhw7zVk0+PIg7Hpv7dREry4tg1K3XSWuhqqz95+MyY29MC7P+MLyDXfCq2rs+EGYIVVMYFoeboiUpCA4FzFBwUcHcFqAW6Gn2cornHGLneW5H5PZbXTGyO4MH7RK6jCFXdSPokUYgnbzDsHSk5auLOLzZ8lzlQmA3/hVoJBvuJsUbzzrfv53bMSI//H+8qXrnqehcrIDRi/bl6UnSgKsnyRdmC2aNKSvmUCl1YNs8zOtrtzhBxVH4Vhhyj6KjoN9fbN0pZ1B1f0zLHGH4+JFS27rhIDa95FJuOAVzTIcd/ag==', '||1.1|397d1887-0ab8-418b-aaca-3a00f144a81a|2023-12-19T18:59:49|LSO1306189R5|Qv0Mn8zKTRLgyUH35iaocEeXnF8JVGVOVSWOU1OMhrjhw7zVk0+PIg7Hpv7dREry4tg1K3XSWuhqqz95+MyY29MC7P+MLyDXfCq2rs+EGYIVVMYFoeboiUpCA4FzFBwUcHcFqAW6Gn2cornHGLneW5H5PZbXTGyO4MH7RK6jCFXdSPokUYgnbzDsHSk5auLOLzZ8lzlQmA3/hVoJBvuJsUbzzrfv53bMSI//H+8qXrnqehcrIDRi/bl6UnSgKsnyRdmC2aNKSvmUCl1YNs8zOtrtzhBxVH4Vhhyj6KjoN9fbN0pZ1B1f0zLHGH4+JFS27rhIDa95FJuOAVzTIcd/ag==|00001000000509846663||', 'Oayb3L9smMA8XjdUKZ8hJO4PsDdz1Db08es5FaBaDXOpxzL9WnH4dJTGL/NFhUv2XP4A1dTxMmJXiwcEFKAW8FLoP2l1RMxJW7FdLVtQ8d2YPs6NAUNkyA5U8/ERduf5dVH6EYEkR/shp/DVPcyBELwsszPhlWj7te7rakl6QZVoo3aMgZkfey5YMB45dK6SH2wZznvJdftqb6nTOp4XnLkHevYU7pjaYUWoy8bGU8J1+L4LWmEzcgtqVTxnsSnFQ7n3qWVH8Nbow0bBi92fHVbq04iKGJxB6q2Epkuxo7JV7G7K4bH7Vmj8rMgB5dPMM0nynmt68p9G3jKEyMa9zQ==', '2023-12-14', '16:57:01', 1202.61, 192.42, 1380.00, 12, 1, 11588, 1, 14, 1, '2023-12-19 18:59:49', 0, '', '2', '2023-12-19', '18:59:48', 0, b'0', 0, ''),
(679, 'B679', '', 'CS679', '', '', '', '', '2023-12-14', '17:05:37', 290.00, 0.00, 290.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(680, 'B680', '', 'CS680', '', '', '', '', '2023-12-14', '17:24:54', 2680.00, 0.00, 2680.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(681, 'B681', '', 'CS681', '', '', '', '', '2023-12-14', '17:26:50', 2053.00, 0.00, 2053.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(682, 'B682', '', 'CS682', '', '', '', '', '2023-12-14', '17:32:31', 160.00, 0.00, 160.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(683, 'B683', '', 'CS683', '', '', '', '', '2023-12-14', '17:33:41', 270.00, 0.00, 270.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(684, 'B684', '', 'CS684', '', '', '', '', '2023-12-14', '17:46:29', 470.00, 0.00, 470.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(685, 'B685', '', 'CS685', '', '', '', '', '2023-12-14', '17:51:28', 3860.00, 0.00, 3860.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(686, 'B686', '', 'CS686', '', '', '', '', '2023-12-14', '18:50:37', 345.00, 0.00, 345.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(687, 'B687', '', 'CS687', '', '', '', '', '2023-12-14', '19:13:44', 529.00, 0.00, 529.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(688, 'B688', '', 'CS688', '', '', '', '', '2023-12-14', '19:48:06', 705.00, 0.00, 705.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(689, 'B689', '', 'CS689', '', '', '', '', '2023-12-14', '19:52:48', 605.00, 0.00, 605.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(690, 'B690', '', 'CS690', '', '', '', '', '2023-12-14', '20:02:04', 230.00, 0.00, 230.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(691, 'B691', '', 'CS691', '', '', '', '', '2023-12-14', '20:11:57', 115.00, 0.00, 115.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(692, 'B692', '', 'CS692', '', '', '', '', '2023-12-14', '20:19:22', 1735.00, 0.00, 1735.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(693, 'B693', '', 'CS693', '', '', '', '', '2023-12-14', '20:30:23', 430.00, 0.00, 430.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(694, 'B694', '', 'CS694', '', '', '', '', '2023-12-14', '20:54:11', 3245.00, 0.00, 3245.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(695, 'B695', '', 'CS695', '', '', '', '', '2023-12-14', '21:02:43', 745.00, 0.00, 745.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(696, 'B696', '', 'CS696', '', '', '', '', '2023-12-14', '21:04:07', 330.00, 0.00, 330.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(697, 'B697', '', 'CS697', '', '', '', '', '2023-12-14', '21:15:52', 1953.00, 0.00, 1953.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(698, 'B698', '', 'CS698', '', '', '', '', '2023-12-14', '21:19:43', 300.00, 0.00, 300.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(699, 'B699', '', 'CS699', '', '', '', '', '2023-12-14', '21:32:17', 255.00, 0.00, 255.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(700, 'B700', '', 'CS700', '', '', '', '', '2023-12-14', '21:37:37', 285.00, 0.00, 285.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(701, 'B701', '', 'CS701', '', '', '', '', '2023-12-14', '22:00:04', 1520.00, 0.00, 1520.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(702, 'B702', '', 'CS702', '', '', '', '', '2023-12-15', '10:47:26', 1516.00, 0.00, 1516.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(703, 'B703', '', 'CS703', '', '', '', '', '2023-12-15', '11:02:14', 783.00, 0.00, 783.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(704, 'B704', '', 'CS704', '', '', '', '', '2023-12-15', '11:41:55', 265.00, 0.00, 265.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(705, 'B705', '', 'CS705', '', '', '', '', '2023-12-15', '12:09:04', 1957.00, 0.00, 1957.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(706, 'B706', '', 'CS706', '', '', '', '', '2023-12-15', '12:10:44', 620.00, 0.00, 620.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(707, 'B707', '', 'CS707', '', '', '', '', '2023-12-15', '12:17:31', 1429.00, 0.00, 1429.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(708, 'B708', '', 'CS708', '', '', '', '', '2023-12-15', '12:23:58', 1190.00, 0.00, 1190.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(709, 'B709', '', 'CS709', '', '', '', '', '2023-12-15', '12:24:38', 1104.00, 0.00, 1104.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(710, 'B710', '', 'CS710', '', '', '', '', '2023-12-15', '12:52:14', 430.00, 0.00, 430.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(711, 'B711', '', 'CS711', '', '', '', '', '2023-12-15', '13:01:00', 510.00, 0.00, 510.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(712, 'B712', '', 'CS712', '', '', '', '', '2023-12-15', '14:10:13', 609.00, 0.00, 609.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(713, 'B713', '', 'CS713', '', '', '', '', '2023-12-15', '14:16:40', 430.00, 0.00, 430.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(714, 'B714', '', 'CS714', '', '', '', '', '2023-12-15', '14:37:13', 825.00, 0.00, 825.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(715, 'B715', '', 'CS715', '', '', '', '', '2023-12-15', '14:37:56', 240.00, 0.00, 240.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(716, 'B716', '4bd26f10-a4da-40a7-b811-11c67c3eb535', 'CS716', '', 'cG6j3ry/EdO7NnKCqhMkL3sLwHx1hLhMBiuONeWbSTBqm2P5Nq9LobakzascxaiY0AkiZ+8r/b9rooDPNwHmHm0IazlWzgM+4aySQr6HfERg34J6N3ckTXtAqd2sX/q6/fklcX+xrJhvd2wmfddHKx8DHMDa2Z7a6j2KEYyVFSsKP40lc2ETxcFlt88GlK/43ZQgm5k78IV45aY9WSeOtuVSnHeFfNjBjQgYZ7kFfJAcR7GObrSFvRwsx0yE+DSd03K3NTotVIfA8xoRAVzs7wjzcm2OE3TDWITX15iJ0FFaIx8QAsqCj56JyC8+G3DL7+SLOrqcLJ18Q8NM7c5twA==', '||1.1|4bd26f10-a4da-40a7-b811-11c67c3eb535|2023-12-19T18:56:32|LSO1306189R5|cG6j3ry/EdO7NnKCqhMkL3sLwHx1hLhMBiuONeWbSTBqm2P5Nq9LobakzascxaiY0AkiZ+8r/b9rooDPNwHmHm0IazlWzgM+4aySQr6HfERg34J6N3ckTXtAqd2sX/q6/fklcX+xrJhvd2wmfddHKx8DHMDa2Z7a6j2KEYyVFSsKP40lc2ETxcFlt88GlK/43ZQgm5k78IV45aY9WSeOtuVSnHeFfNjBjQgYZ7kFfJAcR7GObrSFvRwsx0yE+DSd03K3NTotVIfA8xoRAVzs7wjzcm2OE3TDWITX15iJ0FFaIx8QAsqCj56JyC8+G3DL7+SLOrqcLJ18Q8NM7c5twA==|00001000000509846663||', 'Cy4hHzp75pBs2T1opKw7aAdOPUSENe3EgxJf+rpjg9m6IPrJe4HvIvueFwVgEz4V4lGBQYngbZppoY3ee0jb0ci5EAevU8gUpS6IRoj6WkZJAikVdGd0uLaFDIug21UeN8B8sfbd24sTh1F0YFpchUtJsJLltvfi1leo07INE9zUPgy9iTBAxzClzsf5EOSGdISTQHfwEv9eWQ27hSIKnqaaKN4lOqehD05z8XDG5kFL5j1fojI9rQjOqqrZIO/OMy6fqdikof1RwSimat/tMUy2B+UTIjc7EUWZoSxLPKdBaWITPsz0bh63UOHbLufjolvrTOiAsQif96GY2OAIZQ==', '2023-12-15', '14:39:58', 30954.25, 4952.68, 35520.00, 12, 1, 11627, 1, 11, 1, '2023-12-19 18:56:32', 0, '0099', '2', '2023-12-19', '18:56:31', 0, b'0', 0, ''),
(717, 'B717', '', 'CS717', '', '', '', '', '2023-12-15', '14:41:05', 3310.00, 0.00, 3310.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(718, 'B718', '', 'CS718', '', '', '', '', '2023-12-15', '14:50:16', 115.00, 0.00, 115.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(719, 'B719', '', 'CS719', '', '', '', '', '2023-12-15', '15:04:19', 335.00, 0.00, 335.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(720, 'B720', '', 'CS720', '', '', '', '', '2023-12-15', '15:28:20', 370.00, 0.00, 370.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(721, 'B721', '', 'CS721', '', '', '', '', '2023-12-15', '15:28:20', 682.00, 0.00, 682.00, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(722, 'B722', '', 'CS722', '', '', '', '', '2023-12-15', '15:47:59', 1950.00, 0.00, 1950.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(723, 'B723', '', 'CS723', '', '', '', '', '2023-12-15', '16:15:10', 670.00, 0.00, 670.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(724, 'B724', '', 'CS724', '', '', '', '', '2023-12-15', '16:29:47', 695.00, 0.00, 695.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(725, 'B725', '', 'CS725', '', '', '', '', '2023-12-15', '16:42:46', 1904.00, 0.00, 1904.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(726, 'B726', '', 'CS726', '', '', '', '', '2023-12-15', '16:52:25', 245.00, 0.00, 245.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(727, 'B727', '', 'CS727', '', '', '', '', '2023-12-15', '16:53:11', 255.00, 0.00, 255.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(728, 'B728', '', 'CS728', '', '', '', '', '2023-12-15', '17:11:00', 265.00, 0.00, 265.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(729, 'B729', '', 'CS729', '', '', '', '', '2023-12-15', '17:22:37', 345.00, 0.00, 345.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(730, 'B730', '', 'CS730', '', '', '', '', '2023-12-15', '17:23:09', 1900.00, 0.00, 1900.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(731, 'B731', '', 'CS731', '', '', '', '', '2023-12-15', '17:25:28', 199.00, 0.00, 199.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(732, 'B732', '', 'CS732', '', '', '', '', '2023-12-15', '17:28:04', 1130.00, 0.00, 1130.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(733, 'B733', '', 'CS733', '', '', '', '', '2023-12-15', '17:29:27', 860.00, 0.00, 860.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(734, 'B734', '', 'CS734', '', '', '', '', '2023-12-15', '17:36:34', 115.00, 0.00, 115.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(735, 'B735', '', 'CS735', '', '', '', '', '2023-12-15', '17:46:50', 115.00, 0.00, 115.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(736, 'B736', '', 'CS736', '', '', '', '', '2023-12-15', '18:09:05', 1280.00, 0.00, 1280.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(737, 'B737', '', 'CS737', '', '', '', '', '2023-12-15', '18:12:56', 1230.00, 0.00, 1230.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(738, 'B738', '', 'CS738', '', '', '', '', '2023-12-15', '18:16:11', 230.00, 0.00, 230.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(739, 'B739', '', 'CS739', '', '', '', '', '2023-12-15', '18:16:11', 783.00, 0.00, 783.00, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(740, 'B740', '', 'CS740', '', '', '', '', '2023-12-15', '18:19:33', 770.00, 0.00, 770.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(741, 'B741', '', 'CS741', '', '', '', '', '2023-12-15', '18:36:50', 600.00, 0.00, 600.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(742, 'B742', '', 'CS742', '', '', '', '', '2023-12-15', '18:37:49', 3542.00, 0.00, 3542.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(743, 'B743', '', 'CS743', '', '', '', '', '2023-12-15', '19:26:44', 1325.00, 0.00, 1325.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(744, 'B744', '', 'CS744', '', '', '', '', '2023-12-15', '19:39:49', 2360.00, 0.00, 2360.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(745, 'B745', '', 'CS745', '', '', '', '', '2023-12-15', '19:45:35', 730.00, 0.00, 730.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(746, 'B746', '', 'CS746', '', '', '', '', '2023-12-15', '19:46:07', 787.00, 0.00, 787.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(747, 'B747', '', 'CS747', '', '', '', '', '2023-12-15', '20:03:35', 660.00, 0.00, 660.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(748, 'B748', '', 'CS748', '', '', '', '', '2023-12-15', '20:16:24', 230.00, 0.00, 230.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(749, 'B749', '', 'CS749', '', '', '', '', '2023-12-15', '20:25:12', 500.00, 0.00, 500.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(750, 'B750', '', 'CS750', '', '', '', '', '2023-12-15', '20:28:03', 2080.00, 0.00, 2080.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(751, 'B751', '', 'CS751', '', '', '', '', '2023-12-15', '20:29:27', 230.00, 0.00, 230.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(752, 'B752', '', 'CS752', '', '', '', '', '2023-12-15', '20:29:27', 1516.00, 0.00, 1516.00, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(753, 'B753', '', 'CS753', '', '', '', '', '2023-12-15', '20:34:20', 580.00, 0.00, 580.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(754, 'B754', '', 'CS754', '', '', '', '', '2023-12-15', '20:39:51', 165.00, 0.00, 165.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(755, 'B755', '', 'CS755', '', '', '', '', '2023-12-15', '20:40:41', 1250.00, 0.00, 1250.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(756, 'B756', '', 'CS756', '', '', '', '', '2023-12-15', '20:41:14', 475.00, 0.00, 475.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(757, 'B757', '', 'CS757', '', '', '', '', '2023-12-15', '20:49:46', 1479.00, 0.00, 1479.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(758, 'B758', '', 'CS758', '', '', '', '', '2023-12-15', '20:54:29', 894.00, 0.00, 894.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(759, 'B759', '', 'CS759', '', '', '', '', '2023-12-15', '20:56:23', 165.00, 0.00, 165.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(760, 'B760', '', 'CS760', '', '', '', '', '2023-12-15', '21:06:24', 420.00, 0.00, 420.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(761, 'B761', '', 'CS761', '', '', '', '', '2023-12-15', '21:06:24', 565.00, 0.00, 565.00, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(762, 'B762', '', 'CS762', '', '', '', '', '2023-12-15', '21:09:05', 450.00, 0.00, 450.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(763, 'B763', '', 'CS763', '', '', '', '', '2023-12-15', '21:11:23', 1325.00, 0.00, 1325.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(764, 'B764', '', 'CS764', '', '', '', '', '2023-12-15', '21:20:42', 1965.00, 0.00, 1965.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(765, 'B765', '', 'CS765', '', '', '', '', '2023-12-15', '21:22:00', 20.00, 0.00, 20.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(766, 'B766', '', 'CS766', '', '', '', '', '2023-12-15', '21:29:52', 504.00, 0.00, 504.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(767, 'B767', '', 'CS767', '', '', '', '', '2023-12-15', '21:29:52', 139.76, 0.00, 139.76, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(768, 'B768', '', 'CS768', '', '', '', '', '2023-12-15', '21:30:29', 534.00, 0.00, 534.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(769, 'B769', '', 'CS769', '', '', '', '', '2023-12-15', '21:51:45', 860.00, 0.00, 860.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(770, 'B770', '', 'CS770', '', '', '', '', '2023-12-15', '21:56:09', 1050.00, 0.00, 1050.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(771, 'B771', '', 'CS771', '', '', '', '', '2023-12-15', '22:03:04', 565.00, 0.00, 565.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(772, 'B772', '', 'CS772', '', '', '', '', '2023-12-15', '23:03:49', 682.00, 0.00, 682.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(773, 'B773', '', 'CS773', '', '', '', '', '2023-12-16', '10:41:42', 4355.00, 0.00, 4355.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(774, 'B774', '', 'CS774', '', '', '', '', '2023-12-16', '11:25:55', 590.00, 0.00, 590.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(775, 'B775', '', 'CS775', '', '', '', '', '2023-12-16', '11:26:57', 860.00, 0.00, 860.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(776, 'B776', '', 'CS776', '', '', '', '', '2023-12-16', '11:27:46', 775.00, 0.00, 775.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(777, 'B777', '', 'CS777', '', '', '', '', '2023-12-16', '12:03:10', 2556.00, 0.00, 2556.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(778, 'B778', '', 'CS778', '', '', '', '', '2023-12-16', '12:26:36', 1615.00, 0.00, 1615.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(779, 'B779', 'c0d8b3e2-5c0c-41c0-9582-cdfc6676842e', 'CS779', '', 'Gsp2aLotPz4j8ZmwvRcmqySzw5eDxib5UOh++IYeIReSGTqADb6DDfwrYEvvG//bxWI5Gss36jF5n+8B4rU5mRsjXYJFky4dhM8EnnvJvp5BfWg+0IwGPuiWWFnWVkyfdd+LeJHOwMD1LdZ3xnJ1kdW7Cu8NNaB82efc9Xq2Lunr2qeW7SZATXQ/4p8AkoWRSOGnEHWvHj2rU1Q6E4RrIrMdl8Jq9eZQnytwa5ed/Ha9T+x29hSBQRk3T2kSTzjibR5tOs7jliJZnEnMD9QmZTPnsCI+lQgmvzoWOr+Oycrsk9Zm7MW9AitqalQlh7vaqlg3AIO26bm+PUkmLzS/uA==', '||1.1|c0d8b3e2-5c0c-41c0-9582-cdfc6676842e|2023-12-26T14:27:45|LSO1306189R5|Gsp2aLotPz4j8ZmwvRcmqySzw5eDxib5UOh++IYeIReSGTqADb6DDfwrYEvvG//bxWI5Gss36jF5n+8B4rU5mRsjXYJFky4dhM8EnnvJvp5BfWg+0IwGPuiWWFnWVkyfdd+LeJHOwMD1LdZ3xnJ1kdW7Cu8NNaB82efc9Xq2Lunr2qeW7SZATXQ/4p8AkoWRSOGnEHWvHj2rU1Q6E4RrIrMdl8Jq9eZQnytwa5ed/Ha9T+x29hSBQRk3T2kSTzjibR5tOs7jliJZnEnMD9QmZTPnsCI+lQgmvzoWOr+Oycrsk9Zm7MW9AitqalQlh7vaqlg3AIO26bm+PUkmLzS/uA==|00001000000509846663||', 'mLT2s1Ny6agGxyjatONdgjb7T7qD+MWKbH+yGwqOXhU4sYIbUohj4iXHajvbMcUGS78HzUniBrYPz0USUPn0Ta1bMQfCSJggsUyFuTL2xfyGBpCKwD/oHRBP14H6d4+ety1B30E2ljPS61zcIJoIEnwoQCcqAQV8iI1wZQJ/qYvua/fRzgiIDXJiQHpjUC9dh9aWC7eCFzULE1VHuwZ/12wk2U0sbgv61a679mCV2Wc+dM26x+Xr2RhfO5feaN+D9IOc7Kldsml2BO28O73ZKOx9lp9p6H/H6yaGq4diVVxRg7b0wUxfJCJ8nP8DFFHtrdJGx3mpySFp9jiy7370nw==', '2023-12-16', '12:36:09', 1163.79, 186.21, 1350.00, 12, 1, 11703, 1, 14, 1, '2023-12-26 14:27:45', 0, '', '2', '2023-12-26', '14:27:43', 0, b'0', 0, ''),
(780, 'B780', '', 'CS780', '', '', '', '', '2023-12-16', '12:52:50', 964.00, 0.00, 964.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(781, 'B781', '', 'CS781', '', '', '', '', '2023-12-16', '13:02:39', 1410.00, 0.00, 1410.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(782, 'B782', '', 'CS782', '', '', '', '', '2023-12-16', '13:09:10', 1115.00, 0.00, 1115.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(783, 'B783', '', 'CS783', '', '', '', '', '2023-12-16', '13:11:11', 575.00, 0.00, 575.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(784, 'B784', '', 'CS784', '', '', '', '', '2023-12-16', '13:21:15', 640.00, 0.00, 640.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(785, 'B785', '', 'CS785', '', '', '', '', '2023-12-16', '13:28:30', 2181.00, 0.00, 2181.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(786, 'B786', '', 'CS786', '', '', '', '', '2023-12-16', '13:29:18', 530.00, 0.00, 530.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(787, 'B787', '', 'CS787', '', '', '', '', '2023-12-16', '13:29:59', 378.00, 0.00, 378.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(788, 'B788', '', 'CS788', '', '', '', '', '2023-12-16', '13:38:02', 536.00, 0.00, 536.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(789, 'B789', '', 'CS789', '', '', '', '', '2023-12-16', '13:45:27', 2462.00, 0.00, 2462.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(790, 'B790', '', 'CS790', '', '', '', '', '2023-12-16', '13:48:04', 290.00, 0.00, 290.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(791, 'B791', '', 'CS791', '', '', '', '', '2023-12-16', '13:51:40', 290.00, 0.00, 290.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, '');
INSERT INTO `ec_ventas` (`id_venta`, `folio`, `folio_fiscal`, `numero_orden`, `certificado_csd`, `sello_digital`, `cadena_original`, `certificado_sat`, `fecha`, `hora`, `subtotal`, `iva`, `total`, `id_usuario`, `id_sucursal`, `id_cliente`, `facturado`, `id_forma_pago`, `id_metodo_pago`, `fecha_timbrado`, `cancelado`, `clave_cliente`, `cfdi`, `fecha_real`, `hora_real`, `facturacion_productos_especificos`, `es_venta_linea`, `id_status_facturacion`, `folio_sistema_general`) VALUES
(792, 'B792', 'd8632836-3fba-4476-a2cc-c5cf80304141', 'CS792', '', 'HNFntyUL+6gPFslLce34t/GqNO/LKZBf7c4Mgc4c4WNM1XPQ+8rG1V4vxI1qyrZUgh7yGFVtVhBH/1Q4XiYtyAUpd5XMkfYsAS+tNDavetsnHXYzrE1BiyKbot7LDEFIfrJ8HsgcVZgNz6yJ6mfdeot9vO4h4gWg79iFsTOV76LtLOS39HJ+2qhO5uOurzTAS7lpGFbOmHX1B5673KLbHH5frMrSWI211v4mj09dwerFZv5LenS5IffqLN/nKQu9yWOkloFgQvEOthrGAGseE3xxGnT05+O/w3pio6xi+s5j5QR8cNS0u2ZTe7Al5dYRdGWxtwRlCY+0aGrX8T24Zg==', '||1.1|d8632836-3fba-4476-a2cc-c5cf80304141|2023-12-20T12:35:46|LSO1306189R5|HNFntyUL+6gPFslLce34t/GqNO/LKZBf7c4Mgc4c4WNM1XPQ+8rG1V4vxI1qyrZUgh7yGFVtVhBH/1Q4XiYtyAUpd5XMkfYsAS+tNDavetsnHXYzrE1BiyKbot7LDEFIfrJ8HsgcVZgNz6yJ6mfdeot9vO4h4gWg79iFsTOV76LtLOS39HJ+2qhO5uOurzTAS7lpGFbOmHX1B5673KLbHH5frMrSWI211v4mj09dwerFZv5LenS5IffqLN/nKQu9yWOkloFgQvEOthrGAGseE3xxGnT05+O/w3pio6xi+s5j5QR8cNS0u2ZTe7Al5dYRdGWxtwRlCY+0aGrX8T24Zg==|00001000000509846663||', 'h+hCMCCKH5FqgAachlI8aXgxed1bjpk5LobNqQ+19RjGce+XMrpdBvqO2iJ88b25CsTI3C00oSjDvURTmf/6Ci0BsVz40VnMLLCoEAFi/ao53qcFc+jkyLhk96UVVfdbary+NDY5petTDFpQ0cyXDhrrALp3sRyTU/RMzZj7nkcYhUPWXJ3d27O+2gUTUwEq2kMzIDr+rbukRwAIxnDLpgvyI36Z0OKhsQWcJZRYZqfgc4clzEcd3XZUj+fjZDOOALraCBLmx/MugsTcJ8Rb/evk1aLCY37XGjSE0IqFPd9ER3ZFClyo/EMTZ/e1ezMdb8hKIBP4OsfBPCQTRHH08Q==', '2023-12-16', '14:04:39', 793.10, 126.90, 920.00, 12, 1, 11647, 1, 14, 1, '2023-12-20 12:35:46', 0, '6419', '2', '2023-12-20', '12:35:45', 0, b'0', 0, ''),
(793, 'B793', '', 'CS793', '', '', '', '', '2023-12-16', '14:07:48', 1540.00, 0.00, 1540.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(794, 'B794', '', 'CS794', '', '', '', '', '2023-12-16', '14:10:37', 1270.00, 0.00, 1270.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(795, 'B795', '', 'CS795', '', '', '', '', '2023-12-16', '14:11:54', 820.00, 0.00, 820.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(796, 'B796', '', 'CS796', '', '', '', '', '2023-12-16', '14:13:30', 1715.00, 0.00, 1715.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(797, 'B797', '', 'CS797', '', '', '', '', '2023-12-16', '14:16:33', 713.00, 0.00, 713.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(798, 'B798', '', 'CS798', '', '', '', '', '2023-12-16', '14:17:01', 860.00, 0.00, 860.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(799, 'B799', '', 'CS799', '', '', '', '', '2023-12-16', '14:26:28', 860.00, 0.00, 860.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(800, 'B800', '', 'CS800', '', '', '', '', '2023-12-16', '14:33:56', 380.00, 0.00, 380.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(801, 'B801', '', 'CS801', '', '', '', '', '2023-12-16', '14:38:42', 450.00, 0.00, 450.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(802, 'B802', '', 'CS802', '', '', '', '', '2023-12-16', '14:48:37', 1370.00, 0.00, 1370.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(803, 'B803', '', 'CS803', '', '', '', '', '2023-12-16', '14:52:26', 280.00, 0.00, 280.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(804, 'B804', '', 'CS804', '', '', '', '', '2023-12-16', '14:56:35', 115.00, 0.00, 115.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(805, 'B805', '', 'CS805', '', '', '', '', '2023-12-16', '15:14:20', 1250.00, 0.00, 1250.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(806, 'B806', '', 'CS806', '', '', '', '', '2023-12-16', '15:27:12', 1395.00, 0.00, 1395.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(807, 'B807', '', 'CS807', '', '', '', '', '2023-12-16', '15:30:12', 230.00, 0.00, 230.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(808, 'B808', '', 'CS808', '', '', '', '', '2023-12-16', '15:33:01', 2230.00, 0.00, 2230.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(809, 'B809', '', 'CS809', '', '', '', '', '2023-12-16', '15:41:40', 270.00, 0.00, 270.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(810, 'B810', '', 'CS810', '', '', '', '', '2023-12-16', '15:49:14', 604.00, 0.00, 604.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(811, 'B811', '', 'CS811', '', '', '', '', '2023-12-16', '15:52:32', 785.00, 0.00, 785.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(812, 'B812', '', 'CS812', '', '', '', '', '2023-12-16', '15:53:33', 2000.00, 0.00, 2000.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(813, 'B813', '', 'CS813', '', '', '', '', '2023-12-16', '16:33:08', 864.00, 0.00, 864.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(814, 'B814', '', 'CS814', '', '', '', '', '2023-12-16', '16:46:05', 739.00, 0.00, 739.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(815, 'B815', '155b7e98-8168-4500-b8b7-ba9ab37d3b79', 'CS815', '', 'JZ9kREoL3qsUy1aLCIa8wix9G5rpdAS/z8xgz7BgpowY3IdRjhlCsnBJfwN916ftFH28IC8a+BabVY7UdnVMHnT3+6eoF9bVUE/zDSKr/1aBi6kijTQeTdWGTniEjkr6G1NVkqworIyk8mlOasg9MyOZWenp1uJsPEsi3h6DGWD2SAWN5F9uVrwtAwIeZexsYnW21IV3kU8pHbd6jMNg4C+M8kd1HZ9BeAs2OX9z29G65pn9loYA75wBunaASOgse4IOKURdvx1tpV7CF8cMwHJp26vCHtk/Q/GDfiCCpQqchn/hmjXS1FrT2dRuwgk8Eh+dvfGmttY9NM1eTcd+4Q==', '||1.1|155b7e98-8168-4500-b8b7-ba9ab37d3b79|2023-12-20T12:33:38|LSO1306189R5|JZ9kREoL3qsUy1aLCIa8wix9G5rpdAS/z8xgz7BgpowY3IdRjhlCsnBJfwN916ftFH28IC8a+BabVY7UdnVMHnT3+6eoF9bVUE/zDSKr/1aBi6kijTQeTdWGTniEjkr6G1NVkqworIyk8mlOasg9MyOZWenp1uJsPEsi3h6DGWD2SAWN5F9uVrwtAwIeZexsYnW21IV3kU8pHbd6jMNg4C+M8kd1HZ9BeAs2OX9z29G65pn9loYA75wBunaASOgse4IOKURdvx1tpV7CF8cMwHJp26vCHtk/Q/GDfiCCpQqchn/hmjXS1FrT2dRuwgk8Eh+dvfGmttY9NM1eTcd+4Q==|00001000000509846663||', 'F2ecYY1zN6mlW2387OpAPTiat4o8y91HX7ox6p0ReyVmIvC4EiiYN0J+bDEabFKPCZdlmjbYFbjpBOVx65sqgywQe28Ig5WVSKiRNtuMHWyMSUPi6BtyTG3NLcR5rK+/TeaM1yA5xwPLF10gNd9O3Ee+SrrsUPeKgq2Dg5CsZIIKoKylM4pf5fupRVyZ7pfrkPB8N/jxCvaTEGDd3pCcIw5vNP2glCwjEHE0M1rwqHUNapyMn1H9Pk3J+eIxK02QcHLngROwcZFGrMb5LC8XdhC+rgBlQUZNUHmXL0z3GHl9xMr73E2/r3LYSjPd9DeI31t4tbOD5YKLfAVgCQYgLQ==', '2023-12-16', '16:46:37', 3118.10, 498.90, 3617.00, 12, 1, 11605, 1, 14, 1, '2023-12-20 12:33:38', 0, '4655', '2', '2023-12-20', '12:33:38', 0, b'0', 0, ''),
(816, 'B816', '', 'CS816', '', '', '', '', '2023-12-16', '16:48:41', 2025.00, 0.00, 2025.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(817, 'B817', '', 'CS817', '', '', '', '', '2023-12-16', '16:54:33', 625.00, 0.00, 625.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(818, 'B818', '', 'CS818', '', '', '', '', '2023-12-16', '17:02:42', 290.00, 0.00, 290.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(819, 'B819', '', 'CS819', '', '', '', '', '2023-12-16', '17:07:07', 1226.00, 0.00, 1226.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(820, 'B820', '', 'CS820', '', '', '', '', '2023-12-16', '17:09:36', 178.00, 0.00, 178.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(821, 'B821', '', 'CS821', '', '', '', '', '2023-12-16', '17:13:43', 130.00, 0.00, 130.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(822, 'B822', '', 'CS822', '', '', '', '', '2023-12-16', '17:14:48', 900.00, 0.00, 900.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(823, 'B823', '', 'CS823', '', '', '', '', '2023-12-16', '17:15:19', 460.00, 0.00, 460.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(824, 'B824', '', 'CS824', '', '', '', '', '2023-12-16', '17:18:48', 450.00, 0.00, 450.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(825, 'B825', '', 'CS825', '', '', '', '', '2023-12-16', '17:19:42', 219.00, 0.00, 219.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(826, 'B826', '', 'CS826', '', '', '', '', '2023-12-16', '17:20:51', 505.00, 0.00, 505.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(827, 'B827', '', 'CS827', '', '', '', '', '2023-12-16', '17:33:15', 1170.00, 0.00, 1170.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(828, 'B828', '', 'CS828', '', '', '', '', '2023-12-16', '17:36:49', 542.00, 0.00, 542.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(829, 'B829', '', 'CS829', '', '', '', '', '2023-12-16', '17:37:25', 490.00, 0.00, 490.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(830, 'B830', '', 'CS830', '', '', '', '', '2023-12-16', '17:37:58', 4605.00, 0.00, 4605.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(831, 'B831', '', 'CS831', '', '', '', '', '2023-12-16', '17:40:34', 1100.00, 0.00, 1100.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(832, 'B832', '', 'CS832', '', '', '', '', '2023-12-16', '17:44:08', 2572.00, 0.00, 2572.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(833, 'B833', '', 'CS833', '', '', '', '', '2023-12-16', '17:48:57', 3272.00, 0.00, 3272.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(834, 'B834', '', 'CS834', '', '', '', '', '2023-12-16', '18:02:30', 1415.00, 0.00, 1415.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(835, 'B835', '', 'CS835', '', '', '', '', '2023-12-16', '18:06:27', 219.00, 0.00, 219.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(836, 'B836', '', 'CS836', '', '', '', '', '2023-12-16', '18:19:30', 755.00, 0.00, 755.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(837, 'B837', '', 'CS837', '', '', '', '', '2023-12-16', '18:39:55', 815.00, 0.00, 815.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(838, 'B838', '', 'CS838', '', '', '', '', '2023-12-16', '19:03:26', 1055.00, 0.00, 1055.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(839, 'B839', '', 'CS839', '', '', '', '', '2023-12-16', '19:28:47', 355.00, 0.00, 355.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(840, 'B840', '', 'CS840', '', '', '', '', '2023-12-16', '19:29:17', 555.00, 0.00, 555.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(841, 'B841', '', 'CS841', '', '', '', '', '2023-12-16', '19:29:55', 1715.00, 0.00, 1715.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(842, 'B842', '', 'CS842', '', '', '', '', '2023-12-16', '19:30:27', 201.00, 0.00, 201.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(843, 'B843', '', 'CS843', '', '', '', '', '2023-12-16', '19:32:01', 399.00, 0.00, 399.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(844, 'B844', '', 'CS844', '', '', '', '', '2023-12-16', '19:38:59', 335.00, 0.00, 335.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(845, 'B845', '', 'CS845', '', '', '', '', '2023-12-16', '19:42:23', 1660.00, 0.00, 1660.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(846, 'B846', '', 'CS846', '', '', '', '', '2023-12-16', '19:42:59', 377.00, 0.00, 377.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(847, 'B847', '', 'CS847', '', '', '', '', '2023-12-16', '19:54:51', 405.00, 0.00, 405.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(848, 'B848', '', 'CS848', '', '', '', '', '2023-12-16', '20:00:24', 6466.00, 0.00, 6466.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(849, 'B849', '', 'CS849', '', '', '', '', '2023-12-16', '20:15:16', 270.00, 0.00, 270.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(850, 'B850', '', 'CS850', '', '', '', '', '2023-12-16', '20:25:15', 1740.00, 0.00, 1740.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(851, 'B851', '', 'CS851', '', '', '', '', '2023-12-16', '20:26:07', 430.00, 0.00, 430.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(852, 'B852', '', 'CS852', '', '', '', '', '2023-12-16', '20:31:22', 677.00, 0.00, 677.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(853, 'B853', '', 'CS853', '', '', '', '', '2023-12-16', '20:38:46', 580.00, 0.00, 580.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(854, 'B854', '', 'CS854', '', '', '', '', '2023-12-16', '20:44:25', 480.00, 0.00, 480.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(855, 'B855', '', 'CS855', '', '', '', '', '2023-12-16', '20:48:31', 688.00, 0.00, 688.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(856, 'B856', '', 'CS856', '', '', '', '', '2023-12-16', '20:58:12', 345.00, 0.00, 345.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(857, 'B857', '', 'CS857', '', '', '', '', '2023-12-16', '21:08:49', 750.00, 0.00, 750.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(858, 'B858', '', 'CS858', '', '', '', '', '2023-12-16', '21:11:48', 670.00, 0.00, 670.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(859, 'B859', '', 'CS859', '', '', '', '', '2023-12-16', '21:12:23', 1485.00, 0.00, 1485.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(860, 'B860', '', 'CS860', '', '', '', '', '2023-12-16', '21:29:48', 495.00, 0.00, 495.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(861, 'B861', '', 'CS861', '', '', '', '', '2023-12-16', '21:30:31', 390.00, 0.00, 390.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(862, 'B862', '', 'CS862', '', '', '', '', '2023-12-16', '21:41:08', 145.00, 0.00, 145.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(863, 'B863', '', 'CS863', '', '', '', '', '2023-12-16', '21:42:12', 551.00, 0.00, 551.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(864, 'B864', '', 'CS864', '', '', '', '', '2023-12-16', '21:44:58', 1455.00, 0.00, 1455.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(865, 'B865', '', 'CS865', '', '', '', '', '2023-12-16', '21:49:36', 265.00, 0.00, 265.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(866, 'B866', '', 'CS866', '', '', '', '', '2023-12-16', '22:01:40', 945.00, 0.00, 945.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(867, 'B867', '7ae7118c-dbd7-44c0-b16c-33c8e0c6d370', 'CS867', '', 'bIC+W6DR2m8SrKm7rXvmswy7R3+FnUEyUVa2Wba7IRGu+bq15P9nTOUMUK8+9QnEOh+iWIlqahniMoAhzRyJBPFC8amUq649v5MjlvN+vooOyvgoVrj7dGkZ6tCVY9/hNBQASS5D2n4sBzKK++yj73rtrIMq6d18zJZvnQFv2EqrRm1PZcKvKXj1VFJq7wnxdYNaI3bjokYwlSALJAzYXUhAb/9x54+ZbjWtDCOP6Lr8Cqt/pTaWDkQMW2f7aU4ck+uL9FwAkg1MMKIXc/qDsMR/w8+4mbRj6/EZ9Om+zezOi8xHa6mSElVLOfTzXmOcEKMcY3Tnc0I7lsAJ+VJnVw==', '||1.1|7ae7118c-dbd7-44c0-b16c-33c8e0c6d370|2023-12-20T12:29:42|LSO1306189R5|bIC+W6DR2m8SrKm7rXvmswy7R3+FnUEyUVa2Wba7IRGu+bq15P9nTOUMUK8+9QnEOh+iWIlqahniMoAhzRyJBPFC8amUq649v5MjlvN+vooOyvgoVrj7dGkZ6tCVY9/hNBQASS5D2n4sBzKK++yj73rtrIMq6d18zJZvnQFv2EqrRm1PZcKvKXj1VFJq7wnxdYNaI3bjokYwlSALJAzYXUhAb/9x54+ZbjWtDCOP6Lr8Cqt/pTaWDkQMW2f7aU4ck+uL9FwAkg1MMKIXc/qDsMR/w8+4mbRj6/EZ9Om+zezOi8xHa6mSElVLOfTzXmOcEKMcY3Tnc0I7lsAJ+VJnVw==|00001000000509846663||', 'IziWLr6GHDBUlJpixN80xGGU84y2O5/2MYq4SmK8J72Hy4INOXc+FKIIo5xdvFLa3fc2wffV8bItflg3MaA3PLzu14oVIB+oBeIAhwn/hmVkFKRmtKsYrRK1oHpkENUGv/47sgAK+Lyr0srydVFD2HjQ0VwhhrwIz8jjg9DlgY/T9ChDF/kL+RrwdIuAlJaZFhJ1zwJfiVMJBQAw+Kk8vS8XxD4DTKO4TOSpe0YOa0jD6jQ/8nGMlM4LRFu/DnjN3x70nlcrDog8sMRP+hicmYGZAdrspffNIL73YMC3R6Z1SxBHvTAbPWqDy49l4LA3m/ps/WnvhrPA5mKLMFM/lg==', '2023-12-16', '22:05:10', 1119.83, 179.17, 1285.00, 12, 1, 11642, 1, 11, 1, '2023-12-20 12:29:42', 0, '7566', '2', '2023-12-20', '12:29:41', 0, b'0', 0, ''),
(868, 'B868', '', 'CS868', '', '', '', '', '2023-12-17', '11:01:42', 1925.00, 0.00, 1925.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(869, 'B869', '', 'CS869', '', '', '', '', '2023-12-17', '11:21:09', 426.00, 0.00, 426.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(870, 'B870', '', 'CS870', '', '', '', '', '2023-12-17', '11:49:21', 1123.00, 0.00, 1123.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(871, 'B871', '', 'CS871', '', '', '', '', '2023-12-17', '11:54:22', 365.00, 0.00, 365.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(872, 'B872', '', 'CS872', '', '', '', '', '2023-12-17', '12:12:11', 45.00, 0.00, 45.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(873, 'B873', '', 'CS873', '', '', '', '', '2023-12-17', '12:12:11', 1123.00, 0.00, 1123.00, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(874, 'B874', '', 'CS874', '', '', '', '', '2023-12-17', '12:33:17', 566.00, 0.00, 566.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(875, 'B875', '', 'CS875', '', '', '', '', '2023-12-17', '12:34:07', 605.00, 0.00, 605.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(876, 'B876', '', 'CS876', '', '', '', '', '2023-12-17', '13:00:33', 1259.00, 0.00, 1259.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(877, 'B877', '', 'CS877', '', '', '', '', '2023-12-17', '13:06:58', 470.00, 0.00, 470.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(878, 'B878', '', 'CS878', '', '', '', '', '2023-12-17', '13:47:01', 1951.00, 0.00, 1951.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(879, 'B879', '', 'CS879', '', '', '', '', '2023-12-17', '14:00:41', 370.00, 0.00, 370.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(880, 'B880', '', 'CS880', '', '', '', '', '2023-12-17', '14:01:11', 775.00, 0.00, 775.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(881, 'B881', '', 'CS881', '', '', '', '', '2023-12-17', '14:12:40', 1095.00, 0.00, 1095.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(882, 'B882', '', 'CS882', '', '', '', '', '2023-12-17', '14:18:03', 1633.00, 0.00, 1633.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(883, 'B883', '', 'CS883', '', '', '', '', '2023-12-17', '14:21:53', 645.00, 0.00, 645.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(884, 'B884', '', 'CS884', '', '', '', '', '2023-12-17', '14:29:32', 1210.00, 0.00, 1210.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(885, 'B885', '', 'CS885', '', '', '', '', '2023-12-17', '14:35:16', 2459.00, 0.00, 2459.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(886, 'B886', '', 'CS886', '', '', '', '', '2023-12-17', '14:41:46', 495.00, 0.00, 495.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(887, 'B887', '', 'CS887', '', '', '', '', '2023-12-17', '14:44:48', 845.00, 0.00, 845.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(888, 'B888', '', 'CS888', '', '', '', '', '2023-12-17', '14:44:48', 416.71, 0.00, 416.71, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(889, 'B889', '', 'CS889', '', '', '', '', '2023-12-17', '14:55:07', 3525.00, 0.00, 3525.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(890, 'B890', '', 'CS890', '', '', '', '', '2023-12-17', '15:03:51', 575.00, 0.00, 575.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(891, 'B891', '', 'CS891', '', '', '', '', '2023-12-17', '15:21:38', 361.00, 0.00, 361.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(892, 'B892', '', 'CS892', '', '', '', '', '2023-12-17', '15:24:13', 1265.00, 0.00, 1265.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(893, 'B893', '', 'CS893', '', '', '', '', '2023-12-17', '15:25:29', 1615.00, 0.00, 1615.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(894, 'B894', '', 'CS894', '', '', '', '', '2023-12-17', '15:36:46', 1024.00, 0.00, 1024.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(895, 'B895', '', 'CS895', '', '', '', '', '2023-12-17', '15:50:48', 569.00, 0.00, 569.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(896, 'B896', '', 'CS896', '', '', '', '', '2023-12-17', '15:51:44', 1830.00, 0.00, 1830.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(897, 'B897', '', 'CS897', '', '', '', '', '2023-12-17', '15:52:23', 1096.00, 0.00, 1096.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(898, 'B898', '', 'CS898', '', '', '', '', '2023-12-17', '16:04:47', 2975.00, 0.00, 2975.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(899, 'B899', '', 'CS899', '', '', '', '', '2023-12-17', '16:10:21', 691.00, 0.00, 691.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(900, 'B900', '', 'CS900', '', '', '', '', '2023-12-17', '16:19:39', 750.00, 0.00, 750.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(901, 'B901', '', 'CS901', '', '', '', '', '2023-12-17', '16:22:31', 714.00, 0.00, 714.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(902, 'B902', '', 'CS902', '', '', '', '', '2023-12-17', '16:27:12', 8446.00, 0.00, 8446.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(903, 'B903', '', 'CS903', '', '', '', '', '2023-12-17', '16:28:40', 1429.00, 0.00, 1429.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(904, 'B904', '', 'CS904', '', '', '', '', '2023-12-17', '16:34:16', 1375.00, 0.00, 1375.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(905, 'B905', '', 'CS905', '', '', '', '', '2023-12-17', '16:34:16', 1925.00, 0.00, 1925.00, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(906, 'B906', '', 'CS906', '', '', '', '', '2023-12-17', '16:44:38', 3842.00, 0.00, 3842.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(907, 'B907', '', 'CS907', '', '', '', '', '2023-12-17', '17:18:06', 400.00, 0.00, 400.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(908, 'B908', '', 'CS908', '', '', '', '', '2023-12-17', '17:23:54', 810.00, 0.00, 810.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(909, 'B909', '', 'CS909', '', '', '', '', '2023-12-17', '17:30:46', 1504.00, 0.00, 1504.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(910, 'B910', '', 'CS910', '', '', '', '', '2023-12-17', '17:35:04', 800.00, 0.00, 800.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(911, 'B911', '', 'CS911', '', '', '', '', '2023-12-17', '17:37:56', 740.00, 0.00, 740.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(912, 'B912', '', 'CS912', '', '', '', '', '2023-12-17', '17:40:12', 421.00, 0.00, 421.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(913, 'B913', '', 'CS913', '', '', '', '', '2023-12-17', '17:43:20', 1435.00, 0.00, 1435.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(914, 'B914', '', 'CS914', '', '', '', '', '2023-12-17', '17:44:35', 345.00, 0.00, 345.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(915, 'B915', '', 'CS915', '', '', '', '', '2023-12-17', '17:50:18', 1462.00, 0.00, 1462.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(916, 'B916', '', 'CS916', '', '', '', '', '2023-12-17', '17:52:58', 871.00, 0.00, 871.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(917, 'B917', '', 'CS917', '', '', '', '', '2023-12-17', '18:00:27', 2240.00, 0.00, 2240.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(918, 'B918', 'f0d33f99-897c-447c-be92-1b998e6f7328', 'CS918', '', 'Npy4DRN7ijLJJDxHQJRGE0G2109roQqhevNOvN4GcHzKrsp2Vwuthpxz8IGx7ea8S+cp2ZhOvFkWsVtlHk+cZjQja1Bwvt5BtEk0os+1d9jC79xzcr0tHDhuwpEK404kYI8A9lsrdxbMIOPDvXve+nzWVpgnDw15t/vNWGfNIHsXmi6sVCDf3+sIUQz8ssxNNW6ylv8tqbP9WEw3w/1Zvrz0o749l1QbkvMPeet1rC2TUpGq6l0dGtSbTqBYO4+BK0FZSZv/RG+hASTEVcNGcfp5s4rFXC8m5fw2qECTL08V3WjIOoNbrhWZXMGYwxz/cDd8LY18x2GRWI3ScShOtg==', '||1.1|f0d33f99-897c-447c-be92-1b998e6f7328|2023-12-20T12:38:36|LSO1306189R5|Npy4DRN7ijLJJDxHQJRGE0G2109roQqhevNOvN4GcHzKrsp2Vwuthpxz8IGx7ea8S+cp2ZhOvFkWsVtlHk+cZjQja1Bwvt5BtEk0os+1d9jC79xzcr0tHDhuwpEK404kYI8A9lsrdxbMIOPDvXve+nzWVpgnDw15t/vNWGfNIHsXmi6sVCDf3+sIUQz8ssxNNW6ylv8tqbP9WEw3w/1Zvrz0o749l1QbkvMPeet1rC2TUpGq6l0dGtSbTqBYO4+BK0FZSZv/RG+hASTEVcNGcfp5s4rFXC8m5fw2qECTL08V3WjIOoNbrhWZXMGYwxz/cDd8LY18x2GRWI3ScShOtg==|00001000000509846663||', 'pAhWYt/a50j8/g7UCPuBLQ4wHfBGsZz7IXqJnS8InN0xSMOkiiGz7b3Si1OvaMNb6l4F88uBazWqgfLtbnFM7+vEXB9X4AznvyGvQ9clzWQyozp/QSAe+atHLyCmPuERc8CGTVai3wPwOMHH75hl2unttQuuxCyjhqi1G+hW37B+BL7HREJHfqZ3ngHx+q5PFbss6Ds3qvkbvlCtJDYgMl+d4kMq2F6S4/SltDmPKt9QEDBGg9L/JGSdeg70W+2WSkpqRfpvt0kf04UBFj/XLRBgy0jxNaUdIVxhYeoeCA0XJbrO/Zgw2juR7NRK59nqJcWXCO4nWM6NcU3XRFanLw==', '2023-12-17', '18:01:05', 1041.39, 166.62, 1194.99, 12, 1, 11667, 1, 11, 1, '2023-12-20 12:38:36', 0, '4137', '2', '2023-12-20', '12:38:35', 0, b'0', 0, ''),
(919, 'B919', '', 'CS919', '', '', '', '', '2023-12-17', '18:18:40', 1025.00, 0.00, 1025.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(920, 'B920', '', 'CS920', '', '', '', '', '2023-12-17', '18:18:40', 208.08, 0.00, 208.08, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(921, 'B921', '', 'CS921', '', '', '', '', '2023-12-17', '18:23:15', 858.00, 0.00, 858.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(922, 'B922', '', 'CS922', '', '', '', '', '2023-12-17', '18:31:52', 380.00, 0.00, 380.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(923, 'B923', '', 'CS923', '', '', '', '', '2023-12-17', '18:31:52', 4.21, 0.00, 4.21, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(924, 'B924', '', 'CS924', '', '', '', '', '2023-12-17', '18:33:36', 655.00, 0.00, 655.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(925, 'B925', '', 'CS925', '', '', '', '', '2023-12-17', '18:42:11', 185.00, 0.00, 185.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(926, 'B926', '', 'CS926', '', '', '', '', '2023-12-17', '18:49:26', 105.00, 0.00, 105.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(927, 'B927', '', 'CS927', '', '', '', '', '2023-12-17', '19:05:23', 2761.00, 0.00, 2761.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(928, 'B928', '', 'CS928', '', '', '', '', '2023-12-17', '19:17:14', 320.00, 0.00, 320.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(929, 'B929', '5efba885-4fc0-46e8-b043-a3560516a927', 'CS929', '', 'LQ4ew+lzTpsHICM908k/JupNwkzEzn6JhWNIFH27wIvu+iTpCau+sOxRH9eI24Au/9ovFQrfXP0BKgwg3q+6UhOik49+Xfg7gGgfsTRT2Lrfj44Dnbp0fCDUaxUxm6ZRhsYiapjXDN3R1anz1Mi37OmnrQUTQ7fEXwxPz3VfN2z172K9GzQBvhImvYyEvTcLGur9tUAj4UFyse3wxQPIWStx/tebyZNPKJBIiE4FsNUNKu8ynWXWL7a7QrTuB21vUpr58kRg7meEPUY3vOzJHKniPCmTTFAhDlMpIXlHeGBjDhjW5hST5IuPFyCbTnnSg8z+Te67qVtdFC3Dodt5pQ==', '||1.1|5efba885-4fc0-46e8-b043-a3560516a927|2023-12-20T12:21:30|LSO1306189R5|LQ4ew+lzTpsHICM908k/JupNwkzEzn6JhWNIFH27wIvu+iTpCau+sOxRH9eI24Au/9ovFQrfXP0BKgwg3q+6UhOik49+Xfg7gGgfsTRT2Lrfj44Dnbp0fCDUaxUxm6ZRhsYiapjXDN3R1anz1Mi37OmnrQUTQ7fEXwxPz3VfN2z172K9GzQBvhImvYyEvTcLGur9tUAj4UFyse3wxQPIWStx/tebyZNPKJBIiE4FsNUNKu8ynWXWL7a7QrTuB21vUpr58kRg7meEPUY3vOzJHKniPCmTTFAhDlMpIXlHeGBjDhjW5hST5IuPFyCbTnnSg8z+Te67qVtdFC3Dodt5pQ==|00001000000509846663||', 'M2irzLybMns+mlvNg6s7uQhZX/GXRcrvI3VjRgPmAxHiKhQp/c5hrU9wtILDlFKmBA/krtL+JaRMN62v5ErStKAAAas0IsXmnyYG4ZwS6u6nRUHZ7PxN9c1vAgVmx1Y7lkB3/WdOUq/ooIlUazux6EDYAewbX2NT10N61Uj7058nfZZiXAoCFtQKUv+te3kdoFgBsV8j5WEH/+Np7z6PtMJqN4TLAiB1ceI8cUGRTrXjx58fI5qZl55f2nET3G5jrCdfBb/Hs5rpm9YSlxmaupFu+1EgjKlHliKulQyJ5dXDeMYS9ScGaC4lGLMsDSi8r+635wVthav7a5I0B4CofA==', '2023-12-17', '19:22:45', 1529.41, 244.71, 1755.00, 12, 1, 11669, 1, 14, 1, '2023-12-20 12:21:30', 0, '4838', '2', '2023-12-20', '12:21:30', 0, b'0', 0, ''),
(930, 'B930', '', 'CS930', '', '', '', '', '2023-12-17', '19:24:09', 860.00, 0.00, 860.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(931, 'B931', '', 'CS931', '', '', '', '', '2023-12-17', '19:27:03', 290.00, 0.00, 290.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(932, 'B932', '', 'CS932', '', '', '', '', '2023-12-17', '19:30:53', 2623.00, 0.00, 2623.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(933, 'B933', '', 'CS933', '', '', '', '', '2023-12-17', '19:30:53', 426.00, 0.00, 426.00, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(934, 'B934', '', 'CS934', '', '', '', '', '2023-12-17', '19:43:44', 1243.00, 0.00, 1243.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(935, 'B935', '', 'CS935', '', '', '', '', '2023-12-17', '19:53:02', 2812.00, 0.00, 2812.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(936, 'B936', '', 'CS936', '', '', '', '', '2023-12-17', '20:11:23', 1861.00, 0.00, 1861.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(937, 'B937', '', 'CS937', '', '', '', '', '2023-12-17', '20:12:06', 170.00, 0.00, 170.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(938, 'B938', '', 'CS938', '', '', '', '', '2023-12-17', '20:13:38', 85.00, 0.00, 85.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(939, 'B939', '', 'CS939', '', '', '', '', '2023-12-17', '20:14:22', 500.00, 0.00, 500.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(940, 'B940', '', 'CS940', '', '', '', '', '2023-12-17', '20:17:27', 200.00, 0.00, 200.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(941, 'B941', '', 'CS941', '', '', '', '', '2023-12-17', '20:19:19', 1125.00, 0.00, 1125.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(942, 'B942', '', 'CS942', '', '', '', '', '2023-12-17', '20:23:36', 380.00, 0.00, 380.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(943, 'B943', '', 'CS943', '', '', '', '', '2023-12-17', '20:35:20', 3160.00, 0.00, 3160.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(944, 'B944', '', 'CS944', '', '', '', '', '2023-12-17', '20:40:53', 683.00, 0.00, 683.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(945, 'B945', '', 'CS945', '', '', '', '', '2023-12-17', '20:52:43', 460.00, 0.00, 460.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(946, 'B946', '', 'CS946', '', '', '', '', '2023-12-17', '20:58:50', 2955.00, 0.00, 2955.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(947, 'B947', '', 'CS947', '', '', '', '', '2023-12-17', '21:07:13', 70.00, 0.00, 70.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(948, 'B948', '', 'CS948', '', '', '', '', '2023-12-17', '21:09:57', 210.00, 0.00, 210.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(949, 'B949', '', 'CS949', '', '', '', '', '2023-12-17', '21:16:37', 901.00, 0.00, 901.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(950, 'B950', '', 'CS950', '', '', '', '', '2023-12-17', '21:21:05', 3551.00, 0.00, 3551.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(951, 'B951', '', 'CS951', '', '', '', '', '2023-12-17', '21:24:55', 410.00, 0.00, 410.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(952, 'B952', '', 'CS952', '', '', '', '', '2023-12-17', '21:32:57', 2618.00, 0.00, 2618.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(953, 'B953', '', 'CS953', '', '', '', '', '2023-12-17', '21:34:32', 200.00, 0.00, 200.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(954, 'B954', '', 'CS954', '', '', '', '', '2023-12-17', '21:35:19', 1230.00, 0.00, 1230.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(955, 'B955', '', 'CS955', '', '', '', '', '2023-12-17', '21:47:13', 315.00, 0.00, 315.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(956, 'B956', '', 'CS956', '', '', '', '', '2023-12-17', '21:50:27', 1190.00, 0.00, 1190.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(957, 'B957', '', 'CS957', '', '', '', '', '2023-12-17', '21:56:13', 1095.00, 0.00, 1095.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(958, 'B958', '', 'CS958', '', '', '', '', '2023-12-17', '22:10:25', 346.00, 0.00, 346.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(959, 'B959', '', 'CS959', '', '', '', '', '2023-12-17', '22:11:30', 4.21, 0.00, 4.21, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(960, 'B960', '', 'CS960', '', '', '', '', '2023-12-17', '22:12:06', 416.71, 0.00, 416.71, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(961, 'B961', '', 'CS961', '', '', '', '', '2023-12-18', '12:34:38', 365.00, 0.00, 365.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(962, 'B962', '', 'CS962', '', '', '', '', '2023-12-18', '12:40:35', 670.00, 0.00, 670.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(963, 'B963', '', 'CS963', '', '', '', '', '2023-12-18', '13:07:17', 725.00, 0.00, 725.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(964, 'B964', '', 'CS964', '', '', '', '', '2023-12-18', '13:30:05', 1290.00, 0.00, 1290.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(965, 'B965', '', 'CS965', '', '', '', '', '2023-12-18', '14:45:33', 570.00, 0.00, 570.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(966, 'B966', '', 'CS966', '', '', '', '', '2023-12-18', '14:46:20', 730.00, 0.00, 730.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(967, 'B967', '', 'CS967', '', '', '', '', '2023-12-18', '14:52:12', 115.00, 0.00, 115.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(968, 'B968', '', 'CS968', '', '', '', '', '2023-12-18', '14:56:30', 600.00, 0.00, 600.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(969, 'B969', '', 'CS969', '', '', '', '', '2023-12-18', '15:36:57', 160.00, 0.00, 160.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(970, 'B970', '', 'CS970', '', '', '', '', '2023-12-18', '15:38:29', 366.00, 0.00, 366.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(971, 'B971', '', 'CS971', '', '', '', '', '2023-12-18', '15:52:14', 265.00, 0.00, 265.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(972, 'B972', '', 'CS972', '', '', '', '', '2023-12-18', '15:58:58', 785.00, 0.00, 785.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(973, 'B973', '', 'CS973', '', '', '', '', '2023-12-18', '16:11:15', 444.00, 0.00, 444.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(974, 'B974', '', 'CS974', '', '', '', '', '2023-12-18', '16:20:14', 300.00, 0.00, 300.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(975, 'B975', '', 'CS975', '', '', '', '', '2023-12-18', '16:20:14', 638.68, 0.00, 638.68, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(976, 'B976', '', 'CS976', '', '', '', '', '2023-12-18', '16:24:07', 1490.00, 0.00, 1490.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(977, 'B977', '', 'CS977', '', '', '', '', '2023-12-18', '16:31:09', 490.00, 0.00, 490.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(978, 'B978', '', 'CS978', '', '', '', '', '2023-12-18', '16:43:48', 840.00, 0.00, 840.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(979, 'B979', '', 'CS979', '', '', '', '', '2023-12-18', '17:00:46', 625.00, 0.00, 625.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(980, 'B980', '', 'CS980', '', '', '', '', '2023-12-18', '17:01:24', 940.00, 0.00, 940.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(981, 'B981', '', 'CS981', '', '', '', '', '2023-12-18', '17:07:17', 190.00, 0.00, 190.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(982, 'B982', '', 'CS982', '', '', '', '', '2023-12-18', '17:18:19', 710.00, 0.00, 710.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(983, 'B983', '', 'CS983', '', '', '', '', '2023-12-18', '17:39:22', 309.00, 0.00, 309.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(984, 'B984', '', 'CS984', '', '', '', '', '2023-12-18', '17:39:56', 1134.00, 0.00, 1134.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(985, 'B985', '', 'CS985', '', '', '', '', '2023-12-18', '17:53:11', 249.00, 0.00, 249.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(986, 'B986', '', 'CS986', '', '', '', '', '2023-12-18', '17:57:44', 370.00, 0.00, 370.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(987, 'B987', '', 'CS987', '', '', '', '', '2023-12-18', '17:57:44', 438.00, 0.00, 438.00, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(988, 'B988', '', 'CS988', '', '', '', '', '2023-12-18', '18:06:51', 880.00, 0.00, 880.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(989, 'B989', '', 'CS989', '', '', '', '', '2023-12-18', '18:07:53', 805.00, 0.00, 805.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(990, 'B990', '', 'CS990', '', '', '', '', '2023-12-18', '18:21:28', 1450.00, 0.00, 1450.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(991, 'B991', '', 'CS991', '', '', '', '', '2023-12-18', '18:21:28', 670.00, 0.00, 670.00, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(992, 'B992', '', 'CS992', '', '', '', '', '2023-12-18', '18:45:59', 540.00, 0.00, 540.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(993, 'B993', '', 'CS993', '', '', '', '', '2023-12-18', '18:50:39', 850.00, 0.00, 850.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(994, 'B994', '', 'CS994', '', '', '', '', '2023-12-18', '18:51:38', 295.00, 0.00, 295.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(995, 'B995', '', 'CS995', '', '', '', '', '2023-12-18', '18:54:14', 335.00, 0.00, 335.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(996, 'B996', '', 'CS996', '', '', '', '', '2023-12-18', '19:13:38', 810.00, 0.00, 810.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(997, 'B997', '', 'CS997', '', '', '', '', '2023-12-18', '19:17:05', 1130.00, 0.00, 1130.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(998, 'B998', '', 'CS998', '', '', '', '', '2023-12-18', '19:17:05', 365.00, 0.00, 365.00, 12, 1, 1, 0, 1, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(999, 'B999', '', 'CS999', '', '', '', '', '2023-12-18', '19:18:59', 3051.00, 0.00, 3051.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1000, 'B1000', '', 'CS1000', '', '', '', '', '2023-12-18', '19:27:06', 430.00, 0.00, 430.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1001, 'B1001', '', 'CS1001', '', '', '', '', '2023-12-18', '19:43:28', 1265.00, 0.00, 1265.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1002, 'B1002', '', 'CS1002', '', '', '', '', '2023-12-18', '20:06:25', 1773.00, 0.00, 1773.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1003, 'B1003', '', 'CS1003', '', '', '', '', '2023-12-18', '20:14:27', 1540.00, 0.00, 1540.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1004, 'B1004', '', 'CS1004', '', '', '', '', '2023-12-18', '20:19:10', 1485.00, 0.00, 1485.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1005, 'B1005', '', 'CS1005', '', '', '', '', '2023-12-18', '20:28:14', 2290.00, 0.00, 2290.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1006, 'B1006', '', 'CS1006', '', '', '', '', '2023-12-18', '20:30:33', 270.00, 0.00, 270.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1007, 'B1007', '', 'CS1007', '', '', '', '', '2023-12-18', '20:34:35', 345.00, 0.00, 345.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1008, 'B1008', '', 'CS1008', '', '', '', '', '2023-12-18', '20:51:18', 2120.00, 0.00, 2120.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1009, 'B1009', '', 'CS1009', '', '', '', '', '2023-12-18', '21:03:43', 1650.00, 0.00, 1650.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1010, 'B1010', '', 'CS1010', '', '', '', '', '2023-12-18', '21:05:04', 485.00, 0.00, 485.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1011, 'B1011', '', 'CS1011', '', '', '', '', '2023-12-18', '21:12:10', 580.00, 0.00, 580.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1012, 'B1012', '', 'CS1012', '', '', '', '', '2023-12-18', '21:18:44', 1090.00, 0.00, 1090.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1013, 'B1013', '', 'CS1013', '', '', '', '', '2023-12-18', '21:42:03', 2015.00, 0.00, 2015.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1014, 'B1014', '', 'CS1014', '', '', '', '', '2023-12-18', '21:58:37', 720.00, 0.00, 720.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1015, 'B1015', '', 'CS1015', '', '', '', '', '2023-12-18', '22:00:20', 525.00, 0.00, 525.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1016, 'B1016', '', 'CS1016', '', '', '', '', '2023-12-18', '22:03:31', 315.00, 0.00, 315.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1017, 'B1017', '', 'CS1017', '', '', '', '', '2023-12-18', '22:07:37', 1319.00, 0.00, 1319.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1018, 'B1018', '', 'CS1018', '', '', '', '', '2023-12-18', '22:10:10', 3225.00, 0.00, 3225.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1019, 'B1019', '', 'CS1019', '', '', '', '', '2023-12-18', '22:34:23', 4034.00, 0.00, 4034.00, 12, 1, 1, 0, 11, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, ''),
(1020, 'B1020', '', 'CS1020', '', '', '', '', '2023-12-18', '94:32:07', 438.00, 0.00, 438.00, 12, 1, 1, 0, 14, 1, '0000-00-00 00:00:00', 0, NULL, '2', '0000-00-00', '00:00:00', 0, b'0', 0, '');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `ec_ventas_back`
--

CREATE TABLE `ec_ventas_back` (
  `id_venta` int(11) NOT NULL,
  `fecha` date NOT NULL,
  `hora` time NOT NULL,
  `monto` float NOT NULL,
  `folio` varchar(45) COLLATE utf8_bin NOT NULL,
  `id_venta_back` int(11) NOT NULL,
  `id_forma_pago` int(11) NOT NULL,
  `se_importo` tinyint(4) NOT NULL,
  `secuencia` int(11) NOT NULL,
  `id_cliente` int(11) NOT NULL,
  `id_uso_cfdi` int(2) NOT NULL DEFAULT '2'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Volcado de datos para la tabla `ec_ventas_back`
--

INSERT INTO `ec_ventas_back` (`id_venta`, `fecha`, `hora`, `monto`, `folio`, `id_venta_back`, `id_forma_pago`, `se_importo`, `secuencia`, `id_cliente`, `id_uso_cfdi`) VALUES
(961, '2023-12-18', '12:34:38', 365, 'CS961', 961, 14, 1, 14, 1, 2),
(962, '2023-12-18', '12:40:35', 670, 'CS962', 962, 11, 1, 14, 1, 2),
(963, '2023-12-18', '13:07:17', 725, 'CS963', 963, 14, 1, 14, 1, 2),
(964, '2023-12-18', '13:30:05', 1290, 'CS964', 964, 14, 1, 14, 1, 2),
(965, '2023-12-18', '14:45:33', 570, 'CS965', 965, 14, 1, 14, 1, 2),
(966, '2023-12-18', '14:46:20', 730, 'CS966', 966, 14, 1, 14, 1, 2),
(967, '2023-12-18', '14:52:12', 115, 'CS967', 967, 11, 1, 14, 1, 2),
(968, '2023-12-18', '14:56:30', 600, 'CS968', 968, 14, 1, 14, 1, 2),
(969, '2023-12-18', '15:36:57', 160, 'CS969', 969, 11, 1, 14, 1, 2),
(970, '2023-12-18', '15:38:29', 366, 'CS970', 970, 11, 1, 14, 1, 2),
(971, '2023-12-18', '15:52:14', 265, 'CS971', 971, 14, 1, 14, 1, 2),
(972, '2023-12-18', '15:58:58', 785, 'CS972', 972, 11, 1, 14, 1, 2),
(973, '2023-12-18', '16:11:15', 444, 'CS973', 973, 14, 1, 14, 1, 2),
(974, '2023-12-18', '16:20:14', 300, 'CS974', 974, 11, 1, 14, 1, 2),
(975, '2023-12-18', '16:20:14', 638.68, 'CS975', 975, 1, 1, 14, 1, 2),
(976, '2023-12-18', '16:24:07', 1490, 'CS976', 976, 11, 1, 14, 1, 2),
(977, '2023-12-18', '16:31:09', 490, 'CS977', 977, 14, 1, 14, 1, 2),
(978, '2023-12-18', '16:43:48', 840, 'CS978', 978, 11, 1, 14, 1, 2),
(979, '2023-12-18', '17:00:46', 625, 'CS979', 979, 14, 1, 14, 1, 2),
(980, '2023-12-18', '17:01:24', 940, 'CS980', 980, 11, 1, 14, 1, 2),
(981, '2023-12-18', '17:07:17', 190, 'CS981', 981, 14, 1, 14, 1, 2),
(982, '2023-12-18', '17:18:19', 710, 'CS982', 982, 14, 1, 14, 1, 2),
(983, '2023-12-18', '17:39:22', 309, 'CS983', 983, 14, 1, 14, 1, 2),
(984, '2023-12-18', '17:39:56', 1134, 'CS984', 984, 14, 1, 14, 1, 2),
(985, '2023-12-18', '17:53:11', 249, 'CS985', 985, 14, 1, 14, 1, 2),
(986, '2023-12-18', '17:57:44', 370, 'CS986', 986, 14, 1, 14, 1, 2),
(987, '2023-12-18', '17:57:44', 438, 'CS987', 987, 1, 1, 14, 1, 2),
(988, '2023-12-18', '18:06:51', 880, 'CS988', 988, 11, 1, 14, 1, 2),
(989, '2023-12-18', '18:07:53', 805, 'CS989', 989, 14, 1, 14, 1, 2),
(990, '2023-12-18', '18:21:28', 1450, 'CS990', 990, 14, 1, 14, 1, 2),
(991, '2023-12-18', '18:21:28', 670, 'CS991', 991, 1, 1, 14, 1, 2),
(992, '2023-12-18', '18:45:59', 540, 'CS992', 992, 11, 1, 14, 1, 2),
(993, '2023-12-18', '18:50:39', 850, 'CS993', 993, 14, 1, 14, 1, 2),
(994, '2023-12-18', '18:51:38', 295, 'CS994', 994, 14, 1, 14, 1, 2),
(995, '2023-12-18', '18:54:14', 335, 'CS995', 995, 14, 1, 14, 1, 2),
(996, '2023-12-18', '19:13:38', 810, 'CS996', 996, 11, 1, 14, 1, 2),
(997, '2023-12-18', '19:17:05', 1130, 'CS997', 997, 14, 1, 14, 1, 2),
(998, '2023-12-18', '19:17:05', 365, 'CS998', 998, 1, 1, 14, 1, 2),
(999, '2023-12-18', '19:18:59', 3051, 'CS999', 999, 11, 1, 14, 1, 2),
(1000, '2023-12-18', '19:27:06', 430, 'CS1000', 1000, 14, 1, 14, 1, 2),
(1001, '2023-12-18', '19:43:28', 1265, 'CS1001', 1001, 14, 1, 14, 1, 2),
(1002, '2023-12-18', '20:06:25', 1773, 'CS1002', 1002, 14, 1, 14, 1, 2),
(1003, '2023-12-18', '20:14:27', 1540, 'CS1003', 1003, 11, 1, 14, 1, 2),
(1004, '2023-12-18', '20:19:10', 1485, 'CS1004', 1004, 11, 1, 14, 1, 2),
(1005, '2023-12-18', '20:28:14', 2290, 'CS1005', 1005, 14, 1, 14, 1, 2),
(1006, '2023-12-18', '20:30:33', 270, 'CS1006', 1006, 14, 1, 14, 1, 2),
(1007, '2023-12-18', '20:34:35', 345, 'CS1007', 1007, 14, 1, 14, 1, 2),
(1008, '2023-12-18', '20:51:18', 2120, 'CS1008', 1008, 11, 1, 14, 1, 2),
(1009, '2023-12-18', '21:03:43', 1650, 'CS1009', 1009, 14, 1, 14, 1, 2),
(1010, '2023-12-18', '21:05:04', 485, 'CS1010', 1010, 11, 1, 14, 1, 2),
(1011, '2023-12-18', '21:12:10', 580, 'CS1011', 1011, 11, 1, 14, 1, 2),
(1012, '2023-12-18', '21:18:44', 1090, 'CS1012', 1012, 14, 1, 14, 1, 2),
(1013, '2023-12-18', '21:42:03', 2015, 'CS1013', 1013, 14, 1, 14, 1, 2),
(1014, '2023-12-18', '21:58:37', 720, 'CS1014', 1014, 11, 1, 14, 1, 2),
(1015, '2023-12-18', '22:00:20', 525, 'CS1015', 1015, 14, 1, 14, 1, 2),
(1016, '2023-12-18', '22:03:31', 315, 'CS1016', 1016, 14, 1, 14, 1, 2),
(1017, '2023-12-18', '22:07:37', 1319, 'CS1017', 1017, 11, 1, 14, 1, 2),
(1018, '2023-12-18', '22:10:10', 3225, 'CS1018', 1018, 14, 1, 14, 1, 2),
(1019, '2023-12-18', '22:34:23', 4034, 'CS1019', 1019, 11, 1, 14, 1, 2),
(1020, '2023-12-18', '94:32:07', 438, 'CS1020', 1020, 14, 1, 14, 1, 2);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `ec_venta_pagos`
--

CREATE TABLE `ec_venta_pagos` (
  `id_venta_pago` int(11) NOT NULL,
  `id_forma_pago` int(11) NOT NULL,
  `id_venta` int(11) NOT NULL,
  `monto` float(15,4) NOT NULL,
  `fecha_alta` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `ec_venta_tienda_linea`
--

CREATE TABLE `ec_venta_tienda_linea` (
  `id` int(11) NOT NULL,
  `id_venta` int(11) NOT NULL,
  `metodo_pago` varchar(100) DEFAULT NULL,
  `forma_pago` varchar(100) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_ambientes_facturacion`
--

CREATE TABLE `sys_ambientes_facturacion` (
  `id_ambiente` int(11) NOT NULL,
  `nombre_ambiente` varchar(80) NOT NULL,
  `url_ambiente` varchar(200) NOT NULL,
  `usuario_integrador` varchar(80) NOT NULL,
  `activo` int(1) NOT NULL DEFAULT '1',
  `fecha_alta` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `sys_ambientes_facturacion`
--

INSERT INTO `sys_ambientes_facturacion` (`id_ambiente`, `nombre_ambiente`, `url_ambiente`, `usuario_integrador`, `activo`, `fecha_alta`) VALUES
(1, 'Pruebas', 'https://cfdi33-pruebas.buzoncfdi.mx/Timbrado.asmx?wsdl', 'mvpNUXmQfK8=', 1, '2024-11-06 00:35:28'),
(2, 'Producción', 'http://timbracfdi33.mx/Timbrado.asmx?wsdl', '5B9R7VyF4IPL/hpgH21kAQ==', 1, '2024-11-06 00:35:29');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_catalogos`
--

CREATE TABLE `sys_catalogos` (
  `id_catalogo` int(11) UNSIGNED NOT NULL,
  `tabla` varchar(120) CHARACTER SET latin1 NOT NULL,
  `no_tabla` int(2) NOT NULL DEFAULT '0',
  `tab` varchar(60) CHARACTER SET latin1 NOT NULL DEFAULT 'NO',
  `campo` varchar(60) CHARACTER SET latin1 NOT NULL,
  `display` varchar(60) CHARACTER SET latin1 NOT NULL,
  `orden` int(10) UNSIGNED NOT NULL,
  `tipo` varchar(30) CHARACTER SET latin1 NOT NULL,
  `es_llave` tinyint(1) UNSIGNED DEFAULT '0',
  `visible` tinyint(1) UNSIGNED DEFAULT '1',
  `modificable` tinyint(1) UNSIGNED DEFAULT '1',
  `requerido` tinyint(1) NOT NULL DEFAULT '0',
  `valor_inicial` varchar(120) CHARACTER SET latin1 DEFAULT NULL,
  `clase` varchar(30) CHARACTER SET latin1 DEFAULT NULL,
  `longitud` int(3) UNSIGNED DEFAULT NULL,
  `sql_combo` text CHARACTER SET latin1,
  `where_combo` text CHARACTER SET latin1,
  `order_combo` text CHARACTER SET latin1,
  `on_focus` text CHARACTER SET latin1,
  `on_blur` text CHARACTER SET latin1,
  `on_click` text CHARACTER SET latin1,
  `on_change` text CHARACTER SET latin1,
  `on_keypress` text CHARACTER SET latin1,
  `on_keydown` text CHARACTER SET latin1,
  `on_keyup` text CHARACTER SET latin1,
  `max_length` int(11) UNSIGNED DEFAULT NULL,
  `extensiones` varchar(50) CHARACTER SET latin1 DEFAULT NULL,
  `especificacion` text CHARACTER SET latin1,
  `clase_esp` varchar(30) CHARACTER SET latin1 DEFAULT NULL,
  `depende` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;


INSERT INTO `sys_catalogos` (`id_catalogo`, `tabla`, `no_tabla`, `tab`, `campo`, `display`, `orden`, `tipo`, `es_llave`, `visible`, `modificable`, `requerido`, `valor_inicial`, `clase`, `longitud`, `sql_combo`, `where_combo`, `order_combo`, `on_focus`, `on_blur`, `on_click`, `on_change`, `on_keypress`, `on_keydown`, `on_keyup`, `max_length`, `extensiones`, `especificacion`, `clase_esp`, `depende`) VALUES
(237, 'ec_pedidos', 2, 'NO', 'folio_cotizacion', 'Folio', 2, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, NULL, NULL, NULL, NULL),
(238, 'ec_pedidos', 2, 'NO', 'id_cliente', 'Cliente', 3, 'BUSCADOR', 0, 1, 1, 1, '', 'barra_tres', 20, 'SELECT id_cliente, nombre FROM ec_clientes WHERE nombre LIKE \'%$LLAVE%\' OR id_cliente = \'$LLAVE\'', 'SELECT id_cliente, nombre FROM ec_clientes WHERE id_cliente=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(239, 'ec_pedidos', 2, 'NO', 'fecha_alta', 'Fecha', 4, 'DATE', 0, 1, 0, 1, '$DATE', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(240, 'ec_pedidos', 2, 'NO', 'id_estatus', 'Estatus', 5, 'COMBO', 0, 0, 0, 1, '8', 'barra_tres', 11, 'SELECT id_estatus, nombre FROM ec_estatus_pedido WHERE 1', 'AND id_estatus=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(241, 'ec_pedidos', 2, 'NO', 'id_direccion', 'Dirección de entrega', 6, 'COMBO', 0, 0, 0, 0, '-1', 'barra_tres', 11, 'SELECT id_clientes_de, CONCAT(calle, \' #\', no_ext, \', Col. \', colonia) FROM ec_clientes_domentrega WHERE 1', 'AND id_clientes_de=', 'ORDER BY CONCAT(calle, \' #\', no_ext, \', Col. \', colonia)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(242, 'ec_pedidos', 2, 'NO', 'subtotal', 'Subtotal', 7, 'FLOAT', 0, 1, 0, 1, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(243, 'ec_pedidos', 2, 'NO', 'iva', 'IVA', 8, 'FLOAT', 0, 1, 0, 1, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(244, 'ec_pedidos', 2, 'NO', 'ieps', 'IEPS', 9, 'FLOAT', 0, 1, 0, 1, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(245, 'ec_pedidos', 2, 'NO', 'total', 'Total', 10, 'FLOAT', 0, 1, 0, 1, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(246, 'ec_pedidos', 2, 'NO', 'id_usuario', 'Creada por', 11, 'COMBO', 0, 1, 0, 1, '$USUARIO', 'barra', 11, 'SELECT id_usuario, CONCAT(nombre, \' \', apellido_paterno) FROM sys_users WHERE 1', 'AND id_usuario=', 'ORDER BY CONCAT(nombre, \' \', apellido_paterno)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(247, 'ec_pedidos', 2, 'NO', 'id_moneda', 'id_moneda', 12, 'INT', 0, 0, 0, 0, '1', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(248, 'ec_pedidos', 2, 'NO', 'id_razon_social', 'id_razon_social', 13, 'INT', 0, 0, 0, 0, '-1', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(249, 'ec_pedidos', 2, 'NO', 'fue_cot', 'fue_cot', 14, 'INT', 0, 0, 0, 0, '1', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(250, 'ec_pedidos', 2, 'NO', 'id_sucursal', 'Sucursal', 15, 'COMBO', 0, 0, 1, 1, '$SUCURSAL', 'barra_tres', 11, 'SELECT id_sucursal, nombre FROM sys_sucursales WHERE 1', ' AND id_sucursal=1', ' ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(251, 'ec_clientes', 1, 'NO', 'id_cliente', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(252, 'ec_clientes', 1, 'NO', 'nombre', 'Nombre', 2, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 120, NULL, NULL, NULL, NULL),
(253, 'ec_clientes', 1, 'NO', 'telefono', 'Teléfono', 3, 'CHAR', 0, 1, 1, 0, NULL, 'barra_dos', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, NULL, NULL, NULL, NULL),
(254, 'ec_clientes', 1, 'NO', 'email', 'E-mail', 4, 'CHAR', 0, 1, 1, 0, NULL, 'barra_dos', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 60, NULL, NULL, NULL, NULL),
(255, 'ec_clientes', 1, 'NO', 'es_cliente', 'es_cliente', 5, 'BINARY', 0, 0, 0, 0, '0', 'barra', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(256, 'ec_clientes', 1, 'NO', 'id_sucursal', 'Sucursal', 6, 'COMBO', 0, 0, 0, 1, '$SUCURSAL', 'barra', 11, 'SELECT id_sucursal, nombre FROM sys_sucursales WHERE 1', 'AND id_sucursal=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(257, 'ec_notas_credito', 1, 'NO', 'id_nota_credito', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(258, 'ec_notas_credito', 1, 'NO', 'id_cliente', 'Cliente', 3, 'BUSCADOR', 0, 1, 1, 1, '', 'barra_tres', 20, 'SELECT id_cliente, nombre FROM ec_clientes WHERE nombre LIKE \'%$LLAVE%\' AND id_cliente=\'$LLAVE\'', 'SELECT id_cliente, nombre FROM ec_clientes WHERE id_cliente=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(259, 'ec_notas_credito', 1, 'NO', 'folio', 'Folio', 2, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, NULL, NULL, NULL, NULL),
(260, 'ec_notas_credito', 1, 'NO', 'id_proveedor', 'Proveedor', 4, 'BUSCADOR', 0, 0, 0, 0, '1', 'barra_tres', 20, 'SELECT id_proveedor, nombre_comercial FROM ec_proveedor WHERE nombre_comercial LIKE \'%$LLAVE%\' OR id_proveedor = \'$LLAVE\'', 'SELECT id_proveedor, nombre_comercial FROM ec_proveedor WHERE id_proveedor=', 'ORDER BY nombre_comercial', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(261, 'ec_notas_credito', 1, 'NO', 'id_concepto_nc', 'Concepto', 5, 'COMBO', 0, 1, 1, 1, NULL, 'barra_tres', 11, 'SELECT id_concepto, nombre FROM ec_concepto_nc WHERE 1', ' AND id_concepto=', ' ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(262, 'ec_notas_credito', 1, 'NO', 'fecha', 'Fecha', 7, 'DATE', 0, 1, 0, 1, '$DATE', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(263, 'ec_notas_credito', 1, 'NO', 'id_usuario', 'Creada por', 8, 'COMBO', 0, 1, 0, 1, '$USUARIO', 'barra', 11, 'SELECT id_usuario, CONCAT(nombre, \' \', apellido_paterno) FROM sys_users WHERE 1', 'AND id_usuario=', 'ORDER BY CONCAT(nombre, \' \', apellido_paterno)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(264, 'ec_notas_credito', 1, 'NO', 'subtotal', 'Subtotal', 8, 'FLOAT', 0, 1, 0, 1, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(265, 'ec_notas_credito', 1, 'NO', 'iva', 'IVA', 9, 'FLOAT', 0, 1, 0, 1, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(266, 'ec_notas_credito', 1, 'NO', 'total', 'Total', 10, 'FLOAT', 0, 1, 0, 1, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(267, 'ec_notas_credito', 1, 'NO', 'id_oc', 'Orden de compra', 11, 'BUSCADOR', 0, 0, 0, 0, '-1', 'barra', 15, 'SELECT\r\nid_orden_compra,\r\nfolio\r\nFROM\r\n(\r\nSELECT id_orden_compra, folio FROM ec_ordenes_compra\r\nUNION\r\nSELECT -1 AS id_orden_compra, \'No aplica\' AS folio\r\n)aux', 'SELECT\r\nid_orden_compra,\r\nfolio\r\nFROM\r\n(\r\nSELECT id_orden_compra, folio FROM ec_ordenes_compra\r\nUNION\r\nSELECT -1 AS id_orden_compra, \'No aplica\' AS folio\r\n)aux WHERE id_orden_compra=', 'ORDER BY folio', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(268, 'ec_notas_credito', 1, 'NO', 'observaciones', 'Observaciones', 12, 'CHAR', 0, 1, 1, 0, NULL, 'barra_dos', 255, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1500, NULL, NULL, NULL, NULL),
(269, 'ec_notas_credito', 1, 'NO', 'tipo_nc', 'tipo_nc', 12, 'INT', 0, 0, 0, 0, '2', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(270, 'ec_notas_credito', 1, 'NO', 'id_pedido', 'Pedido', 13, 'BUSCADOR', 0, 1, 1, 1, '-1', 'barra_dos', 15, 'SELECT id_pedido, folio_pedido FROM ec_pedidos WHERE folio_pedido LIKE \'%$LLAVE%\' OR id_pedido=\'$LLAVE\'', 'SELECT id_pedido, folio_pedido FROM ec_pedidos WHERE id_pedido=', 'ORDER BY folio_pedido', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(271, 'ec_notas_credito', 1, 'NO', 'id_sucursal', 'Sucursal', 14, 'COMBO', 0, 0, 1, 1, '$SUCURSAL', 'barra_tres', 11, 'SELECT id_sucursal, nombre FROM sys_sucursales WHERE 1', 'AND id_sucursal=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(272, 'ec_nota_cargo', 1, 'NO', 'id_nota_cargo', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(273, 'ec_nota_cargo', 1, 'NO', 'folio', 'Folio', 2, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, NULL, NULL, NULL, NULL),
(274, 'ec_nota_cargo', 1, 'NO', 'id_cliente', 'Cliente', 3, 'BUSCADOR', 0, 1, 1, 1, '', 'barra_tres', 15, 'SELECT id_cliente, nombre FROM ec_clientes WHERE nombre LIKE \'%$LLAVE%\' OR id_cliente = \'$LLAVE\'', 'SELECT id_cliente, nombre FROM ec_clientes WHERE id_cliente=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(275, 'ec_nota_cargo', 1, 'NO', 'fecha', 'Fecha', 4, 'DATE', 0, 1, 0, 1, '$DATE', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(276, 'ec_nota_cargo', 1, 'NO', 'id_concepto_ncg', 'Concepto', 5, 'COMBO', 0, 1, 1, 1, NULL, 'barra_tres', 11, 'SELECT id_concepto, nombre FROM ec_concepto_ncg WHERE 1', ' AND id_concepto=', ' ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(277, 'ec_nota_cargo', 1, 'NO', 'subtotal', 'Subtotal', 6, 'FLOAT', 0, 1, 1, 1, '0', 'barra_tres', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(278, 'ec_nota_cargo', 1, 'NO', 'iva', 'IVA', 7, 'FLOAT', 0, 1, 1, 1, '0', 'barra_tres', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(279, 'ec_nota_cargo', 1, 'NO', 'total', 'Total', 8, 'FLOAT', 0, 1, 1, 1, '0', 'barra_tres', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(280, 'ec_nota_cargo', 1, 'NO', 'id_proveedor', 'id_proveedor', 10, 'INT', 0, 0, 0, 0, '1', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(281, 'ec_nota_cargo', 1, 'NO', 'tipo_nc', 'tipo_nc', 12, 'INT', 0, 0, 0, 0, '1', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(282, 'ec_nota_cargo', 1, 'NO', 'id_sucursal', 'Sucursal', 13, 'COMBO', 0, 0, 1, 1, '$SUCURSAL', 'barra_tres', 11, 'SELECT id_sucursal, nombre FROM sys_sucursales WHERE 1', 'AND id_sucursal=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(283, 'ec_precios', 0, 'NO', 'id_precio', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(285, 'ec_precios', 0, 'NO', 'fecha', 'Fecha', 3, 'DATE', 0, 1, 0, 1, '$DATE', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(286, 'ec_precios', 0, 'NO', 'id_usuario', 'Creada por', 4, 'COMBO', 0, 1, 0, 1, '$USUARIO', 'barra', 11, 'SELECT id_usuario, CONCAT(nombre, \' \', apellido_paterno) FROM sys_users WHERE 1', 'AND id_usuario=', 'ORDER BY CONCAT(nombre, \' \', apellido_paterno)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(288, 'ec_vendedores', 0, 'NO', 'id_vendedor', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(289, 'ec_vendedores', 0, 'NO', 'id_usuario', 'Usuario asignado', 2, 'COMBO', 0, 1, 1, 1, '', 'barra_tres', 11, 'SELECT id_usuario, CONCAT(nombre, \' \', apellido_paterno) FROM sys_users WHERE 1', 'AND id_usuario=', 'ORDER BY CONCAT(nombre, \' \', apellido_paterno)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(290, 'ec_vendedores', 0, 'NO', 'es_porcxventa', 'Porcentaje por venta', 3, 'BINARY', 0, 1, 1, 0, '0', 'barra_dos', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL),
(291, 'ec_vendedores', 0, 'NO', 'porc_venta', 'Porcentaje', 4, 'FLOAT', 0, 1, 0, 0, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, NULL, '%', NULL, NULL),
(292, 'ec_vendedores', 0, 'NO', 'es_montoxventa', 'Monto por venta', 5, 'BINARY', 0, 1, 1, 1, '0', 'barra_tres', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL),
(293, 'ec_vendedores', 0, 'NO', 'montoxventa', 'Monto', 6, 'FLOAT', 0, 1, 0, 0, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, NULL, '', NULL, NULL),
(294, 'ec_vendedores', 0, 'NO', 'es_metas_venta', 'Metas de venta', 7, 'BINARY', 0, 1, 1, 1, '0', 'barra_tres', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL),
(295, 'ec_vendedores', 0, 'NO', 'id_sucursal', 'Sucursal', 8, 'COMBO', 0, 0, 1, 1, '$SUCURSAL', 'barra_tres', 11, 'SELECT id_sucursal, nombre FROM sys_sucursales WHERE 1', 'AND id_sucursal=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(296, 'ec_cuentas_por_pagar', 0, 'NO', 'id_cxp', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(297, 'ec_cuentas_por_pagar', 0, 'NO', 'id_proveedor', 'Proveedor', 2, 'BUSCADOR', 0, 1, 0, 1, NULL, 'barra', 20, 'SELECT id_proveedor, nombre_comercial FROM ec_proveedor WHERE nombre_comercial LIKE \'%$LLAVE%\' OR id_proveedor = \'$LLAVE\'', 'SELECT id_proveedor, nombre_comercial FROM ec_proveedor WHERE id_proveedor=', 'ORDER BY nombre_comercial', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(298, 'ec_cuentas_por_pagar', 0, 'NO', 'monto', 'Monto', 3, 'FLOAT', 0, 1, 0, 0, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, NULL, '', NULL, NULL),
(299, 'ec_cuentas_por_pagar', 0, 'NO', 'abonado', 'Abonado', 4, 'FLOAT', 0, 1, 0, 0, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, NULL, '', NULL, NULL),
(300, 'ec_cuentas_por_pagar', 0, 'NO', 'dias_pago', 'Días para pago', 5, 'INT', 0, 1, 1, 0, '1', 'barra_dos', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL),
(301, 'ec_cuentas_por_pagar', 0, 'NO', 'fecha_ultimo_pago', 'Fecha de ultimo pago', 6, 'DATE', 0, 1, 0, 1, '', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(302, 'ec_cuentas_por_pagar', 0, 'NO', 'id_oc', 'Orden de compra', 7, 'BUSCADOR', 0, 1, 0, 0, '-1', 'barra', 15, 'SELECT id_orden_compra, folio FROM ec_ordenes_compra\r\n', 'SELECT id_orden_compra, folio FROM ec_ordenes_compra WHERE id_orden_compra=', 'ORDER BY folio', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(303, 'ec_cuentas_por_pagar', 0, 'NO', 'id_nc', 'Nota de cargo', 8, 'BUSCADOR', 0, 1, 0, 0, '-1', 'barra', 15, 'SELECT id_nota_cargo, folio FROM ec_nota_cargo\r\n', 'SELECT id_nota_cargo, folio FROM ec_nota_cargo WHERE id_nota_cargo=', 'ORDER BY folio', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(304, 'ec_cuentas_por_pagar', 0, 'NO', 'id_sucursal', 'Sucursal', 9, 'COMBO', 0, 0, 1, 1, '$SUCURSAL', 'barra_tres', 11, 'SELECT id_sucursal, nombre FROM sys_sucursales WHERE 1', ' AND id_sucursal=1', ' ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(305, 'ec_cuentas_por_cobrar', 0, 'NO', 'id_cxc', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(306, 'ec_cuentas_por_cobrar', 0, 'NO', 'id_cliente', 'Cliente', 2, 'BUSCADOR', 0, 1, 0, 1, NULL, 'barra', 20, 'SELECT id_cliente, nombre FROM ec_clientes WHERE nombre LIKE \'%$LLAVE%\' OR id_cliente = \'$LLAVE\'', 'SELECT id_cliente, nombre FROM ec_clientes WHERE id_cliente=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(307, 'ec_cuentas_por_cobrar', 0, 'NO', 'monto', 'Monto', 3, 'FLOAT', 0, 1, 0, 0, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, NULL, '', NULL, NULL),
(308, 'ec_cuentas_por_cobrar', 0, 'NO', 'abonado', 'Abonado', 4, 'FLOAT', 0, 1, 0, 0, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, NULL, '', NULL, NULL),
(309, 'ec_cuentas_por_cobrar', 0, 'NO', 'dias_pago', 'Días para cobro', 5, 'INT', 0, 1, 1, 0, '1', 'barra_dos', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL),
(310, 'ec_cuentas_por_cobrar', 0, 'NO', 'fecha_ultimo_cobro', 'Fecha de ultimo cobro', 6, 'DATE', 0, 1, 0, 1, '', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(311, 'ec_cuentas_por_cobrar', 0, 'NO', 'id_pedido', 'Pedido', 7, 'BUSCADOR', 0, 1, 0, 0, '-1', 'barra', 15, 'SELECT id_pedido, folio_pedido FROM ec_pedido\r\n', 'SELECT id_pedido, folio_pedido FROM ec_pedidos WHERE id_pedido=', 'ORDER BY folio_pedido', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(312, 'ec_cuentas_por_cobrar', 0, 'NO', 'id_nc', 'Nota de cargo', 8, 'BUSCADOR', 0, 1, 0, 0, '-1', 'barra', 15, 'SELECT id_nota_cargo, folio FROM ec_nota_cargo\r\n', 'SELECT id_nota_cargo, folio FROM ec_nota_cargo WHERE id_nota_cargo=', 'ORDER BY folio', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(313, 'ec_cuentas_por_cobrar', 0, 'NO', 'id_sucursal', 'Sucursal', 9, 'COMBO', 0, 0, 1, 1, '$SUCURSAL', 'barra_tres', 11, 'SELECT id_sucursal, nombre FROM sys_sucursales WHERE 1', ' AND id_sucursal=1', ' ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(314, 'ec_cuentas', 0, 'NO', 'id_cuenta', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(315, 'ec_cuentas', 0, 'NO', 'id_banco', 'Banco', 2, 'COMBO', 0, 1, 1, 1, '1', 'barra_tres', 11, 'SELECT\r\nid_banco,\r\nnombre\r\nFROM ec_bancos\r\nWHERE 1', 'AND id_banco=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(316, 'ec_cuentas', 0, 'NO', 'nombre', 'Nombre', 3, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 60, NULL, NULL, NULL, NULL),
(317, 'ec_cuentas', 0, 'NO', 'no_cuenta', 'No. de cuentas', 4, 'CHAR', 0, 1, 1, 0, NULL, 'barra_dos', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 30, NULL, NULL, NULL, NULL),
(318, 'ec_cuentas', 0, 'NO', 'observaciones', 'Observaciones', 5, 'CHAR', 0, 1, 1, 0, NULL, 'barra_dos', 255, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1500, NULL, NULL, NULL, NULL),
(319, 'ec_cuentas', 0, 'NO', 'id_sucursal', 'Sucursal', 6, 'COMBO', 0, 0, 1, 1, '$SUCURSAL', 'barra_tres', 11, 'SELECT id_sucursal, nombre FROM sys_sucursales WHERE 1', ' AND id_sucursal=1', ' ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(320, 'sys_razones_sociales', 0, 'NO', 'id_razon_social', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(321, 'sys_razones_sociales', 0, 'NO', 'rfc', 'RFC', 2, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 13, NULL, NULL, NULL, NULL),
(322, 'sys_razones_sociales', 0, 'NO', 'razon_social', 'Razón social', 3, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 80, NULL, NULL, NULL, NULL),
(323, 'sys_razones_sociales', 0, 'NO', 'calle', 'Calle', 4, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 80, NULL, NULL, NULL, NULL),
(324, 'sys_razones_sociales', 0, 'NO', 'no_int', 'No. int', 5, 'CHAR', 0, 1, 1, 0, NULL, 'barra_dos', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, NULL, NULL, NULL, NULL),
(325, 'sys_razones_sociales', 0, 'NO', 'no_ext', 'No. exterior', 6, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, NULL, NULL, NULL, NULL),
(326, 'sys_razones_sociales', 0, 'NO', 'colonia', 'Colonia', 7, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 80, NULL, NULL, NULL, NULL),
(327, 'sys_razones_sociales', 0, 'NO', 'del_municipio', 'Del. o municipio', 8, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 40, NULL, NULL, NULL, NULL),
(328, 'sys_razones_sociales', 0, 'NO', 'cp', 'CP', 9, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(329, 'sys_razones_sociales', 0, 'NO', 'id_pais', 'País', 10, 'COMBO', 0, 1, 1, 1, NULL, 'barra_tres', 11, 'SELECT id_pais, nombre FROM sys_paises WHERE 1', ' AND id_pais=', ' ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(330, 'sys_razones_sociales', 0, 'NO', 'id_estado', 'Estado', 11, 'COMBO', 0, 1, 1, 1, NULL, 'barra_tres', 11, 'SELECT id_estado, nombre FROM sys_estados WHERE 1', ' AND id_estado=', ' ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(331, 'ec_tipos_pago', 0, 'NO', 'id_tipo_pago', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(332, 'ec_tipos_pago', 0, 'NO', 'nombre', 'Nombre', 2, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 40, NULL, NULL, NULL, NULL),
(333, 'ec_tipos_pago', 0, 'NO', 'id_cuenta', 'Cuenta', 3, 'COMBO', 0, 1, 1, 1, NULL, 'barra_tres', 11, 'SELECT id_cuenta, nombre FROM ec_cuentas WHERE 1', ' AND id_cuenta=', ' ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(334, 'ec_tipos_pago', 0, 'NO', 'id_sucursal', 'Sucursal', 4, 'COMBO', 0, 0, 1, 1, '$SUCURSAL', 'barra_tres', 11, 'SELECT id_sucursal, nombre FROM sys_sucursales WHERE 1', ' AND id_sucursal=1', ' ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(335, 'ec_bancos', 0, 'NO', 'id_banco', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(336, 'ec_bancos', 0, 'NO', 'nombre', 'Nombre', 2, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 40, NULL, NULL, NULL, NULL),
(337, 'ec_monedas', 0, 'NO', 'id_moneda', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(338, 'ec_monedas', 0, 'NO', 'nombre', 'Nombre', 2, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 40, NULL, NULL, NULL, NULL),
(339, 'ec_monedas', 0, 'NO', 'cambio', 'Cambio', 3, 'FLOAT', 0, 1, 1, 1, '0', 'barra_tres', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(340, 'ec_pedidos', 3, 'NO', 'id_pedido', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(341, 'ec_pedidos', 3, 'NO', 'folio_factura', 'Folio', 2, 'CHAR', 0, 1, 0, 1, NULL, 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, NULL, NULL, NULL, NULL),
(342, 'ec_pedidos', 3, 'NO', 'id_cliente', 'Cliente', 3, 'BUSCADOR', 0, 1, 0, 1, '', 'barra', 20, 'SELECT id_cliente, nombre FROM ec_clientes WHERE nombre LIKE \'%$LLAVE%\' OR id_cliente = \'$LLAVE\'', 'SELECT id_cliente, nombre FROM ec_clientes WHERE id_cliente=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(343, 'ec_pedidos', 3, 'NO', 'fecha_factura', 'Fecha', 6, 'DATE', 0, 1, 0, 1, '', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(344, 'ec_pedidos', 3, 'NO', 'id_moneda', 'Moneda', 7, 'COMBO', 0, 1, 0, 1, '1', 'barra', 15, 'SELECT id_moneda, nombre FROM ec_monedas WHERE 1', 'AND id_moneda=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(345, 'ec_pedidos', 3, 'NO', 'subtotal', 'Subtotal', 8, 'FLOAT', 0, 1, 0, 1, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(346, 'ec_pedidos', 3, 'NO', 'iva', 'IVA', 9, 'FLOAT', 0, 1, 0, 1, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(347, 'ec_pedidos', 3, 'NO', 'ieps', 'IEPS', 10, 'FLOAT', 0, 1, 0, 1, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(348, 'ec_pedidos', 3, 'NO', 'total', 'Total', 11, 'FLOAT', 0, 1, 0, 1, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(349, 'ec_pedidos', 3, 'NO', 'id_usuario', 'Creada por', 12, 'COMBO', 0, 1, 0, 1, '$USUARIO', 'barra', 11, 'SELECT id_usuario, CONCAT(nombre, \' \', apellido_paterno) FROM sys_users WHERE 1', 'AND id_usuario=', 'ORDER BY CONCAT(nombre, \' \', apellido_paterno)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(350, 'ec_pedidos', 3, 'NO', 'id_razon_social', 'Razón social', 4, 'COMBO', 0, 1, 1, 1, '', 'barra', 11, 'SELECT id_cliente_rs, razon_social FROM ec_clientes_razones_sociales WHERE id_cliente=\'$llaveDep\'', 'AND id_cliente_rs=', 'ORDER BY razon_social', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, 342),
(351, 'ec_pendientes', 0, 'NO', 'id_pendiente', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(352, 'ec_pendientes', 0, 'NO', 'descripcion', 'Descripción', 2, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 40, NULL, NULL, NULL, NULL),
(353, 'ec_pendientes', 0, 'NO', 'id_prioridad', 'Prioridad', 3, 'COMBO', 0, 1, 1, 1, NULL, 'barra_tres', 11, 'SELECT id_prioridad, nombre FROM ec_prioridades WHERE 1', ' AND id_prioridad=', ' ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(354, 'ec_pendientes', 0, 'NO', 'fecha', 'Fecha', 4, 'DATE', 0, 1, 1, 1, '$DATE', 'barra_tres', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(355, 'ec_pendientes', 0, 'NO', 'hora', 'Hora', 5, 'TIME', 0, 1, 1, 1, '', 'barra_dos', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 8, NULL, NULL, NULL, NULL),
(356, 'ec_pendientes', 0, 'NO', 'id_usuario', 'Asignado a', 6, 'COMBO', 0, 1, 1, 0, '$USUARIO', 'barra_dos', 11, 'SELECT id_usuario, CONCAT(nombre, \' \', apellido_paterno) FROM sys_users WHERE 1', 'AND id_usuario=', 'ORDER BY CONCAT(nombre, \' \', apellido_paterno)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(357, 'ec_pendientes', 0, 'NO', 'id_usuario', 'Creado por', 7, 'COMBO', 0, 1, 0, 1, '$USUARIO', 'barra', 11, 'SELECT id_usuario, CONCAT(nombre, \' \', apellido_paterno) FROM sys_users WHERE 1', 'AND id_usuario=', 'ORDER BY CONCAT(nombre, \' \', apellido_paterno)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(358, 'ec_pendientes', 0, 'NO', 'activo', 'Realizado', 8, 'BINARY', 0, 1, 1, 0, NULL, 'barra_dos', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL),
(359, 'ec_pendientes', 0, 'NO', 'id_sucursal', 'Sucursal', 9, 'COMBO', 0, 0, 1, 1, '$SUCURSAL', 'barra_tres', 11, 'SELECT id_sucursal, nombre FROM sys_sucursales WHERE 1', ' AND id_sucursal=1', ' ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(360, 'ec_prioridades', 0, 'NO', 'id_prioridad', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(361, 'ec_prioridades', 0, 'NO', 'descripcion', 'Nombre', 2, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 40, NULL, NULL, NULL, NULL),
(362, 'ec_prioridades', 0, 'NO', 'importancia', 'Importancia', 3, 'INT', 0, 1, 1, 1, '1', 'barra_tres', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL),
(363, 'ec_maquila', 0, 'NO', 'id_maquila', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(364, 'ec_maquila', 0, 'NO', 'folio', 'Folio', 2, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, NULL, NULL, NULL, NULL),
(365, 'ec_maquila', 0, 'NO', 'fecha', 'Fecha', 3, 'DATE', 0, 1, 0, 1, '$DATE', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(366, 'ec_maquila', 0, 'NO', 'id_usuario', 'Creada por', 4, 'COMBO', 0, 1, 0, 1, '$USUARIO', 'barra', 11, 'SELECT id_usuario, CONCAT(nombre, \' \', apellido_paterno) FROM sys_users WHERE 1', 'AND id_usuario=', 'ORDER BY CONCAT(nombre, \' \', apellido_paterno)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(367, 'ec_maquila', 0, 'NO', 'id_producto', 'Producto', 5, 'COMBO', 0, 1, 1, 1, NULL, 'barra_tres', 11, 'SELECT -1 AS id_productos,\r\n\'---- Selecciona un producto ----\' AS nombre\r\nUNION\r\nSELECT id_productos, nombre FROM ec_productos WHERE  id_productos > 0 AND es_maquilado=1 ', 'AND id_productos=\'\'', ' ORDER BY nombre', NULL, NULL, NULL, 'cambiaMaquila(this.value)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(368, 'ec_maquila', 0, 'NO', 'cantidad', 'Cantidad', 6, 'FLOAT', 0, 1, 1, 1, NULL, 'barra_tres', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(369, 'ec_maquila', 0, 'NO', 'id_sucursal', 'Sucursal', 7, 'COMBO', 0, 0, 1, 1, '$SUCURSAL', 'barra_tres', 11, 'SELECT id_sucursal, nombre FROM sys_sucursales WHERE 1', ' AND id_sucursal=1', ' ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(370, 'ec_pedidos', 4, 'NO', 'id_pedido', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(371, 'ec_pedidos', 4, 'NO', 'folio_pedido', 'Folio', 2, 'CHAR', 0, 1, 0, 0, NULL, 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, NULL, NULL, NULL, NULL),
(372, 'ec_pedidos', 4, 'NO', 'id_cliente', 'Cliente', 3, 'BUSCADOR', 0, 1, 0, 1, '', 'barra', 20, 'SELECT id_cliente, nombre FROM ec_clientes WHERE nombre LIKE \'%$LLAVE%\' OR id_cliente = \'$LLAVE\'', 'SELECT id_cliente, nombre FROM ec_clientes WHERE id_cliente=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(373, 'ec_pedidos', 4, 'NO', 'id_estatus', 'Estatus', 4, 'COMBO', 0, 1, 0, 1, '1', 'barra_tres', 11, 'SELECT id_estatus, nombre FROM ec_estatus_pedido WHERE 1', 'AND id_estatus=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(374, 'ec_pedidos', 4, 'NO', 'fecha_alta', 'Fecha', 5, 'DATE', 0, 1, 0, 1, '$DATE', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(375, 'ec_pedidos', 4, 'NO', 'id_direccion', 'Dirección de entrega', 6, 'COMBO', 0, 1, 0, 1, '-1', 'barra', 11, 'SELECT id_clientes_de, CONCAT(calle, \' #\', no_ext, \', Col. \', colonia) FROM ec_clientes_domentrega WHERE 1', 'AND id_clientes_de=', 'ORDER BY CONCAT(calle, \' #\', no_ext, \', Col. \', colonia)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(376, 'ec_pedidos', 4, 'NO', 'direccion', 'Dirección', 7, 'CHAR', 0, 1, 0, 0, NULL, 'barra', 255, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1500, NULL, NULL, NULL, NULL),
(383, 'ec_movimiento_almacen', 0, 'NO', 'id_maquila', 'Maquila', 10, 'BUSCADOR', 0, 1, 0, 0, '-1', 'barra', 15, 'SELECT\nid_maquila,\nfolio\nFROM\n(\nSELECT id_maquila, folio FROM ec_maquila\nUNION\nSELECT -1 AS id_maquila, \'No aplica\' AS folio\n)aux', 'SELECT\r\nid_maquila,\r\nfolio\r\nFROM\r\n(\r\nSELECT id_maquila, folio FROM ec_maquila\r\nUNION\r\nSELECT -1 AS id_maquila, \'No aplica\' AS folio\r\n)aux WHERE id_maquila=', 'ORDER BY folio', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(384, 'sys_sucursales', 0, 'NO', 'logo', 'Logo', 7, 'FILE', 0, 1, 1, 0, NULL, 'barra_dos', 40, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(385, 'ec_pedidos', 0, 'NO', 'id_tipo_envio', 'Forma de envio', 13, 'COMBO', 0, 1, 1, 1, '', 'barra_tres', 11, 'SELECT id_tipo_envio, nombre FROM ec_tipos_envio WHERE 1', 'AND id_tipo_envio=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(386, 'ec_pedidos', 1, 'NO', 'id_tipo_envio', 'Forma de envio', 14, 'COMBO', 0, 1, 1, 1, '', 'barra_tres', 11, 'SELECT id_tipo_envio, nombre FROM ec_tipos_envio WHERE 1', 'AND id_tipo_envio=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(387, 'ec_pedidos', 3, 'NO', 'facturado', 'facturado', 13, 'BINARY', 0, 0, 0, 0, '1', 'barra', 11, '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(388, 'ec_pedidos', 2, 'NO', 'id_tipo_envio', 'Forma de envio', 16, 'INT', 0, 0, 0, 1, '1', 'barra_tres', 11, '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(389, 'ec_conf_oc', 0, 'NO', 'folio_editable', 'Folio editable', 5, 'BINARY', 0, 1, 1, 1, '1', 'barra_tres', 1, NULL, NULL, NULL, NULL, NULL, 'cambiaEd(this)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(390, 'ec_conf_oc', 0, 'NO', 'prefijo_folio', 'Prefijo', 6, 'CHAR', 0, 1, 0, 0, '', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(391, 'ec_conf_oc', 0, 'NO', 'contador_folio', 'Ultimo folio', 7, 'INT', 0, 1, 0, 0, '-1', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(392, 'ec_acreedor', 0, 'NO', 'id_acreedor', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(393, 'ec_acreedor', 0, 'NO', 'nombre', 'Nombre', 2, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 40, NULL, NULL, NULL, NULL),
(394, 'ec_acreedor', 0, 'NO', 'rfc', 'RFC', 3, 'CHAR', 0, 1, 1, 0, NULL, 'barra_dos', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 15, NULL, NULL, NULL, NULL),
(395, 'ec_acreedor', 0, 'NO', 'razon_social', 'Razón social', 4, 'CHAR', 0, 1, 1, 0, NULL, 'barra_dos', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 120, NULL, NULL, NULL, NULL),
(396, 'ec_acreedor', 0, 'NO', 'calle', 'Calle', 5, 'CHAR', 0, 1, 1, 0, NULL, 'barra_dos', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 120, NULL, NULL, NULL, NULL),
(397, 'ec_acreedor', 0, 'NO', 'no_int', 'No. interior', 6, 'CHAR', 0, 1, 1, 0, NULL, 'barra_dos', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, NULL, NULL, NULL, NULL),
(398, 'ec_acreedor', 0, 'NO', 'no_ext', 'No. Exterior', 7, 'CHAR', 0, 1, 1, 0, NULL, 'barra_dos', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, NULL, NULL, NULL, NULL),
(399, 'ec_acreedor', 0, 'NO', 'colonia', 'Colonia', 8, 'CHAR', 0, 1, 1, 0, NULL, 'barra_dos', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 60, NULL, NULL, NULL, NULL),
(400, 'ec_acreedor', 0, 'NO', 'delegacion', 'Delegación/Municipio', 9, 'CHAR', 0, 1, 1, 0, NULL, 'barra_dos', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 60, NULL, NULL, NULL, NULL),
(401, 'ec_acreedor', 0, 'NO', 'cp', 'CP', 10, 'CHAR', 0, 1, 1, 0, NULL, 'barra_dos', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(402, 'ec_acreedor', 0, 'NO', 'id_pais', 'País', 11, 'COMBO', 0, 1, 1, 1, NULL, 'barra_tres', 11, 'SELECT id_pais, nombre FROM sys_paises WHERE 1', ' AND id_pais=', ' ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(403, 'ec_acreedor', 0, 'NO', 'id_estado', 'Estado', 12, 'COMBO', 0, 1, 1, 1, NULL, 'barra_tres', 11, 'SELECT id_estado, nombre FROM sys_estados WHERE id_pais=\'$llaveDep\'', 'AND id_estado=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, 402),
(404, 'ec_acreedor', 0, 'NO', 'id_sucursal', 'Sucursal', 13, 'COMBO', 0, 0, 1, 1, '$SUCURSAL', 'barra_tres', 11, 'SELECT id_sucursal, nombre FROM sys_sucursales WHERE 1', ' AND id_sucursal=1', ' ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(405, 'ec_gastos_impuestos', 0, 'NO', 'id_gasto_impuesto', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(406, 'ec_gastos_impuestos', 0, 'NO', 'nombre', 'Nombre', 2, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 40, NULL, NULL, NULL, NULL),
(407, 'ec_clientes', 0, 'NO', 'monto_desc', 'Monto de descuento', 10, 'FLOAT', 0, 1, 1, 0, '0', 'barra_dos', 15, NULL, NULL, NULL, NULL, NULL, NULL, '', 'documento.getElementById(\'porc_desc\').value=0;', NULL, '', 12, NULL, NULL, NULL, NULL),
(408, 'ec_clientes', 0, 'NO', 'porc_desc', 'Porcentaje de descuento', 11, 'FLOAT', 0, 1, 1, 0, '0', 'barra_dos', 15, NULL, NULL, NULL, NULL, NULL, NULL, 'documento.getElementById(\'monto_desc\').value=0', NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(409, 'ec_clientes', 0, 'NO', 'min_compra_desc', 'Mínimo de compra para descuento', 12, 'FLOAT', 0, 1, 1, 0, '0', 'barra_dos', 15, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(410, 'ec_pedidos', 0, 'NO', 'descuento', 'Descuento', 9, 'FLOAT', 0, 1, 0, 1, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(411, 'ec_pedidos', 1, 'NO', 'descuento', 'Descuento', 10, 'FLOAT', 0, 1, 0, 1, '0', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 12, NULL, NULL, NULL, NULL),
(412, 'ec_transferencias', 0, 'NO', 'id_transferencia', 'ID', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(413, 'ec_transferencias', 0, 'NO', 'id_usuario', 'Creada por', 2, 'COMBO', 0, 1, 0, 1, '$USUARIO', 'barra', 11, 'SELECT id_usuario, CONCAT(nombre, \' \', apellido_paterno) FROM sys_users WHERE 1', 'AND id_usuario=', 'ORDER BY CONCAT(nombre, \' \', apellido_paterno)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(414, 'ec_transferencias', 0, 'NO', 'fecha', 'Fecha', 3, 'DATE', 0, 1, 0, 1, '$DATE', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10, NULL, NULL, NULL, NULL),
(415, 'ec_transferencias', 0, 'NO', 'hora', 'Hora', 4, 'TIME', 0, 1, 0, 1, '$TIME', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 8, NULL, NULL, NULL, NULL),
(416, 'ec_transferencias', 0, 'NO', 'id_sucursal_origen', 'Sucursal origen', 6, 'COMBO', 0, 1, 1, 1, NULL, 'barra_tres', 1, 'SELECT\r\nid_sucursal,\r\nnombre\r\nFROM sys_sucursales\r\nWHERE 1', 'AND id_sucursal=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(417, 'ec_transferencias', 0, 'NO', 'id_sucursal_destino', 'Sucursal destino', 8, 'COMBO', 0, 1, 1, 1, NULL, 'barra_tres', 1, 'SELECT\nid_sucursal,\nnombre\nFROM sys_sucursales\nWHERE 1', 'AND id_sucursal=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(418, 'ec_pedidos', 3, 'NO', 'id_razon_factura', 'Razón social de facturacion', 5, 'COMBO', 0, 1, 1, 1, '', 'barra', 11, 'SELECT id_razon_social,razon_social FROM sys_razones_sociales WHERE 1 ', 'AND id_razon_social=', 'ORDER BY razon_social', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, 0),
(419, 'sys_sucursales', 0, 'NO', 'multifacturacion', 'Multifacturación', 9, 'BINARY', 0, 1, 1, 1, '0', 'barra_tres', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(420, 'ec_productos', 0, 'NO', 'desc_gral', 'Descuento general', 0, 'BINARY', 0, 0, 1, 1, '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(421, 'ec_clientes_productos', 0, 'NO', 'desc_gral', 'Descuento general', 1, '', 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(423, 'ec_transferencias', 0, 'NO', 'id_razon_social_venta', 'Razón social cliente', 100, 'BUSCADOR', 0, 0, 1, 0, '-1', NULL, 11, 'SELECT id_cliente_rs, razon_social\nFROM ec_clientes_razones_sociales WHERE razon_social LIKE \'%id%\'', 'SELECT id_cliente_rs, razon_social FROM ec_clientes_razones_sociales WHERE id_cliente_rs = ', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(424, '', 0, 'NO', '', '', 0, 'CAMPO BUSCADOR', 0, 1, 1, 0, NULL, NULL, NULL, 'SELECT\nid_razon_social_venta,\nid_razon_social_venta\nFROM\n(\nSELECT id_razon_social_venta, id_razon_social_venta FROM ec_transferencias\nUNION\nSELECT -1 AS id_razon_social_venta, \'No aplica\' AS id_razon_social_venta\n)aux', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(425, '', 0, 'NO', '', '', 0, 'CAMPO BUSCADOR', 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(426, 'ec_transferencias', 0, 'NO', 'id_razon_social_compra', 'Razón social proveedor', 100, 'BUSCADOR', 0, 0, 1, 0, '1', NULL, 11, 'SELECT id_proveedor, razon_social\nFROM ec_proveedor WHERE razon_social LIKE \'%id%\'', 'SELECT id_proveedor, razon_social FROM ec_proveedor WHERE id_proveedor = ', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(427, 'ec_transferencias', 0, 'NO', 'facturable', 'Facturable', 100, 'BINARY', 0, 0, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(428, 'ec_transferencias', 0, 'NO', 'porc_ganancia', 'Porcentaje de la ganancia', 100, 'FLOAT', 0, 0, 1, 0, NULL, 'barra_tres', 8, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 15, NULL, NULL, NULL, NULL),
(429, 'ec_comparacion_inv', 0, 'NO', 'id_comparacion_inv', 'ID', 1, 'INT', 0, 1, 1, 0, NULL, 'barra', 10, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(430, 'ec_comparacion_inv', 0, 'NO', 'id_usuario', 'Usuario', 2, 'COMBO', 0, 1, 0, 0, '$USUARIO', 'barra', 15, 'SELECT id_usuario, CONCAT(nombre, \' \', apellido_paterno) FROM sys_users WHERE 1', 'AND id_usuario=', 'ORDER BY CONCAT(nombre, \' \', apellido_paterno)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(431, 'ec_comparacion_inv', 0, 'NO', 'id_sucursal', 'Sucursal', 3, 'COMBO', 0, 1, 0, 0, '$SUCURSAL', 'barra', 15, 'SELECT\nid_sucursal,\nnombre\nFROM sys_sucursales\nWHERE 1\n', 'AND id_sucursal=', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(432, 'ec_comparacion_inv', 0, 'NO', 'fecha', 'Fecha', 4, 'DATE', 0, 1, 0, 0, '$DATE', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(433, 'ec_comparacion_inv', 0, 'NO', 'hora', 'Hora', 5, 'TIME', 0, 1, 0, 0, '$TIME', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 8, NULL, NULL, NULL, NULL),
(434, 'ec_devolucion', 0, 'NO', 'id_devolucion', 'ID', 1, 'INT', 1, 1, 0, 0, '(automatico)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(435, 'ec_devolucion', 0, 'NO', 'id_usuario', 'Usuario', 3, 'COMBO', 0, 1, 0, 1, '$USUARIO', 'barra', 15, 'SELECT id_usuario, CONCAT(nombre,\'\',apellido_paterno)FROM sys_users\nWHERE 1\n\n', 'AND id_usuario=', 'ORDER BY CONCAT(nombre, \' \', apellido_paterno)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(436, 'ec_devolucion', 0, 'NO', 'fecha', 'Fecha', 3, 'DATE', 0, 1, 0, 0, '$DATE', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(437, 'ec_devolucion', 0, 'NO', 'id_sucursal', 'Sucursal', 3, 'COMBO', 0, 1, 0, 1, '$SUCURSAL', 'barra', 11, 'SELECT\nid_sucursal,\nnombre\nFROM sys_sucursales\nWHERE 1', 'AND id_sucursal=', 'ORDER BY id_sucursal', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(438, 'ec_devolucion', 0, 'NO', 'hora', 'Hora', 5, 'TIME', 0, 1, 0, 0, '$TIME', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 8, NULL, NULL, NULL, NULL),
(439, 'ec_devolucion', 0, 'NO', 'id_pedido', 'Pedido', 6, 'BUSCADOR', 0, 1, 1, 0, NULL, 'barra_tres', 15, 'SELECT id_pedido, folio_pedido FROM ec_pedidos WHERE folio_pedido LIKE \'%$LLAVE%\' OR id_pedido=\'$LLAVE\'', 'SELECT id_pedido, folio_pedido FROM ec_pedidos WHERE folio_pedido=', 'ORDER BY folio_pedido', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(440, 'ec_devolucion', 0, 'NO', 'folio', 'Folio', 2, 'CHAR', 0, 1, 1, 0, NULL, 'barra_tres', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(441, 'ec_gastos', 0, 'NO', 'id_gastos', 'ID', 1, 'INT', 1, 1, 1, 0, '(Automatico)', 'barra', 10, 'SELECT\nid_gastos,\nnombre\nFROM ec_gastos\nWHERE 1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(442, 'ec_gastos', 0, 'NO', 'id_usuario', 'Usuario', 2, 'COMBO', 0, 1, 0, 0, '$USUARIO', 'barra', 15, 'SELECT\nid_usuario,\nnombre\nFROM sys_users\nWHERE 1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(443, 'ec_gastos', 0, 'NO', 'id_sucursal', 'Sucursal', 3, 'COMBO', 0, 1, 0, 0, '$SUCURSAL', 'barra', 15, 'SELECT\nid_sucursal,\nnombre\nFROM sys_sucursales\nWHERE 1', 'AND id_sucursal=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(444, 'ec_gastos', 0, 'NO', 'fecha', 'Fecha', 4, 'DATE', 0, 1, 0, 0, '$DATE', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(445, 'ec_gastos', 0, 'NO', 'hora', 'Hora', 5, 'TIME', 0, 1, 0, 0, '$TIME', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(446, 'ec_gastos', 0, 'NO', 'id_concepto', 'Concepto', 6, 'COMBO', 0, 1, 1, 0, NULL, 'barra_dos', 15, 'SELECT id_concepto, nombre\nFROM ec_conceptos_gastos\nWHERE 1 \n', 'AND id_concepto=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(447, 'ec_gastos', 0, 'NO', 'monto', 'Monto', 7, 'FLOAT', 0, 1, 1, 0, NULL, 'barra_tres', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(448, 'ec_gastos', 0, 'NO', 'observaciones', 'Observaciones', 8, 'CHAR', 0, 1, 1, 0, NULL, 'barra_tres', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 15, NULL, NULL, NULL, NULL),
(449, 'ec_conceptos_gastos', 0, 'NO', 'id_concepto', 'ID', 1, 'INT', 0, 1, 1, 0, '(Automatico)', 'barra', 11, 'SELECT id_concepto, nombre \nFROM ec_conceptos_gastos \nWHERE id_concepto=\'$llaveDep\'', 'AND id_concepto=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(450, 'ec_conceptos_gastos', 0, 'NO', 'nombre', 'Nombre', 2, 'CHAR', 0, 1, 1, 0, NULL, 'barra_dos', 15, 'SELECT id_concepto, nombre FROM ec_conceptos_gastos WHERE 1', 'AND id_concepto=', 'ORDER BY nombre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 60, NULL, NULL, NULL, NULL),
(453, 'ec_comparacion_inv', 0, 'NO', 'archivo', 'Archivo', 6, 'FILE', 0, 1, 1, 1, '', 'barra_dos', 20, '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, NULL, NULL),
(454, 'ec_subtipos', 0, 'NO', 'id_subtipos', 'ID', 1, 'INT', 0, 1, 0, 1, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(455, 'ec_subtipos', 0, 'NO', 'nombre', 'Nombre', 2, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(456, 'ec_subtipos', 0, 'NO', 'id_tipo', 'Tipo', 3, 'COMBO', 0, 1, 1, 0, NULL, 'barra_dos', 15, 'SELECT id_subcategoria, nombre FROM ec_subcategoria WHERE 1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(457, 'ec_numero_luces', 0, 'NO', 'id_numero_luces', 'ID', 1, 'INT', 0, 1, 0, 1, '(Automático)', 'barra', 15, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(458, 'ec_numero_luces', 0, 'NO', 'nombre', 'Nombre', 2, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

INSERT INTO `sys_catalogos` (`id_catalogo`, `tabla`, `no_tabla`, `tab`, `campo`, `display`, `orden`, `tipo`, `es_llave`, `visible`, `modificable`, `requerido`, `valor_inicial`, `clase`, `longitud`, `sql_combo`, `where_combo`, `order_combo`, `on_focus`, `on_blur`, `on_click`, `on_change`, `on_keypress`, `on_keydown`, `on_keyup`, `max_length`, `extensiones`, `especificacion`, `clase_esp`, `depende`) VALUES
(716, 'ec_clientes', 0, 'NO', 'regimenFiscal', 'Tipo de Régimen Fiscal', 18, 'COMBO', 0, 1, 1, 1, NULL, 'barra_tres', 11, 'SELECT\r\nclave_numerica,\r\nCONCAT( clave_numerica, \' - \', nombre_tipo_regimen_fiscal )\r\nFROM ec_tipos_regimenes_fiscales\r\nWHERE 1', 'AND clave_numerica= ', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(717, 'ec_motivos_cancelacion_factura', 0, 'NO', 'id_motivo', 'Id : ', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(718, 'ec_motivos_cancelacion_factura', 0, 'NO', 'clave_motivo_sat', 'Clave SAT : ', 2, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(719, 'ec_motivos_cancelacion_factura', 0, 'NO', 'descripcion', 'Descripcion : ', 3, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(720, 'ec_motivos_cancelacion_factura', 0, 'NO', 'orden', 'Orden : ', 4, 'INT', 0, 1, 1, 1, NULL, 'barra_dos', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(721, 'ec_motivos_cancelacion_factura', 0, 'NO', 'observaciones', 'Observaciones : ', 5, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(722, 'ec_productos', 0, 'NO', 'es_set', 'Es SET : ', 32, 'BINARY', 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(723, 'ec_sets', 0, 'NO', 'id_set', 'ID : ', 1, 'INT', 1, 1, 0, 0, '(Automático)', 'barra', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(724, 'ec_sets', 0, 'NO', 'nombre', 'Nombre Set :', 2, 'CHAR', 0, 1, 1, 1, NULL, 'barra_tres', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(728, 'ec_emisor', 0, 'NO', 'tipo_asignacion_productos', 'Asignación de productos en ventas :', 24, 'COMBO', 0, 1, 1, 1, NULL, 'barra_tres', NULL, 'SELECT\r\nax.tipo_asignacion,\r\nax.nombre_asignacion\r\nFROM(\r\n	( SELECT 0 AS tipo_asignacion, \'--Seleccionar--\' AS nombre_asignacion )\r\n    UNION\r\n	( SELECT \'directa\' AS tipo_asignacion, \'Directa\' AS nombre_asignacion )\r\n    UNION\r\n	( SELECT \'sets\' AS tipo_asignacion, \'Sets\' AS nombre_asignacion )\r\n)ax\r\nWHERE 1', 'AND ax.tipo_asignacion=', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(729, 'ec_configuracion_razon', 0, 'NO', 'id_ambiente', 'Ambiente : ', 2, 'COMBO', 0, 1, 1, 1, NULL, 'barra_tres', NULL, 'SELECT\r\nid_ambiente,\r\nnombre_ambiente\r\nFROM sys_ambientes_facturacion\r\nWHERE 1', 'AND id_ambiente = ', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_conf_pantalla`
--

CREATE TABLE `sys_conf_pantalla` (
  `id_configuracion_pantalla` int(11) NOT NULL,
  `id_plantilla` int(11) NOT NULL,
  `imagen_logo` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `sys_conf_pantalla`
--

INSERT INTO `sys_conf_pantalla` (`id_configuracion_pantalla`, `id_plantilla`, `imagen_logo`) VALUES
(1, 4, '');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_correos_avisos`
--

CREATE TABLE `sys_correos_avisos` (
  `id_correo_aviso` int(11) NOT NULL,
  `nombre` varchar(40) NOT NULL,
  `direccion` varchar(40) NOT NULL,
  `activo` tinyint(1) NOT NULL DEFAULT '1',
  `observaciones` text NOT NULL,
  `fecha_alta` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `ultima_modificacion` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Volcado de datos para la tabla `sys_correos_avisos`
--

INSERT INTO `sys_correos_avisos` (`id_correo_aviso`, `nombre`, `direccion`, `activo`, `observaciones`, `fecha_alta`, `ultima_modificacion`) VALUES
(1, 'VERONICA ESTRADA', 'veroes_7934@hotmail.com', 1, '', '2019-10-25 20:28:05', '2020-10-26 23:27:27');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_estados`
--

CREATE TABLE `sys_estados` (
  `id_estado` int(11) NOT NULL,
  `nombre` varchar(60) NOT NULL,
  `id_pais` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `sys_estados`
--

INSERT INTO `sys_estados` (`id_estado`, `nombre`, `id_pais`) VALUES
(1, 'Aguascalientes', 1),
(2, ' Baja California Norte', 1),
(3, ' Baja California Sur', 1),
(4, ' Campeche', 1),
(5, 'Coahuila', 1),
(6, 'Chiapas', 1),
(7, 'Chihuahua', 1),
(8, 'Durango', 1),
(9, ' Estado de México', 1),
(10, 'Guanajuato', 1),
(11, 'Guerrero', 1),
(12, 'Hidalgo', 1),
(13, 'Jalisco', 1),
(14, ' Michoacán', 1),
(15, 'Morelos', 1),
(16, ' México, D.F.', 1),
(17, ' Nayarit', 1),
(18, ' Nuevo León', 1),
(19, 'Oaxaca', 1),
(20, 'Puebla', 1),
(21, ' Querétaro', 1),
(22, ' Quintana Roo', 1),
(23, ' San Luis Potosí', 1),
(24, ' Sinaloa', 1),
(25, 'Sonora', 1),
(26, ' Tabasco', 1),
(27, ' Tamaulipas', 1),
(28, ' Tlaxcala', 1),
(29, 'Veracruz', 1),
(30, 'Yucatán', 1),
(31, 'Zacatecas', 1);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_grid`
--

CREATE TABLE `sys_grid` (
  `id_grid` int(11) UNSIGNED NOT NULL,
  `nombre` varchar(45) NOT NULL,
  `display` varchar(60) NOT NULL,
  `max_width` int(11) UNSIGNED DEFAULT NULL,
  `funcion_final` varchar(60) DEFAULT NULL,
  `tabla_relacionada` varchar(90) NOT NULL,
  `funcion_nuevo` text,
  `funcion_eliminar` text,
  `scroll` varchar(1) DEFAULT 'S',
  `alto` int(11) UNSIGNED NOT NULL DEFAULT '150',
  `datosGrid` text,
  `fileGrid` text,
  `footer` varchar(1) DEFAULT 'N',
  `listado` varchar(1) DEFAULT 'N',
  `tabla_padre` varchar(90) NOT NULL,
  `no_tabla` int(2) NOT NULL DEFAULT '0',
  `orden` int(3) UNSIGNED NOT NULL,
  `campo_llave` varchar(60) NOT NULL,
  `query` text,
  `filas_inicial` int(11) UNSIGNED DEFAULT '0',
  `funcion_despues_eliminar` text,
  `buscador` bit(1) NOT NULL DEFAULT b'0',
  `campo_coinc` text NOT NULL,
  `campo_enfoque` text NOT NULL,
  `consulta_coinc` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Volcado de datos para la tabla `sys_grid`
--

INSERT INTO `sys_grid` (`id_grid`, `nombre`, `display`, `max_width`, `funcion_final`, `tabla_relacionada`, `funcion_nuevo`, `funcion_eliminar`, `scroll`, `alto`, `datosGrid`, `fileGrid`, `footer`, `listado`, `tabla_padre`, `no_tabla`, `orden`, `campo_llave`, `query`, `filas_inicial`, `funcion_despues_eliminar`, `buscador`, `campo_coinc`, `campo_enfoque`, `consulta_coinc`) VALUES
(2, 'usuariosAccesos', 'Accesos', 1000, NULL, 'sys_permisos', 'false', 'false', 'S', 250, '../grid/datosGrid.php?tabla=sys_permisos&id=', '../grid/guardaGrid.php?tabla=sys_permisos&llave=', 'N', 'N', 'sys_users', 0, 1, 'id_usuario', 'SELECT\r\nIF(s.id_permiso IS NULL, \'NO\', s.id_permiso) AS id_permiso,\r\nIF(s.id_usuario IS NULL, CONCAT(\'$LL\',\'AVE\'), s.id_usuario) AS id_usuario,\r\nm.id_menu AS id_menu,\r\n(SELECT nombre FROM sys_menus WHERE id_menu=m.menu_padre),\r\nm.nombre AS nombre_permiso,\r\nIF(s.ver IS NULL, 0, s.ver) AS ver,\r\nIF(s.modificar IS NULL, 0, s.modificar) AS modificar,\r\nIF(s.eliminar IS NULL, 0, s.eliminar) AS eliminar,\r\nIF(s.nuevo IS NULL, 0, s.nuevo) AS nuevo,\r\nIF(s.imprimir IS NULL, 0, s.imprimir) AS imprimir,\r\nIF(s.generar IS NULL, 0, s.generar) AS generar\r\nFROM sys_menus m\r\nLEFT JOIN sys_permisos s ON m.id_menu = s.id_menu AND s.id_usuario=\'$llave\'\r\nWHERE m.en_permisos = 1\r\nAND m.id_menu != m.menu_padre\r\nAND m.menu_padre > 0\r\n', 0, NULL, b'0', '', '', ''),
(15, 'clientesRS', 'Razones sociales', 840, NULL, 'ec_clientes_razones_sociales', 'true', 'true', 'S', 250, '../grid/datosGrid.php?tabla=ec_clientes_razones_sociales&id=', '../grid/guardaGrid.php?tabla=ec_clientes_razones_sociales&llave=', 'S', 'N', 'ec_clientes', 0, 2, 'id_cliente', 'SELECT\r\nid_cliente_rs,\r\nid_cliente,\r\nrfc,\r\nrazon_social,\r\ncalle,\r\nno_int,\r\nno_ext,\r\ncolonia,\r\ndel_municipio,\r\ncp,\r\nlocalidad,\r\nreferencia,\r\nestado,\r\npais\r\nFROM ec_clientes_razones_sociales\r\nWHERE id_cliente=\'$llave\'', 0, NULL, b'0', '', '', ''),
(46, 'detalleMovimiento', 'Detalle de movimiento', 840, NULL, 'ec_detalle_movimiento', 'true', 'true', 'S', 250, '../grid/datosGrid.php?tabla=ec_detalle_movimiento&id=', '../grid/guardaGrid.php?tabla=ec_detalle_movimiento&llave=', 'S', 'N', 'ec_movimiento_inventario', 0, 1, 'id_movimiento_inventario', 'SELECT\r\nid_detalle_movimiento,\r\nid_movimiento_inventario,\r\nid_producto,\r\ncantidad\r\nFROM ec_detalle_movimiento\r\nWHERE id_movimiento_inventario =\'$llave\'', 0, NULL, b'0', '', '', ''),
(47, 'detalleVenta', 'Productos', 840, 'validaInventarios()', 'ec_detalle_venta', 'true', 'true', 'S', 250, '../grid/datosGrid.php?tabla=ec_detalle_venta&id=', '../grid/guardaGrid.php?tabla=ec_detalle_venta&llave=', 'S', 'N', 'ec_ventas', 0, 1, 'id_venta', 'SELECT\r\ndv.id_detalle_venta,\r\ndv.id_venta,\r\ndv.id_producto, \r\np.nombre,\r\np.nombre_etiqueta,\r\ndv.cantidad,\r\ndv.precio,\r\ndv.monto,\r\n\'-\'\r\nFROM ec_detalle_venta dv\r\nJOIN ec_productos p ON dv.id_producto = p.id_productos \r\nWHERE dv.id_venta =\'$llave\'', 0, 'TotalVentas()', b'1', 'p.nombre', '5|3', 'SELECT \n p.id_productos,\n CONCAT(p.nombre, \' ° \', p.nombre_etiqueta, \' ° inventario : \', sp.inventario)\nFROM ec_productos p\nLEFT JOIN ec_sucursal_producto sp ON p.id_productos = sp.id_producto WHERE :::'),
(50, 'detalleCompra', 'Detalle de compras', 840, NULL, 'ec_detalle_compra', 'true', 'actualizarC(1,\'#\')', 'S', 250, '../grid/datosGrid.php?tabla=ec_detalle_compra&id=', '../grid/guardaGrid.php?tabla=ec_detalle_compra&llave=', 'S', 'N', 'ec_oc', 0, 1, 'id_orden_compra', 'SELECT\ndc.id_compra_detalle,\ndc.id_orden_compra,\ndc.id_producto,\np.nombre,\np.nombre_etiqueta,\ndc.cantidad,\ndc.precio,\n\'\'\nFROM ec_detalle_compra dc\nLEFT JOIN ec_productos p ON p.id_productos=dc.id_producto\nWHERE dc.id_orden_compra =\'$llave\'', 0, 'actPrecComp()', b'1', 'nombre', '5|3', 'SELECT \r\n p.id_productos,\r\n CONCAT(p.nombre, \' ° \', p.nombre_etiqueta, \' ° inventario : \', sp.inventario)\r\nFROM ec_productos p\r\nLEFT JOIN ec_sucursal_producto sp ON p.id_productos = sp.id_producto WHERE :::'),
(51, 'limitesRS', 'Historial de límites de compra y venta', 1000, NULL, 'ec_limites_razon_social', 'true', 'true', 'S', 250, '../grid/datosGrid.php?tabla=ec_limites_razon_social&id=', '../grid/guardaGrid.php?tabla=ec_limites_razon_social&llave=', 'N', 'N', 'ec_emisor', 0, 1, 'id_emisor', 'SELECT\r\nid_limite_razon_social,\r\nid_emisor,\r\nid_usuario,\r\nperiodo,\r\nalerta_limite_compras,\r\nlimite_compras,\r\nalerta_limite_ventas,\r\nlimite_ventas,\r\nobservaciones\r\nFROM ec_limites_razon_social\r\nWHERE id_emisor=\'$llave\'', 0, NULL, b'0', '', '', ''),
(52, 'costumerContacts', 'Contactos de Razon Social', 1000, NULL, 'ec_clientes_contacto', 'true', 'false', 'S', 250, '../grid/datosGrid.php?tabla=ec_clientes_contacto&id=', '../grid/guardaGrid.php?tabla=ec_clientes_contacto&llave=', 'N', 'N', 'ec_clientes', 0, 2, 'id_cliente_facturacion', 'SELECT\r\nid_cliente_contacto,\r\nid_cliente_facturacion,\r\nnombre,\r\ntelefono,\r\ncelular,\r\ncorreo,\r\nuso_cfdi,\r\nfecha_alta,\r\nfecha_ultima_actualizacion,\r\nfolio_unico\r\nFROM ec_clientes_contacto\r\nWHERE id_cliente_facturacion = \'$llave\'', 0, NULL, b'0', '', '', ''),
(53, 'salePayments', 'Pagos de la venta', 1000, NULL, 'ec_venta_pagos', 'false', 'false', 'S', 250, '../grid/datosGrid.php?tabla=ec_venta_pagos&id=', '../grid/guardaGrid.php?tabla=ec_venta_pagos&llave=\r\n', 'N', 'N', 'ec_ventas', 0, 2, 'id_venta', 'SELECT\r\nid_venta_pago,\r\nid_venta,\r\nid_forma_pago,\r\nmonto,\r\nfecha_alta\r\nFROM ec_venta_pagos\r\nWHERE id_venta =\'$llave\'', 0, NULL, b'0', '', '', '');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_grid_detalle`
--

CREATE TABLE `sys_grid_detalle` (
  `id_grid_detalle` int(11) UNSIGNED NOT NULL,
  `id_grid` int(11) UNSIGNED NOT NULL,
  `display` varchar(45) NOT NULL,
  `campo_tabla` varchar(60) NOT NULL,
  `tipo` varchar(45) NOT NULL,
  `modificable` varchar(2) DEFAULT 'S',
  `mascara` varchar(50) DEFAULT NULL,
  `alineacion` varchar(10) DEFAULT NULL,
  `formula` text,
  `datosDB` text,
  `depende` varchar(10) DEFAULT NULL,
  `on_change` text,
  `largo_combo` int(3) UNSIGNED DEFAULT NULL,
  `sumatoria` varchar(1) DEFAULT 'N',
  `funcion_valida` text,
  `on_key` text,
  `valor_inicial` varchar(90) DEFAULT NULL,
  `requerido` varchar(1) DEFAULT 'N',
  `ancho` int(3) UNSIGNED NOT NULL,
  `html_value` text,
  `on_click` text,
  `orden` int(3) DEFAULT NULL,
  `multiseleccion` varchar(1) NOT NULL DEFAULT 'N'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Volcado de datos para la tabla `sys_grid_detalle`
--

INSERT INTO `sys_grid_detalle` (`id_grid_detalle`, `id_grid`, `display`, `campo_tabla`, `tipo`, `modificable`, `mascara`, `alineacion`, `formula`, `datosDB`, `depende`, `on_change`, `largo_combo`, `sumatoria`, `funcion_valida`, `on_key`, `valor_inicial`, `requerido`, `ancho`, `html_value`, `on_click`, `orden`, `multiseleccion`) VALUES
(6, 2, 'id_permiso', 'id_permiso', 'oculto', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, 'NO', 'N', 0, NULL, NULL, 1, 'N'),
(7, 2, 'id_usuario', 'id_usuario', 'oculto', 'N', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, '$LLAVE', 'N', 0, NULL, NULL, 2, 'N'),
(8, 2, 'id_menu', 'id_menu', 'oculto', 'N', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'S', 0, NULL, NULL, 3, 'N'),
(9, 2, 'Módulo', 'NO', 'texto', 'N', NULL, 'left', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 150, NULL, NULL, 4, 'N'),
(10, 2, 'Nombre', 'NO', 'texto', 'N', NULL, 'left', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 250, NULL, NULL, 5, 'N'),
(11, 2, 'Ver', 'ver', 'binario', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, '0', 'N', 70, NULL, NULL, 6, 'S'),
(12, 2, 'Modificar', 'modificar', 'binario', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, '0', 'N', 70, NULL, NULL, 7, 'S'),
(13, 2, 'Eliminar', 'eliminar', 'binario', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, '0', 'N', 70, NULL, NULL, 8, 'S'),
(14, 2, 'Nuevo', 'nuevo', 'binario', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, '0', 'N', 70, NULL, NULL, 9, 'S'),
(15, 2, 'Imprimir', 'imprimir', 'binario', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, '0', 'N', 70, NULL, NULL, 10, 'S'),
(16, 2, 'Generar', 'generar', 'binario', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, '0', 'N', 70, NULL, NULL, 10, 'S'),
(95, 15, 'id_cliente_rs', 'id_cliente_rs', 'oculto', 'N', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, 'NO', 'N', 0, NULL, NULL, 1, 'N'),
(96, 15, 'id_cliente', 'id_cliente', 'oculto', 'N', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, '$LLAVE', 'N', 0, NULL, NULL, 2, 'N'),
(97, 15, 'RFC', 'rfc', 'texto', 'S', NULL, 'left', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 90, NULL, NULL, 3, 'N'),
(98, 15, 'Razón social', 'razon_social', 'texto', 'S', NULL, 'left', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 150, NULL, NULL, 4, 'N'),
(99, 15, 'Calle', 'calle', 'texto', 'S', NULL, 'left', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 150, NULL, NULL, 5, 'N'),
(100, 15, 'No. int.', 'no_int', 'texto', 'S', NULL, 'left', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 50, NULL, NULL, 6, 'N'),
(101, 15, 'No. ext.', 'no_ext', 'texto', 'S', NULL, 'left', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 50, NULL, NULL, 7, 'N'),
(102, 15, 'Colonia', 'colonia', 'texto', 'S', NULL, 'left', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 150, NULL, NULL, 8, 'N'),
(103, 15, 'Del./Municipio', 'del_municipio', 'texto', 'S', NULL, 'left', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 150, NULL, NULL, 9, 'N'),
(104, 15, 'CP', 'cp', 'texto', 'S', NULL, 'left', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'S', 60, NULL, NULL, 9, 'N'),
(353, 47, 'ID', 'id_detalle_venta', 'oculto', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, 'NO', 'N', 0, NULL, NULL, 1, 'N'),
(354, 47, 'ID', 'id_venta', 'oculto', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, '$LLAVE', 'N', 150, NULL, NULL, 2, 'N'),
(355, 47, 'Id', 'id_producto', 'entero', 'N', NULL, 'center', NULL, 'SELECT \n	p.id_productos,\n 	CONCAT(p.nombre, \' ° \', p.nombre_etiqueta, \' ° inventario : \', sp.inventario)\nFROM ec_productos p\nLEFT JOIN ec_sucursal_producto sp ON p.id_productos = sp.id_producto\nWHERE (p.nombre LIKE \'%$LLAVE%\' OR p.id_productos = \'$LLAVE\')\nAND sp.id_sucursal = 1', 'null', 'cambiaDesc(\'#\', \'detalleVenta\', 2, 3,\'~\',\'___\',\'???\');getDatosC(\'#\');', NULL, 'N', NULL, NULL, NULL, 'N', 50, NULL, NULL, 3, 'N'),
(356, 47, 'Cantidad', 'cantidad', 'entero', 'S', NULL, NULL, NULL, NULL, NULL, 'TotalVentas()', NULL, 'N', NULL, NULL, '1', 'N', 100, NULL, NULL, 6, 'N'),
(357, 47, 'Precio', 'precio', 'decimal', 'S', '$#,###.##', NULL, NULL, NULL, NULL, 'TotalVentas()', NULL, 'N', NULL, NULL, NULL, 'N', 100, NULL, NULL, 7, 'N'),
(358, 47, 'Monto', 'monto', 'formula', 'N', '$#,###.##', NULL, '$Cantidad*$Precio', NULL, NULL, NULL, NULL, 'S', NULL, NULL, '0', 'N', 200, NULL, NULL, 8, 'N'),
(359, 50, 'ID', 'id_compra_detalle', 'oculto', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, 'NO', 'N', 0, NULL, NULL, 1, 'N'),
(360, 50, 'ID', 'id_orden_compra', 'oculto', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, '$LLAVE', 'N', 150, NULL, NULL, 2, 'N'),
(361, 50, 'Id', 'id_producto', 'entero', 'N', NULL, 'center', NULL, 'SELECT \n	p.id_productos,\n 	CONCAT(p.nombre, \' °  \', p.nombre_etiqueta, \' ° inventario : \', sp.inventario)\nFROM ec_productos p\nLEFT JOIN ec_sucursal_producto sp ON p.id_productos = sp.id_producto\nWHERE (p.nombre LIKE \'%$LLAVE%\' OR p.id_productos = \'$LLAVE\')\nAND sp.id_sucursal = 1', 'null', 'cambiaDesc(\'#\', \'detalleCompra\', 2, 3,\'~\',\'___\',\'???\');getDatosC(\'#\');actPrecComp();', NULL, 'N', NULL, NULL, NULL, 'N', 50, NULL, NULL, 3, 'N'),
(362, 50, 'Cantidad', 'cantidad', 'entero', 'S', NULL, NULL, NULL, NULL, NULL, 'actPrecComp()', NULL, 'N', NULL, NULL, '1', 'N', 100, NULL, NULL, 6, 'N'),
(363, 50, 'Precio', 'precio', 'decimal', 'S', '$#,###.##', NULL, NULL, NULL, NULL, 'actPrecComp()', NULL, 'N', NULL, NULL, NULL, 'N', 100, NULL, NULL, 7, 'N'),
(364, 50, 'Monto', 'NO', 'formula', 'N', '$#,###.##', NULL, '$Cantidad*$Precio', NULL, NULL, NULL, NULL, 'S', NULL, NULL, '0', 'N', 200, NULL, NULL, 8, 'N'),
(365, 46, 'ID', 'id_detalle_movimiento', 'oculto', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, 'NO', 'N', 0, NULL, NULL, 1, 'N'),
(366, 46, 'ID', 'id_movimiento_inventario', 'oculto', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, '$LLAVE', 'N', 150, NULL, NULL, 2, 'N'),
(367, 46, 'Producto', 'id_producto', 'combo', 'S', NULL, NULL, NULL, 'SELECT\r\nid_productos,\r\nCONCAT( id_productos, \' - \', nombre ) \r\nFROM ec_productos ', 'null', '', NULL, 'N', NULL, NULL, NULL, 'N', 300, NULL, NULL, 3, 'N'),
(368, 46, 'Cantidad', 'cantidad', 'entero', 'S', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, '1', 'N', 100, NULL, NULL, 4, 'N'),
(369, 15, 'Localidad', 'localidad', 'texto', 'S', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'S', 150, NULL, NULL, 9, 'N'),
(370, 15, 'Referencia', 'referencia', 'texto', 'S', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'S', 150, NULL, NULL, 9, 'N'),
(371, 15, 'Estado', 'estado', 'texto', 'S', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'S', 150, NULL, NULL, 9, 'N'),
(372, 15, 'País', 'pais', 'texto', 'S', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'S', 150, NULL, NULL, 9, 'N'),
(373, 47, 'Inventario', 'NO', 'decimal', 'N', '#,###', 'right', '', NULL, NULL, NULL, NULL, 'N', NULL, NULL, '0', 'N', 100, NULL, NULL, 9, 'N'),
(374, 51, 'ID', 'id_limite_razon_social', 'oculto', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, 'NO', 'N', 0, NULL, NULL, 1, 'N'),
(375, 51, 'ID', 'id_emisor', 'oculto', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, '$LLAVE', 'N', 0, NULL, NULL, 2, 'N'),
(376, 51, 'id_usuario', 'id_usuario', 'oculto', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, '$USUARIO', 'N', 0, NULL, NULL, 3, 'N'),
(377, 51, 'Año', 'periodo', 'entero', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'S', 70, NULL, NULL, 4, 'N'),
(378, 51, 'Alerta Compras', 'alerta_limite_compras', 'decimal', 'S', NULL, 'rigth', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'S', 100, NULL, NULL, 5, 'N'),
(379, 51, 'Límite Compras', 'limite_compras', 'decimal', 'S', NULL, 'right', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'S', 100, NULL, NULL, 6, 'N'),
(380, 51, 'Alerta Ventas', 'alerta_limite_ventas', 'decimal', 'S', NULL, 'right', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'S', 100, NULL, NULL, 7, 'N'),
(381, 51, 'Limite Ventas', 'limite_ventas', 'decimal', 'S', NULL, 'right', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'S', 100, NULL, NULL, 8, 'N'),
(382, 51, 'Observaciones', 'observaciones', 'texto', 'S', NULL, 'right', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 150, NULL, NULL, 9, 'N'),
(383, 47, 'Nombre', 'NO', 'texto', 'N', NULL, 'left', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 300, NULL, NULL, 4, 'N'),
(384, 50, 'Producto', 'NO', 'texto', 'N', NULL, 'left', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 300, NULL, NULL, 4, 'N'),
(385, 47, 'Nombre etiqueta', 'NO', 'CHAR', 'N', NULL, 'left', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 200, NULL, NULL, 5, 'N'),
(386, 50, 'Nombre etiqueta', 'NO', 'CHAR', 'N', NULL, 'left', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 200, NULL, NULL, 5, 'N'),
(387, 52, 'id', 'id_cliente_contacto', 'oculto', 'N', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 0, NULL, NULL, 1, 'N'),
(388, 52, 'id_cliente', 'id_cliente_facturacion', 'oculto', 'S', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, '$LLAVE', 'N', 0, NULL, NULL, 2, 'N'),
(389, 52, 'Nombre contacto', 'nombre', 'texto', 'S', NULL, 'left', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'S', 200, NULL, NULL, 3, 'N'),
(390, 52, 'Telefono', 'telefono', 'entero', 'S', NULL, 'right', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 120, NULL, NULL, 4, 'N'),
(391, 52, 'Celular', 'celular', 'entero', 'S', NULL, 'right', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 120, NULL, NULL, 5, 'N'),
(392, 52, 'Correo', 'correo', 'texto', 'S', NULL, 'right', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'S', 150, NULL, NULL, 6, 'N'),
(393, 52, 'CFDI', 'uso_cfdi', 'combo', 'S', NULL, 'center', NULL, 'SELECT\r\nid, \r\nnombre\r\nFROM ec_cfdi\r\nWHERE 1', 'null', NULL, NULL, 'N', NULL, NULL, NULL, 'N', 150, NULL, NULL, 7, 'N'),
(394, 52, 'Fecha Alta', 'fecha_alta', 'texto', 'N', NULL, 'right', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 100, NULL, NULL, 8, 'N'),
(395, 52, 'Fecha Act.', 'fecha_ultima_actualizacion', 'texto', 'N', NULL, 'right', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 100, NULL, NULL, 9, 'N'),
(396, 52, 'Folio Unico', 'folio_unico', 'texto', 'N', NULL, 'right', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 100, NULL, NULL, 10, 'N'),
(397, 53, 'id', 'id_venta_pago', 'oculto', 'N', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 0, NULL, NULL, 1, 'N'),
(398, 53, 'id_venta', 'id_venta', 'oculto', 'N', NULL, 'center', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 0, NULL, NULL, 2, 'N'),
(399, 53, 'Forma de pago', 'id_forma_pago', 'combo', 'N', NULL, 'left', NULL, 'SELECT\r\nid_forma_pago,\r\nnombre\r\nFROM ec_forma_pago\r\nWHERE 1', 'null', NULL, NULL, 'N', NULL, NULL, NULL, 'N', 200, NULL, NULL, 3, 'N'),
(400, 53, 'Monto', 'monto', 'decimal', 'N', NULL, 'right', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 150, NULL, NULL, 4, 'N'),
(401, 53, 'Fecha alta', 'NO', 'texto', 'N', NULL, 'left', NULL, NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, 'N', 200, NULL, NULL, 5, 'N');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_groups`
--

CREATE TABLE `sys_groups` (
  `id_grupo` int(11) UNSIGNED NOT NULL,
  `nombre` varchar(45) NOT NULL,
  `area` varchar(45) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_herramientas`
--

CREATE TABLE `sys_herramientas` (
  `id_herramienta` int(11) NOT NULL,
  `titulo` varchar(150) NOT NULL,
  `consulta` text NOT NULL,
  `descripcion` varchar(400) NOT NULL,
  `campo_filtro_sucursal` varchar(400) DEFAULT NULL,
  `campo_filtro_fecha1` varchar(400) DEFAULT NULL,
  `campo_filtro_fecha2` varchar(400) DEFAULT NULL,
  `campo_filtro_familia` varchar(400) DEFAULT NULL,
  `campo_filtro_tipo` varchar(400) DEFAULT NULL,
  `campo_filtro_subtipo` varchar(400) DEFAULT NULL,
  `campo_filtro_color` varchar(400) DEFAULT NULL,
  `campo_filtro_almacen` varchar(400) DEFAULT NULL,
  `campo_filtro_es_externo` varchar(400) DEFAULT NULL,
  `tipo_herramienta` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Volcado de datos para la tabla `sys_herramientas`
--

INSERT INTO `sys_herramientas` (`id_herramienta`, `titulo`, `consulta`, `descripcion`, `campo_filtro_sucursal`, `campo_filtro_fecha1`, `campo_filtro_fecha2`, `campo_filtro_familia`, `campo_filtro_tipo`, `campo_filtro_subtipo`, `campo_filtro_color`, `campo_filtro_almacen`, `campo_filtro_es_externo`, `tipo_herramienta`) VALUES
(1, 'DETALLE DE MOVIMIENTOS', 'SELECT\np.id_productos AS \'ID PRODUCTO\',\np.nombre AS \'PRODUCTO\',\np.precio_compra AS \'PRECIO COMPRA\',\ndv.precio AS \'PRECIO VENTA\',\ndv.monto AS \'MONTO\',\ndv.cantidad AS \'CANTIDAD\',\nv.fecha AS \'FECHA\',\nv.folio  AS \'FOLIO VENTA\',\nc.nombre AS RFC\nFROM ec_ventas v\nLEFT JOIN ec_detalle_venta dv\nON v.id_venta = dv.id_venta\nLEFT JOIN ec_productos p\nON p.id_productos = dv.id_producto\nLEFT JOIN ec_clientes c\nON c.id_cliente = v.id_cliente\nWHERE ( v.fecha BETWEEN \'$_FECHA_1\' AND \'$_FECHA_2\' )\nORDER BY p.id_productos, dv.precio', 'DETALLE DE MOVIMIENTOS', '', '$_FECHA_1||fecha||calendario(this);|fecha_1|Fecha inicio ventas:', '$_FECHA_2||fecha||calendario(this);|fecha_2|Fecha final ventas:', '', NULL, NULL, NULL, NULL, NULL, 'Consulta'),
(2, 'CONSULTA DE INVENTARIOS A UNA FECHA', 'SELECT\n  p.id_productos AS \'ID PRODUCTO\',\n  p.nombre AS \'PRODUCTO\',\n  p.inventarioInicial AS \'INVENTARIO INICIAL\',\n  SUM(\n  IF( dv.id_detalle_venta IS NOT NULL AND ( v.fecha BETWEEN \'$_FECHA_INICIAL\' AND \'$_FECHA_FINAL\' ), \n      dv.cantidad, \n      0\n    )\n  ) AS \'VENTAS\',\n  p.Movimientos AS \'MOVIMIENTOS\',\n  p.InvFin AS \'INVENTARIO FINAL\'\nFROM\n(\nSELECT\np.orden_lista,\np.id_productos,\np.nombre,\nSUM(\n  IF(m.fecha <= \'$_INV_INICIAL\',\n    IF(md.cantidad IS NULL, 0, tm.afecta*md.cantidad),\n    0\n  )\n) AS inventarioInicial,\nSUM(\n  IF(m.id_venta <> -1 AND m.fecha >= \'$_FECHA_INICIAL\' AND m.fecha <= \'$_FECHA_FINAL\',\n    IF(md.cantidad IS NULL, 0, tm.afecta*md.cantidad),\n    0\n  )\n) AS Movimientos,\nSUM(\n  IF(m.fecha <= \'$_INV_FINAL\',\n    IF(md.cantidad IS NULL, 0, md.cantidad*tm.afecta),\n    0\n  )\n) AS InvFin\nFROM ec_productos p\nLEFT JOIN ec_detalle_movimiento md ON p.id_productos = md.id_producto\nLEFT JOIN ec_movimiento_inventario m ON md.id_movimiento_inventario = m.id_movimiento_inventario\nLEFT JOIN ec_tipos_movimiento tm ON m.id_tipo_movimiento = tm.id_movimiento\nLEFT JOIN ec_ventas pdo ON m.id_venta = pdo.id_venta\nWHERE 1\nGROUP BY p.id_productos\n) p\nLEFT JOIN ec_detalle_venta dv\nON dv.id_producto = id_productos\nLEFT JOIN ec_ventas v\nON dv.id_venta = v.id_venta\nAND ( v.fecha BETWEEN \'$_FECHA_INICIAL\' AND \'$_FECHA_FINAL\' )\nWHERE 1\nGROUP BY p.id_productos\nORDER BY orden_lista', 'CONSULTA DE INVENTARIOS A UNA FECHA', NULL, '$_INV_INICIAL||fecha||calendario(this);|fecha_1|Fecha inicial de inventario:', '$_INV_FINAL||fecha||calendario(this);|fecha_2|Fecha final de inventario:', '$_FECHA_INICIAL||fecha||calendario(this);|fecha_3|Fecha de :', '$_FECHA_FINAL||fecha||calendario(this);|fecha_4|Fecha a :', NULL, NULL, NULL, NULL, 'Consulta'),
(3, 'VENTAS EN UN PERIODO', 'SELECT\n    v.id_venta AS \'ID VENTA\',\n    v.folio AS \'FOLIO\',\n    v.total AS \'TOTAL\',\n    SUM( IF( dv.id_detalle_venta IS NULL, 0, dv.monto ) ) AS \'TOTAL DETALLE\',\n    v.fecha AS \'FECHA\',\n    IF( v.facturado = 0, \'0\', \'Timbrada\' )\nFROM ec_ventas v\nLEFT JOIN ec_detalle_venta dv\nON v.id_venta = dv.id_venta\nWHERE ( v.fecha BETWEEN \'$_FECHA_1\' AND \'$_FECHA_2\' )\nGROUP BY v.id_venta', 'VENTAS EN UN PERIODO', NULL, '$_FECHA_1||fecha||calendario(this);|fecha_1|Fecha inicio :', '$_FECHA_2||fecha||calendario(this);|fecha_2|Fecha final :', NULL, NULL, NULL, NULL, NULL, NULL, 'Consulta'),
(4, 'ELIMNAR DETALLE DE MOVIMIENTOS DE ALMACEN DE VENTAS', 'DELETE dm FROM ec_detalle_movimiento dm\nLEFT JOIN ec_movimiento_inventario mi\nON mi.id_movimiento_inventario = dm.id_movimiento_inventario\nLEFT JOIN ec_ventas v \nON mi.id_venta = v.id_venta\nWHERE v.facturado = 0\nAND ( v.fecha BETWEEN \'$_FECHA_1\' AND \'$_FECHA_2\' )', 'ELIMNAR DETALLE DE MOVIMIENTOS DE ALMACEN DE VENTAS', NULL, '$_FECHA_1||fecha||calendario(this);|fcha_1|Fecha inicio : ', '$_FECHA_2||fecha||calendario(this);|fcha_2|Fecha final : ', NULL, NULL, NULL, NULL, NULL, NULL, 'Herramienta'),
(5, 'ELIMINAR DETALLE DE VENTAS', 'DELETE FROM ec_detalle_venta\n    WHERE id_venta IN(\n     SELECT \n         id_venta\n      FROM ec_ventas\n        WHERE facturado = 0\n        AND ( fecha BETWEEN \'$_FECHA_1\' AND \'$_FECHA_2\' )\n    )', 'ELIMINAR DETALLE DE VENTAS', NULL, '$_FECHA_1||fecha||calendario(this);|fcha_1|Fecha inicio : ', '$_FECHA_2||fecha||calendario(this);|fcha_2|Fecha final : ', NULL, NULL, NULL, NULL, NULL, NULL, 'Herramienta'),
(6, 'REASIGNACION DE PRODUCTOS DE NOTAS DE VENTA', 'SELECT NOW()', 'REASIGNACION DE PRODUCTOS DE NOTAS DE VENTA', NULL, '$_FECHA_1||fecha||calendario(this);|fecha_1|Fecha inicio :', '$_FECHA_2||fecha||calendario(this);|fecha_2|Fecha final :', NULL, NULL, NULL, NULL, NULL, NULL, 'Herramienta'),
(7, 'CONSULTA DE INVENTARIO DE PRODUCTOS A UNA FECHA', 'SELECT\r\n	p.id_productos AS \'ID PRODUCTO\',\r\n	p.nombre AS \'PRODUCTO\',\r\n 	SUM( IF( dm.id_detalle_movimiento IS NULL OR mi.fecha > \'$_INV_LIMITE\', \r\n                    0, \r\n                    ( tm.afecta * dm.cantidad ) \r\n                 ) \r\n        ) AS \'INVENTARIO\',\r\n    IF( p.id_tipo_facturacion = 1, \r\n       \'NINGUNO\', \r\n       IF( p.id_tipo_facturacion = 3,\r\n         \'NO CONTROLADO\',\r\n         \'ES CONTROLADO\' \r\n        ) \r\n    ) AS \'PRODUCTO CONTROLADO\',\r\n    p.precio_compra\r\nFROM ec_productos p\r\nLEFT JOIN ec_detalle_movimiento dm\r\nON p.id_productos = dm.id_producto\r\nLEFT JOIN ec_movimiento_inventario mi\r\nON mi.id_movimiento_inventario = dm.id_movimiento_inventario\r\nLEFT JOIN ec_tipos_movimiento tm \r\nON tm.id_movimiento = mi.id_tipo_movimiento\r\nWHERE id_productos > 0\r\nGROUP BY p.id_productos', 'CONSULTA DE INVENTARIO DE PRODUCTOS A UNA FECHA', NULL, '$_INV_LIMITE||fecha||calendario(this);|fecha_1|Fecha limite de inventario:', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Consulta');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_listados`
--

CREATE TABLE `sys_listados` (
  `id_listado` int(11) UNSIGNED NOT NULL,
  `titulo` varchar(45) NOT NULL,
  `tabla` varchar(120) NOT NULL,
  `no_tabla` int(2) NOT NULL DEFAULT '0',
  `consulta` text NOT NULL,
  `anchos` varchar(120) DEFAULT NULL,
  `alineacion` varchar(200) DEFAULT NULL,
  `campos` text NOT NULL,
  `ver` tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
  `modificar` tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
  `eliminar` tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
  `condicion` text,
  `nuevo` tinyint(1) NOT NULL,
  `buscador` bit(1) NOT NULL DEFAULT b'0',
  `consulta_buscador` text NOT NULL,
  `condiciones_buscador` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `sys_listados`
--

INSERT INTO `sys_listados` (`id_listado`, `titulo`, `tabla`, `no_tabla`, `consulta`, `anchos`, `alineacion`, `campos`, `ver`, `modificar`, `eliminar`, `condicion`, `nuevo`, `buscador`, `consulta_buscador`, `condiciones_buscador`) VALUES
(1, ' Usuarios', 'sys_users', 0, 'SELECT\r\nid_usuario AS ID,\r\nCONCAT(nombre, \' \', apellido_paterno) AS Nombre,\r\nlogin AS Login\r\nFROM sys_users', '0|250|150', 'center|left|left', 'id_usuario|CONCAT(nombre, \' \', apellido_paterno)|login', 1, 1, 1, NULL, 1, b'0', '', ''),
(2, ' Sucursales', 'sys_sucursales', 0, 'SELECT id_sucursal AS ID, nombre AS Nombre FROM sys_sucursales', '0|350', 'center|left', 'id_sucursal|nombre', 1, 1, 1, NULL, 1, b'0', '', ''),
(3, 'Configuración de pantalla', 'sys_conf_pantalla', 0, 'SELECT\r\nid_configuracion_pantalla AS ID,\r\nnombre AS Plantilla\r\nFROM sys_conf_pantalla\r\nJOIN sys_plantilla ON sys_conf_pantalla.id_plantilla = sys_plantilla.id_plantilla', '0|350', 'center|left', 'id_configuracion_pantalla|nombre', 1, 1, 0, NULL, 0, b'0', '', ''),
(4, 'Países', 'sys_paises', 0, 'SELECT id_pais AS ID, nombre AS Nombre FROM sys_paises', '0|350', 'center|left', 'id_pais|nombre', 1, 1, 1, NULL, 1, b'0', '', ''),
(5, 'Estados', 'sys_estados', 0, 'SELECT\r\nid_estado AS ID,\r\nsys_estados.nombre AS Nombre,\r\nsys_paises.nombre AS \'País\'\r\nFROM sys_estados\r\nJOIN sys_paises ON sys_estados.id_pais = sys_paises.id_pais', '0|250|250', 'center|left|left', 'id_estado|sys_estados.nombre|sys_paises.nombre', 1, 1, 1, NULL, 1, b'0', '', ''),
(6, 'Configuración de pedidos', 'ec_conf_pedidos', 0, 'SELECT\r\nid_conf_pedidos AS ID,\r\n\'Configuración de pedidos\' AS Nombre\r\nFROM ec_conf_pedidos', '0|350', 'center|left', 'id_conf_pedidos|\'Configuración de pedidos\'', 1, 1, 0, NULL, 0, b'0', '', ''),
(7, 'Configuración de OC', 'ec_conf_oc', 0, 'SELECT\r\nid_conf_oc AS ID,\r\n\'Configuración de OC\' AS Nombre\r\nFROM ec_conf_oc', '0|350', 'center|left', 'id_conf_oc|\'Configuración de OC\'', 1, 1, 0, NULL, 0, b'0', '', ''),
(8, 'Configuración general', 'ec_conf_gral', 0, 'SELECT\r\nid_configuracion AS ID,\r\n\'Configuración general\' AS nombre\r\nFROM ec_conf_gral', '0|350', 'center|left', 'id_configuracion|\'Configuración general\'', 1, 1, 0, NULL, 0, b'0', '', ''),
(9, 'Proveedores', 'ec_proveedor', 0, 'SELECT\r\nid_proveedor AS ID,\r\nnombre_comercial AS Nombre,\r\nrfc AS RFC\r\nFROM ec_proveedor', '0|400|250', 'center|left|left', 'id_proveedor|nombre_comercial|rfc', 1, 1, 1, 'AND id_sucursal=$SUCURSAL AND id_proveedor > 0', 1, b'0', '', ''),
(10, 'Familias', 'ec_categoria', 0, 'SELECT id_categoria AS ID, nombre AS Nombre FROM ec_categoria', '0|600', 'center|left', 'id_categoria|nombre', 1, 1, 1, NULL, 1, b'0', '', ''),
(11, 'Tipos', 'ec_subcategoria', 0, 'SELECT\r\ns.id_subcategoria AS ID,\r\ns.nombre AS Nombre,\r\nc.nombre AS \'Categoría\'\r\nFROM ec_subcategoria s\r\nJOIN ec_categoria c ON s.id_categoria = c.id_categoria', '0|350|350', 'center|left|left', 's.id_subcategoria|s.nombre|c.nombre', 1, 1, 1, NULL, 1, b'0', '', ''),
(12, ' Productos', 'ec_productos', 0, 'SELECT\r\nec_productos.id_productos AS ID, \r\nec_productos.orden_lista AS \'Orden de lista\',\r\nec_productos.nombre AS Nombre FROM ec_productos', '0|120|350', 'center|center|left', 'id_productos|orden_lista|nombre', 1, 1, 1, 'AND ec_productos.id_productos > 0', 1, b'1', 'ec_productos.nombre', ''),
(14, 'Movimientos de almacén', 'ec_movimiento_almacen', 0, 'SELECT\r\nm.id_movimiento_almacen AS ID,\r\ntm.nombre AS Tipo,\r\nfecha AS Fecha,\r\n(\r\n	SELECT\r\n	GROUP_CONCAT(p.nombre SEPARATOR \', \')\r\n	FROM ec_movimiento_detalle md\r\n	JOIN ec_productos p ON md.id_producto = p.id_productos\r\n	WHERE md.id_movimiento = m.id_movimiento_almacen\r\n) AS Productos\r\nFROM ec_movimiento_almacen m\r\nJOIN ec_tipos_movimiento tm ON m.id_tipo_movimiento = tm.id_tipo_movimiento', '0|250|120|350', 'center|left|center|left', 'm.id_movimiento_almacen,tm.nombre|m.fecha|(SELECT GROUP_CONCAT(p.nombre SEPARATOR \', \') FROM ec_movimiento_detalle md JOIN ec_productos p ON md.id_producto = p.id_productos WHERE md.id_movimiento = m.id_movimiento_almacen)', 1, 1, 1, 'AND id_sucursal=$SUCURSAL AND m.id_movimiento_almacen > 0', 1, b'0', '', ''),
(15, 'Guías', 'ec_guias', 0, 'SELECT id_guia AS ID, numero AS \'Número\', tg.empresa AS \'Tipo de guia\' FROM ec_guias g JOIN ec_tipos_guia tg ON g.id_tipo_guia = tg.id_tipo_guia', '0|180|350', 'center|left|left', 'id_guia|numero|tg.empresa', 1, 1, 1, NULL, 1, b'0', '', ''),
(16, 'Tipos de guía', 'ec_tipos_guia', 0, 'SELECT id_tipo_guia AS ID, empresa AS Empresa, kilometros AS Kilometros, kilogramos AS Kilogramos FROM ec_tipos_guia', '0|250|100|100', 'center|left|center|center', 'id_tipo_guia|empresa|kilometros|kilogramos', 1, 1, 1, NULL, 1, b'0', '', ''),
(17, 'Mensajería', 'ec_rutas', 0, 'SELECT\r\nid_ruta AS ID,\r\nfecha_partida AS Fecha,\r\nhora_partida AS Hora,\r\nCONCAT(r.nombre, \' \', r.apellido_paterno) AS Repartidor,\r\nIF(entregado = 0, \'NO\', \'SI\') AS Terminado\r\nFROM ec_rutas rt\r\nLEFT JOIN ec_repartidores r ON rt.id_repartidor = r.id_repartidor ', '0|120|120|350|120', 'center|center|center|left|center', 'id_ruta|fecha_partida|hora_partida AS Hora|CONCAT(r.nombre, \' \', r.apellido_paterno)|IF(entregado = 0, \'NO\', \'SI\')', 1, 1, 1, NULL, 1, b'0', '', ''),
(18, 'Tipos de movimiento', 'ec_tipos_movimiento', 0, 'SELECT id_tipo_movimiento AS ID, nombre AS Nombre FROM ec_tipos_movimiento', '0|600', 'center|left', 'id_tipo_movimiento|nombre', 1, 1, 1, NULL, 1, b'0', '', ''),
(19, 'Notas de crédito', 'ec_notas_credito', 0, 'SELECT\r\nn.id_nota_credito AS ID,\r\nn.fecha AS Fecha,\r\nCONCAT(\'$\',FORMAT(n.total, 2)) AS Monto,\r\np.nombre_comercial AS Proveedor\r\nFROM ec_notas_credito n\r\nJOIN ec_proveedor p ON n.id_proveedor = p.id_proveedor', '0|120|120|350', 'center|center|right|left', 'n.id_nota_credito|n.fecha|n.total|Monto|IF(c.nombre IS NULL, p.nombre_comercial, c.nombre)', 1, 1, 1, 'AND n.id_sucursal=$SUCURSAL AND n.tipo_nc=1 AND n.id_nota_credito > 0', 1, b'0', '', ''),
(20, 'Repartidores', 'ec_repartidores', 0, 'SELECT id_repartidor AS ID, CONCAT(nombre, \' \', apellido_paterno) AS Nombre FROM ec_repartidores', '0|600', 'center|left', 'id_repartidor|CONCAT(nombre, \' \', apellido_paterno)', 1, 1, 1, 'AND id_repartidor > 0', 1, b'0', '', ''),
(21, 'Notas de cargo', 'ec_nota_cargo', 0, 'SELECT\r\nn.id_nota_cargo AS ID,\r\nn.fecha AS Fecha,\r\nCONCAT(\'$\', FORMAT(n.total, 2)) AS Monto,\r\np.nombre_comercial AS Proveedor\r\nFROM ec_nota_cargo n\r\nJOIN ec_proveedor p ON n.id_proveedor = p.id_proveedor', '0|120|120|350', 'center|center|right|left', 'n.id_nota_cargo|n.fecha|n.total|p.nombre_comercial', 1, 1, 1, 'AND n.id_sucursal=$SUCURSAL AND tipo_nc=1 AND id_nota_cargo > 0', 1, b'0', '', ''),
(22, 'Tipos de envio', 'ec_tipos_envio', 0, 'SELECT id_tipo_envio AS ID, nombre AS Nombre FROM ec_tipos_envio', '0|600', 'center|left', 'id_tipo_envio|nombre', 1, 1, 1, NULL, 1, b'0', '', ''),
(23, 'Transportes', 'ec_transportes', 0, 'SELECT id_transporte AS ID, nombre AS Nombre, placas AS Placas FROM ec_transportes', '0|350|200', 'center|left|left', 'id_transporte|nombre|placas', 1, 1, 1, 'AND id_transporte > 1', 1, b'0', '', ''),
(24, ' Órdenes de compras', 'ec_oc', 0, 'SELECT\nid_orden_compra AS ID,\nfolio AS Folio,\np.nombre_comercial AS Proveedor,\nfecha AS Fecha\nFROM ec_oc oc\nJOIN ec_proveedor p ON oc.id_proveedor = p.id_proveedor\n', '0|90|250|80', 'center|center|left|center', 'id_orden_compra|folio|p.nombre,fecha\r\n\r\n', 1, 1, 1, 'AND oc.id_sucursal=$SUCURSAL', 1, b'0', '', ''),
(25, 'Clientes', 'ec_clientes', 0, 'SELECT id_cliente AS ID, nombre AS Nombre, telefono AS \'Teléfono\', email AS \'E-mail\' FROM ec_clientes', '0|300|150|300', 'center|left|left|left', 'id_cliente|nombre|telefono|email', 1, 0, 0, 'AND id_sucursal = $SUCURSAL AND id_cliente >= 10000', 0, b'0', '', ''),
(26, 'Pedidos', 'ec_pedidos', 0, 'SELECT\r\np.id_pedido AS ID,\r\np.folio_pedido AS Folio,\r\nc.nombre AS Cliente,\r\ne.nombre AS Estado\r\nFROM ec_pedidos p\r\nJOIN ec_clientes c ON p.id_cliente = c.id_cliente\r\nJOIN ec_estatus_pedido e ON p.id_estatus = e.id_estatus', '0|120|350|160', 'center|center|left|left', 'p.id_pedido|p.folio_pedido|c.nombre|e.nombre', 1, 0, 1, 'AND p.id_sucursal=$SUCURSAL AND p.id_pedido NOT IN(-1) AND p.id_estatus NOT IN(8) AND folio_pedido IS NOT NULL', 0, b'0', '', ''),
(27, 'Notas de venta', 'ec_pedidos', 1, 'SELECT\r\np.id_pedido AS ID,\r\np.folio_nv AS Folio,\r\nc.nombre AS Cliente,\r\np.total AS Monto\r\nFROM ec_pedidos p\r\nJOIN ec_clientes c ON p.id_cliente = c.id_cliente', '0|120|350|160', 'center|center|left|right', 'p.id_pedido|p.folio_nv|c.nombre|p.total', 1, 0, 1, 'AND p.id_sucursal=$SUCURSAL AND p.id_pedido NOT IN(-1) AND p.id_estatus NOT IN(1,3)', 0, b'0', '', ''),
(28, 'Cotizaciones', 'ec_pedidos', 2, 'SELECT p.id_pedido AS ID, p.folio_cotizacion AS Folio, c.nombre AS Cliente, p.total AS Monto FROM ec_pedidos p JOIN ec_clientes c ON p.id_cliente = c.id_cliente', '0|120|250|120', 'center|center|left|right', 'p.id_pedido|p.folio_cotizacion|c.nombre|p.total', 1, 1, 1, 'AND p.id_sucursal=$SUCURSAL AND p.id_pedido NOT IN(-1) AND p.id_estatus NOT IN(1,3) AND (p.id_estatus IN(8) OR fue_cot = 1)', 1, b'0', '', ''),
(29, 'Prospectos', 'ec_clientes', 1, 'SELECT id_cliente AS ID, nombre AS Nombre, telefono AS \'Teléfono\', email AS \'E-mail\' FROM ec_clientes', '0|200|120|250', 'center|left|left|left', 'id_cliente|nombre|telefono|email', 1, 1, 1, 'AND id_sucursal = $SUCURSAL AND id_cliente NOT IN(-1) AND es_cliente = 0', 1, b'0', '', ''),
(30, 'Notas de crédito', 'ec_notas_credito', 1, 'SELECT\nn.id_nota_credito AS ID,\nn.fecha AS Fecha,\nn.total AS Monto,\nc.nombre AS Cliente\nFROM ec_notas_credito n\nJOIN ec_clientes c ON n.id_cliente = c.id_cliente', '0|120|150|350', 'center|center|right|left', 'n.id_nota_credito|n.fecha|n.total|Monto|c.nombre', 1, 1, 1, 'AND n.id_sucursal=$SUCURSAL AND n.tipo_nc=2', 1, b'0', '', ''),
(31, 'Notas de cargo', 'ec_nota_cargo', 1, 'SELECT\r\nn.id_nota_cargo AS ID,\r\nn.fecha AS Fecha,\r\nn.total AS Monto,\r\nc.nombre AS Cliente\r\nFROM ec_nota_cargo n\r\nJOIN ec_clientes c ON n.id_cliente = c.id_cliente', '0|120|120|350', 'center|center|right|left', 'n.id_nota_cargo|n.fecha|n.total|c.nombre', 1, 1, 1, 'AND n.id_sucursal=$SUCURSAL AND tipo_nc=2', 1, b'0', '', ''),
(32, 'Precios de venta', 'ec_precios', 0, 'SELECT\r\nlp.id_precio AS ID,\r\nlp.nombre AS Nombre,\r\nlp.fecha AS Fecha\r\nFROM ec_precios lp', '0|400|200', 'center|left|center', 'lp.id_precio|lp.nombre|lp.fecha', 1, 1, 1, '', 1, b'0', '', ''),
(33, 'Vendedores', 'ec_vendedores', 0, 'SELECT\r\nv.id_vendedor AS ID,\r\nCONCAT(u.nombre, \' \', u.apellido_paterno) AS Nombre\r\nFROM ec_vendedores v\r\nJOIN sys_users u ON v.id_usuario = u.id_usuario', '0|400', 'center|left', 'v.id_vendedor|CONCAT(u.nombre, \' \', u.apellido_paterno)', 1, 1, 1, 'AND v.id_sucursal=$SUCURSAL', 1, b'0', '', ''),
(34, 'Cuentas por pagar', 'ec_cuentas_por_pagar', 0, 'SELECT\r\nc.id_cxp AS ID,\r\np.nombre_comercial AS Proveedor,\r\nCONCAT(\'$\',FORMAT(c.monto,2)) AS Monto,\r\nCONCAT(\'$\',FORMAT(c.abonado,2)) AS Abonado,\r\nCONCAT(\'$\',FORMAT(c.monto-c.abonado,2)) AS Resta\r\nFROM ec_cuentas_por_pagar c\r\nJOIN ec_proveedor p ON c.id_proveedor = p.id_proveedor\r\n', '0|400|120|120|120', 'center|left|right|right|right', 'c.id_cxp|p.nombre_comercial|c.monto|c.abonado|c.monto-c.abonado', 1, 1, 0, 'AND c.id_sucursal=$SUCURSAL', 0, b'0', '', ''),
(35, 'Cuentas por cobrar', 'ec_cuentas_por_cobrar', 0, 'SELECT\r\nc.id_cxc AS ID,\r\ncl.nombre AS Cliente,\r\nCONCAT(\'$\', FORMAT(c.monto, 2)) AS Monto,\r\nCONCAT(\'$\', FORMAT(c.abonado, 2)) AS Abonado,\r\nCONCAT(\'$\', FORMAT(c.monto-c.abonado, 2)) AS Resta\r\nFROM ec_cuentas_por_cobrar c\r\nJOIN ec_clientes cl ON c.id_cliente = cl.id_cliente', '0|400|120|120|120', 'center|left|right|right|right', 'c.id_cxc|cl.nombre|c.monto|c.abonado|c.monto-c.abonado', 1, 1, 0, 'AND c.id_sucursal=$SUCURSAL', 0, b'0', '', ''),
(36, 'Cuentas', 'ec_cuentas', 0, 'SELECT\r\nc.id_cuenta AS ID,\r\nb.nombre AS Banco,\r\nc.nombre AS Nombre\r\nFROM ec_cuentas c\r\nJOIN ec_bancos b ON c.id_banco = b.id_banco', '0|300|350', 'center|left|left', 'c.id_cuenta|b.nombre|c.nombre', 1, 1, 1, 'AND id_sucursal=$SUCURSAL', 1, b'0', '', ''),
(37, 'Razones sociales', 'sys_razones_sociales', 0, 'SELECT\r\nid_razon_social AS ID,\r\nrfc AS RFC,\r\nrazon_social AS \'Razón social\'\r\nFROM sys_razones_sociales', '0|200|350', 'center|left|left', 'id_razon_social|rfc|razon_social', 1, 1, 1, 'AND id_razon_social > 0', 1, b'0', '', ''),
(38, 'Tipos de pago', 'ec_tipos_pago', 0, 'SELECT\r\nid_tipo_pago AS ID,\r\nnombre AS Nombre\r\nFROM ec_tipos_pago', '0|350', 'center|left', 'id_tipo_pago|nombre', 1, 1, 1, 'AND id_sucursal=$SUCURSAL', 1, b'0', '', ''),
(39, 'Bancos', 'ec_bancos', 0, 'SELECT id_banco AS ID, nombre AS Nombre FROM ec_bancos', '0|350', 'center|left', 'id_banco|nombre', 1, 1, 1, NULL, 1, b'0', '', ''),
(40, 'Monedas', 'ec_monedas', 0, 'SELECT id_moneda AS ID, nombre AS Nombre, cambio AS Cambio FROM ec_monedas', '0|300|100', 'center|left|right', 'id_moneda|nombre|cambio', 1, 1, 1, NULL, 1, b'0', '', ''),
(41, 'Facturas', 'ec_pedidos', 3, 'SELECT\r\np.id_pedido AS ID,\r\np.folio_factura AS Folio,\r\nc.nombre AS Cliente,\r\np.total AS Monto\r\nFROM ec_pedidos p\r\nJOIN ec_clientes c ON p.id_cliente = c.id_cliente', '0|120|350|150', 'center|center|left|right', 'p.id_pedido|p.folio_nv|c.nombre|p.total', 1, 0, 0, 'AND p.id_sucursal=$SUCURSAL AND p.id_pedido NOT IN(-1) AND facturado=1', 0, b'0', '', ''),
(42, 'Pendientes', 'ec_pendientes', 0, 'SELECT\r\nid_pendiente AS ID,\r\ndescripcion AS \'Descripción\',\r\nfecha AS Fecha\r\nFROM ec_pendientes', '0|300|100', 'center|left|center', 'id_pendiente|descripcion|fecha', 1, 1, 1, 'AND id_sucursal=$SUCURSAL', 1, b'0', '', ''),
(43, 'Prioridades', 'ec_prioridades', 0, 'SELECT id_prioridad AS ID, descripcion AS Nombre FROM ec_prioridades', '0|300', 'center|left', 'id_prioridad|descripcion', 1, 1, 1, NULL, 1, b'0', '', ''),
(44, 'Corte de caja', 'ec_corte_caja', 0, 'SELECT\r\nid_corte_caja AS ID,\r\nfecha AS Fecha,\r\nhora AS Hora,\r\nmonto_inicial AS \'Monto inicial\',\r\nmonto_final As \'Monto final\'\r\nFROM ec_corte_caja', '0|120|120|120|120', 'center|center|center|right|right', 'id_corte_caja|fecha|hora|monto_inicial|monto_final ', 1, 1, 1, 'AND id_sucursal=$SUCURSAL', 1, b'0', '', ''),
(45, 'Maquila', 'ec_maquila', 0, 'SELECT\r\nm.id_maquila AS ID,\r\nm.folio AS Folio,\r\nm.fecha AS Fecha,\r\np.nombre AS Producto,\r\nm.cantidad AS Cantidad\r\nFROM ec_maquila m\r\nJOIN ec_productos p ON m.id_producto = p.id_productos', '0|140|140|300|140', 'center|center|center|left|right', 'm.id_maquila|m.folio|m.fecha|p.nombre|m.cantidad', 1, 0, 1, 'AND m.id_sucursal=$SUCURSAL AND m.id_maquila > 0', 1, b'0', '', ''),
(46, 'Surtir pedidos', 'ec_pedidos', 4, 'SELECT\r\np.id_pedido AS ID,\r\nIF(p.folio_pedido IS NULL,p.folio_nv, p.folio_pedido) AS Folio,\r\np.fecha_alta AS Fecha,\r\nc.nombre AS Cliente,\r\ne.nombre AS Estado\r\nFROM ec_pedidos p\r\nJOIN ec_clientes c ON p.id_cliente = c.id_cliente\r\nJOIN ec_estatus_pedido e ON p.id_estatus = e.id_estatus', '0|120|180|300|150', 'center|center|center|left|left', 'p.id_pedido|IF(p.folio_pedido IS NULL,p.folio_nv, p.folio_pedido)|p.fecha_alta|c.nombre|e.nombre', 0, 1, 0, 'AND p.id_sucursal=$SUCURSAL AND p.id_pedido NOT IN(-1) AND p.id_estatus IN(2,6) AND folio_nv IS NULL', 0, b'0', '', ''),
(48, 'Acreedores', 'ec_acreedor', 0, 'SELECT\r\na.id_acreedor AS ID,\r\na.nombre AS Nombre,\r\ne.nombre AS Estado,\r\np.nombre AS \'País\'\r\nFROM ec_acreedor a\r\nJOIN sys_estados e ON a.id_estado = e.id_estado\r\nJOIN sys_paises p ON a.id_pais = p.id_pais', '0|400|200|200', 'center|left|left|left', 'a.id_acreedor|a.nombre|e.nombre|p.nombre', 1, 1, 1, 'AND id_sucursal=$SUCURSAL', 1, b'0', '', ''),
(49, 'Gastos inherentes de importación', 'ec_gastos_impuestos', 0, 'SELECT\r\nid_gasto_impuesto AS ID,\r\nnombre AS Nombre\r\nFROM ec_gastos_impuestos', '0|600', 'center|left', 'id_gasto_impuesto|nombre', 1, 1, 1, NULL, 1, b'0', '', ''),
(50, 'Transferencias', 'ec_transferencias', 0, 'SELECT\nt.id_transferencia AS ID,\ns.nombre AS \'Suc. origen\',\ns2.nombre AS \'Suc. destino\',\nCONCAT(t.fecha, \' \', t.hora) AS \'Fecha\',\ne.nombre AS \'Estatus\'\nFROM ec_transferencias t\nJOIN sys_sucursales s ON t.id_sucursal_origen = s.id_sucursal\nJOIN sys_sucursales s2 ON t.id_sucursal_destino = s2.id_sucursal\nJOIN ec_estatus_transferencia e ON t.id_estado = e.id_estatus', '0|250|250|100|200', 'center|left|left|center|left', 't.id_transferencia|s.nombre|s2.nombre|CONCAT(t.fecha, \' \', t.hora)|e.nombre', 1, 0, 1, 'AND t.id_transferencia > 0', 1, b'0', '', ''),
(51, 'Comparación de inventario', 'ec_comparacion_inv', 0, 'SELECT\r\nc.id_comparacion_inv AS ID,\r\nu.nombre AS \'Usuario\',\r\nCONCAT(c.fecha, \' \', c.hora) AS \'Fecha y Hora\'\r\nFROM ec_comparacion_inv c\r\nJOIN sys_users u ON c.id_usuario = u.id_usuario\r\n', '0|300|300', 'center|left|left', 'c.id_comparacion_inv|u.nombre|CONCAT(c.fecha, \' \', c.hora)', 1, 0, 1, NULL, 1, b'0', '', ''),
(52, 'Devolución', 'ec_devolucion', 0, 'SELECT c.id_devolucion AS ID, c.folio AS Folio, u.nombre AS \'Vendedor\', CONCAT(c.fecha, \' \', c.hora) AS \'Fecha\', p.folio_nv AS \'Nota de venta\' FROM ec_devolucion c JOIN sys_users u ON c.id_usuario = u.id_usuario JOIN ec_pedidos p ON c.id_pedido = p.id_pedido', '0|100|250|200|100', 'center|center|left|center|center', 'c.id_devolucion|c.folio|u.nombre|CONCAT(c.fecha, \' \', c.hora)|p.folio_nv', 1, 0, 1, 'AND c.id_sucursal=$SUCURSAL', 1, b'0', '', ''),
(53, 'Gastos', 'ec_gastos', 0, 'SELECT\nc.id_gastos,\ncg.nombre AS \'Concepto\',\nCONCAT(c.fecha, \' \', c.hora) AS \'Fecha y hora\',\nu.nombre AS \'Usuario\',\nc.monto AS Monto\nFROM ec_gastos c\nJOIN sys_users u ON c.id_usuario = u.id_usuario\nJOIN ec_conceptos_gastos cg ON c.id_concepto = cg.id_concepto\n', '0|300|300|200|100', 'center|left|left|left|left', 'c.id_gastos|cg.nombre|CONCAT(c.fecha, \' \', c.hora)|u.nombre|c.monto', 1, 0, 1, NULL, 1, b'0', '', ''),
(54, 'Conceptos gastos', 'ec_conceptos_gastos', 0, 'SELECT id_concepto AS id,nombre AS nombre FROM ec_conceptos_gastos', '0|500', 'center|center', 'id_concepto|nombre', 1, 1, 1, 'AND id_concepto > 1', 1, b'0', '', ''),
(55, 'Subtipos', 'ec_subtipos', 0, 'SELECT\r\nt.id_subtipos AS \'ID\',\r\nt.nombre AS \'Subtipo\',\r\nc.nombre AS \'Tipo\'\r\nFROM ec_subtipos t\r\nJOIN ec_subcategoria c ON t.id_tipo = c.id_subcategoria\r\n', '0|300|300', 'left|left|left', 'id_subtipos|nombre|id_tipo|', 1, 1, 1, NULL, 1, b'0', '', ''),
(56, 'Numero de luces', 'ec_numero_luces', 0, 'SELECT\nt.id_numero_luces AS \'ID\',\nt.nombre AS \'nombre\',\nc.nombre AS \'Categoria\'\nFROM ec_numero_luces t\nJOIN ec_categoria c ON t.id_categoria = c.id_categoria\n', '0|300|300', 'left|left|left', 'id_numero_luces|nombre|id_categoria|', 1, 1, 1, NULL, 1, b'0', '', ''),
(57, 'Colores', 'ec_colores', 0, 'SELECT\nt.id_colores AS \'ID\',\nt.nombre AS \'Color\',\nc.nombre AS \'categoria\'\nFROM ec_colores t\nJOIN ec_categoria c ON t.id_categoria = c.id_categoria', '0|300|300', 'left|center|center', 't.id_colores|t.nombre|c.id_categoria|', 1, 1, 1, NULL, 1, b'0', '', ''),
(58, 'Tamaños', 'ec_tamanos', 0, 'SELECT t.id_tamanos AS \'ID\',\nt.nombre AS \'Nombre\',\nc.nombre AS \'Categoria\'\nFROM ec_tamanos t\nJOIN ec_categoria c ON t.id_categoria = c.id_categoria', '0|300|300', 'left|center|center', 't.id_tamanos|t.nombre|c.id_categoria', 1, 1, 1, NULL, 1, b'0', '', ''),
(59, 'Tipos de precios', 'ec_tipo_precio', 0, 'SELECT\nid_tipo_precio AS \'ID\',\nnombre AS \'Tipo de precio\'\nFROM ec_tipo_precio', '0|300', 'left|left', 'id_tipo_precio|nombre', 1, 1, 1, NULL, 1, b'0', '', ''),
(60, 'Almacén', 'ec_almacen', 0, 'SELECT\r\nid_almacen AS \'ID\',\r\nnombre AS \'Almacén\',\r\nprioridad AS \'Prioridad\'\r\nFROM ec_almacen', '0|200|100', 'left|left|center', 'id_almacen|nombre|prioridad', 1, 1, 1, 'AND id_sucursal=$SUCURSAL', 1, b'0', '', ''),
(61, 'Devolución transferencia', 'ec_devolucion_transferencia', 0, 'SELECT\nid_devolucion_transferencia AS \'ID\',\nfolio AS \'Folio\',\nCONCAT(fecha,\' \',hora) AS \'Fecha y hora\'\nFROM ec_devolucion_transferencia\n', '0|200|300', 'left|center|center', 'id_devolucion_transferencia|folio|CONCAT(fecha,\' \',hora)', 1, 1, 1, NULL, 1, b'0', '', ''),
(62, 'Periodos', 'ec_periodos', 0, 'SELECT\nid_periodos AS \'ID\',\nnombre AS \'Pedido\'\nFROM ec_periodos', '0|300', 'center|center', 'id_periodos|nombre', 1, 1, 1, NULL, 1, b'0', '', ''),
(63, 'Estacionalidad', 'ec_estacionalidad', 0, 'SELECT \ne.id_estacionalidad AS \'ID\', \ne.nombre AS \'Estacionalidad\', \np.nombre AS \'Periodo\'\nFROM ec_estacionalidad e\nJOIN ec_periodos p ON e.id_periodo = p.id_periodos', '0|300|300', 'left|left|left', 'e.id_estacionalidad|e.nombre|p.nombre', 1, 1, 1, NULL, 1, b'0', '', ''),
(64, 'Empleados', 'ec_empleado', 0, 'SELECT\r\nid_empleado AS \'ID\',\r\nCONCAT(nombre,\' \',apellido_paterno,\' \',apellido_materno) AS \'Empleado\',\r\ntelefono AS \'Teléfono\'\r\nFROM ec_empleado\r\n\r\n', '0|300|200', 'center|left|center', 'id_empleado|CONCAT(nombre,\' \',apellido_paterno,\' \',apellido_materno)|telefono', 1, 1, 1, NULL, 1, b'0', '', ''),
(65, 'Lista de registro de nómina', 'ec_registro_nomina', 0, 'SELECT\nid_registro_nomina AS \'ID\',\nfecha AS \'Fecha\',\nhora_entrada AS \'Entrada\',\nhora_salida AS \'Saliada\'\nFROM ec_registro_nomina', '0|100|200|200', 'center|center|center|center', 'id_registro_nomina|fecha|hora_entrada|hora_salida', 1, 1, 1, NULL, 1, b'0', '', ''),
(66, 'Configuración de nóminas', 'ec_nomina_configuracion', 0, 'SELECT\r\nid_configuracion AS ID,\r\ntolerancia AS \'Min. de tolerancia\',\r\n(\r\n   CASE dia_corte\r\n      WHEN 1 THEN \'Lunes\'\r\n      WHEN 2 THEN \'Martes\'\r\n      WHEN 3 THEN \'Miércoles\'\r\n      WHEN 4 THEN \'Jueves\'\r\n      WHEN 5 THEN \'Viernes\'\r\n      WHEN 6 THEN \'Sábado\'\r\n      WHEN 7 THEN \'Domingo\'\r\n   END\r\n) AS \'Día de corte\'\r\nFROM ec_nomina_configuracion', '0|300|300', 'center|center|left', 'id_configuracion|tolerancia|(CASE dia_corte WHEN 1 THEN \'Lunes\'       WHEN 2 THEN \'Martes\'       WHEN 3 THEN \'Miércoles\'       WHEN 4 THEN \'Jueves\'       WHEN 5 THEN \'Viernes\'       WHEN 6 THEN \'Sábado\'       WHEN 7 THEN \'Domingo\'    END)', 1, 1, 0, 'AND id_sucursal=$SUCURSAL', 1, b'0', '', ''),
(67, 'Autorizaciones regalos', 'ec_autorizacion', 0, 'SELECT\r\nid_autorizacion AS ID,\r\nfecha AS Fecha,\r\nhora AS Hora,\r\nIF(autorizado=1, \'SI\', \'NO\') AS Autorizado\r\nFROM ec_autorizacion', '0|150|150|150', 'center|center|center|center', 'id_autorizacion|fecha|hora|IF(autorizado=1, \'SI\', \'NO\')', 1, 1, 0, NULL, 0, b'0', '', ''),
(68, 'Conceptos de ordenes de compra', 'ec_conceptos_oc', 0, 'SELECT id_concepto_oc,nombre AS Nombre FROM ec_conceptos_oc ', '0|300', 'center|center', 'id_concepto_oc|nombre', 1, 1, 1, NULL, 1, b'0', '', ''),
(69, 'Salida de transferencias', 'ec_transferencias', 1, 'SELECT\r\nt.id_transferencia AS ID,\r\nt.folio AS Folio,\r\nCONCAT(t.fecha, \' \', t.hora) AS Fecha,\r\ns.nombre AS \'Sucursal origen\',\r\na.nombre AS \'Almacén origen\',\r\ns2.nombre AS \'Sucursal destino\',\r\na2.nombre AS \'Almacén destino\'\r\nFROM ec_transferencias t\r\nJOIN sys_sucursales s ON t.id_sucursal_origen = s.id_sucursal\r\nJOIN sys_sucursales s2 ON t.id_sucursal_destino = s2.id_sucursal\r\nJOIN ec_almacen a ON t.id_almacen_origen = a.id_almacen\r\nJOIN ec_almacen a2 ON t.id_almacen_destino = a2.id_almacen', '0|100|100|150|150|150|150', 'center|center|center|left|left|left|left', 't.id_transferencia|t.folio|CONCAT(t.fecha, \' \', t.hora)|s.nombre|a.nombre|s2.nombre|a2.nombre', 0, 0, 0, 'AND t.id_transferencia > 0\r\nAND t.id_sucursal_origen=$SUCURSAL\r\nAND t.id_estado=2', 0, b'0', '', ''),
(70, 'Recepción de transferencias', 'ec_transferencias', 2, 'SELECT\r\nt.id_transferencia AS ID,\r\nt.folio AS Folio,\r\nCONCAT(t.fecha, \' \', t.hora) AS Fecha,\r\ns.nombre AS \'Sucursal origen\',\r\na.nombre AS \'Almacén origen\',\r\ns2.nombre AS \'Sucursal destino\',\r\na2.nombre AS \'Almacén destino\'\r\nFROM ec_transferencias t\r\nJOIN sys_sucursales s ON t.id_sucursal_origen = s.id_sucursal\r\nJOIN sys_sucursales s2 ON t.id_sucursal_destino = s2.id_sucursal\r\nJOIN ec_almacen a ON t.id_almacen_origen = a.id_almacen\r\nJOIN ec_almacen a2 ON t.id_almacen_destino = a2.id_almacen', '0|100|100|150|150|150|150', 'center|center|center|left|left|left|left', 't.id_transferencia|t.folio|CONCAT(t.fecha, \' \', t.hora)|s.nombre|a.nombre|s2.nombre|a2.nombre', 0, 0, 0, 'AND t.id_transferencia > 0\r\nAND t.id_sucursal_destino=$SUCURSAL\r\nAND t.id_estado=3', 0, b'0', '', ''),
(71, 'Verificación de transferencias', 'ec_transferencias', 3, 'SELECT\r\nt.id_transferencia AS ID,\r\nt.folio AS Folio,\r\nCONCAT(t.fecha, \' \', t.hora) AS Fecha,\r\ns.nombre AS \'Sucursal origen\',\r\na.nombre AS \'Almacén origen\',\r\ns2.nombre AS \'Sucursal destino\',\r\na2.nombre AS \'Almacén destino\'\r\nFROM ec_transferencias t\r\nJOIN sys_sucursales s ON t.id_sucursal_origen = s.id_sucursal\r\nJOIN sys_sucursales s2 ON t.id_sucursal_destino = s2.id_sucursal\r\nJOIN ec_almacen a ON t.id_almacen_origen = a.id_almacen\r\nJOIN ec_almacen a2 ON t.id_almacen_destino = a2.id_almacen', '0|100|100|150|150|150|150', 'center|center|center|left|left|left|left', 't.id_transferencia|t.folio|CONCAT(t.fecha, \' \', t.hora)|s.nombre|a.nombre|s2.nombre|a2.nombre', 0, 0, 0, 'AND t.id_transferencia > 0\r\nAND t.id_sucursal_destino=$SUCURSAL\r\nAND t.id_estado=3', 0, b'0', '', ''),
(72, 'Resolución de transferencias', 'ec_transferencias', 4, 'SELECT\r\nt.id_transferencia AS ID,\r\nt.folio AS Folio,\r\nCONCAT(t.fecha, \' \', t.hora) AS Fecha,\r\ns.nombre AS \'Sucursal origen\',\r\na.nombre AS \'Almacén origen\',\r\ns2.nombre AS \'Sucursal destino\',\r\na2.nombre AS \'Almacén destino\'\r\nFROM ec_transferencias t\r\nJOIN sys_sucursales s ON t.id_sucursal_origen = s.id_sucursal\r\nJOIN sys_sucursales s2 ON t.id_sucursal_destino = s2.id_sucursal\r\nJOIN ec_almacen a ON t.id_almacen_origen = a.id_almacen\r\nJOIN ec_almacen a2 ON t.id_almacen_destino = a2.id_almacen', '0|100|100|150|150|150|150', 'center|center|center|left|left|left|left', 't.id_transferencia|t.folio|CONCAT(t.fecha, \' \', t.hora)|s.nombre|a.nombre|s2.nombre|a2.nombre', 0, 0, 0, 'AND t.id_transferencia > 0\r\nAND t.id_sucursal_destino=$SUCURSAL\r\nAND t.id_estado=4', 0, b'0', '', ''),
(73, 'Razón social', 'ec_conf_rs', 0, 'SELECT id_rs,rfc AS RFC,razon_social AS \'Razón Social\' FROM ec_conf_rs', '0|120|350', 'center|center|left', 'id_rs|rfc|razon_social', 1, 1, 1, NULL, 1, b'0', '', ''),
(74, 'Configuración de IVA', 'ec_conf_iva', 0, 'SELECT\r\nid_conf_iva,\r\nCONCAT(porcentaje,\'%\') AS Porcentaje\r\nFROM ec_conf_iva', '0|350', 'center|center', 'id_conf_iva|porcentaje', 1, 1, 0, NULL, 0, b'0', '', ''),
(75, 'Control de inventario', 'ec_movimiento_inventario', 0, 'SELECT\r\nmi.id_movimiento_inventario AS ID,\r\ntm.nombre AS Tipo,\r\nmi.folio AS Folio,\r\nmi.fecha AS Fecha,\r\nmi.hora AS Hora\r\nFROM ec_movimiento_inventario mi\r\nJOIN ec_tipos_movimiento tm ON mi.id_tipo_movimiento = tm.id_movimiento', '0|150|150|150|150', 'center|center|center|center|center', 'mi.id_movimiento_inventario|tm.nombre|mi.folio|mi.fecha|mi.hora', 1, 1, 1, NULL, 1, b'0', '', ''),
(76, ' Notas de ventas', 'ec_ventas', 0, 'SELECT \r\nid_venta AS ID,\r\nfolio AS Folio,\r\nc.nombre AS Nombre,\r\nCONCAT(\'$\',FORMAT(total,2)) AS Total,\r\nfecha AS Fecha,\r\nhora AS Hora,\r\nfolio_fiscal AS \'Folio fiscal\',\r\nIF(v.cancelado=1,\'SI\',\'NO\') AS Cancelado\r\nFROM ec_ventas v\r\nJOIN ec_clientes c ON v.id_cliente =c.id_cliente ', '0|80|200|100|80|80|200|100', 'center|center|center|center|center|center|center|center', 'id_venta|folio|c.nombre|total|fecha|hora|folio_fiscal|IF(v.cancelado=1,\'SI\',\'NO\')', 1, 1, 1, NULL, 0, b'0', '', ''),
(77, 'Emisor fiscal', 'ec_emisor', 0, 'SELECT\r\nid_emisor AS ID,\r\nrazon_social AS \'Razón social\',\r\nrfc AS RFC\r\nFROM ec_emisor', '0|300|200', 'center|left|left', 'id_emisor|razon_social|rfc', 1, 1, 0, NULL, 0, b'0', '', ''),
(78, 'Métodos de pago', 'ec_forma_pago', 0, 'SELECT\r\nid_forma_pago,\r\nnombre\r\nFROM ec_forma_pago', '0|350', 'center|left', 'id_forma_pago|nombre', 1, 1, 1, NULL, 1, b'0', '', ''),
(79, 'Formas de pago', 'ec_metodos_pago', 0, 'SELECT\r\nid_metodo_pago,\r\nnombre\r\nFROM ec_metodos_pago', '0|350', 'center|left', 'id_metodo_pago|nombre', 1, 1, 1, NULL, 1, b'0', '', ''),
(80, 'Configuracion de CFDI', 'ec_cfdi', 0, 'SELECT \r\nid as Id,\r\nclave,\r\nnombre,\r\norden \r\nFROM ec_cfdi', '100|100|150|50', 'center|center|left|center', 'id|clave|nombre|orden', 1, 1, 1, '', 1, b'0', '', ''),
(81, 'Listado de Afiliaciones', 'ec_razon_afiliaciones', 0, 'SELECT \r\nid_afiliacion,\r\nno_afiliacion,\r\nfecha_alta,\r\nIF(activo=0,\'desactivado\',\'activado\') as Status\r\nFROM ec_razon_afiliaciones\r\n', '0|120|150|100', 'center|center|center|center', 'id_afiliacion|no_afiliacion|fecha_alta|IF(activo=0,\'desactivado\',\'activado\')', 1, 1, 1, NULL, 1, b'0', '', ''),
(82, 'Correos de notificaciones', 'sys_correos_avisos', 0, 'SELECT\r\nid_correo_aviso as Id,\r\nnombre as Nombre,\r\ndireccion as Direccion,\r\nIF(activo=1,\'Activado\',\'Desactivado\') as Estado,\r\nobservaciones as Osbervaciones\r\nFROM sys_correos_avisos', '0|200|200|70|100', 'center|left|left|center|left', 'id_correo_aviso|nombre|direccion|Direccion|\r\nIF(activo=1,\'Activado\',\'Desactivado\')', 1, 1, 1, NULL, 1, b'0', '', ''),
(83, '4.10 Configuración del sistema', 'ec_configuracion_razon', 0, 'SELECT \r\nid_config as Id,\r\nobservaciones as Nombre\r\nFROM ec_configuracion_razon', '0|500', 'center|center', 'id_config|observaciones', 1, 1, 0, NULL, 1, b'0', '', ''),
(84, '4.14 Catálogo de Tipos de Regimen Fiscal', 'ec_tipos_regimenes_fiscales', 0, 'SELECT\r\nid_tipo_regimen_fiscal AS ID,\r\nclave_numerica AS Clave,\r\nnombre_tipo_regimen_fiscal AS Descripción,\r\nIF( habilitado = \'1\', \'Habilitado\', \'Deshabilitado\') AS Status\r\nFROM ec_tipos_regimenes_fiscales', '0|100|200|100', 'center|center|left|center', 'id_tipo_regimen_fiscal|clave_numerica|nombre_tipo_regimen_fiscal|IF( habilitado = \'1\', \'Habilitado\', \'Deshabilitado\')', 1, 1, 1, NULL, 1, b'0', '', ''),
(85, '4.15 Catálogo de motivos de cancelación', 'ec_motivos_cancelacion_factura', 0, 'SELECT\r\nid_motivo,\r\nclave_motivo_sat,\r\ndescripcion\r\nFROM ec_motivos_cancelacion_factura', '0|100|300', 'center|center|left', 'id_motivo|clave_motivo_sat|descripcion', 1, 1, 1, NULL, 1, b'1', 'descripcion', ''),
(86, '4.16 Administración de sets de productos', 'ec_sets', 0, 'SELECT\r\nid_set AS ID,\r\nnombre AS NOMBRE,\r\ntipo_set AS TIPO,\r\nIF( habilitado = 1, \'HABILITADO\', \'DESHABILITADO\' ) AS STATUS,\r\nfecha_alta AS CREACION\r\nFROM ec_sets', '0|300|100|100|100', 'center|left|center|center|center', 'id_set|nombre|tipo_set|IF( habilitado = 1, \'HABILITADO\', \'DESHABILITADO\' )|fecha_alta', 1, 1, 1, 'AND id_set > 0', 1, b'1', 'nombre', '');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_log_errores_timbrado`
--

CREATE TABLE `sys_log_errores_timbrado` (
  `id_log` int(11) NOT NULL,
  `id_venta` int(11) NOT NULL,
  `contenido_log` text NOT NULL,
  `fecha_alta` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_menus`
--

CREATE TABLE `sys_menus` (
  `id_menu` int(11) NOT NULL,
  `nombre` varchar(45) COLLATE utf8_unicode_ci NOT NULL,
  `es_listado` tinyint(1) UNSIGNED DEFAULT '1',
  `tabla_relacionada` varchar(120) CHARACTER SET latin1 DEFAULT NULL,
  `liga` varchar(200) CHARACTER SET latin1 DEFAULT NULL,
  `menu_padre` int(11) UNSIGNED NOT NULL,
  `en_permisos` tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
  `icono` varchar(120) CHARACTER SET latin1 DEFAULT NULL,
  `orden` int(11) UNSIGNED NOT NULL,
  `no_tabla` int(2) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Volcado de datos para la tabla `sys_menus`
--

INSERT INTO `sys_menus` (`id_menu`, `nombre`, `es_listado`, `tabla_relacionada`, `liga`, `menu_padre`, `en_permisos`, `icono`, `orden`, `no_tabla`) VALUES
(1, '4. Configuración', 0, '-', '-', 1, 1, 'img/configuracion.png', 10, 0),
(2, '2. Compras', 0, '-', '-', 2, 1, 'img/compras.png', 2, 0),
(3, '3. Almacén', 1, '-', '-', 3, 1, 'img/almacen.png', 2, 0),
(4, '1. Ventas', 1, '-', '-', 4, 1, 'img/ventas.png', 1, 0),
(5, 'Finanzas', 0, '-', '-', 5, 1, 'img/finanzas.png', 5, 0),
(11, '4.5 Usuarios', 1, 'sys_users', '-', 1, 1, NULL, 5, 0),
(12, '4.4 Sucursales', 1, 'sys_sucursales', '-', 1, 1, NULL, 4, 0),
(19, '2.2 Proveedores', 1, 'ec_proveedor', '-', 2, 1, NULL, 2, 0),
(23, '4.2 Productos', 1, 'ec_productos', '-', 1, 1, NULL, 2, 0),
(25, '2.1 Órdenes de compras ', 1, 'ec_oc', '-', 2, 1, NULL, 1, 0),
(41, '1.1 Clientes', 1, 'ec_clientes', '-', 4, 1, NULL, 1, 0),
(110, '4.1 Configuración de IVA', 1, 'ec_conf_iva', NULL, 1, 1, NULL, 1, 0),
(111, '3.1 Control de inventario', 1, 'ec_movimiento_inventario', NULL, 3, 1, NULL, 2, 0),
(112, '1.2 Notas de Ventas', 1, 'ec_ventas', NULL, 4, 1, NULL, 2, 0),
(113, '1.5 Importación Anterior', 0, NULL, 'code/especiales/Ventas/ventas.php?trash=', 4, 1, NULL, 5, 0),
(114, '4.3 Emisor fiscal', 1, 'ec_emisor', '-', 1, 1, NULL, 3, 0),
(115, '5. Reportes', 0, NULL, NULL, 115, 1, 'img/reportes.png', 60, 0),
(116, '5.1 Reporte de inventario', 0, NULL, 'code/reportes/reportes_mod.php?trash=&no_tabla=MA==&id_reporte=20', 115, 1, NULL, 1, 0),
(117, '4.6 Métodos de pago', 1, 'ec_forma_pago', '-', 1, 1, NULL, 6, 0),
(118, '4.7 Formas de pago', 1, 'ec_metodos_pago', '-', 1, 1, NULL, 7, 0),
(119, 'Configuracion de CFDI', 1, 'ec_cfdi', NULL, 1, 1, NULL, 8, 0),
(120, '1.3 Convertir archivo de Inbursa', 0, NULL, 'code/especiales/importa-exporta/prueba.php?', 4, 1, NULL, 3, 0),
(121, '5.2 Reporte de Notas de Venta', 0, NULL, 'code/reportes/reportes_mod.php?trash=&no_tabla=MA==&id_reporte=1', 115, 1, NULL, 2, 0),
(122, '4.8 Afiliaciones de Razon Social', 1, 'ec_razon_afiliaciones', NULL, 1, 1, NULL, 8, 0),
(123, '4.9 Configuración de Correos de Avisos', 1, 'sys_correos_avisos', NULL, 1, 1, NULL, 11, 0),
(124, '1.4 Captura de Ingresos', 0, NULL, 'code/especiales/capturaIngresos/inicio.php?', 4, 1, NULL, 4, 0),
(125, '5.3 Reporte de Inventario con Buscador', 0, NULL, 'code/especiales/inventario/inventario.php?', 115, 1, NULL, 3, 0),
(126, '4.10 configuración del Sistema', 1, 'ec_configuracion_razon', NULL, 1, 1, NULL, 12, 0),
(127, '3.2 Igualar Inventarios Negativos a Cero ', 0, NULL, 'code/especiales/inventario_a_ceros/inventario.php?', 3, 1, NULL, 2, 0),
(128, '4.13 Administración Productos', 0, NULL, 'gestionCL/facturacionProductos/index.php?a=a', 1, 1, NULL, 13, 0),
(129, '5.4 Reporte de inventario Facturación', 0, NULL, 'code/reportes/reportes_mod.php?trash=&no_tabla=MA==&id_reporte=30', 115, 1, NULL, 4, 0),
(130, '5.4 Reporte de Órdenes de Compra', 0, NULL, 'code/reportes/reportes_mod.php?trash=&no_tabla=MA==&id_reporte=21', 115, 1, NULL, 4, 0),
(131, '4.14 Catálogo de Tipos de Regimen Fiscal', 1, 'ec_tipos_regimenes_fiscales', NULL, 1, 1, NULL, 14, 0),
(132, '6. Herramientas', 0, NULL, NULL, 132, 1, NULL, 70, 0),
(133, '6.1 Consultas Prediseñadas', 0, NULL, 'code/especiales/herramientas/index.php?', 132, 1, NULL, 1, 0),
(134, '4.15 Catálogo de motivos de cancelación', 1, 'ec_motivos_cancelacion_factura', NULL, 1, 1, NULL, 15, 0),
(135, '4.16 Administración de sets de productos', 1, 'ec_sets', NULL, 1, 1, NULL, 16, 0);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_paises`
--

CREATE TABLE `sys_paises` (
  `id_pais` int(11) NOT NULL,
  `nombre` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `sys_paises`
--

INSERT INTO `sys_paises` (`id_pais`, `nombre`) VALUES
(1, 'México'),
(2, 'Alemania');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_permisos`
--

CREATE TABLE `sys_permisos` (
  `id_permiso` int(11) NOT NULL,
  `id_usuario` int(11) NOT NULL,
  `id_menu` int(11) NOT NULL,
  `ver` tinyint(1) DEFAULT '0',
  `modificar` tinyint(1) DEFAULT '0',
  `eliminar` tinyint(1) DEFAULT '0',
  `nuevo` tinyint(1) DEFAULT '0',
  `imprimir` tinyint(1) DEFAULT '0',
  `generar` tinyint(1) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `sys_permisos`
--

INSERT INTO `sys_permisos` (`id_permiso`, `id_usuario`, `id_menu`, `ver`, `modificar`, `eliminar`, `nuevo`, `imprimir`, `generar`) VALUES
(1, 1, 11, 1, 1, 1, 1, 1, 1),
(2, 1, 12, 1, 1, 1, 1, 1, 1),
(9, 1, 19, 1, 1, 1, 1, 1, 1),
(13, 1, 23, 1, 1, 1, 1, 1, 1),
(31, 1, 41, 1, 1, 1, 1, 1, 1),
(56, 2, 11, 1, 1, 1, 1, 1, 1),
(57, 2, 12, 1, 1, 1, 1, 1, 1),
(58, 2, 13, 1, 1, 1, 1, 1, 1),
(59, 2, 14, 1, 1, 1, 1, 1, 1),
(60, 2, 15, 1, 1, 1, 1, 1, 1),
(397, 6, 11, 1, 1, 1, 1, 1, 1),
(398, 6, 12, 1, 1, 1, 1, 1, 1),
(399, 6, 13, 1, 1, 1, 1, 1, 1),
(400, 6, 14, 1, 1, 1, 1, 1, 1),
(401, 6, 15, 1, 1, 1, 1, 1, 1),
(481, 2, 16, 1, 1, 1, 1, 1, 1),
(482, 2, 17, 1, 1, 1, 1, 1, 1),
(483, 2, 18, 1, 1, 1, 1, 1, 1),
(484, 2, 19, 1, 1, 1, 1, 1, 1),
(485, 2, 20, 1, 1, 1, 1, 1, 1),
(486, 2, 21, 1, 1, 1, 1, 1, 1),
(487, 2, 22, 1, 1, 1, 1, 1, 1),
(488, 2, 23, 1, 1, 1, 1, 1, 1),
(489, 2, 24, 1, 1, 1, 1, 1, 1),
(490, 2, 25, 1, 1, 1, 1, 1, 1),
(491, 2, 26, 1, 1, 1, 1, 1, 1),
(492, 2, 27, 1, 1, 1, 1, 1, 1),
(493, 2, 28, 1, 1, 1, 1, 1, 1),
(494, 2, 29, 1, 1, 1, 1, 1, 1),
(495, 2, 30, 1, 1, 1, 1, 1, 1),
(496, 2, 31, 1, 1, 1, 1, 1, 1),
(497, 2, 32, 1, 1, 1, 1, 1, 1),
(498, 2, 33, 1, 1, 1, 1, 1, 1),
(499, 2, 34, 1, 1, 1, 1, 1, 1),
(500, 2, 35, 1, 1, 1, 1, 1, 1),
(501, 2, 36, 1, 1, 1, 1, 1, 1),
(502, 2, 37, 1, 1, 1, 1, 1, 1),
(503, 2, 38, 1, 1, 1, 1, 1, 1),
(504, 2, 39, 1, 1, 1, 1, 1, 1),
(505, 2, 40, 1, 1, 1, 1, 1, 1),
(506, 2, 41, 1, 1, 1, 1, 1, 1),
(507, 2, 42, 1, 1, 1, 1, 1, 1),
(508, 2, 43, 1, 1, 1, 1, 1, 1),
(509, 2, 46, 1, 1, 1, 1, 1, 1),
(510, 2, 47, 1, 1, 1, 1, 1, 1),
(511, 2, 48, 1, 1, 1, 1, 1, 1),
(512, 2, 49, 1, 1, 1, 1, 1, 1),
(513, 2, 50, 1, 1, 1, 1, 1, 1),
(514, 2, 52, 1, 1, 1, 1, 1, 1),
(515, 2, 53, 1, 1, 1, 1, 1, 1),
(516, 2, 54, 1, 1, 1, 1, 1, 1),
(517, 2, 55, 1, 1, 1, 1, 1, 1),
(518, 2, 56, 1, 1, 1, 1, 1, 1),
(519, 2, 57, 1, 1, 1, 1, 1, 1),
(520, 2, 60, 1, 1, 1, 1, 1, 1),
(521, 2, 61, 1, 1, 1, 1, 1, 1),
(522, 2, 66, 1, 1, 1, 1, 1, 1),
(523, 2, 67, 1, 1, 1, 1, 1, 1),
(524, 2, 68, 1, 1, 1, 1, 1, 1),
(525, 2, 69, 1, 1, 1, 1, 1, 1),
(526, 2, 70, 1, 1, 1, 1, 1, 1),
(527, 2, 71, 1, 1, 1, 1, 1, 1),
(528, 2, 72, 1, 1, 1, 1, 1, 1),
(529, 2, 73, 1, 1, 1, 1, 1, 1),
(530, 2, 74, 1, 1, 1, 1, 1, 1),
(531, 2, 75, 1, 1, 1, 1, 1, 1),
(532, 2, 76, 1, 1, 1, 1, 1, 1),
(533, 2, 77, 1, 1, 1, 1, 1, 1),
(534, 2, 78, 1, 1, 1, 1, 1, 1),
(535, 2, 79, 1, 1, 1, 1, 1, 1),
(536, 2, 80, 1, 1, 1, 1, 1, 1),
(537, 2, 81, 1, 1, 1, 1, 1, 1),
(538, 2, 83, 1, 1, 1, 1, 1, 1),
(539, 2, 84, 1, 1, 1, 1, 1, 1),
(540, 2, 85, 1, 1, 1, 1, 1, 1),
(541, 2, 86, 1, 1, 1, 1, 1, 1),
(542, 2, 87, 1, 1, 1, 1, 1, 1),
(543, 2, 88, 1, 1, 1, 1, 1, 1),
(544, 2, 89, 1, 1, 1, 1, 1, 1),
(545, 2, 90, 1, 1, 1, 1, 1, 1),
(546, 2, 91, 1, 1, 1, 1, 1, 1),
(547, 2, 93, 1, 1, 1, 1, 1, 1),
(548, 2, 94, 1, 1, 1, 1, 1, 1),
(549, 6, 16, 1, 1, 1, 1, 1, 1),
(550, 6, 17, 1, 1, 1, 1, 1, 1),
(551, 6, 18, 1, 1, 1, 1, 1, 1),
(552, 6, 19, 1, 1, 1, 1, 1, 1),
(553, 6, 20, 1, 1, 1, 1, 1, 1),
(554, 6, 21, 1, 1, 1, 1, 1, 1),
(555, 6, 22, 1, 1, 1, 1, 1, 1),
(556, 6, 23, 1, 1, 1, 1, 1, 1),
(557, 6, 24, 1, 1, 1, 1, 1, 1),
(558, 6, 25, 1, 1, 1, 1, 1, 1),
(559, 6, 26, 1, 1, 1, 1, 1, 1),
(560, 6, 27, 1, 1, 1, 1, 1, 1),
(561, 6, 28, 1, 1, 1, 1, 1, 1),
(562, 6, 29, 1, 1, 1, 1, 1, 1),
(563, 6, 30, 1, 1, 1, 1, 1, 1),
(564, 6, 31, 1, 1, 1, 1, 1, 1),
(565, 6, 32, 1, 1, 1, 1, 1, 1),
(566, 6, 33, 1, 1, 1, 1, 1, 1),
(567, 6, 34, 1, 1, 1, 1, 1, 1),
(568, 6, 35, 1, 1, 1, 1, 1, 1),
(569, 6, 36, 1, 1, 1, 1, 1, 1),
(570, 6, 37, 1, 1, 1, 1, 1, 1),
(571, 6, 38, 1, 1, 1, 1, 1, 1),
(572, 6, 39, 1, 1, 1, 1, 1, 1),
(573, 6, 40, 1, 1, 1, 1, 1, 1),
(574, 6, 41, 1, 1, 1, 1, 1, 1),
(575, 6, 42, 1, 1, 1, 1, 1, 1),
(576, 6, 43, 1, 1, 1, 1, 1, 1),
(577, 6, 46, 1, 1, 1, 1, 1, 1),
(578, 6, 47, 1, 1, 1, 1, 1, 1),
(579, 6, 48, 1, 1, 1, 1, 1, 1),
(580, 6, 49, 1, 1, 1, 1, 1, 1),
(581, 6, 50, 1, 1, 1, 1, 1, 1),
(582, 6, 52, 1, 1, 1, 1, 1, 1),
(583, 6, 53, 1, 1, 1, 1, 1, 1),
(584, 6, 54, 1, 1, 1, 1, 1, 1),
(585, 6, 55, 1, 1, 1, 1, 1, 1),
(586, 6, 56, 1, 1, 1, 1, 1, 1),
(587, 6, 57, 1, 1, 1, 1, 1, 1),
(588, 6, 60, 1, 1, 1, 1, 1, 1),
(589, 6, 61, 1, 1, 1, 1, 1, 1),
(590, 6, 66, 1, 1, 1, 1, 1, 1),
(591, 6, 67, 1, 1, 1, 1, 1, 1),
(592, 6, 68, 1, 1, 1, 1, 1, 1),
(593, 6, 69, 1, 1, 1, 1, 1, 1),
(594, 6, 70, 1, 1, 1, 1, 1, 1),
(595, 6, 71, 1, 1, 1, 1, 1, 1),
(596, 6, 72, 1, 1, 1, 1, 1, 1),
(597, 6, 73, 1, 1, 1, 1, 1, 1),
(598, 6, 74, 1, 1, 1, 1, 1, 1),
(599, 6, 75, 1, 1, 1, 1, 1, 1),
(600, 6, 76, 1, 1, 1, 1, 1, 1),
(601, 6, 77, 1, 1, 1, 1, 1, 1),
(602, 6, 78, 1, 1, 1, 1, 1, 1),
(603, 6, 79, 1, 1, 1, 1, 1, 1),
(604, 6, 80, 1, 1, 1, 1, 1, 1),
(605, 6, 81, 1, 1, 1, 1, 1, 1),
(606, 6, 83, 1, 1, 1, 1, 1, 1),
(607, 6, 84, 1, 1, 1, 1, 1, 1),
(608, 6, 85, 1, 1, 1, 1, 1, 1),
(609, 6, 86, 1, 1, 1, 1, 1, 1),
(610, 6, 87, 1, 1, 1, 1, 1, 1),
(611, 6, 88, 1, 1, 1, 1, 1, 1),
(612, 6, 89, 1, 1, 1, 1, 1, 1),
(613, 6, 90, 1, 1, 1, 1, 1, 1),
(614, 6, 91, 1, 1, 1, 1, 1, 1),
(615, 6, 93, 1, 1, 1, 1, 1, 1),
(616, 6, 94, 1, 1, 1, 1, 1, 1),
(620, 2, 95, 1, 1, 1, 1, 1, 1),
(621, 2, 96, 1, 1, 1, 1, 1, 1),
(622, 2, 97, 1, 1, 1, 1, 1, 1),
(623, 2, 98, 1, 1, 1, 1, 1, 1),
(624, 6, 95, 1, 1, 1, 1, 1, 1),
(625, 6, 96, 1, 1, 1, 1, 1, 1),
(626, 6, 97, 1, 1, 1, 1, 1, 1),
(627, 6, 98, 1, 1, 1, 1, 1, 1),
(631, 7, 11, 0, 0, 0, 0, 0, 0),
(632, 7, 12, 0, 0, 0, 0, 0, 0),
(635, 7, 19, 1, 1, 1, 1, 1, 1),
(639, 7, 23, 1, 1, 1, 1, 1, 1),
(641, 7, 25, 1, 1, 1, 1, 1, 1),
(648, 7, 41, 1, 1, 1, 1, 1, 1),
(682, 8, 11, 1, 1, 1, 1, 1, 1),
(683, 8, 12, 1, 1, 1, 1, 1, 1),
(686, 8, 19, 1, 1, 1, 1, 1, 1),
(732, 9, 11, 1, 1, 1, 1, 1, 1),
(733, 9, 12, 1, 1, 1, 1, 1, 1),
(734, 9, 14, 1, 1, 1, 1, 1, 1),
(735, 9, 15, 1, 1, 1, 1, 1, 1),
(736, 9, 19, 1, 1, 1, 1, 1, 1),
(737, 9, 20, 1, 1, 1, 1, 1, 1),
(738, 9, 21, 1, 1, 1, 1, 1, 1),
(739, 9, 22, 1, 1, 1, 1, 1, 1),
(740, 9, 23, 1, 1, 1, 1, 1, 1),
(741, 9, 24, 1, 1, 1, 1, 1, 1),
(742, 9, 25, 1, 1, 1, 1, 1, 1),
(743, 9, 26, 1, 1, 1, 1, 1, 1),
(744, 9, 27, 1, 1, 1, 1, 1, 1),
(745, 9, 28, 1, 1, 1, 1, 1, 1),
(746, 9, 29, 0, 0, 0, 0, 0, 0),
(747, 9, 32, 0, 0, 0, 0, 0, 0),
(748, 9, 36, 0, 0, 0, 0, 0, 0),
(749, 9, 41, 0, 0, 0, 0, 0, 0),
(750, 9, 42, 0, 0, 0, 0, 0, 0),
(751, 9, 43, 1, 1, 1, 1, 1, 1),
(752, 9, 50, 1, 1, 1, 1, 1, 1),
(753, 9, 57, 0, 0, 0, 0, 0, 0),
(754, 9, 65, 0, 0, 0, 0, 0, 0),
(755, 9, 66, 0, 0, 0, 0, 0, 0),
(756, 9, 67, 0, 0, 0, 0, 0, 0),
(757, 9, 68, 0, 0, 0, 0, 0, 0),
(758, 9, 69, 0, 0, 0, 0, 0, 0),
(759, 9, 70, 0, 0, 0, 0, 0, 0),
(760, 9, 71, 0, 0, 0, 0, 0, 0),
(761, 9, 72, 0, 0, 0, 0, 0, 0),
(762, 9, 73, 0, 0, 0, 0, 0, 0),
(763, 9, 74, 0, 0, 0, 0, 0, 0),
(764, 9, 77, 0, 0, 0, 0, 0, 0),
(765, 9, 81, 0, 0, 0, 0, 0, 0),
(766, 9, 83, 0, 0, 0, 0, 0, 0),
(767, 9, 84, 0, 0, 0, 0, 0, 0),
(768, 9, 85, 0, 0, 0, 0, 0, 0),
(769, 9, 86, 0, 0, 0, 0, 0, 0),
(770, 9, 87, 0, 0, 0, 0, 0, 0),
(771, 9, 88, 0, 0, 0, 0, 0, 0),
(772, 9, 89, 0, 0, 0, 0, 0, 0),
(773, 9, 90, 0, 0, 0, 0, 0, 0),
(774, 9, 91, 0, 0, 0, 0, 0, 0),
(775, 9, 93, 0, 0, 0, 0, 0, 0),
(776, 9, 94, 0, 0, 0, 0, 0, 0),
(777, 9, 95, 0, 0, 0, 0, 0, 0),
(778, 9, 96, 0, 0, 0, 0, 0, 0),
(779, 9, 97, 0, 0, 0, 0, 0, 0),
(780, 9, 98, 0, 0, 0, 0, 0, 0),
(781, 9, 99, 1, 1, 1, 1, 1, 1),
(787, 8, 23, 1, 1, 1, 1, 1, 1),
(789, 8, 25, 1, 1, 1, 1, 1, 1),
(796, 8, 41, 1, 1, 1, 1, 1, 1),
(839, 1, 25, 1, 1, 1, 1, 1, 1),
(840, 10, 11, 1, 1, 1, 1, 1, 1),
(841, 10, 12, 1, 1, 1, 1, 1, 1),
(842, 10, 19, 1, 1, 1, 1, 1, 1),
(843, 10, 23, 1, 1, 1, 1, 1, 1),
(844, 10, 25, 1, 1, 1, 1, 1, 1),
(845, 10, 41, 1, 1, 1, 1, 1, 1),
(846, 10, 66, 1, 1, 1, 1, 1, 1),
(847, 10, 67, 1, 1, 1, 1, 1, 1),
(848, 10, 68, 1, 1, 1, 1, 1, 1),
(849, 10, 69, 1, 1, 1, 1, 1, 1),
(850, 10, 70, 1, 1, 1, 1, 1, 1),
(851, 10, 71, 1, 1, 1, 1, 1, 1),
(852, 10, 72, 1, 1, 1, 1, 1, 1),
(853, 10, 73, 1, 1, 1, 1, 1, 1),
(854, 10, 74, 1, 1, 1, 1, 1, 1),
(855, 10, 95, 1, 1, 1, 1, 1, 1),
(856, 10, 96, 1, 1, 1, 1, 1, 1),
(857, 10, 97, 1, 1, 1, 1, 1, 1),
(858, 10, 98, 1, 1, 1, 1, 1, 1),
(859, 10, 101, 1, 1, 1, 1, 1, 1),
(860, 10, 107, 1, 1, 1, 1, 1, 1),
(861, 10, 109, 1, 1, 1, 1, 1, 1),
(862, 1, 110, 1, 1, 1, 1, 1, 1),
(866, 1, 111, 1, 1, 1, 1, 1, 1),
(867, 1, 112, 1, 1, 1, 1, 1, 1),
(868, 1, 113, 1, 1, 1, 1, 1, 1),
(869, 1, 114, 1, 1, 1, 1, 1, 1),
(870, 1, 116, 1, 1, 1, 1, 1, 1),
(871, 1, 117, 1, 1, 1, 1, 1, 1),
(872, 1, 118, 1, 1, 1, 1, 1, 1),
(873, 11, 11, 1, 1, 1, 1, 1, 1),
(874, 11, 12, 1, 1, 1, 1, 1, 1),
(875, 11, 19, 1, 1, 1, 1, 1, 1),
(876, 11, 23, 1, 1, 1, 1, 1, 1),
(877, 11, 25, 1, 1, 1, 1, 1, 1),
(878, 11, 41, 1, 1, 1, 1, 1, 1),
(879, 11, 110, 1, 1, 1, 1, 1, 1),
(880, 11, 111, 1, 1, 1, 1, 1, 1),
(881, 11, 112, 1, 1, 1, 1, 1, 1),
(882, 11, 113, 1, 1, 1, 1, 1, 1),
(883, 11, 114, 1, 1, 1, 1, 1, 1),
(884, 11, 116, 1, 1, 1, 1, 1, 1),
(885, 11, 117, 1, 1, 1, 1, 1, 1),
(886, 11, 118, 1, 1, 1, 1, 1, 1),
(887, 7, 110, 0, 0, 0, 0, 0, 0),
(888, 7, 111, 1, 1, 1, 1, 1, 1),
(889, 7, 112, 1, 1, 1, 1, 1, 1),
(890, 7, 113, 1, 1, 1, 1, 1, 1),
(891, 7, 114, 0, 0, 0, 0, 0, 0),
(892, 7, 116, 1, 1, 1, 1, 1, 1),
(893, 7, 117, 0, 0, 0, 0, 0, 0),
(894, 7, 118, 0, 0, 0, 0, 0, 0),
(895, 7, 119, 0, 0, 0, 0, 0, 0),
(896, 8, 110, 1, 1, 1, 1, 1, 1),
(897, 8, 111, 1, 1, 1, 1, 1, 1),
(898, 8, 112, 1, 1, 1, 1, 1, 1),
(899, 8, 113, 1, 1, 1, 1, 1, 1),
(900, 8, 114, 1, 1, 1, 1, 1, 1),
(901, 8, 116, 1, 1, 1, 1, 1, 1),
(902, 8, 117, 1, 1, 1, 1, 1, 1),
(903, 8, 118, 1, 1, 1, 1, 1, 1),
(904, 8, 119, 1, 1, 1, 1, 1, 1),
(905, 8, 120, 1, 1, 1, 1, 1, 1),
(906, 1, 119, 1, 1, 1, 1, 1, 1),
(907, 1, 120, 1, 1, 1, 1, 1, 1),
(908, 7, 120, 1, 1, 1, 1, 1, 1),
(909, 7, 121, 1, 1, 1, 1, 1, 1),
(910, 1, 121, 1, 1, 1, 1, 1, 1),
(911, 1, 122, 1, 1, 1, 1, 1, 1),
(912, 1, 126, 1, 1, 1, 1, 1, 1),
(913, 1, 125, 1, 1, 1, 1, 1, 1),
(914, 1, 123, 1, 1, 1, 1, 1, 1),
(915, 1, 124, 1, 1, 1, 1, 1, 1),
(916, 8, 121, 1, 1, 1, 1, 1, 1),
(917, 8, 122, 1, 1, 1, 1, 1, 1),
(918, 8, 123, 1, 1, 1, 1, 1, 1),
(919, 8, 124, 1, 1, 1, 1, 1, 1),
(920, 8, 125, 1, 1, 1, 1, 1, 1),
(921, 8, 126, 1, 1, 1, 1, 1, 1),
(922, 7, 122, 0, 0, 0, 0, 0, 0),
(923, 7, 123, 0, 0, 0, 0, 0, 0),
(924, 7, 124, 1, 1, 1, 1, 1, 1),
(925, 7, 125, 1, 1, 1, 1, 1, 1),
(926, 7, 126, 0, 0, 0, 0, 0, 0),
(927, 1, 127, 1, 1, 1, 1, 1, 1),
(928, 7, 127, 0, 0, 0, 0, 0, 0),
(929, 1, 128, 1, 1, 1, 1, 1, 1),
(930, 7, 128, 0, 0, 0, 0, 0, 0),
(932, 1, 129, 1, 1, 1, 1, 1, 1),
(933, 7, 129, 0, 0, 0, 0, 0, 0),
(934, 7, 130, 1, 1, 1, 1, 1, 1),
(935, 7, 131, 0, 0, 0, 0, 0, 0),
(936, 1, 130, 1, 1, 1, 1, 1, 1),
(937, 1, 131, 1, 1, 1, 1, 1, 1),
(938, 1, 133, 1, 1, 1, 1, 1, 1),
(939, 12, 11, 0, 0, 0, 0, 0, 0),
(940, 12, 12, 0, 0, 0, 0, 0, 0),
(941, 12, 19, 0, 0, 0, 0, 0, 0),
(942, 12, 23, 1, 1, 1, 1, 1, 1),
(943, 12, 25, 1, 1, 0, 1, 1, 1),
(944, 12, 41, 1, 1, 1, 1, 1, 1),
(945, 12, 110, 0, 0, 0, 0, 0, 0),
(946, 12, 111, 0, 0, 0, 0, 0, 0),
(947, 12, 112, 1, 1, 0, 1, 1, 1),
(948, 12, 113, 0, 0, 0, 0, 0, 0),
(949, 12, 114, 0, 0, 0, 0, 0, 0),
(950, 12, 116, 1, 1, 0, 0, 0, 0),
(951, 12, 117, 0, 0, 0, 0, 0, 0),
(952, 12, 118, 0, 0, 0, 0, 0, 0),
(953, 12, 119, 0, 0, 0, 0, 0, 0),
(954, 12, 120, 1, 1, 0, 0, 0, 0),
(955, 12, 121, 1, 1, 0, 0, 0, 0),
(956, 12, 122, 0, 0, 0, 0, 0, 0),
(957, 12, 123, 0, 0, 0, 0, 0, 0),
(958, 12, 124, 1, 1, 1, 1, 1, 1),
(959, 12, 125, 1, 1, 0, 0, 0, 0),
(960, 12, 126, 0, 0, 0, 0, 0, 0),
(961, 12, 127, 0, 0, 0, 0, 0, 0),
(962, 12, 128, 0, 0, 0, 0, 0, 0),
(963, 12, 129, 1, 1, 0, 0, 0, 0),
(964, 12, 130, 1, 1, 0, 0, 0, 0),
(965, 12, 131, 0, 0, 0, 0, 0, 0),
(966, 12, 133, 0, 0, 0, 0, 0, 0),
(967, 12, 134, 0, 0, 0, 0, 0, 0);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_permisos_funciones`
--

CREATE TABLE `sys_permisos_funciones` (
  `id_permiso_funcion` int(11) NOT NULL,
  `alias` varchar(80) NOT NULL,
  `nombre` varchar(80) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `sys_permisos_funciones`
--

INSERT INTO `sys_permisos_funciones` (`id_permiso_funcion`, `alias`, `nombre`) VALUES
(1, 'Autorizar Requisiciones', 'aut_requisiones'),
(2, 'Autorizar Pedidos', 'aut_pedidos'),
(3, 'Modificar Ordenes de compra en surtimiento', 'mod_oc_surtimiento'),
(4, 'Modificar Pedidos en surtimiento', 'mod_ped_surtimiento'),
(5, 'Finalizar pedidos', 'fin_pedidos'),
(6, 'Finalizar Ordenes de compra', 'fin_ordenes');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_permisos_funcusers`
--

CREATE TABLE `sys_permisos_funcusers` (
  `id_permiso_funcuser` int(11) NOT NULL,
  `id_usuario` int(11) NOT NULL,
  `id_permiso_funcion` int(11) NOT NULL,
  `permiso` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `sys_permisos_funcusers`
--

INSERT INTO `sys_permisos_funcusers` (`id_permiso_funcuser`, `id_usuario`, `id_permiso_funcion`, `permiso`) VALUES
(1, 1, 1, 0),
(2, 1, 1, 0),
(3, 1, 1, 0),
(4, 1, 1, 0),
(5, 1, 1, 0),
(6, 1, 1, 0),
(7, 10, 4, 1),
(8, 10, 3, 1),
(9, 10, 5, 1),
(10, 10, 6, 1),
(11, 10, 1, 1),
(12, 10, 2, 1),
(13, 0, 1, 0),
(14, 0, 1, 0),
(15, 0, 1, 0),
(16, 0, 1, 0),
(17, 0, 1, 0);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_plantilla`
--

CREATE TABLE `sys_plantilla` (
  `id_plantilla` int(11) NOT NULL,
  `nombre` varchar(60) NOT NULL,
  `ruta_css` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `sys_plantilla`
--

INSERT INTO `sys_plantilla` (`id_plantilla`, `nombre`, `ruta_css`) VALUES
(1, 'Clásica', 'css/estilo_final1.css'),
(2, 'Billarmex', 'css/billarmex.css'),
(3, 'Casa de las luces', 'css/luces.css'),
(4, 'Capslim', 'css/capslim.css');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_razones_sociales`
--

CREATE TABLE `sys_razones_sociales` (
  `id_razon_social` int(11) NOT NULL,
  `rfc` varchar(20) NOT NULL,
  `razon_social` varchar(80) NOT NULL,
  `calle` varchar(80) NOT NULL,
  `no_int` varchar(20) NOT NULL,
  `no_ext` varchar(20) NOT NULL,
  `colonia` varchar(80) NOT NULL,
  `del_municipio` varchar(80) NOT NULL,
  `cp` varchar(10) NOT NULL,
  `id_pais` int(11) NOT NULL,
  `id_estado` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Volcado de datos para la tabla `sys_razones_sociales`
--

INSERT INTO `sys_razones_sociales` (`id_razon_social`, `rfc`, `razon_social`, `calle`, `no_int`, `no_ext`, `colonia`, `del_municipio`, `cp`, `id_pais`, `id_estado`) VALUES
(-1, 'No aplica', '-No aplica-', 'No aplica', 'No aplica', 'No aplica', 'No aplica', 'No aplica', 'No aplica', 1, 16),
(1, 'FOCJ8503264C6', 'Jesús Iván Flores Cruz', 'Camelina', '', 'Mz 10A Lt 12', 'Buenavista', 'Iztapalapa', '09700', 1, 16),
(2, 'LFTG3490235T3', 'Razon social de prueba', 'calle de pruena', '', '10', 'Prueba', 'Prueba', '0900', 1, 2);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_reportes`
--

CREATE TABLE `sys_reportes` (
  `id_reporte` int(11) NOT NULL,
  `titulo` varchar(120) CHARACTER SET utf8 COLLATE utf8_spanish_ci NOT NULL,
  `consulta` text COLLATE utf8_bin NOT NULL,
  `campo_fecha` varchar(120) CHARACTER SET utf8 COLLATE utf8_spanish_ci NOT NULL,
  `ver_sumatorias` tinyint(1) NOT NULL,
  `consulta_sum` text COLLATE utf8_bin NOT NULL,
  `consulta_vacia` text COLLATE utf8_bin NOT NULL,
  `campoSucursal` varchar(120) COLLATE utf8_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Volcado de datos para la tabla `sys_reportes`
--

INSERT INTO `sys_reportes` (`id_reporte`, `titulo`, `consulta`, `campo_fecha`, `ver_sumatorias`, `consulta_sum`, `consulta_vacia`, `campoSucursal`) VALUES
(1, 'Reporte de ventas', 'SELECT\r\nv.folio,\r\nv.folio_fiscal,\r\nc.nombre,\r\nCONCAT(v.fecha,\'<br> \',v.hora),\r\nv.subtotal,\r\nv.iva,\r\nv.total,\r\nIF(v.facturado=1,\'facturado\',\'sin facturar\'),\r\nmp.nombre,\r\nfp.nombre,\r\nIF(v.cancelado=1,\'CANCELADO\',\'\')\r\nFROM ec_ventas v\r\nJOIN ec_clientes c on v.id_cliente=c.id_cliente\r\nJOIN ec_metodos_pago mp ON v.id_metodo_pago=mp.id_metodo_pago\r\nJOIN ec_forma_pago fp ON v.id_forma_pago=fp.id_forma_pago\r\nWHERE 1 AND (v.fecha BETWEEN \'$fecIni\' AND \'$fecFin\')\r\nXXX\r\nORDER BY v.fecha,v.hora ASC', 'NO', 0, '', 'SELECT\r\n_CAMPOS_\r\nFROM ec_ventas v\r\nJOIN ec_clientes c on v.id_cliente=c.id_cliente\r\nJOIN ec_metodos_pago mp ON v.id_metodo_pago=mp.id_metodo_pago\r\nJOIN ec_forma_pago fp ON v.id_forma_pago=fp.id_forma_pago\r\nWHERE 1 AND (v.fecha BETWEEN \'$fecIni\' AND \'$fecFin\')\r\nXXX\r\nORDER BY v.fecha,v.hora ASC', 'v.id_sucursal'),
(20, ' Reporte de inventario', 'SELECT\r\norden_lista,\r\nnombre,\r\nCompras,\r\nVentas,\r\nInvFin,\r\nUltPreCom,\r\nprecio_venta,\r\nUltPreCom*InvFin\r\nFROM\r\n(\r\nSELECT\r\np.orden_lista,\r\np.nombre,\r\nSUM(\r\n	IF(m.id_compra <> -1 AND m.fecha >= \'$fecIni\' AND m.fecha <= \'$fecFin\',\r\n		IF(md.cantidad IS NULL, 0, md.cantidad),\r\n		0\r\n	)\r\n) AS Compras,\r\nSUM(\r\n	IF(m.id_venta <> -1 AND m.fecha >= \'$fecIni\' AND m.fecha <= \'$fecFin\',\r\n		IF(md.cantidad IS NULL, 0, md.cantidad),\r\n		0\r\n	)\r\n) AS Ventas,\r\nSUM(\r\n	IF(m.fecha <= \'$fecFin\',\r\n		IF(md.cantidad IS NULL, 0, md.cantidad*tm.afecta),\r\n		0\r\n	)\r\n) AS InvFin,\r\n(\r\n	SELECT\r\n	ROUND(ec_detalle_compra.precio,2)\r\n	FROM ec_detalle_compra\r\n	JOIN ec_oc ON ec_detalle_compra.id_orden_compra = ec_oc.id_orden_compra\r\n	WHERE ec_oc.fecha <= \'$fecFin\'\r\n        AND ec_detalle_compra.id_producto = p.id_productos\r\n        ORDER BY ec_oc.id_orden_compra DESC\r\n        LIMIT 1\r\n) AS UltPreCom,\r\np.precio_venta\r\nFROM ec_productos p\r\nLEFT JOIN ec_detalle_movimiento md ON p.id_productos = md.id_producto\r\nLEFT JOIN ec_movimiento_inventario m ON md.id_movimiento_inventario = m.id_movimiento_inventario\r\nLEFT JOIN ec_tipos_movimiento tm ON m.id_tipo_movimiento = tm.id_movimiento\r\nLEFT JOIN ec_ventas pdo ON m.id_venta = pdo.id_venta\r\nLEFT JOIN ec_oc o ON m.id_compra = o.id_orden_compra\r\nWHERE m.fecha <= \'$fecFin\'\r\nXXX\r\nGROUP BY p.id_productos\r\n) p\r\nWHERE 1\r\nORDER BY orden_lista', 'NO', 1, 'SELECT\r\n\'Total\',\r\n\'\',\r\nSUM(Compras),\r\nSUM(Ventas),\r\nSUM(InvFin),\r\n\'\',\r\n\'\',\r\nSUM(UltPreCom*InvFin)\r\nFROM\r\n(\r\nSELECT\r\np.orden_lista,\r\np.nombre,\r\nSUM(\r\n	IF(m.id_compra <> -1 AND m.fecha >= \'$fecIni\' AND m.fecha <= \'$fecFin\',\r\n		IF(md.cantidad IS NULL, 0, md.cantidad),\r\n		0\r\n	)\r\n) AS Compras,\r\nSUM(\r\n	IF(m.id_venta <> -1 AND m.fecha >= \'$fecIni\' AND m.fecha <= \'$fecFin\',\r\n		IF(md.cantidad IS NULL, 0, md.cantidad),\r\n		0\r\n	)\r\n) AS Ventas,\r\nSUM(\r\n	IF(m.fecha <= \'$fecFin\',\r\n		IF(md.cantidad IS NULL, 0, md.cantidad*tm.afecta),\r\n		0\r\n	)\r\n) AS InvFin,\r\n\'\' AS UltPreCom,\r\n\'\' AS PreVen\r\nFROM ec_productos p\r\nLEFT JOIN ec_detalle_movimiento md ON p.id_productos = md.id_producto\r\nLEFT JOIN ec_movimiento_inventario m ON md.id_movimiento_inventario = m.id_movimiento_inventario\r\nLEFT JOIN ec_tipos_movimiento tm ON m.id_tipo_movimiento = tm.id_movimiento\r\nLEFT JOIN ec_ventas pdo ON m.id_venta = pdo.id_venta\r\nLEFT JOIN ec_oc o ON m.id_compra = o.id_orden_compra\r\nWHERE m.fecha <= \'$fecFin\'\r\nXXX\r\nGROUP BY p.id_productos\r\n) p\r\nWHERE 1\r\nORDER BY Compras DESC, Ventas DESC, nombre', 'SELECT\r\n_CAMPOS_\r\nFROM ec_productos p\r\nLEFT JOIN ec_detalle_movimiento md ON p.id_productos = md.id_producto\r\nLEFT JOIN ec_movimiento_inventario m ON md.id_movimiento_inventario = m.id_movimiento_inventario\r\nLEFT JOIN ec_tipos_movimiento tm ON m.id_tipo_movimiento = tm.id_movimiento\r\nLEFT JOIN ec_ventas pdo ON m.id_venta = pdo.id_venta\r\nLEFT JOIN ec_oc o ON m.id_compra = o.id_orden_compra\r\nWHERE m.fecha <= \'$fecFin\'\r\nXXX\r\nGROUP BY p.id_productos\r\nORDER BY Compras DESC, Ventas DESC, nombre', 'm.id_sucursal'),
(21, 'Reporte de Ordenes de Compra', 'SELECT\r\noc.id_orden_compra,\r\noc.folio,\r\np.nombre_comercial,\r\noc.subtotal,\r\noc.total,\r\noc.fecha\r\nFROM ec_oc oc\r\nJOIN ec_proveedor p ON oc.id_proveedor = p.id_proveedor\r\nWHERE 1\r\nXXX', 'oc.fecha', 0, '', 'SELECT\r\n_CAMPOS_\r\nFROM ec_oc oc\r\nJOIN ec_proveedor p ON oc.id_proveedor = p.id_proveedor\r\nWHERE 1', NULL),
(30, '', 'SELECT\n	p.id_productos,\n    p.orden_lista AS clave_sat,\n 	p.nombre,\n	p.nombre_etiqueta,\n	SUM(\n		IF(\n    		m.id_movimiento_inventario IS NOT NULL AND m.fecha <= \'$fecIni\',\n        	md.cantidad * tm.afecta,\n        	0\n        )\n    ) as inventarioInicial,\n	SUM(\n		IF(\n	    	m.id_movimiento_inventario IS NOT NULL AND m.id_tipo_movimiento = 1\n	    	AND (m.fecha BETWEEN \'$fecIni\' AND \'$fecFin\'),\n	        md.cantidad,\n	        0\n	    )\n    ) as entradas,\n	SUM(\n    	IF(\n	    	m.id_movimiento_inventario IS NOT NULL AND m.id_tipo_movimiento = 2 \n	    	AND (m.fecha BETWEEN \'$fecIni\' AND \'$fecFin\'),\n	        md.cantidad,\n	        0\n    	) \n    )as salidas,\n    SUM(\n		IF(\n	    	m.id_movimiento_inventario IS NOT NULL AND m.fecha <= \'$fecFin\',\n	        md.cantidad * tm.afecta,\n	        0\n	    )\n    ) as inventarioFinal\nFROM ec_productos p\nLEFT JOIN ec_detalle_movimiento md ON p.id_productos = md.id_producto\nLEFT JOIN ec_movimiento_inventario m ON md.id_movimiento_inventario = m.id_movimiento_inventario\nLEFT JOIN ec_tipos_movimiento tm ON m.id_tipo_movimiento = tm.id_movimiento\nWHERE 1\nGROUP BY p.id_productos', 'NO', 0, '', 'SELECT\r\n_CAMPOS_\r\nFROM ec_productos p\r\nLEFT JOIN ec_detalle_movimiento md ON p.id_productos = md.id_producto\r\nLEFT JOIN ec_movimiento_inventario m ON md.id_movimiento_inventario = m.id_movimiento_inventario\r\nLEFT JOIN ec_tipos_movimiento tm ON m.id_tipo_movimiento = tm.id_movimiento\r\nWHERE 1\r\nGROUP BY p.id_productos', NULL);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_reportes_columnas`
--

CREATE TABLE `sys_reportes_columnas` (
  `id_reporte_columna` int(11) NOT NULL,
  `id_reporte` int(11) NOT NULL,
  `campo` varchar(120) CHARACTER SET utf8 COLLATE utf8_spanish_ci NOT NULL,
  `display` varchar(120) CHARACTER SET utf8 COLLATE utf8_spanish_ci NOT NULL,
  `sumatoria` tinyint(1) NOT NULL,
  `orden` int(3) NOT NULL,
  `tipo` varchar(120) CHARACTER SET utf8 COLLATE utf8_spanish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Volcado de datos para la tabla `sys_reportes_columnas`
--

INSERT INTO `sys_reportes_columnas` (`id_reporte_columna`, `id_reporte`, `campo`, `display`, `sumatoria`, `orden`, `tipo`) VALUES
(1, 1, 'v.folio', 'FOLIO', 0, 1, 'label'),
(2, 1, 'v.folio_fiscal', 'FOLIO FISCAL', 0, 2, 'label'),
(3, 1, 'c.nombre', 'CLIENTE', 0, 3, 'label'),
(4, 1, 'CONCAT(v.fecha,\'<br> \',v.hora)', 'FECHA', 0, 4, 'label'),
(5, 1, 'v.subtotal', 'SUBTOTAL', 0, 5, 'values'),
(6, 1, 'v.iva', 'IVA', 0, 6, 'values'),
(7, 1, 'v.total', 'TOTAL', 0, 7, 'values'),
(8, 1, 'IF(v.facturado=1,\'facturado\',\'sin facturar\')', 'ESTATUS', 0, 8, 'label'),
(9, 1, 'mp.nombre', 'METODO DE PAGO', 0, 9, 'label'),
(10, 1, 'mp.nombre', 'METODO DE PAGO', 0, 10, 'label'),
(11, 1, 'v.cancelado', 'CANCELADO', 0, 11, 'label'),
(50, 20, 'p.orden_lista', 'Orden de lista', 0, 1, 'label'),
(51, 20, 'p.nombre', 'Producto', 0, 2, 'label'),
(53, 20, 'p.nombre', 'Compras', 1, 3, 'values'),
(54, 20, 'p.nombre', 'Ventas', 1, 4, 'values'),
(55, 20, 'p.nombre', 'Inventario', 1, 5, 'values'),
(56, 20, 'p.nombre', 'Ultimo precio compra', 1, 6, 'values'),
(59, 20, 'p.precio_venta', 'Precio Venta', 1, 7, 'values'),
(60, 20, 'p.nombre', 'Total', 1, 8, 'values'),
(61, 3, 'SUM(monto)', 'Monto', 1, 2, 'values'),
(62, 3, 'SUM(abonado)', 'Abonado', 1, 3, 'values'),
(63, 3, 'MAX(fecha_ultimo_pago)', 'Ultimo pago', 0, 4, 'label'),
(64, 4, 't.folio', 'Folio', 0, 1, 'label'),
(65, 4, 's1.nombre', 'Sucursal origen', 0, 2, 'label'),
(66, 4, 'a1.nombre', 'Almacén origen', 0, 3, 'label'),
(67, 4, 's2.nombre', 'Sucursal destino', 0, 4, 'label'),
(68, 5, 'CONCAT(u.nombre, \' \', u.apellido_paterno, \' \', u.apellido_materno)', 'Creada por', 0, 1, 'label'),
(69, 5, 'o.fecha', 'Fecha', 0, 2, 'label'),
(70, 5, 'c.nombre', 'Concepto', 0, 3, 'label'),
(71, 6, 'p.orden_lista', 'Orden de lista', 0, 1, 'label'),
(72, 6, 'p.nombre', 'Producto', 0, 2, 'label'),
(73, 6, 'p.ubicacion_almacen', 'Ubicación de almacén', 0, 3, 'label'),
(74, 6, '(\n	CASE t.id_tipo\n		WHEN 1 THEN \'Urgente\'\n		WHEN 2 THEN \'Libre\'\n		WHEN 3 THEN \'Medio\'\n		WHEN 4 THEN \'Alto\'\n	END\n)', 'Prioridad', 0, 4, 'label'),
(75, 7, 'p.orden_lista', 'Orden de lista', 0, 1, 'CHAR'),
(76, 7, 'p.nombre', 'Producto', 0, 2, 'CHAR'),
(77, 7, 'SUM(\n	IF(\n		md.id_movimiento IS NULL,\n		0,\n		md.cantidad*tm.afecta\n	)\n)', 'Stock actual', 0, 3, 'CHAR'),
(80, 8, 'p.orden_lista', 'Orden de lista', 0, 1, 'label'),
(81, 8, 'p.nombre', 'Nombre', 0, 2, 'label'),
(82, 9, 'p.nombre', 'Nombre', 0, 1, 'label'),
(84, 9, 'p.ubicacion_almacen', 'Ubicación de almacén', 0, 2, 'CHAR'),
(85, 10, 'p.nombre', 'Producto', 0, 1, 'CHAR'),
(86, 10, 'SUM(tp.cantidad_entrada) ', 'Cantidad', 0, 2, 'CHAR'),
(88, 11, 'p.nombre', 'Nombre', 0, 0, 'CHAR'),
(89, 11, 'p.ubicacion_almacen', 'Ubicación de almacén', 0, 2, 'CHAR'),
(90, 11, 'SUM(\n	IF(\n		md.id_movimiento IS NULL,\n		0,\n		md.cantidad*tm.afecta\n	)\n)', 'Stock en almacén', 0, 3, 'CHAR'),
(93, 12, 'nombre', 'Proveedor', 0, 1, 'CHAR'),
(94, 12, 'telefono ', 'Teléfono', 0, 2, 'CHAR'),
(95, 13, 'cliente', 'Cliente', 0, 1, 'CHAR'),
(97, 13, 'fechaPromesa', 'Fecha de promesa de pago', 0, 2, 'CHAR'),
(98, 13, 'monto', 'Monto', 0, 4, 'CHAR'),
(99, 13, 'diasTranscurridos', 'Días transcurridos', 0, 3, 'diasTranscurridos'),
(100, 14, 'cliente', 'Cliente', 0, 1, 'CHAR'),
(101, 14, 'concepto', 'Concepto', 0, 2, 'CHAR'),
(102, 14, 'fechaPromesa', 'Fecha de promesa de pago', 0, 3, 'CHAR'),
(103, 14, 'monto', 'Monto', 0, 4, 'CHAR'),
(104, 15, 'p.clave', 'Clave', 0, 1, 'CHAR'),
(105, 15, 'p.nombre', 'Producto', 0, 2, 'CHAR'),
(106, 15, 'SUM(IF(mi.id_movimiento_inventario IS NULL, 0, tm.afecta*dm.cantidad))', 'Cantidad', 0, 3, 'CHAR'),
(107, 16, 'CONCAT( nombre,  \' \', apellido_paterno,  \' \', apellido_materno )', 'Nombre', 0, 1, 'CHAR'),
(108, 16, 'clave', 'Clave', 0, 2, 'CHAR'),
(109, 16, 'email', 'Correo', 0, 3, 'CHAR'),
(110, 17, 'Nombre', 'Cliente', 0, 1, 'CHAR'),
(111, 17, 'evento', 'Evento', 0, 2, 'CHAR'),
(112, 17, 'fecha', 'Fecha', 0, 3, 'CHAR'),
(113, 17, 'CONCAT(\'$\',FORMAT(monto,2))', 'Monto', 0, 4, 'CHAR'),
(114, 3, 'SUM(monto)-SUM(abonado)', 'Restante', 1, 5, 'values'),
(115, 4, 'a2.nombre', 'Almacén destino', 0, 5, 'label'),
(116, 4, 'pp.nombre', 'Presentación', 0, 6, 'label'),
(117, 4, 'tp.cantidad_presentacion', 'Cantidad pedida', 0, 7, 'values'),
(118, 4, 'tp.cantidad_salida_pres', 'Cantidad salida', 0, 8, 'values'),
(119, 4, 'tp.cantidad_entrada_pres', 'Cantidad entrada', 0, 9, 'values'),
(120, 4, '( 	CASE tp.resolucion 		WHEN 0	THEN \'Sin resolver\' 		WHEN 1	THEN \'Devolver\' 		WHEN 2	THEN \'Mantener\' 		WHEN 3	THEN \'Elim', 'Resolución', 0, 10, 'label'),
(121, 8, 'p.precio_venta', 'Precio de venta', 0, 3, 'label'),
(122, 8, 'p.precio_compra', 'Precio de compra', 0, 4, 'label'),
(123, 9, 'p.precio_venta', 'Precio de venta', 0, 3, 'label'),
(124, 9, 'p.precio_compra', 'Precio de compra', 0, 4, 'label'),
(126, 18, 'c.nombre', 'Familia', 0, 1, 'label'),
(127, 18, 'SUM(pr.precio_venta)', 'Monto', 0, 3, 'label'),
(128, 18, 'COUNT(id_producto)', 'Cantidad', 0, 2, 'label'),
(129, 19, 'c.nombre', 'Tipo', 0, 1, 'label'),
(130, 19, 'COUNT(pd.id_producto)', 'Cantidad', 0, 2, 'label'),
(131, 19, 'CONCAT(\'$\',FORMAT(SUM(pr.precio_venta),2))', 'Monto', 0, 3, 'label'),
(135, 10, 'pr.nombre', 'Producto', 0, 1, 'label'),
(136, 10, 'COUNT(pd.id_producto)', 'Cantidad', 0, 2, 'label'),
(137, 10, 'CONCAT(\'$\',FORMAT(SUM(pr.precio_venta),2))', 'Monto', 0, 3, 'label'),
(138, 22, 'c.nombre', 'Color', 0, 1, 'label'),
(139, 22, 'COUNT(pd.id_producto)', 'Cantidad', 0, 2, 'label'),
(140, 22, 'CONCAT(\'$\',FORMAT(SUM(pr.precio_venta),2))', 'Monto', 0, 3, 'label'),
(141, 23, 'CONCAT(u.nombre,\' \',apellido_paterno,\' \',apellido_materno)', 'Vendedor', 0, 1, 'label'),
(142, 23, 'COUNT(pd.id_producto)', 'Cantidad', 0, 2, 'label'),
(143, 23, 'CONCAT(\'$\',FORMAT(SUM(pr.precio_venta),2))', 'Monto', 0, 3, 'label'),
(144, 24, 'c.nombre', 'Familia', 0, 1, 'label'),
(145, 24, 'SUM(pr.precio_venta)', 'Monto', 0, 3, 'label'),
(146, 24, 'COUNT(id_producto)', 'Cantidad', 0, 2, 'label'),
(147, 25, 'c.nombre', 'Tipo', 0, 1, 'label'),
(148, 25, 'COUNT(pd.id_producto)', 'Cantidad', 0, 2, 'label'),
(149, 25, 'CONCAT(\'$\',FORMAT(SUM(pr.precio_venta),2))', 'Monto', 0, 3, 'label'),
(150, 26, 'c.nombre', 'Subtipo', 0, 1, 'label'),
(151, 26, 'COUNT(pd.id_producto)', 'Cantidad', 0, 2, 'label'),
(152, 26, 'CONCAT(\'$\',FORMAT(SUM(pr.precio_venta),2))', 'Monto', 0, 3, 'label'),
(153, 27, 'pr.nombre', 'Producto', 0, 1, 'label'),
(154, 27, 'COUNT(pd.id_producto)', 'Cantidad', 0, 2, 'label'),
(155, 27, 'CONCAT(\'$\',FORMAT(SUM(pr.precio_venta),2))', 'Monto', 0, 3, 'label'),
(156, 28, 'c.nombre', 'Color', 0, 1, 'label'),
(157, 28, 'COUNT(pd.id_producto)', 'Cantidad', 0, 2, 'label'),
(158, 28, 'CONCAT(\'$\',FORMAT(SUM(pr.precio_venta),2))', 'Monto', 0, 3, 'label'),
(159, 29, 'pro.nombre_comercial', 'Proveedor', 0, 1, 'label'),
(160, 29, 'COUNT(p.id_proveedor)', 'Cantidad', 1, 2, 'label'),
(161, 29, 'CONCAT(\'$\',FORMAT(SUM(p.total),2))', 'Monto', 0, 3, 'label'),
(162, 30, 'p.id_productos', 'Id de producto', 0, 1, 'label'),
(163, 30, 'p.orden_lista', 'Clave SAT', 0, 2, 'label'),
(164, 30, 'p.nombre', 'Producto', 0, 3, 'label'),
(165, 30, 'p.nombre_etiqueta', 'Nombre de etiqueta', 0, 4, 'label'),
(166, 30, 'IF(\r\n    	m.id_movimiento_inventario IS NOT NULL AND m.fecha <= \'$fecIni\',\r\n        SUM( md.cantidad * tm.afecta ),\r\n   ', 'Inventario Inicial', 0, 5, 'values'),
(167, 30, 'IF(\r\n    	m.id_movimiento_inventario IS NOT NULL AND m.id_tipo_movimiento = 1 \r\n    	AND (m.fecha BETWEEN \'$fecIni\' AND ', 'Entradas', 0, 6, 'values'),
(168, 30, 'IF(\r\n    	m.id_movimiento_inventario IS NOT NULL AND m.id_tipo_movimiento = 2 \r\n    	AND (m.fecha BETWEEN \'$fecIni\' AND ', 'Salidas', 0, 7, 'values'),
(169, 30, 'IF(\r\n    	m.id_movimiento_inventario IS NOT NULL AND m.fecha <= \'$fecFin\',\r\n        0,\r\n        SUM( md.cantidad * tm.af', 'Inventario Final', 0, 8, 'values'),
(175, 21, 'oc.id_orden_compra', 'ID', 0, 1, 'values'),
(176, 21, 'oc.folio', 'FOLIO', 0, 2, 'label'),
(177, 21, 'p.nombre_comercial', 'PROVEEDOR', 0, 3, 'label'),
(178, 21, 'oc.subtotal', 'SUBTOTAL', 0, 4, 'values'),
(179, 21, 'oc.total', 'TOTAL', 0, 5, 'values'),
(180, 21, 'oc.fecha', 'FECHA', 0, 6, 'label');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_sucursales`
--

CREATE TABLE `sys_sucursales` (
  `id_sucursal` int(11) NOT NULL,
  `nombre` varchar(45) NOT NULL,
  `telefono` varchar(30) DEFAULT '1',
  `direccion` text,
  `descripcion` text,
  `id_razon_social` int(11) UNSIGNED DEFAULT NULL,
  `id_encargado` int(11) DEFAULT NULL,
  `activo` tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
  `logueo` bit(1) NOT NULL DEFAULT b'0',
  `logo` text NOT NULL,
  `multifacturacion` tinyint(1) NOT NULL DEFAULT '0',
  `id_precio` int(11) DEFAULT NULL,
  `descuento` float DEFAULT NULL,
  `prefijo` char(15) DEFAULT NULL,
  `usa_oferta` tinyint(1) NOT NULL,
  `alertas_resurtimiento` tinyint(1) NOT NULL,
  `acceso` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Volcado de datos para la tabla `sys_sucursales`
--

INSERT INTO `sys_sucursales` (`id_sucursal`, `nombre`, `telefono`, `direccion`, `descripcion`, `id_razon_social`, `id_encargado`, `activo`, `logueo`, `logo`, `multifacturacion`, `id_precio`, `descuento`, `prefijo`, `usa_oferta`, `alertas_resurtimiento`, `acceso`) VALUES
(1, 'JOSE LUIS PERALTA BAZAN', '5555 5555', 'ESTADO DE MEXICO', 'Descripcion de prueba', 1, 8, 1, b'1', 'https://easycount.com.mx/billarmex2//files/sys_sucursales_logo_5114_1.jpg', 0, 1, 0.1, 'SUA', 0, 1, 1),
(2, 'Sucursal ejemplo', '5567898765', '', '', 0, 1, 1, b'0', '', 0, 1, 0, 'PBA', 0, 0, 0),
(3, 'prueba sucursal producto 2', '12345678', '', '', 0, -1, 1, b'0', '', 0, 1, 0, '', 0, 0, 0);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_users_sucursales`
--

CREATE TABLE `sys_users_sucursales` (
  `id_user_sucursal` int(11) UNSIGNED NOT NULL,
  `id_usuario` int(11) UNSIGNED NOT NULL,
  `id_sucursal` int(11) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `sys_user_groups`
--

CREATE TABLE `sys_user_groups` (
  `id_user_group` int(11) UNSIGNED NOT NULL,
  `id_usuario` int(11) UNSIGNED NOT NULL,
  `id_grupo` int(11) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Indices de la tabla `api_tipo_facturacion`
--
ALTER TABLE `api_tipo_facturacion`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `bitacora_inventarios`
--
ALTER TABLE `bitacora_inventarios`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `cat_Tipo_Persona`
--
ALTER TABLE `cat_Tipo_Persona`
  ADD PRIMARY KEY (`idTipoPersona`);

--
-- Indices de la tabla `ec_cfdi`
--
ALTER TABLE `ec_cfdi`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `ec_clientes`
--
ALTER TABLE `ec_clientes`
  ADD PRIMARY KEY (`id_cliente`),
  ADD KEY `id_sucursal` (`id_sucursal`);

--
-- Indices de la tabla `ec_clientes_contacto`
--
ALTER TABLE `ec_clientes_contacto`
  ADD PRIMARY KEY (`id_cliente_contacto`);

--
-- Indices de la tabla `ec_clientes_razones_sociales`
--
ALTER TABLE `ec_clientes_razones_sociales`
  ADD PRIMARY KEY (`id_cliente_rs`),
  ADD KEY `id_cliente` (`id_cliente`);

--
-- Indices de la tabla `ec_conf_iva`
--
ALTER TABLE `ec_conf_iva`
  ADD PRIMARY KEY (`id_conf_iva`);

--
-- Indices de la tabla `ec_conf_rs`
--
ALTER TABLE `ec_conf_rs`
  ADD PRIMARY KEY (`id_rs`);

--
-- Indices de la tabla `ec_detalle_compra`
--
ALTER TABLE `ec_detalle_compra`
  ADD PRIMARY KEY (`id_compra_detalle`),
  ADD KEY `fk1_tf_dc_idx` (`id_orden_compra`),
  ADD KEY `fk2_tf_dc_idx` (`id_producto`);

--
-- Indices de la tabla `ec_detalle_movimiento`
--
ALTER TABLE `ec_detalle_movimiento`
  ADD PRIMARY KEY (`id_detalle_movimiento`),
  ADD KEY `dm_fk2_idx` (`id_producto`),
  ADD KEY `id_movimintoxxxx07_idx` (`id_movimiento_inventario`);

--
-- Indices de la tabla `ec_detalle_pagos`
--
ALTER TABLE `ec_detalle_pagos`
  ADD PRIMARY KEY (`id_detalle_pagos`);

--
-- Indices de la tabla `ec_detalle_venta`
--
ALTER TABLE `ec_detalle_venta`
  ADD PRIMARY KEY (`id_detalle_venta`),
  ADD KEY `id_venta_aa3_idx` (`id_venta`),
  ADD KEY `id_producto_aa4_idx` (`id_producto`);

--
-- Indices de la tabla `ec_detalle_venta_back`
--
ALTER TABLE `ec_detalle_venta_back`
  ADD PRIMARY KEY (`id_detalle_venta`),
  ADD KEY `id_venta` (`id_venta`);

--
-- Indices de la tabla `ec_forma_pago`
--
ALTER TABLE `ec_forma_pago`
  ADD PRIMARY KEY (`id_forma_pago`);

--
-- Indices de la tabla `ec_limites_razon_social`
--
ALTER TABLE `ec_limites_razon_social`
  ADD PRIMARY KEY (`id_limite_razon_social`);

--
-- Indices de la tabla `ec_metodos_pago`
--
ALTER TABLE `ec_metodos_pago`
  ADD PRIMARY KEY (`id_metodo_pago`);

--
-- Indices de la tabla `ec_motivos_cancelacion_factura`
--
ALTER TABLE `ec_motivos_cancelacion_factura`
  ADD PRIMARY KEY (`id_motivo`);

--
-- Indices de la tabla `ec_movimiento_inventario`
--
ALTER TABLE `ec_movimiento_inventario`
  ADD PRIMARY KEY (`id_movimiento_inventario`),
  ADD KEY `id_venta` (`id_venta`),
  ADD KEY `id_tipo_movimiento` (`id_tipo_movimiento`),
  ADD KEY `id_usuario` (`id_usuario`),
  ADD KEY `id_sucursal` (`id_sucursal`),
  ADD KEY `ec_movimiento_inventario_ibfk_6` (`id_compra`);

--
-- Indices de la tabla `ec_oc`
--
ALTER TABLE `ec_oc`
  ADD PRIMARY KEY (`id_orden_compra`),
  ADD KEY `id_proveedor_ab1_idx` (`id_proveedor`),
  ADD KEY `id_sucursal_ab2_idx` (`id_sucursal`),
  ADD KEY `id_usuario_ab3_idx` (`id_usuario`);

--
-- Indices de la tabla `ec_oc_detalle`
--
ALTER TABLE `ec_oc_detalle`
  ADD PRIMARY KEY (`id_oc_detalle`),
  ADD KEY `id_orden_compra_ac1_idx` (`id_orden_compra`),
  ADD KEY `id_producto_ac2_idx` (`id_producto`);

--
-- Indices de la tabla `ec_previo_detalle_back`
--
ALTER TABLE `ec_previo_detalle_back`
  ADD PRIMARY KEY (`id_previo_detalle_back`);

--
-- Indices de la tabla `ec_productos`
--
ALTER TABLE `ec_productos`
  ADD PRIMARY KEY (`id_productos`);

--
-- Indices de la tabla `ec_proveedor`
--
ALTER TABLE `ec_proveedor`
  ADD PRIMARY KEY (`id_proveedor`),
  ADD KEY `id_sucursal` (`id_sucursal`);

--
-- Indices de la tabla `ec_razon_afiliaciones`
--
ALTER TABLE `ec_razon_afiliaciones`
  ADD PRIMARY KEY (`id_afiliacion`);

--
-- Indices de la tabla `ec_sets`
--
ALTER TABLE `ec_sets`
  ADD PRIMARY KEY (`id_set`);

--
-- Indices de la tabla `ec_sets_detalles`
--
ALTER TABLE `ec_sets_detalles`
  ADD PRIMARY KEY (`id_set_detalle`),
  ADD KEY `id_set` (`id_set`),
  ADD KEY `id_producto` (`id_producto`);

--
-- Indices de la tabla `ec_status_facturacion`
--
ALTER TABLE `ec_status_facturacion`
  ADD PRIMARY KEY (`id_status_facturacion`);

--
-- Indices de la tabla `ec_sucursal_producto`
--
ALTER TABLE `ec_sucursal_producto`
  ADD PRIMARY KEY (`id_sucursal_producto`),
  ADD KEY `id_sucursal` (`id_sucursal`),
  ADD KEY `id_producto` (`id_producto`);

--
-- Indices de la tabla `ec_tipos_movimiento`
--
ALTER TABLE `ec_tipos_movimiento`
  ADD PRIMARY KEY (`id_movimiento`);

--
-- Indices de la tabla `ec_tipos_regimenes_fiscales`
--
ALTER TABLE `ec_tipos_regimenes_fiscales`
  ADD PRIMARY KEY (`id_tipo_regimen_fiscal`);

--
-- Indices de la tabla `ec_ventas`
--
ALTER TABLE `ec_ventas`
  ADD PRIMARY KEY (`id_venta`),
  ADD KEY `id_sucursal_aa1_idx` (`id_sucursal`),
  ADD KEY `id_cliente_aa2_idx` (`id_cliente`),
  ADD KEY `id_usuario_aa3_idx` (`id_usuario`);

--
-- Indices de la tabla `ec_ventas_back`
--
ALTER TABLE `ec_ventas_back`
  ADD PRIMARY KEY (`id_venta_back`),
  ADD KEY `id_venta` (`id_venta`);

--
-- Indices de la tabla `ec_venta_pagos`
--
ALTER TABLE `ec_venta_pagos`
  ADD PRIMARY KEY (`id_venta_pago`);

--
-- Indices de la tabla `ec_venta_tienda_linea`
--
ALTER TABLE `ec_venta_tienda_linea`
  ADD PRIMARY KEY (`id`);

--
-- Indices de la tabla `sys_ambientes_facturacion`
--
ALTER TABLE `sys_ambientes_facturacion`
  ADD PRIMARY KEY (`id_ambiente`);

--
-- Indices de la tabla `sys_catalogos`
--
ALTER TABLE `sys_catalogos`
  ADD PRIMARY KEY (`id_catalogo`);

--
-- Indices de la tabla `sys_conf_pantalla`
--
ALTER TABLE `sys_conf_pantalla`
  ADD PRIMARY KEY (`id_configuracion_pantalla`),
  ADD KEY `id_plantilla` (`id_plantilla`);

--
-- Indices de la tabla `sys_correos_avisos`
--
ALTER TABLE `sys_correos_avisos`
  ADD PRIMARY KEY (`id_correo_aviso`);

--
-- Indices de la tabla `sys_estados`
--
ALTER TABLE `sys_estados`
  ADD PRIMARY KEY (`id_estado`),
  ADD KEY `id_pais` (`id_pais`);

--
-- Indices de la tabla `sys_grid`
--
ALTER TABLE `sys_grid`
  ADD PRIMARY KEY (`id_grid`);

--
-- Indices de la tabla `sys_grid_detalle`
--
ALTER TABLE `sys_grid_detalle`
  ADD PRIMARY KEY (`id_grid_detalle`);

--
-- Indices de la tabla `sys_groups`
--
ALTER TABLE `sys_groups`
  ADD PRIMARY KEY (`id_grupo`);

--
-- Indices de la tabla `sys_herramientas`
--
ALTER TABLE `sys_herramientas`
  ADD PRIMARY KEY (`id_herramienta`);

--
-- Indices de la tabla `sys_listados`
--
ALTER TABLE `sys_listados`
  ADD PRIMARY KEY (`id_listado`);

--
-- Indices de la tabla `sys_log_errores_timbrado`
--
ALTER TABLE `sys_log_errores_timbrado`
  ADD PRIMARY KEY (`id_log`);

--
-- Indices de la tabla `sys_menus`
--
ALTER TABLE `sys_menus`
  ADD PRIMARY KEY (`id_menu`);

--
-- Indices de la tabla `sys_paises`
--
ALTER TABLE `sys_paises`
  ADD PRIMARY KEY (`id_pais`);

--
-- Indices de la tabla `sys_permisos`
--
ALTER TABLE `sys_permisos`
  ADD PRIMARY KEY (`id_permiso`),
  ADD KEY `id_usuario` (`id_usuario`),
  ADD KEY `id_menu` (`id_menu`);

--
-- Indices de la tabla `sys_permisos_funciones`
--
ALTER TABLE `sys_permisos_funciones`
  ADD PRIMARY KEY (`id_permiso_funcion`);

--
-- Indices de la tabla `sys_permisos_funcusers`
--
ALTER TABLE `sys_permisos_funcusers`
  ADD PRIMARY KEY (`id_permiso_funcuser`),
  ADD KEY `id_usuario` (`id_usuario`),
  ADD KEY `id_permiso_funcion` (`id_permiso_funcion`);

--
-- Indices de la tabla `sys_plantilla`
--
ALTER TABLE `sys_plantilla`
  ADD PRIMARY KEY (`id_plantilla`);

--
-- Indices de la tabla `sys_razones_sociales`
--
ALTER TABLE `sys_razones_sociales`
  ADD PRIMARY KEY (`id_razon_social`),
  ADD KEY `id_pais` (`id_pais`),
  ADD KEY `id_estado` (`id_estado`);

--
-- Indices de la tabla `sys_reportes`
--
ALTER TABLE `sys_reportes`
  ADD PRIMARY KEY (`id_reporte`);

--
-- Indices de la tabla `sys_reportes_columnas`
--
ALTER TABLE `sys_reportes_columnas`
  ADD PRIMARY KEY (`id_reporte_columna`);

--
-- Indices de la tabla `sys_sucursales`
--
ALTER TABLE `sys_sucursales`
  ADD PRIMARY KEY (`id_sucursal`),
  ADD KEY `id_precio` (`id_precio`);

--
-- Indices de la tabla `sys_users_sucursales`
--
ALTER TABLE `sys_users_sucursales`
  ADD PRIMARY KEY (`id_user_sucursal`);

--
-- Indices de la tabla `sys_user_groups`
--
ALTER TABLE `sys_user_groups`
  ADD PRIMARY KEY (`id_user_group`);

--
-- AUTO_INCREMENT de la tabla `api_tipo_facturacion`
--
ALTER TABLE `api_tipo_facturacion`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `bitacora_inventarios`
--
ALTER TABLE `bitacora_inventarios`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15233;

--
-- AUTO_INCREMENT de la tabla `cat_Tipo_Persona`
--
ALTER TABLE `cat_Tipo_Persona`
  MODIFY `idTipoPersona` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `ec_cfdi`
--
ALTER TABLE `ec_cfdi`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT de la tabla `ec_clientes`
--
ALTER TABLE `ec_clientes`
  MODIFY `id_cliente` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11901;

--
-- AUTO_INCREMENT de la tabla `ec_clientes_contacto`
--
ALTER TABLE `ec_clientes_contacto`
  MODIFY `id_cliente_contacto` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12607;

--
-- AUTO_INCREMENT de la tabla `ec_clientes_razones_sociales`
--
ALTER TABLE `ec_clientes_razones_sociales`
  MODIFY `id_cliente_rs` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11901;

--
-- AUTO_INCREMENT de la tabla `ec_conf_iva`
--
ALTER TABLE `ec_conf_iva`
  MODIFY `id_conf_iva` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `ec_conf_rs`
--
ALTER TABLE `ec_conf_rs`
  MODIFY `id_rs` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT de la tabla `ec_detalle_compra`
--
ALTER TABLE `ec_detalle_compra`
  MODIFY `id_compra_detalle` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=75;

--
-- AUTO_INCREMENT de la tabla `ec_detalle_movimiento`
--
ALTER TABLE `ec_detalle_movimiento`
  MODIFY `id_detalle_movimiento` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16083;

--
-- AUTO_INCREMENT de la tabla `ec_detalle_pagos`
--
ALTER TABLE `ec_detalle_pagos`
  MODIFY `id_detalle_pagos` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `ec_detalle_venta`
--
ALTER TABLE `ec_detalle_venta`
  MODIFY `id_detalle_venta` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11852;

--
-- AUTO_INCREMENT de la tabla `ec_detalle_venta_back`
--
ALTER TABLE `ec_detalle_venta_back`
  MODIFY `id_detalle_venta` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8754;

--
-- AUTO_INCREMENT de la tabla `ec_forma_pago`
--
ALTER TABLE `ec_forma_pago`
  MODIFY `id_forma_pago` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT de la tabla `ec_limites_razon_social`
--
ALTER TABLE `ec_limites_razon_social`
  MODIFY `id_limite_razon_social` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `ec_metodos_pago`
--
ALTER TABLE `ec_metodos_pago`
  MODIFY `id_metodo_pago` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `ec_motivos_cancelacion_factura`
--
ALTER TABLE `ec_motivos_cancelacion_factura`
  MODIFY `id_motivo` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT de la tabla `ec_movimiento_inventario`
--
ALTER TABLE `ec_movimiento_inventario`
  MODIFY `id_movimiento_inventario` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1033;

--
-- AUTO_INCREMENT de la tabla `ec_oc`
--
ALTER TABLE `ec_oc`
  MODIFY `id_orden_compra` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT de la tabla `ec_oc_detalle`
--
ALTER TABLE `ec_oc_detalle`
  MODIFY `id_oc_detalle` bigint(21) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `ec_previo_detalle_back`
--
ALTER TABLE `ec_previo_detalle_back`
  MODIFY `id_previo_detalle_back` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8602;

--
-- AUTO_INCREMENT de la tabla `ec_proveedor`
--
ALTER TABLE `ec_proveedor`
  MODIFY `id_proveedor` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;

--
-- AUTO_INCREMENT de la tabla `ec_razon_afiliaciones`
--
ALTER TABLE `ec_razon_afiliaciones`
  MODIFY `id_afiliacion` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `ec_sets`
--
ALTER TABLE `ec_sets`
  MODIFY `id_set` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `ec_sets_detalles`
--
ALTER TABLE `ec_sets_detalles`
  MODIFY `id_set_detalle` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `ec_status_facturacion`
--
ALTER TABLE `ec_status_facturacion`
  MODIFY `id_status_facturacion` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT de la tabla `ec_sucursal_producto`
--
ALTER TABLE `ec_sucursal_producto`
  MODIFY `id_sucursal_producto` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26767;

--
-- AUTO_INCREMENT de la tabla `ec_tipos_movimiento`
--
ALTER TABLE `ec_tipos_movimiento`
  MODIFY `id_movimiento` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `ec_tipos_regimenes_fiscales`
--
ALTER TABLE `ec_tipos_regimenes_fiscales`
  MODIFY `id_tipo_regimen_fiscal` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;

--
-- AUTO_INCREMENT de la tabla `ec_ventas`
--
ALTER TABLE `ec_ventas`
  MODIFY `id_venta` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1021;

--
-- AUTO_INCREMENT de la tabla `ec_ventas_back`
--
ALTER TABLE `ec_ventas_back`
  MODIFY `id_venta_back` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1021;

--
-- AUTO_INCREMENT de la tabla `ec_venta_pagos`
--
ALTER TABLE `ec_venta_pagos`
  MODIFY `id_venta_pago` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `ec_venta_tienda_linea`
--
ALTER TABLE `ec_venta_tienda_linea`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `sys_ambientes_facturacion`
--
ALTER TABLE `sys_ambientes_facturacion`
  MODIFY `id_ambiente` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `sys_catalogos`
--
ALTER TABLE `sys_catalogos`
  MODIFY `id_catalogo` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=730;

--
-- AUTO_INCREMENT de la tabla `sys_conf_pantalla`
--
ALTER TABLE `sys_conf_pantalla`
  MODIFY `id_configuracion_pantalla` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `sys_correos_avisos`
--
ALTER TABLE `sys_correos_avisos`
  MODIFY `id_correo_aviso` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT de la tabla `sys_estados`
--
ALTER TABLE `sys_estados`
  MODIFY `id_estado` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;

--
-- AUTO_INCREMENT de la tabla `sys_grid`
--
ALTER TABLE `sys_grid`
  MODIFY `id_grid` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=54;

--
-- AUTO_INCREMENT de la tabla `sys_grid_detalle`
--
ALTER TABLE `sys_grid_detalle`
  MODIFY `id_grid_detalle` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=402;

--
-- AUTO_INCREMENT de la tabla `sys_groups`
--
ALTER TABLE `sys_groups`
  MODIFY `id_grupo` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `sys_herramientas`
--
ALTER TABLE `sys_herramientas`
  MODIFY `id_herramienta` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT de la tabla `sys_listados`
--
ALTER TABLE `sys_listados`
  MODIFY `id_listado` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=87;

--
-- AUTO_INCREMENT de la tabla `sys_log_errores_timbrado`
--
ALTER TABLE `sys_log_errores_timbrado`
  MODIFY `id_log` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `sys_menus`
--
ALTER TABLE `sys_menus`
  MODIFY `id_menu` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=136;

--
-- AUTO_INCREMENT de la tabla `sys_paises`
--
ALTER TABLE `sys_paises`
  MODIFY `id_pais` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `sys_permisos`
--
ALTER TABLE `sys_permisos`
  MODIFY `id_permiso` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=968;

--
-- AUTO_INCREMENT de la tabla `sys_permisos_funciones`
--
ALTER TABLE `sys_permisos_funciones`
  MODIFY `id_permiso_funcion` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT de la tabla `sys_permisos_funcusers`
--
ALTER TABLE `sys_permisos_funcusers`
  MODIFY `id_permiso_funcuser` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT de la tabla `sys_plantilla`
--
ALTER TABLE `sys_plantilla`
  MODIFY `id_plantilla` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT de la tabla `sys_razones_sociales`
--
ALTER TABLE `sys_razones_sociales`
  MODIFY `id_razon_social` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de la tabla `sys_reportes`
--
ALTER TABLE `sys_reportes`
  MODIFY `id_reporte` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;

--
-- AUTO_INCREMENT de la tabla `sys_reportes_columnas`
--
ALTER TABLE `sys_reportes_columnas`
  MODIFY `id_reporte_columna` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=181;

--
-- AUTO_INCREMENT de la tabla `sys_sucursales`
--
ALTER TABLE `sys_sucursales`
  MODIFY `id_sucursal` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de la tabla `sys_users_sucursales`
--
ALTER TABLE `sys_users_sucursales`
  MODIFY `id_user_sucursal` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de la tabla `sys_user_groups`
--
ALTER TABLE `sys_user_groups`
  MODIFY `id_user_group` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- Restricciones para tablas volcadas
--

--
-- Filtros para la tabla `ec_clientes`
--
ALTER TABLE `ec_clientes`
  ADD CONSTRAINT `ec_clientes_ibfk_1` FOREIGN KEY (`id_sucursal`) REFERENCES `sys_sucursales` (`id_sucursal`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `ec_clientes_razones_sociales`
--
ALTER TABLE `ec_clientes_razones_sociales`
  ADD CONSTRAINT `ec_clientes_razones_sociales_ibfk_1` FOREIGN KEY (`id_cliente`) REFERENCES `ec_clientes` (`id_cliente`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Filtros para la tabla `ec_detalle_movimiento`
--
ALTER TABLE `ec_detalle_movimiento`
  ADD CONSTRAINT `dm_fk2` FOREIGN KEY (`id_producto`) REFERENCES `ec_productos` (`id_productos`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `id_movimintoxxxx07` FOREIGN KEY (`id_movimiento_inventario`) REFERENCES `ec_movimiento_inventario` (`id_movimiento_inventario`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Filtros para la tabla `ec_detalle_venta`
--
ALTER TABLE `ec_detalle_venta`
  ADD CONSTRAINT `id_producto_aa4` FOREIGN KEY (`id_producto`) REFERENCES `ec_productos` (`id_productos`) ON UPDATE CASCADE,
  ADD CONSTRAINT `id_venta_zzz09` FOREIGN KEY (`id_venta`) REFERENCES `ec_ventas` (`id_venta`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Filtros para la tabla `ec_movimiento_inventario`
--
ALTER TABLE `ec_movimiento_inventario`
  ADD CONSTRAINT `ec_movimiento_inventario_ibfk_2` FOREIGN KEY (`id_venta`) REFERENCES `ec_ventas` (`id_venta`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `ec_movimiento_inventario_ibfk_3` FOREIGN KEY (`id_tipo_movimiento`) REFERENCES `ec_tipos_movimiento` (`id_movimiento`),
  ADD CONSTRAINT `ec_movimiento_inventario_ibfk_4` FOREIGN KEY (`id_usuario`) REFERENCES `sys_users` (`id_usuario`),
  ADD CONSTRAINT `ec_movimiento_inventario_ibfk_5` FOREIGN KEY (`id_sucursal`) REFERENCES `sys_sucursales` (`id_sucursal`),
  ADD CONSTRAINT `ec_movimiento_inventario_ibfk_6` FOREIGN KEY (`id_compra`) REFERENCES `ec_oc` (`id_orden_compra`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Filtros para la tabla `ec_oc`
--
ALTER TABLE `ec_oc`
  ADD CONSTRAINT `id_proveedor_ab1` FOREIGN KEY (`id_proveedor`) REFERENCES `ec_proveedor` (`id_proveedor`) ON UPDATE CASCADE,
  ADD CONSTRAINT `id_sucursal_ab2` FOREIGN KEY (`id_sucursal`) REFERENCES `sys_sucursales` (`id_sucursal`) ON UPDATE CASCADE,
  ADD CONSTRAINT `id_usuario_ab3` FOREIGN KEY (`id_usuario`) REFERENCES `sys_users` (`id_usuario`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `ec_oc_detalle`
--
ALTER TABLE `ec_oc_detalle`
  ADD CONSTRAINT `id_orden_compra_ac1` FOREIGN KEY (`id_orden_compra`) REFERENCES `ec_oc` (`id_orden_compra`) ON DELETE CASCADE ON UPDATE CASCADE,
  ADD CONSTRAINT `id_producto_ac2` FOREIGN KEY (`id_producto`) REFERENCES `ec_productos` (`id_productos`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `ec_proveedor`
--
ALTER TABLE `ec_proveedor`
  ADD CONSTRAINT `ec_proveedor_ibfk_3` FOREIGN KEY (`id_sucursal`) REFERENCES `sys_sucursales` (`id_sucursal`) ON UPDATE CASCADE;

--
-- Filtros para la tabla `ec_sets_detalles`
--
ALTER TABLE `ec_sets_detalles`
  ADD CONSTRAINT `ec_sets_detalles_ibfk_1` FOREIGN KEY (`id_set`) REFERENCES `ec_sets` (`id_set`),
  ADD CONSTRAINT `ec_sets_detalles_ibfk_2` FOREIGN KEY (`id_producto`) REFERENCES `ec_productos` (`id_productos`);

--
-- Filtros para la tabla `ec_sucursal_producto`
--
ALTER TABLE `ec_sucursal_producto`
  ADD CONSTRAINT `ec_sucursal_producto_ibfk_1` FOREIGN KEY (`id_sucursal`) REFERENCES `sys_sucursales` (`id_sucursal`),
  ADD CONSTRAINT `ec_sucursal_producto_ibfk_2` FOREIGN KEY (`id_producto`) REFERENCES `ec_productos` (`id_productos`);

--
-- Filtros para la tabla `ec_ventas`
--
ALTER TABLE `ec_ventas`
  ADD CONSTRAINT `id_cliente_aa2` FOREIGN KEY (`id_cliente`) REFERENCES `ec_clientes` (`id_cliente`) ON UPDATE CASCADE,
  ADD CONSTRAINT `id_sucursal_aa1` FOREIGN KEY (`id_sucursal`) REFERENCES `sys_sucursales` (`id_sucursal`) ON UPDATE CASCADE,
  ADD CONSTRAINT `id_usuario_aa3` FOREIGN KEY (`id_usuario`) REFERENCES `sys_users` (`id_usuario`) ON UPDATE CASCADE;
COMMIT;

