-- Table structure for table `mill`
--

CREATE TABLE `mill` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `date_start` date DEFAULT NULL,
  `time_start` time DEFAULT NULL,
  `date_end` date DEFAULT NULL,
  `time_end` time DEFAULT NULL,
  `user_id` int(10) unsigned DEFAULT 0,
  `soap_type_id` char(2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `comment` longtext DEFAULT NULL,
  `mill_name` varchar(255) DEFAULT NULL,
  `lot_code` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mill_soap_type_id_foreign` (`soap_type_id`),
  CONSTRAINT `mill_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mill`
--

COMMIT;

--
-- Table structure for table `mill_items`
--

CREATE TABLE `mill_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned DEFAULT 0,
  `mill_id` int(10) unsigned DEFAULT 0,
  `height_to_mill` decimal(12,3) DEFAULT 0.000 COMMENT 'Peso de entrada',
  `total_height` decimal(12,3) DEFAULT 0.000 COMMENT 'Peso dle insumo ',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `quantity` decimal(12,3) DEFAULT 0.000 COMMENT 'Peso dle insumo ',
  `item_extra_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mill_items`
--

COMMIT;

--
-- Table structure for table `mobile_idempotency_keys`
--

CREATE TABLE `mobile_idempotency_keys` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `idempotency_key` varchar(100) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'processing',
  `model` varchar(20) DEFAULT NULL,
  `record_id` int(10) unsigned DEFAULT NULL,
  `response_payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`response_payload`)),
  `error_message` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mik_user_est_key_unique` (`user_id`,`establishment_id`,`idempotency_key`),
  KEY `mobile_idempotency_keys_status_index` (`status`),
  KEY `mobile_idempotency_keys_establishment_id_foreign` (`establishment_id`),
  CONSTRAINT `mobile_idempotency_keys_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`) ON DELETE CASCADE,
  CONSTRAINT `mobile_idempotency_keys_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mobile_idempotency_keys`
--

COMMIT;

--
-- Table structure for table `mobile_physical_count_events`
--

CREATE TABLE `mobile_physical_count_events` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `physical_count_id` int(10) unsigned NOT NULL,
  `line_id` int(10) unsigned DEFAULT NULL,
  `user_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item_unit_type_id` int(10) unsigned DEFAULT NULL,
  `lot_group_id` int(10) unsigned DEFAULT NULL,
  `barcode` varchar(100) DEFAULT NULL,
  `factor` decimal(12,4) NOT NULL DEFAULT 1.0000,
  `quantity` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `quantity_base` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `source` varchar(30) NOT NULL DEFAULT 'scan',
  `notes` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mobile_physical_count_events_physical_count_id_item_id_index` (`physical_count_id`,`item_id`),
  KEY `mobile_physical_count_events_line_id_foreign` (`line_id`),
  KEY `mobile_physical_count_events_user_id_foreign` (`user_id`),
  KEY `mobile_physical_count_events_item_id_foreign` (`item_id`),
  KEY `mobile_physical_count_events_item_unit_type_id_foreign` (`item_unit_type_id`),
  KEY `mobile_physical_count_events_lot_group_id_foreign` (`lot_group_id`),
  CONSTRAINT `mobile_physical_count_events_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `mobile_physical_count_events_item_unit_type_id_foreign` FOREIGN KEY (`item_unit_type_id`) REFERENCES `item_unit_types` (`id`),
  CONSTRAINT `mobile_physical_count_events_line_id_foreign` FOREIGN KEY (`line_id`) REFERENCES `mobile_physical_count_lines` (`id`) ON DELETE SET NULL,
  CONSTRAINT `mobile_physical_count_events_lot_group_id_foreign` FOREIGN KEY (`lot_group_id`) REFERENCES `item_lots_group` (`id`),
  CONSTRAINT `mobile_physical_count_events_physical_count_id_foreign` FOREIGN KEY (`physical_count_id`) REFERENCES `mobile_physical_counts` (`id`) ON DELETE CASCADE,
  CONSTRAINT `mobile_physical_count_events_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mobile_physical_count_events`
--

COMMIT;

--
-- Table structure for table `mobile_physical_count_lines`
--

CREATE TABLE `mobile_physical_count_lines` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `physical_count_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item_unit_type_id` int(10) unsigned DEFAULT NULL,
  `lot_group_id` int(10) unsigned DEFAULT NULL,
  `lot_code` varchar(100) DEFAULT NULL,
  `line_key` varchar(160) NOT NULL,
  `counted_qty_base` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `system_qty_snapshot` decimal(12,4) DEFAULT NULL,
  `difference_qty` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `inventory_id` int(10) unsigned DEFAULT NULL,
  `scanned_times` int(10) unsigned NOT NULL DEFAULT 0,
  `notes` text DEFAULT NULL,
  `last_counted_by` int(10) unsigned DEFAULT NULL,
  `last_counted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mobile_physical_count_lines_unique` (`physical_count_id`,`line_key`),
  KEY `mobile_physical_count_lines_item_id_lot_group_id_index` (`item_id`,`lot_group_id`),
  KEY `mobile_physical_count_lines_item_unit_type_id_foreign` (`item_unit_type_id`),
  KEY `mobile_physical_count_lines_lot_group_id_foreign` (`lot_group_id`),
  KEY `mobile_physical_count_lines_last_counted_by_foreign` (`last_counted_by`),
  KEY `mobile_physical_count_lines_inventory_id_foreign` (`inventory_id`),
  CONSTRAINT `mobile_physical_count_lines_inventory_id_foreign` FOREIGN KEY (`inventory_id`) REFERENCES `inventories` (`id`),
  CONSTRAINT `mobile_physical_count_lines_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `mobile_physical_count_lines_item_unit_type_id_foreign` FOREIGN KEY (`item_unit_type_id`) REFERENCES `item_unit_types` (`id`),
  CONSTRAINT `mobile_physical_count_lines_last_counted_by_foreign` FOREIGN KEY (`last_counted_by`) REFERENCES `users` (`id`),
  CONSTRAINT `mobile_physical_count_lines_lot_group_id_foreign` FOREIGN KEY (`lot_group_id`) REFERENCES `item_lots_group` (`id`),
  CONSTRAINT `mobile_physical_count_lines_physical_count_id_foreign` FOREIGN KEY (`physical_count_id`) REFERENCES `mobile_physical_counts` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mobile_physical_count_lines`
--

COMMIT;

--
-- Table structure for table `mobile_physical_counts`
--

CREATE TABLE `mobile_physical_counts` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `establishment_id` int(10) unsigned NOT NULL,
  `warehouse_id` int(10) unsigned NOT NULL,
  `user_id` int(10) unsigned NOT NULL,
  `status` varchar(30) NOT NULL DEFAULT 'draft',
  `notes` text DEFAULT NULL,
  `started_at` timestamp NULL DEFAULT NULL,
  `submitted_at` timestamp NULL DEFAULT NULL,
  `submitted_by` int(10) unsigned DEFAULT NULL,
  `approved_at` timestamp NULL DEFAULT NULL,
  `approved_by` int(10) unsigned DEFAULT NULL,
  `rejected_at` timestamp NULL DEFAULT NULL,
  `rejected_by` int(10) unsigned DEFAULT NULL,
  `cancelled_at` timestamp NULL DEFAULT NULL,
  `cancelled_by` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mobile_physical_counts_warehouse_id_status_index` (`warehouse_id`,`status`),
  KEY `mobile_physical_counts_user_id_status_index` (`user_id`,`status`),
  KEY `mobile_physical_counts_submitted_by_foreign` (`submitted_by`),
  KEY `mobile_physical_counts_approved_by_foreign` (`approved_by`),
  KEY `mobile_physical_counts_rejected_by_foreign` (`rejected_by`),
  KEY `mobile_physical_counts_cancelled_by_foreign` (`cancelled_by`),
  KEY `mobile_physical_counts_est_status_created_idx` (`establishment_id`,`status`,`created_at`),
  CONSTRAINT `mobile_physical_counts_approved_by_foreign` FOREIGN KEY (`approved_by`) REFERENCES `users` (`id`),
  CONSTRAINT `mobile_physical_counts_cancelled_by_foreign` FOREIGN KEY (`cancelled_by`) REFERENCES `users` (`id`),
  CONSTRAINT `mobile_physical_counts_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `mobile_physical_counts_rejected_by_foreign` FOREIGN KEY (`rejected_by`) REFERENCES `users` (`id`),
  CONSTRAINT `mobile_physical_counts_submitted_by_foreign` FOREIGN KEY (`submitted_by`) REFERENCES `users` (`id`),
  CONSTRAINT `mobile_physical_counts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `mobile_physical_counts_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mobile_physical_counts`
--

COMMIT;

--
-- Dumping data for table `mobile_push_devices`
--

COMMIT;

--
-- Table structure for table `module_level_user`
--

CREATE TABLE `module_level_user` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `module_level_id` int(10) unsigned NOT NULL,
  `user_id` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=245 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `module_level_user`
--

INSERT INTO `module_level_user` VALUES
(1,76,0),
(2,77,0),
(3,78,0),
(4,1,1),
(5,2,1),
(6,3,1),
(7,4,1),
(8,5,1),
(9,6,1),
(10,7,1),
(11,8,1),
(12,9,1),
(13,10,1),
(14,11,1),
(15,12,1),
(16,13,1),
(17,14,1),
(18,15,1),
(19,16,1),
(21,17,1),
(22,18,1),
(23,19,1),
(24,20,1),
(25,21,1),
(26,22,1),
(27,23,1),
(28,24,1),
(29,25,1),
(30,26,1),
(31,27,1),
(32,28,1),
(33,29,1),
(34,30,1),
(35,31,1),
(36,32,1),
(37,33,1),
(38,34,1),
(39,35,1),
(40,36,1),
(41,37,1),
(42,38,1),
(43,39,1),
(44,40,1),
(45,41,1),
(46,42,1),
(47,43,1),
(48,44,1),
(49,75,1),
(50,45,1),
(51,46,1),
(52,47,1),
(54,49,1),
(55,50,1),
(56,79,1),
(57,51,1),
(58,52,1),
(59,53,1),
(60,54,1),
(61,55,1),
(62,56,1),
(63,57,1),
(64,58,1),
(65,59,1),
(66,60,1),
(67,76,1),
(68,77,1),
(69,78,1),
(70,61,1),
(71,62,1),
(72,1,2),
(73,2,2),
(74,3,2),
(75,4,2),
(76,5,2),
(77,6,2),
(78,7,2),
(79,8,2),
(80,9,2),
(81,10,2),
(82,11,2),
(83,12,2),
(84,13,2),
(85,14,2),
(86,15,2),
(87,16,2),
(88,23,2),
(89,24,2),
(90,25,2),
(91,26,2),
(92,27,2),
(93,28,2),
(94,29,2),
(95,30,2),
(96,31,2),
(97,32,2),
(98,33,2),
(99,34,2),
(100,35,2),
(101,36,2),
(102,37,2),
(103,38,2),
(104,39,2),
(105,40,2),
(106,41,2),
(107,42,2),
(108,43,2),
(109,44,2),
(110,75,2),
(111,47,2),
(113,49,2),
(114,50,2),
(115,79,2),
(116,51,2),
(117,52,2),
(118,53,2),
(119,54,2),
(120,55,2),
(121,56,2),
(122,57,2),
(123,58,2),
(124,59,2),
(125,60,2),
(126,76,2),
(127,77,2),
(128,78,2),
(129,61,2),
(130,62,2),
(131,90,1),
(132,90,2),
(133,1,3),
(134,2,3),
(135,3,3),
(136,4,3),
(137,5,3),
(138,6,3),
(139,7,3),
(140,8,3),
(141,9,3),
(142,10,3),
(143,11,3),
(144,12,3),
(145,13,3),
(146,14,3),
(147,23,3),
(148,24,3),
(149,25,3),
(150,26,3),
(151,27,3),
(152,28,3),
(153,90,3),
(154,29,3),
(155,30,3),
(156,51,3),
(157,52,3),
(158,53,3),
(159,1,3),
(160,2,3),
(161,3,3),
(162,4,3),
(163,5,3),
(164,6,3),
(165,7,3),
(166,8,3),
(167,9,3),
(168,10,3),
(169,11,3),
(170,12,3),
(171,13,3),
(172,14,3),
(173,15,3),
(174,16,3),
(175,23,3),
(176,24,3),
(177,25,3),
(178,26,3),
(179,27,3),
(180,28,3),
(181,90,3),
(182,29,3),
(183,30,3),
(184,51,3),
(185,52,3),
(186,53,3),
(187,1,3),
(188,2,3),
(189,3,3),
(190,4,3),
(191,5,3),
(192,6,3),
(193,7,3),
(194,8,3),
(195,9,3),
(196,10,3),
(197,11,3),
(198,12,3),
(199,13,3),
(200,14,3),
(201,15,3),
(202,16,3),
(203,23,3),
(204,24,3),
(205,25,3),
(206,26,3),
(207,27,3),
(208,28,3),
(209,90,3),
(210,29,3),
(211,30,3),
(212,51,3),
(213,52,3),
(214,53,3),
(215,76,3),
(216,77,3),
(217,78,3),
(218,91,1),
(219,91,2),
(220,91,3),
(221,92,1),
(222,92,2),
(223,92,3),
(224,93,1),
(225,93,2),
(226,93,3),
(227,94,1),
(228,94,2),
(229,94,3),
(230,95,1),
(231,95,2),
(232,95,3),
(233,96,1),
(234,96,2),
(235,96,3),
(236,97,1),
(237,97,2),
(238,97,3),
(239,98,1),
(240,98,2),
(241,98,3),
(242,99,1),
(243,99,2),
(244,99,3);
COMMIT;

--
-- Table structure for table `module_levels`
--

CREATE TABLE `module_levels` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `value` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `module_id` int(10) unsigned NOT NULL,
  `route_name` varchar(255) DEFAULT NULL,
  `route_path` varchar(255) DEFAULT NULL,
  `label_menu` varchar(3) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `module_levels_module_id_foreign` (`module_id`),
  CONSTRAINT `module_levels_module_id_foreign` FOREIGN KEY (`module_id`) REFERENCES `modules` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `module_levels`
--

INSERT INTO `module_levels` VALUES
(1,'new_document','Nuevo comprobante',1,'tenant.documents.create','/documents/create','NC',NULL,NULL),
(2,'list_document','L. Comprobantes',1,NULL,NULL,NULL,NULL,NULL),
(3,'document_not_sent','Doc. No enviados',1,NULL,NULL,NULL,NULL,NULL),
(4,'document_contingengy','Doc. Contingencia',1,NULL,NULL,NULL,NULL,NULL),
(5,'catalogs','Catálogos',1,NULL,NULL,NULL,NULL,NULL),
(6,'summary_voided','Resúmenes y Anulaciones',1,NULL,NULL,NULL,NULL,NULL),
(7,'quotations','Cotizaciones',1,NULL,NULL,NULL,NULL,NULL),
(8,'sale_notes','Notas de Venta',1,'tenant.sale_notes.index','/sale-notes','NV',NULL,NULL),
(9,'incentives','Comisiones',1,NULL,NULL,NULL,NULL,NULL),
(10,'sale-opportunity','Oportunidad de venta',1,NULL,NULL,NULL,NULL,NULL),
(11,'contracts','Contratos',1,NULL,NULL,NULL,NULL,NULL),
(12,'order-note','Pedidos',1,'tenant.order_notes.index','/order-notes','PED',NULL,NULL),
(13,'technical-service','Servicios de soporte técnico',1,NULL,NULL,NULL,NULL,NULL),
(14,'regularize_shipping','CPE pendientes de rectificación',1,NULL,NULL,NULL,NULL,NULL),
(15,'pos','Punto de venta',6,'tenant.pos.index','/pos','POS',NULL,NULL),
(16,'cash','Caja chica POS',6,NULL,NULL,NULL,NULL,NULL),
(17,'ecommerce','Ir a la tienda',10,NULL,NULL,NULL,NULL,NULL),
(18,'ecommerce_orders','Pedidos',10,NULL,NULL,NULL,NULL,NULL),
(19,'ecommerce_items','Productos tienda virtual',10,NULL,NULL,NULL,NULL,NULL),
(20,'ecommerce_tags','Etiquetas',10,NULL,NULL,NULL,NULL,NULL),
(21,'ecommerce_promotions','Promociones - Banners',10,NULL,NULL,NULL,NULL,NULL),
(22,'ecommerce_settings','Configuración',10,NULL,NULL,NULL,NULL,NULL),
(23,'items','Productos',17,'tenant.items.index','/items','PRO',NULL,NULL),
(24,'items_packs','Packs',17,NULL,NULL,NULL,NULL,NULL),
(25,'items_services','Servicios',17,NULL,NULL,NULL,NULL,NULL),
(26,'items_categories','Categorías',17,NULL,NULL,NULL,NULL,NULL),
(27,'items_brands','Marcas',17,NULL,NULL,NULL,NULL,NULL),
(28,'items_lots','Series',17,NULL,NULL,NULL,NULL,NULL),
(29,'clients','Clientes',18,NULL,NULL,NULL,NULL,NULL),
(30,'clients_types','Tipos de clientes',18,NULL,NULL,NULL,NULL,NULL),
(31,'purchases_create','Nueva Compra',2,'tenant.purchases.create','/purchases/create','NC',NULL,NULL),
(32,'purchases_list','Listado',2,NULL,NULL,NULL,NULL,NULL),
(33,'purchases_orders','Ordenes de compra',2,NULL,NULL,NULL,NULL,NULL),
(34,'purchases_expenses','Gastos diversos',2,NULL,NULL,NULL,NULL,NULL),
(35,'purchases_suppliers','Proveedores',2,NULL,NULL,NULL,NULL,NULL),
(36,'purchases_quotations','Solicitar cotización',2,NULL,NULL,NULL,NULL,NULL),
(37,'purchases_fixed_assets_items','Activos fijos - Ítems',2,NULL,NULL,NULL,NULL,NULL),
(38,'purchases_fixed_assets_purchases','Activos fijos - Compras',2,NULL,NULL,NULL,NULL,NULL),
(39,'inventory','Movimientos',8,'inventory.index','/inventory','INV',NULL,NULL),
(40,'inventory_transfers','Traslados',8,NULL,NULL,NULL,NULL,NULL),
(41,'inventory_devolutions','Devoluciones',8,NULL,NULL,NULL,NULL,NULL),
(42,'inventory_report_kardex','Reporte kardex',8,NULL,NULL,NULL,NULL,NULL),
(43,'inventory_report','Reporte inventario',8,NULL,NULL,NULL,NULL,NULL),
(44,'inventory_report_valued_kardex','Kardex valorizado',8,NULL,NULL,NULL,NULL,'2025-12-27 19:22:00'),
(45,'users','Usuarios',14,'tenant.users.index','/users','USR',NULL,NULL),
(46,'users_establishments','Establecimientos',14,'tenant.establishments.index','/establishments','ES',NULL,NULL),
(47,'advanced_retentions','Retenciones',3,NULL,NULL,NULL,NULL,NULL),
(49,'advanced_perceptions','Percepciones',3,NULL,NULL,NULL,NULL,NULL),
(50,'advanced_order_forms','Ordenes de pedido',3,NULL,NULL,NULL,NULL,NULL),
(51,'account_report','Exportar reporte',9,NULL,NULL,NULL,NULL,NULL),
(52,'account_formats','Exportar formatos',9,NULL,NULL,NULL,NULL,NULL),
(53,'account_summary','Reporte resumido - Ventas',9,NULL,NULL,NULL,NULL,NULL),
(54,'finances_movements','Movimientos',12,NULL,NULL,NULL,NULL,NULL),
(55,'finances_incomes','Ingresos',12,NULL,NULL,NULL,NULL,NULL),
(56,'finances_unpaid','Cuentas por cobrar',12,NULL,NULL,NULL,NULL,NULL),
(57,'finances_to_pay','Cuentas por pagar',12,NULL,NULL,NULL,NULL,NULL),
(58,'finances_payments','Pagos',12,NULL,NULL,NULL,NULL,NULL),
(59,'finances_balance','Balance',12,NULL,NULL,NULL,NULL,NULL),
(60,'finances_payment_method_types','Ingresos y Egresos - M. Pago',12,NULL,NULL,NULL,NULL,NULL),
(61,'account_users_settings','Configuración',11,NULL,NULL,NULL,NULL,NULL),
(62,'account_users_list','Lista de pagos',11,NULL,NULL,NULL,NULL,NULL),
(63,'hotels_reception','Recepción',15,NULL,NULL,NULL,NULL,NULL),
(64,'hotels_rates','Tarifas',15,NULL,NULL,NULL,NULL,NULL),
(65,'hotels_floors','Pisos',15,NULL,NULL,NULL,NULL,NULL),
(66,'hotels_cats','Categorías',15,NULL,NULL,NULL,NULL,NULL),
(67,'hotels_rooms','Habitaciones',15,NULL,NULL,NULL,NULL,NULL),
(68,'documentary_offices','Oficinas',16,NULL,NULL,NULL,NULL,NULL),
(69,'documentary_process','Procesos',16,NULL,NULL,NULL,NULL,NULL),
(70,'documentary_documents','Tipos de documento',16,NULL,NULL,NULL,NULL,NULL),
(71,'documentary_actions','Acciones',16,NULL,NULL,NULL,NULL,NULL),
(72,'documentary_files','Expedientes',16,NULL,NULL,NULL,NULL,NULL),
(73,'digemid','Productos (legado)',19,NULL,NULL,NULL,'2025-12-27 19:21:54','2025-12-27 19:21:54'),
(74,'documentary_requirements','Requerimientos',16,NULL,NULL,NULL,'2025-12-27 19:21:54','2025-12-27 19:21:54'),
(75,'inventory_item_extra_data','Datos extra de items',8,NULL,NULL,NULL,NULL,NULL),
(76,'configuration_company','Empresa',5,'tenant.companies.create','/companies/create','ME',NULL,NULL),
(77,'configuration_advance','Avanzado',5,NULL,NULL,NULL,NULL,NULL),
(78,'configuration_visual','Visual',5,NULL,NULL,NULL,NULL,NULL),
(79,'advanced_purchase_settlements','Liquidaciones de compra',3,NULL,NULL,NULL,NULL,NULL),
(80,'suscription_app_client','Cliente',21,NULL,NULL,NULL,NULL,NULL),
(81,'suscription_app_service','Servicio',21,NULL,NULL,NULL,NULL,NULL),
(82,'suscription_app_payments','Pagos',21,NULL,NULL,NULL,NULL,NULL),
(83,'suscription_app_plans','Planes',21,NULL,NULL,NULL,NULL,NULL),
(85,'digemid_health_report','Reporte DIGEMID',19,'reports.health.index','/prescriptions/digemid','RDI','2026-04-01 09:08:02','2026-04-01 09:08:02'),
(86,'digemid_doctors','Medicos',19,'tenant.prescriptions.doctors.index','/prescriptions/doctors','MED','2026-04-01 09:08:02','2026-04-01 09:08:02'),
(87,'digemid_cie10','CIE 10',19,'tenant.prescriptions.cie10.index','/prescriptions/cie10','C10','2026-04-01 09:08:02','2026-04-01 09:08:02'),
(88,'digemid_psychotropics_report','Reporte de Psicotropicos',19,'tenant.prescriptions.reports.index','/prescriptions/reports','RPS','2026-04-01 09:08:02','2026-04-01 09:08:02'),
(89,'digemid_purchase_reception','Recepcion de productos farmaceuticos',19,'tenant.reports.purchases.format_09.index','/reports/purchases/format_09','RPF','2026-04-01 09:08:02','2026-04-01 09:08:02'),
(90,'items_coupons','Cupones',17,NULL,NULL,NULL,'2026-04-01 09:08:02','2026-04-01 09:08:02'),
(91,'veterinary','Veterinaria',33,NULL,NULL,NULL,'2026-06-28 02:00:56','2026-06-28 02:00:56'),
(92,'vet_panel','Panel',33,NULL,NULL,NULL,'2026-06-28 02:00:57','2026-06-28 02:00:57'),
(93,'vet_pets','Mascotas',33,NULL,NULL,NULL,'2026-06-28 02:00:57','2026-06-28 02:00:57'),
(94,'vet_appointments','Citas / Agenda',33,NULL,NULL,NULL,'2026-06-28 02:00:57','2026-06-28 02:00:57'),
(95,'vet_boardings','Hospedaje',33,NULL,NULL,NULL,'2026-06-28 02:00:57','2026-06-28 02:00:57'),
(96,'vet_reminders','Recordatorios',33,NULL,NULL,NULL,'2026-06-28 02:00:57','2026-06-28 02:00:57'),
(97,'vet_memberships','Membresías',33,NULL,NULL,NULL,'2026-06-28 02:00:57','2026-06-28 02:00:57'),
(98,'vet_reports','Reportes',33,NULL,NULL,NULL,'2026-06-28 02:00:57','2026-06-28 02:00:57'),
(99,'vet_settings','Configuración',33,NULL,NULL,NULL,'2026-06-28 02:00:57','2026-06-28 02:00:57'),
(100,'clinica','Clínica',34,NULL,NULL,NULL,'2026-06-30 14:47:41','2026-06-30 14:47:41');
COMMIT;

--
-- Table structure for table `module_user`
--

CREATE TABLE `module_user` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `module_id` int(10) unsigned NOT NULL,
  `user_id` int(10) unsigned NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `module_user`
--

INSERT INTO `module_user` VALUES
(1,7,1),
(2,20,1),
(3,27,1),
(4,1,1),
(5,6,1),
(6,10,1),
(7,17,1),
(8,18,1),
(9,2,1),
(10,8,1),
(11,14,1),
(12,3,1),
(13,4,1),
(14,9,1),
(15,12,1),
(16,5,1),
(17,11,1),
(18,7,2),
(19,1,2),
(20,6,2),
(21,17,2),
(22,18,2),
(23,2,2),
(24,8,2),
(25,3,2),
(26,4,2),
(27,9,2),
(28,12,2),
(29,5,2),
(30,11,2),
(31,1,3),
(32,17,3),
(33,18,3),
(34,9,3),
(35,1,3),
(36,6,3),
(37,17,3),
(38,18,3),
(39,9,3),
(40,1,3),
(41,6,3),
(42,17,3),
(43,18,3),
(44,9,3),
(45,5,3),
(46,33,1),
(47,33,2),
(48,33,3);
COMMIT;

--
-- Table structure for table `modules`
--

CREATE TABLE `modules` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `value` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `order_menu` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `modules`
--

INSERT INTO `modules` VALUES
(1,'documents','Ventas',2,NULL,NULL),
(2,'purchases','Compras',7,NULL,NULL),
(3,'advanced','Documentos Avanzados',8,NULL,NULL),
(4,'reports','Reportes',9,NULL,NULL),
(5,'configuration','Configuration',12,NULL,NULL),
(6,'pos','Punto de venta (POS)',3,NULL,NULL),
(7,'dashboard','Dashboard',1,NULL,NULL),
(8,'inventory','Inventario',7,NULL,NULL),
(9,'accounting','Contabilidad',10,NULL,NULL),
(10,'ecommerce','Ecommerce',4,NULL,NULL),
(11,'cuenta','Cuenta',13,NULL,NULL),
(12,'finance','Finanzas',11,NULL,NULL),
(14,'establishments','Usuarios/Locales & Series',7,NULL,NULL),
(15,'hotels','Hoteles',14,NULL,NULL),
(16,'documentary-procedure','Trámite documentario',15,NULL,NULL),
(17,'items','Productos/Servicios',5,NULL,NULL),
(18,'persons','Clientes',6,NULL,NULL),
(19,'digemid','Farmacos',15,'2025-12-27 19:21:54','2025-12-27 19:21:54'),
(20,'apps','Apps',13,NULL,NULL),
(21,'suscription_app','Suscriptiones',16,NULL,NULL),
(22,'production_app','Producción',17,NULL,NULL),
(23,'restaurant_app','Restaurante',18,NULL,NULL),
(24,'full_suscription_app','Suscripción Servicios SAAS',17,NULL,NULL),
(25,'generate_link_app','Generador de link de pago',19,NULL,NULL),
(26,'app_2_generator','Generador APP 2.0',20,NULL,NULL),
(27,'guia','Guia de remisión',3,NULL,NULL),
(33,'veterinary','Veterinaria',20,'2026-06-28 02:00:56','2026-06-28 02:00:56'),
(34,'clinica','Clínica',20,'2026-06-30 14:47:41','2026-06-30 14:47:41');
COMMIT;

--
-- Table structure for table `notes`
--

CREATE TABLE `notes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `document_id` int(10) unsigned NOT NULL,
  `note_type` enum('credit','debit') NOT NULL,
  `note_credit_type_id` varchar(255) DEFAULT NULL,
  `note_debit_type_id` varchar(255) DEFAULT NULL,
  `note_description` varchar(255) NOT NULL,
  `affected_document_id` int(10) unsigned DEFAULT NULL,
  `data_affected_document` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `notes_document_id_foreign` (`document_id`),
  KEY `notes_note_credit_type_id_foreign` (`note_credit_type_id`),
  KEY `notes_note_debit_type_id_foreign` (`note_debit_type_id`),
  KEY `notes_affected_document_id_foreign` (`affected_document_id`),
  CONSTRAINT `notes_affected_document_id_foreign` FOREIGN KEY (`affected_document_id`) REFERENCES `documents` (`id`),
  CONSTRAINT `notes_document_id_foreign` FOREIGN KEY (`document_id`) REFERENCES `documents` (`id`) ON DELETE CASCADE,
  CONSTRAINT `notes_note_credit_type_id_foreign` FOREIGN KEY (`note_credit_type_id`) REFERENCES `cat_note_credit_types` (`id`),
  CONSTRAINT `notes_note_debit_type_id_foreign` FOREIGN KEY (`note_debit_type_id`) REFERENCES `cat_note_debit_types` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `notes`
--

INSERT INTO `notes` VALUES
(1,2826,'credit','01',NULL,'ERROR',2628,NULL),
(2,2827,'credit','01',NULL,'ERROR',2607,NULL),
(3,2828,'credit','01',NULL,'ERROR',2597,NULL),
(4,2829,'credit','01',NULL,'ERROR',2593,NULL),
(5,2830,'credit','01',NULL,'ERROR',2568,NULL),
(6,2831,'credit','01',NULL,'ERROR',2547,NULL),
(7,2832,'credit','01',NULL,'ERROR',2507,NULL),
(8,2833,'credit','01',NULL,'ERROR',2460,NULL),
(9,2834,'credit','01',NULL,'ERROR',2458,NULL),
(10,2835,'credit','01',NULL,'ERROR',2448,NULL),
(11,2836,'credit','01',NULL,'ERROR',2403,NULL),
(12,2837,'credit','01',NULL,'ERROR',2399,NULL),
(13,2838,'credit','01',NULL,'ERROR',2379,NULL),
(14,2839,'credit','01',NULL,'ERROR',2347,NULL),
(15,2840,'credit','01',NULL,'ERROR',2338,NULL),
(16,2841,'credit','01',NULL,'ERROR',2264,NULL),
(17,2842,'credit','01',NULL,'ERROR',2234,NULL),
(18,2843,'credit','01',NULL,'ERR0R',2225,NULL),
(19,2853,'credit','01',NULL,'error',2607,NULL),
(20,2857,'credit','01',NULL,'error',2628,NULL);
COMMIT;

--
-- Table structure for table `offline_configurations`
--

CREATE TABLE `offline_configurations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `is_client` tinyint(1) NOT NULL DEFAULT 0,
  `token_server` varchar(255) DEFAULT NULL,
  `url_server` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `offline_configurations`
--

INSERT INTO `offline_configurations` VALUES
(1,0,NULL,NULL,NULL,NULL);
COMMIT;

--
-- Table structure for table `order_form_items`
--

CREATE TABLE `order_form_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `order_form_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `order_form_items_order_form_id_foreign` (`order_form_id`),
  KEY `order_form_items_item_id_foreign` (`item_id`),
  CONSTRAINT `order_form_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `order_form_items_order_form_id_foreign` FOREIGN KEY (`order_form_id`) REFERENCES `order_forms` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `order_form_items`
--

COMMIT;

--
-- Table structure for table `order_forms`
--

CREATE TABLE `order_forms` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `external_id` char(36) NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `establishment` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `prefix` varchar(255) NOT NULL,
  `date_of_issue` date NOT NULL,
  `time_of_issue` time NOT NULL,
  `customer_id` int(10) unsigned NOT NULL,
  `customer` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `observations` text NOT NULL,
  `transport_mode_type_id` varchar(255) NOT NULL,
  `transfer_reason_type_id` varchar(255) NOT NULL,
  `transfer_reason_description` varchar(255) NOT NULL,
  `date_of_shipping` date NOT NULL,
  `transshipment_indicator` tinyint(1) NOT NULL,
  `port_code` varchar(255) DEFAULT NULL,
  `unit_type_id` varchar(255) NOT NULL,
  `total_weight` decimal(10,2) NOT NULL,
  `packages_number` int(11) NOT NULL,
  `container_number` int(11) DEFAULT NULL,
  `origin` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `delivery` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `dispatcher_id` int(10) unsigned NOT NULL,
  `driver_id` int(10) unsigned NOT NULL,
  `license_plates` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `legends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `optional` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `qr` longtext DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `order_forms_dispatcher_id_foreign` (`dispatcher_id`),
  KEY `order_forms_driver_id_foreign` (`driver_id`),
  KEY `order_forms_user_id_foreign` (`user_id`),
  KEY `order_forms_establishment_id_foreign` (`establishment_id`),
  KEY `order_forms_soap_type_id_foreign` (`soap_type_id`),
  KEY `order_forms_state_type_id_foreign` (`state_type_id`),
  KEY `order_forms_customer_id_foreign` (`customer_id`),
  KEY `order_forms_unit_type_id_foreign` (`unit_type_id`),
  KEY `order_forms_transport_mode_type_id_foreign` (`transport_mode_type_id`),
  KEY `order_forms_transfer_reason_type_id_foreign` (`transfer_reason_type_id`),
  KEY `order_forms_date_of_issue_index` (`date_of_issue`),
  CONSTRAINT `order_forms_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `order_forms_dispatcher_id_foreign` FOREIGN KEY (`dispatcher_id`) REFERENCES `dispatchers` (`id`),
  CONSTRAINT `order_forms_driver_id_foreign` FOREIGN KEY (`driver_id`) REFERENCES `drivers` (`id`),
  CONSTRAINT `order_forms_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `order_forms_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `order_forms_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `order_forms_transfer_reason_type_id_foreign` FOREIGN KEY (`transfer_reason_type_id`) REFERENCES `cat_transfer_reason_types` (`id`),
  CONSTRAINT `order_forms_transport_mode_type_id_foreign` FOREIGN KEY (`transport_mode_type_id`) REFERENCES `cat_transport_mode_types` (`id`),
  CONSTRAINT `order_forms_unit_type_id_foreign` FOREIGN KEY (`unit_type_id`) REFERENCES `cat_unit_types` (`id`),
  CONSTRAINT `order_forms_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `order_forms`
--

COMMIT;

--
-- Table structure for table `order_note_items`
--

CREATE TABLE `order_note_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `order_note_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `unit_value` decimal(16,6) NOT NULL,
  `affectation_igv_type_id` varchar(255) NOT NULL,
  `total_base_igv` decimal(12,2) NOT NULL,
  `percentage_igv` decimal(12,2) NOT NULL,
  `total_igv` decimal(12,2) NOT NULL,
  `system_isc_type_id` varchar(255) DEFAULT NULL,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_plastic_bag_taxes` decimal(6,2) DEFAULT 0.00 COMMENT 'Impuesto bolsa plastica',
  `total_taxes` decimal(12,2) NOT NULL,
  `price_type_id` varchar(255) NOT NULL,
  `unit_price` decimal(16,6) NOT NULL,
  `total_value` decimal(12,2) NOT NULL,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `additional_information` longtext DEFAULT NULL COMMENT 'Informacion adcional',
  `warehouse_id` int(10) unsigned DEFAULT NULL,
  `name_product_pdf` longtext DEFAULT NULL COMMENT 'Nombre del producto para el pdf',
  PRIMARY KEY (`id`),
  KEY `order_note_items_order_note_id_foreign` (`order_note_id`),
  KEY `order_note_items_item_id_foreign` (`item_id`),
  KEY `order_note_items_affectation_igv_type_id_foreign` (`affectation_igv_type_id`),
  KEY `order_note_items_system_isc_type_id_foreign` (`system_isc_type_id`),
  KEY `order_note_items_price_type_id_foreign` (`price_type_id`),
  KEY `order_note_items_warehouse_id_foreign` (`warehouse_id`),
  CONSTRAINT `order_note_items_affectation_igv_type_id_foreign` FOREIGN KEY (`affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `order_note_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `order_note_items_order_note_id_foreign` FOREIGN KEY (`order_note_id`) REFERENCES `order_notes` (`id`) ON DELETE CASCADE,
  CONSTRAINT `order_note_items_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `cat_price_types` (`id`),
  CONSTRAINT `order_note_items_system_isc_type_id_foreign` FOREIGN KEY (`system_isc_type_id`) REFERENCES `cat_system_isc_types` (`id`),
  CONSTRAINT `order_note_items_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `order_note_items`
--

COMMIT;

--
-- Table structure for table `order_notes`
--

CREATE TABLE `order_notes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `external_id` char(36) NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `establishment` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `prefix` char(3) NOT NULL,
  `date_of_issue` date NOT NULL,
  `time_of_issue` time NOT NULL,
  `date_of_due` date DEFAULT NULL,
  `delivery_date` date DEFAULT NULL,
  `customer_id` int(10) unsigned NOT NULL,
  `customer` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `shipping_address` text DEFAULT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `payment_method_type_id` char(2) DEFAULT NULL,
  `exchange_rate_sale` decimal(13,3) NOT NULL,
  `total_prepayment` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exportation` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxed` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_unaffected` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exonerated` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_igv` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_igv_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_value` decimal(12,2) NOT NULL DEFAULT 0.00,
  `subtotal` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `prepayments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `guides` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `related` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `perception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `detraction` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `legends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `additional_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `observation` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `quotation_id` int(10) unsigned DEFAULT 0 COMMENT 'Relacion con cotizaciones',
  PRIMARY KEY (`id`),
  KEY `order_notes_user_id_foreign` (`user_id`),
  KEY `order_notes_establishment_id_foreign` (`establishment_id`),
  KEY `order_notes_customer_id_foreign` (`customer_id`),
  KEY `order_notes_soap_type_id_foreign` (`soap_type_id`),
  KEY `order_notes_state_type_id_foreign` (`state_type_id`),
  KEY `order_notes_currency_type_id_foreign` (`currency_type_id`),
  KEY `order_notes_payment_method_type_id_foreign` (`payment_method_type_id`),
  CONSTRAINT `order_notes_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `order_notes_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `order_notes_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `order_notes_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `order_notes_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `order_notes_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `order_notes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `order_notes`
--

COMMIT;

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `external_id` char(36) NOT NULL,
  `customer` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `shipping_address` varchar(255) DEFAULT NULL,
  `items` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `total` decimal(12,2) NOT NULL,
  `reference_payment` varchar(255) NOT NULL,
  `document_external_id` char(36) DEFAULT NULL,
  `number_document` varchar(255) DEFAULT NULL,
  `status_order_id` tinyint(3) unsigned DEFAULT NULL,
  `purchase` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `apply_restaurant` tinyint(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `orders_status_order_id_foreign` (`status_order_id`),
  CONSTRAINT `orders_status_order_id_foreign` FOREIGN KEY (`status_order_id`) REFERENCES `status_orders` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `orders`
--

COMMIT;

--
-- Table structure for table `origin_addresses`
--

CREATE TABLE `origin_addresses` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `address` varchar(255) NOT NULL,
  `location_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT 0,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `origin_addresses`
--

COMMIT;

--
-- Table structure for table `packaging`
--

CREATE TABLE `packaging` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `item_id` int(10) unsigned NOT NULL,
  `user_id` int(10) unsigned DEFAULT NULL,
  `soap_type_id` char(2) DEFAULT NULL,
  `item_extra_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `establishment_id` int(10) unsigned DEFAULT NULL,
  `quantity` decimal(8,2) DEFAULT 0.00,
  `number_packages` decimal(8,2) DEFAULT 0.00,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `observation` longtext DEFAULT NULL,
  `lot_code` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `date_start` date DEFAULT NULL,
  `time_start` time DEFAULT NULL,
  `date_end` date DEFAULT NULL,
  `time_end` time DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `packaging_collaborator` text DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `packaging_soap_type_id_foreign` (`soap_type_id`),
  CONSTRAINT `packaging_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `packaging`
--

COMMIT;

--
-- Table structure for table `padrones`
--

CREATE TABLE `padrones` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `ruc` varchar(255) NOT NULL,
  `nombre_razon_social` varchar(155) NOT NULL,
  `estado_contribuyente` varchar(100) NOT NULL,
  `condicion_domicilio` varchar(100) NOT NULL,
  `ubigeo` varchar(50) NOT NULL,
  `tipo_via` varchar(20) NOT NULL,
  `nombre_via` varchar(50) NOT NULL,
  `codigo_zona` varchar(155) NOT NULL,
  `tipo_zona` varchar(20) NOT NULL,
  `numero` varchar(155) NOT NULL,
  `interior` varchar(50) NOT NULL,
  `lote` varchar(20) NOT NULL,
  `departamento` varchar(100) NOT NULL,
  `manzana` varchar(20) NOT NULL,
  `kilometro` varchar(20) NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `padrones_ruc_index` (`ruc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `padrones`
--

COMMIT;

--
-- Dumping data for table `password_resets`
--

COMMIT;

--
-- Table structure for table `payment_conditions`
--

CREATE TABLE `payment_conditions` (
  `id` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `days` int(11) NOT NULL DEFAULT 0,
  `is_locked` tinyint(1) NOT NULL DEFAULT 0,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  KEY `payment_conditions_id_index` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payment_conditions`
--

INSERT INTO `payment_conditions` VALUES
('01','Contado',0,1,1),
('02','Crédito',0,1,1);
COMMIT;

--
-- Dumping data for table `payment_configurations`
--

COMMIT;

--
-- Table structure for table `payment_files`
--

CREATE TABLE `payment_files` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `filename` varchar(255) NOT NULL,
  `payment_id` int(11) NOT NULL,
  `payment_type` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `payment_index` (`payment_id`,`payment_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payment_files`
--

COMMIT;

--
-- Table structure for table `payment_link_types`
--

CREATE TABLE `payment_link_types` (
  `id` char(2) NOT NULL,
  `description` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payment_link_types`
--

INSERT INTO `payment_link_types` VALUES
('01','Yape'),
('02','Mercado Pago');
COMMIT;

--
-- Table structure for table `payment_links`
--

CREATE TABLE `payment_links` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `soap_type_id` char(2) NOT NULL,
  `uuid` char(36) NOT NULL,
  `user_id` int(10) unsigned NOT NULL,
  `payment_link_type_id` char(2) NOT NULL,
  `payment_id` int(11) DEFAULT NULL,
  `payment_type` varchar(255) DEFAULT NULL,
  `total` decimal(12,2) NOT NULL,
  `uploaded_filename` varchar(255) DEFAULT NULL,
  `query_transaction` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `payment_links_uuid_unique` (`uuid`),
  KEY `payment_index` (`payment_id`,`payment_type`),
  KEY `payment_links_user_id_foreign` (`user_id`),
  KEY `payment_links_soap_type_id_foreign` (`soap_type_id`),
  KEY `payment_links_payment_link_type_id_foreign` (`payment_link_type_id`),
  CONSTRAINT `payment_links_payment_link_type_id_foreign` FOREIGN KEY (`payment_link_type_id`) REFERENCES `payment_link_types` (`id`),
  CONSTRAINT `payment_links_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `payment_links_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payment_links`
--

COMMIT;

--
-- Table structure for table `payment_method_types`
--

CREATE TABLE `payment_method_types` (
  `id` char(2) NOT NULL,
  `description` varchar(255) NOT NULL,
  `has_card` tinyint(1) NOT NULL DEFAULT 0,
  `charge` decimal(12,2) DEFAULT NULL,
  `number_days` int(11) DEFAULT NULL,
  `is_credit` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Define si es tipo credito',
  `is_cash` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Define si es es efectivo',
  `active_pos` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'Visible en POS para contado',
  `pos_bank_account_id` int(10) unsigned DEFAULT NULL COMMENT 'Cuenta bancaria por defecto en POS contado. Null => caja',
  `is_visible` tinyint(1) NOT NULL DEFAULT 1,
  KEY `payment_method_types_id_index` (`id`),
  KEY `payment_method_types_is_credit_index` (`is_credit`),
  KEY `payment_method_types_active_pos_index` (`active_pos`),
  KEY `payment_method_types_pos_bank_account_id_index` (`pos_bank_account_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payment_method_types`
--

INSERT INTO `payment_method_types` VALUES
('01','Efectivo',0,NULL,NULL,0,1,1,NULL,1),
('02','Yape',0,NULL,NULL,0,0,1,NULL,1),
('03','Plin',0,NULL,NULL,0,0,1,NULL,1),
('04','Transferencia',0,NULL,NULL,0,0,0,NULL,1),
('05','Factura a 30 dias',0,NULL,30,1,0,0,NULL,0),
('06','Izipay',1,3.68,NULL,0,0,1,NULL,1),
('09','Credito',0,NULL,NULL,1,0,0,NULL,0);
COMMIT;

--
-- Table structure for table `perception_documents`
--

CREATE TABLE `perception_documents` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `perception_id` int(10) unsigned NOT NULL,
  `document_type_id` varchar(255) NOT NULL,
  `number` varchar(255) NOT NULL,
  `date_of_issue` date NOT NULL,
  `date_of_perception` date NOT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `total_document` decimal(10,2) NOT NULL,
  `total_perception` decimal(10,2) NOT NULL,
  `payments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `series` varchar(255) NOT NULL,
  `exchange_rate` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `total_to_pay` decimal(10,2) NOT NULL,
  `total_payment` decimal(10,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `perception_details_perception_id_foreign` (`perception_id`),
  KEY `perception_documents_document_type_id_foreign` (`document_type_id`),
  KEY `perception_documents_currency_type_id_foreign` (`currency_type_id`),
  CONSTRAINT `perception_details_perception_id_foreign` FOREIGN KEY (`perception_id`) REFERENCES `perceptions` (`id`) ON DELETE CASCADE,
  CONSTRAINT `perception_documents_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `perception_documents_document_type_id_foreign` FOREIGN KEY (`document_type_id`) REFERENCES `cat_document_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `perception_documents`
--

COMMIT;

--
-- Dumping data for table `perceptions`
--

COMMIT;

--
-- Table structure for table `person_address`
--

CREATE TABLE `person_address` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `person_id` int(10) unsigned NOT NULL,
  `department_id` char(2) DEFAULT NULL,
  `province_id` char(4) DEFAULT NULL,
  `district_id` char(6) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_address_person_id_foreign` (`person_id`),
  KEY `person_address_department_id_foreign` (`department_id`),
  KEY `person_address_province_id_foreign` (`province_id`),
  KEY `person_address_district_id_foreign` (`district_id`),
  CONSTRAINT `person_address_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`),
  CONSTRAINT `person_address_district_id_foreign` FOREIGN KEY (`district_id`) REFERENCES `districts` (`id`),
  CONSTRAINT `person_address_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_address_province_id_foreign` FOREIGN KEY (`province_id`) REFERENCES `provinces` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_address`
--

COMMIT;

--
-- Table structure for table `person_addresses`
--

CREATE TABLE `person_addresses` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `person_id` int(10) unsigned NOT NULL,
  `country_id` char(2) NOT NULL,
  `department_id` char(2) DEFAULT NULL,
  `province_id` char(4) DEFAULT NULL,
  `district_id` char(6) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `main` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `person_addresses_person_id_foreign` (`person_id`),
  KEY `person_addresses_country_id_foreign` (`country_id`),
  KEY `person_addresses_department_id_foreign` (`department_id`),
  KEY `person_addresses_province_id_foreign` (`province_id`),
  KEY `person_addresses_district_id_foreign` (`district_id`),
  CONSTRAINT `person_addresses_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`),
  CONSTRAINT `person_addresses_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`),
  CONSTRAINT `person_addresses_district_id_foreign` FOREIGN KEY (`district_id`) REFERENCES `districts` (`id`),
  CONSTRAINT `person_addresses_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_addresses_province_id_foreign` FOREIGN KEY (`province_id`) REFERENCES `provinces` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_addresses`
--

COMMIT;

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

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

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

INSERT INTO `person_types` VALUES
(1,'Interno','2025-12-27 19:21:46','2025-12-27 19:21:46'),
(2,'Distribuidor','2025-12-27 19:21:46','2025-12-27 19:21:46');
COMMIT;

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

CREATE TABLE `persons` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `type` enum('customers','suppliers') NOT NULL,
  `identity_document_type_id` varchar(255) NOT NULL,
  `number` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `birthdate` date DEFAULT NULL,
  `gender` char(1) DEFAULT NULL,
  `trade_name` varchar(255) DEFAULT NULL,
  `internal_code` varchar(100) DEFAULT NULL,
  `barcode` varchar(150) DEFAULT NULL,
  `country_id` char(2) NOT NULL,
  `nationality_id` char(2) DEFAULT NULL,
  `department_id` char(2) DEFAULT NULL,
  `province_id` char(4) DEFAULT NULL,
  `district_id` char(6) DEFAULT NULL,
  `address_type_id` varchar(255) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `condition` varchar(255) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `telephone` varchar(255) DEFAULT NULL,
  `accumulated_points` decimal(12,2) NOT NULL DEFAULT 0.00 COMMENT 'sistema por puntos',
  `perception_agent` tinyint(1) NOT NULL DEFAULT 0,
  `person_type_id` int(10) unsigned DEFAULT NULL,
  `contact` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `percentage_perception` decimal(12,2) DEFAULT NULL,
  `enabled` tinyint(1) NOT NULL DEFAULT 1,
  `website` text DEFAULT NULL COMMENT 'Sitio Web',
  `zone` longtext DEFAULT NULL COMMENT 'Zona',
  `observation` longtext DEFAULT NULL COMMENT 'Observaciones',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 1,
  `credit_days` int(10) unsigned DEFAULT 0 COMMENT 'establece los dias de credito',
  `optional_email` longtext DEFAULT NULL COMMENT 'Conjunto de correos de envio',
  `parent_id` int(10) unsigned DEFAULT 0 COMMENT 'Se relaciona con si mismo, numero mayor a 0 es el id del padre.',
  `zone_id` int(10) unsigned DEFAULT NULL,
  `seller_id` int(10) unsigned DEFAULT NULL,
  `has_discount` tinyint(1) NOT NULL DEFAULT 0,
  `discount_type` char(2) NOT NULL DEFAULT '01',
  `discount_amount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `price_list` tinyint(3) unsigned NOT NULL DEFAULT 1,
  PRIMARY KEY (`id`),
  KEY `persons_identity_document_type_id_foreign` (`identity_document_type_id`),
  KEY `persons_country_id_foreign` (`country_id`),
  KEY `persons_department_id_foreign` (`department_id`),
  KEY `persons_province_id_foreign` (`province_id`),
  KEY `persons_district_id_foreign` (`district_id`),
  KEY `persons_name_index` (`name`),
  KEY `persons_number_index` (`number`),
  KEY `persons_type_index` (`type`),
  KEY `persons_person_type_id_foreign` (`person_type_id`),
  KEY `persons_enabled_index` (`enabled`),
  KEY `persons_address_type_id_foreign` (`address_type_id`),
  KEY `persons_seller_id_index` (`seller_id`),
  KEY `persons_nationality_id_foreign` (`nationality_id`),
  CONSTRAINT `persons_address_type_id_foreign` FOREIGN KEY (`address_type_id`) REFERENCES `cat_address_types` (`id`),
  CONSTRAINT `persons_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`),
  CONSTRAINT `persons_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`),
  CONSTRAINT `persons_district_id_foreign` FOREIGN KEY (`district_id`) REFERENCES `districts` (`id`),
  CONSTRAINT `persons_identity_document_type_id_foreign` FOREIGN KEY (`identity_document_type_id`) REFERENCES `cat_identity_document_types` (`id`),
  CONSTRAINT `persons_nationality_id_foreign` FOREIGN KEY (`nationality_id`) REFERENCES `countries` (`id`),
  CONSTRAINT `persons_person_type_id_foreign` FOREIGN KEY (`person_type_id`) REFERENCES `person_types` (`id`),
  CONSTRAINT `persons_province_id_foreign` FOREIGN KEY (`province_id`) REFERENCES `provinces` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `persons` VALUES
(1,'customers','0','99999999','Clientes - Varios',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,'2025-12-27 19:21:59','2025-12-27 19:21:59',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(2,'customers','1','44876546','MORALES GUERRERO, ALKINDI',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2025-12-29 11:47:00','2025-12-29 11:47:00',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(3,'customers','6','20230557757','JAEN GAS S.A.C',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'06','0608','060801',NULL,'CAR. JAEN CHAMAYA  KM. 14','HABIDO','ACTIVO',NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2025-12-29 11:54:18','2025-12-29 11:54:18',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(4,'customers','1','42712782','SAAVEDRA VARGAS, CLAUDIA VERONICA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2025-12-31 10:59:12','2025-12-31 10:59:12',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(5,'customers','1','76293767','HUAMAN LLATAS, DARWIN JHOEL',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-01 18:57:02','2026-01-01 18:57:02',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(6,'customers','1','74899257','DAVILA CABRERA, DIANA BELEN',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-02 10:18:59','2026-01-02 10:18:59',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(7,'customers','1','80197426','NUÑEZ CARRANZA, CARLOS AURELIO',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-02 17:55:36','2026-01-02 17:55:36',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(8,'customers','1','70042924','MOLOCHO GUERRERO, LORENA ANALI',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-13 19:47:49','2026-01-13 19:47:49',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(9,'customers','1','72361626','MEGO PALACIOS, ANGELICA YAHAIRA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-26 11:10:25','2026-01-26 11:10:25',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(10,'customers','1','46319942','RAMIREZ CHINGUEL, JOSE ANSEL',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-01-27 17:31:53','2026-01-27 17:31:53',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(11,'customers','1','75209706','CUBAS ALTAMIRANO, MAYELI',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-03 12:17:51','2026-02-03 12:17:51',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(12,'customers','1','41937174','DELGADO SANCHEZ, MARIA ROSALIA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-05 10:57:28','2026-02-05 10:57:28',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(13,'customers','1','27704315','VILLANUEVA RAMIREZ, ORLANDO',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-05 10:59:52','2026-02-05 10:59:52',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(14,'customers','1','71884122','GARCIA MELENDREZ, LUISA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-07 09:20:23','2026-02-07 09:20:23',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(15,'customers','6','20602208002','GASOLINERA YANUYACU S.R.L.',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'06','0608','060801',NULL,'CAR. CHAMAYASAN IGNACIO  CAS. YANUYACU KM. 26.4','HABIDO','ACTIVO',NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-11 15:51:37','2026-02-11 15:51:37',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(16,'customers','1','27719866','CALDERON VARGAS, NANCY CHARITO',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-11 18:44:54','2026-02-11 18:44:54',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(17,'customers','1','73475398','RIVAS ROJAS, KEISSY HOACNER WILLIAMS',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-14 11:07:49','2026-02-14 11:07:49',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(18,'customers','1','73896721','OCUPA TAPIA, ANGHELA VANESSA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-14 11:21:01','2026-02-14 11:21:01',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(19,'customers','1','40135721','CALDERON QUISPE, LUZDINA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-17 18:12:50','2026-02-17 18:12:50',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(20,'customers','1','71066027','SAAVEDRA PEÑA, SEGUNDO EDGARDO',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-24 13:39:50','2026-02-24 13:39:50',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(21,'customers','1','40274477','BRAVO ALARCON, DEISY MARBET',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-02-28 09:47:45','2026-02-28 09:47:45',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(22,'customers','1','75136903','MONJA ORDOÑEZ, ANGIE ANALI',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-09 20:42:00','2026-03-09 20:42:00',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(23,'customers','6','20609594927','SERVICIOS & DISTRIBUCIONES PLACACENTRO JAEN E.I.R.L.',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'06','0608','060801',NULL,'JR. MESONES MURO NRO. 940 SEC. NUEVO HORIZONTE','HABIDO','ACTIVO',NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-10 11:20:29','2026-03-10 11:20:29',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(24,'customers','1','43726400','SAAVEDRA LOZADA, LUZ MELINA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-12 16:58:34','2026-03-12 16:58:34',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(25,'customers','1','01022241','BECERRA HERNANDEZ, ASUNCION',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-13 18:07:33','2026-03-13 18:07:33',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(26,'customers','6','20614970660','CURVES GYM JAEN S.A.C.',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'06','0608','060801',NULL,'CAL. SAN MARTIN NRO. 1903 SEC. JAEN CENTRO','HABIDO','ACTIVO',NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-14 09:59:10','2026-03-14 09:59:10',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(27,'customers','1','72252060','RISCO GARCIA, DIANALY',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-15 09:24:58','2026-03-15 09:24:58',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(28,'customers','6','10097150759','BALDEON VENTURA YENI MARITZA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,'HABIDO','ACTIVO',NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-17 19:41:51','2026-03-17 19:41:51',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(29,'customers','1','06786714','BECERRA VALLES, NORITH',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-23 10:14:25','2026-03-23 10:14:25',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(30,'customers','1','70040081','GUTIERREZ ROJAS, KATTIA MILENA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-26 16:45:32','2026-03-26 16:45:32',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(31,'customers','1','27725777','RIVAS COTRINA, YANET MEDALIT',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-30 17:48:09','2026-03-30 17:48:09',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(32,'customers','6','20495674216','AVICOLA SAN JORGE EIRL',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'06','0608','060801',NULL,'JR. IQUITOS NRO. 1449','HABIDO','ACTIVO',NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-03-31 15:44:18','2026-03-31 15:44:18',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(33,'customers','1','27747359','DELGADO TORRES, ARTURO',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-05 13:23:25','2026-04-05 13:23:25',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(34,'suppliers','0','99999999','Clientes - Varios',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-06 16:58:04','2026-04-06 16:58:04',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(35,'customers','1','80578091','SOSA SANTOS, SORAIDA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-15 12:35:46','2026-04-15 12:35:46',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(36,'customers','1','47033143','CASTILLO GUTIERREZ, VICTOR JANKARLOS',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-21 14:20:59','2026-04-21 14:20:59',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(37,'customers','1','40321987','OCHOA PEREZ, MARIBEL',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-04-25 16:21:23','2026-04-25 16:21:23',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(38,'customers','1','71890620','GUERRERO CANO, OSMAR SMIT',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-01 11:38:05','2026-05-01 11:38:05',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(39,'customers','1','75775367','DIAZ MUNDACA, ANDERSON',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-02 09:33:31','2026-05-02 09:33:31',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(40,'customers','1','33652781','TARRILLO PEREZ, GREGORIO',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-09 11:40:01','2026-05-09 11:40:01',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(41,'customers','1','16409794','SANDOVAL JIMENEZ, JUAN',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-12 12:58:56','2026-05-12 12:58:56',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(42,'customers','6','20608457799','PUPUNA S.A.C.',NULL,NULL,NULL,NULL,NULL,'PE',NULL,'06','0608','060802',NULL,'CAL. SANTA ROSA NRO. 660  CENT BELLAVISTA','HABIDO','ACTIVO',NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-14 10:29:46','2026-05-14 10:29:46',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(43,'customers','1','73897938','JIMENEZ ARAMBULO, MARIAFE',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-17 13:57:37','2026-05-17 13:57:37',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(44,'customers','6','10700429241','MOLOCHO GUERRERO LORENA ANALI',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,'HABIDO','ACTIVO',NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-18 18:30:20','2026-05-18 18:30:20',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(45,'customers','1','33654231','DELGADO PEREZ, ALMANZOR ZACARIAS',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-22 10:46:56','2026-05-22 10:46:56',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(46,'customers','1','76480718','ADRIANZEN CASTILLO, LESSLIE YAREYLIE',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-22 11:54:13','2026-05-22 11:54:13',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(47,'customers','1','75262902','DIAZ TERRONES, JHON JAIRO',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-25 09:41:48','2026-05-25 09:41:48',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(48,'customers','6','10429291661','BRAVO COTRINA JAVIER',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,'HABIDO','ACTIVO',NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-27 19:44:21','2026-05-27 19:44:21',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(49,'customers','1','40029011','GUERRERO BAZAN, ODILA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-05-30 11:11:14','2026-05-30 11:11:14',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(50,'customers','1','75773437','QUISPE MARTINEZ, LISBETH GISELA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-02 11:12:52','2026-06-02 11:12:52',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(51,'customers','1','47528190','SANDOVAL MUÑOZ, JOSE YOEL',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-06 15:37:58','2026-06-06 15:37:58',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(52,'customers','6','10441667537','POLO VILLALOBOS VIVIANA VIOLETA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,'HABIDO','ACTIVO',NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-06 15:41:01','2026-06-06 15:41:01',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(53,'customers','1','61264030','MARLO GARCIA, YASSADI MARLYTH',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-06 15:57:59','2026-06-06 15:57:59',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(54,'customers','1','75204945','BOCANEGRA PERALTA, ANGELA MARIA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-06 17:19:12','2026-06-06 17:19:12',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(55,'customers','1','70036115','MEJIA TORRES, DIANA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-08 11:11:01','2026-06-08 11:11:01',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(56,'customers','1','75005884','DIAZ GUERRERO, LUZ KATIA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-10 11:37:08','2026-06-10 11:37:08',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(57,'customers','6','10277391100','CUEVA YPANAQUE VIOLETA LILIANA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,'HABIDO','ACTIVO',NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-11 13:12:46','2026-06-11 13:12:46',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(58,'customers','1','43129146','SALDAÑA DELGADO, MARILU',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-11 16:20:43','2026-06-11 16:20:43',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(59,'customers','1','74759785','FERNANDEZ REQUEJO, MIRELY',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-20 16:50:40','2026-06-20 16:50:40',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(60,'customers','1','27748969','ZURITA MELENDREZ, MARIA JANNY',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-22 11:06:34','2026-06-22 11:06:34',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(61,'customers','1','45425773','GAMBOA GALVEZ, LUIS FELIPE',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-22 11:49:24','2026-06-22 11:49:24',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(62,'customers','1','47113550','SOLIS VASQUEZ, PAOLA LISBEYT',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-22 12:17:32','2026-06-22 12:17:32',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(63,'customers','1','44467405','LINARES QUIROZ, DALIA LIZET',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-22 12:43:46','2026-06-22 12:43:46',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(64,'customers','1','76677617','JIBAJA ALVA, NOELLIA',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-29 10:07:48','2026-06-29 10:07:48',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(65,'customers','1','07632057','NUÑEZ MORI, OSCAR',NULL,NULL,NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-30 09:59:35','2026-06-30 09:59:35',1,0,NULL,0,NULL,NULL,0,'01',0.00,1),
(66,'customers','1','73365616','GONZALES COLLAZOS, EBERTH DANIEL','1994-03-30','M',NULL,NULL,NULL,'PE',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00,0,NULL,'{\"full_name\":null,\"phone\":null}',NULL,0.00,1,NULL,NULL,NULL,'2026-06-30 15:47:44','2026-06-30 15:47:44',1,0,NULL,0,NULL,NULL,0,'01',0.00,1);
COMMIT;

--
-- Table structure for table `pharmacy_configurations`
--

CREATE TABLE `pharmacy_configurations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `establishment_id` int(10) unsigned NOT NULL,
  `profit_field` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pharmacy_configurations`
--

INSERT INTO `pharmacy_configurations` VALUES
(1,1,0,'2025-12-28 08:49:50','2025-12-28 08:49:50');
COMMIT;

--
-- Table structure for table `points`
--

CREATE TABLE `points` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `person_id` int(10) unsigned NOT NULL,
  `folio` varchar(255) NOT NULL,
  `points` double(8,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `banned` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `points_person_id_foreign` (`person_id`),
  CONSTRAINT `points_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `points`
--

COMMIT;

--
-- Table structure for table `pos_parked_sales`
--

CREATE TABLE `pos_parked_sales` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `uuid` char(36) NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `cash_id` int(10) unsigned NOT NULL,
  `created_by_user_id` int(10) unsigned NOT NULL,
  `customer_id` int(10) unsigned DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `payload` longtext NOT NULL,
  `locked_by_user_id` int(10) unsigned DEFAULT NULL,
  `lock_expires_at` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `pos_parked_sales_uuid_unique` (`uuid`),
  KEY `idx_pos_parked_sales_cash_id` (`cash_id`),
  KEY `idx_pos_parked_sales_created_by` (`created_by_user_id`),
  KEY `idx_pos_parked_sales_lock_expires` (`lock_expires_at`),
  KEY `idx_pos_parked_sales_created_at` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pos_parked_sales`
--

COMMIT;

--
-- Table structure for table `preprinted_format_templates`
--

CREATE TABLE `preprinted_format_templates` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `formats` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `preprinted_format_templates`
--

COMMIT;

--
-- Table structure for table `prescription_cie10`
--

CREATE TABLE `prescription_cie10` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `diagnoses_code` varchar(255) NOT NULL,
  `diagnoses_description` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `prescription_cie10`
--

COMMIT;

--
-- Table structure for table `prescription_doctors`
--

CREATE TABLE `prescription_doctors` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cmp` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `prescription_doctors`
--

COMMIT;

--
-- Table structure for table `prescription_prescriptions`
--

CREATE TABLE `prescription_prescriptions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `customer_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `presentation_unit_type_id` int(10) unsigned DEFAULT NULL,
  `document_id` int(10) unsigned DEFAULT NULL,
  `sale_note_id` int(10) unsigned DEFAULT NULL,
  `quantity` int(11) NOT NULL,
  `prescription_number` varchar(255) DEFAULT NULL,
  `prescription_date` date DEFAULT NULL,
  `prescription_doctor_id` int(10) unsigned DEFAULT NULL,
  `doctor_name` varchar(255) DEFAULT NULL,
  `prescription_cie10_id` int(10) unsigned DEFAULT NULL,
  `diagnosis_text` varchar(255) DEFAULT NULL,
  `user_id` int(10) unsigned NOT NULL,
  `warehouse_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `prescription_prescriptions_customer_id_foreign` (`customer_id`),
  KEY `prescription_prescriptions_item_id_foreign` (`item_id`),
  KEY `prescription_prescriptions_prescription_doctor_id_foreign` (`prescription_doctor_id`),
  KEY `prescription_prescriptions_prescription_cie10_id_foreign` (`prescription_cie10_id`),
  KEY `prescription_prescriptions_user_id_foreign` (`user_id`),
  KEY `prescription_prescriptions_warehouse_id_foreign` (`warehouse_id`),
  KEY `prescription_presentation_idx` (`presentation_unit_type_id`),
  CONSTRAINT `prescription_prescriptions_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `prescription_prescriptions_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `prescription_prescriptions_prescription_cie10_id_foreign` FOREIGN KEY (`prescription_cie10_id`) REFERENCES `prescription_cie10` (`id`),
  CONSTRAINT `prescription_prescriptions_prescription_doctor_id_foreign` FOREIGN KEY (`prescription_doctor_id`) REFERENCES `prescription_doctors` (`id`),
  CONSTRAINT `prescription_prescriptions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
  CONSTRAINT `prescription_prescriptions_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `prescription_prescriptions`
--

COMMIT;

--
-- Table structure for table `procedures`
--

CREATE TABLE `procedures` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `code` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `is_available` tinyint(1) NOT NULL DEFAULT 0,
  `status` tinyint(1) DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `procedures`
--

COMMIT;

--
-- Table structure for table `production`
--

CREATE TABLE `production` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT 0,
  `soap_type_id` char(2) DEFAULT NULL,
  `item_id` int(10) unsigned DEFAULT 0,
  `inventory_id_reference` int(10) unsigned DEFAULT NULL,
  `quantity` decimal(12,4) DEFAULT 0.0000 COMMENT 'Peso dle insumo ',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `machine_id` int(10) unsigned NOT NULL DEFAULT 0,
  `production_order` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `comment` longtext DEFAULT NULL,
  `date_start` date DEFAULT NULL,
  `time_start` time DEFAULT NULL,
  `date_end` date DEFAULT NULL,
  `time_end` time DEFAULT NULL,
  `lot_code` varchar(255) DEFAULT NULL,
  `item_extra_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `mix_date_start` date DEFAULT NULL,
  `mix_time_start` time DEFAULT NULL,
  `mix_date_end` date DEFAULT NULL,
  `mix_time_end` time DEFAULT NULL,
  `informative` tinyint(3) unsigned DEFAULT 0,
  `agreed` decimal(8,2) DEFAULT 0.00,
  `imperfect` decimal(8,2) DEFAULT 0.00,
  `proccess_type` longtext DEFAULT NULL,
  `production_collaborator` text DEFAULT NULL,
  `mix_collaborator` text DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `production_soap_type_id_foreign` (`soap_type_id`),
  CONSTRAINT `production_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `production`
--

COMMIT;

--
-- Table structure for table `promotions`
--

CREATE TABLE `promotions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `type` varchar(255) DEFAULT NULL,
  `image` varchar(255) NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item_unit_type_id` int(10) unsigned DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `apply_restaurant` tinyint(1) DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `promotions_item_id_foreign` (`item_id`),
  KEY `promotion_iut_idx` (`item_unit_type_id`),
  CONSTRAINT `promotions_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `promotions_item_unit_type_id_fk` FOREIGN KEY (`item_unit_type_id`) REFERENCES `item_unit_types` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `promotions`
--

COMMIT;

--
-- Table structure for table `provinces`
--

CREATE TABLE `provinces` (
  `id` char(4) NOT NULL,
  `department_id` char(2) NOT NULL,
  `description` varchar(255) NOT NULL,
  `active` tinyint(1) NOT NULL DEFAULT 1,
  KEY `provinces_department_id_foreign` (`department_id`),
  KEY `provinces_id_index` (`id`),
  CONSTRAINT `provinces_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `provinces`
--

INSERT INTO `provinces` VALUES
('0101','01','Chachapoyas',1),
('0102','01','Bagua',1),
('0103','01','Bongará',1),
('0104','01','Condorcanqui',1),
('0105','01','Luya',1),
('0106','01','Rodríguez de Mendoza',1),
('0107','01','Utcubamba',1),
('0201','02','Huaraz',1),
('0202','02','Aija',1),
('0203','02','Antonio Raymondi',1),
('0204','02','Asunción',1),
('0205','02','Bolognesi',1),
('0206','02','Carhuaz',1),
('0207','02','Carlos Fermín Fitzcarrald',1),
('0208','02','Casma',1),
('0209','02','Corongo',1),
('0210','02','Huari',1),
('0211','02','Huarmey',1),
('0212','02','Huaylas',1),
('0213','02','Mariscal Luzuriaga',1),
('0214','02','Ocros',1),
('0215','02','Pallasca',1),
('0216','02','Pomabamba',1),
('0217','02','Recuay',1),
('0218','02','Santa',1),
('0219','02','Sihuas',1),
('0220','02','Yungay',1),
('0301','03','Abancay',1),
('0302','03','Andahuaylas',1),
('0303','03','Antabamba',1),
('0304','03','Aymaraes',1),
('0305','03','Cotabambas',1),
('0306','03','Chincheros',1),
('0307','03','Grau',1),
('0401','04','Arequipa',1),
('0402','04','Camaná',1),
('0403','04','Caravelí',1),
('0404','04','Castilla',1),
('0405','04','Caylloma',1),
('0406','04','Condesuyos',1),
('0407','04','Islay',1),
('0408','04','La Uniòn',1),
('0501','05','Huamanga',1),
('0502','05','Cangallo',1),
('0503','05','Huanca Sancos',1),
('0504','05','Huanta',1),
('0505','05','La Mar',1),
('0506','05','Lucanas',1),
('0507','05','Parinacochas',1),
('0508','05','Pàucar del Sara Sara',1),
('0509','05','Sucre',1),
('0510','05','Víctor Fajardo',1),
('0511','05','Vilcas Huamán',1),
('0601','06','Cajamarca',1),
('0602','06','Cajabamba',1),
('0603','06','Celendín',1),
('0604','06','Chota',1),
('0605','06','Contumazá',1),
('0606','06','Cutervo',1),
('0607','06','Hualgayoc',1),
('0608','06','Jaén',1),
('0609','06','San Ignacio',1),
('0610','06','San Marcos',1),
('0611','06','San Miguel',1),
('0612','06','San Pablo',1),
('0613','06','Santa Cruz',1),
('0701','07','Prov. Const. del Callao',1),
('0801','08','Cusco',1),
('0802','08','Acomayo',1),
('0803','08','Anta',1),
('0804','08','Calca',1),
('0805','08','Canas',1),
('0806','08','Canchis',1),
('0807','08','Chumbivilcas',1),
('0808','08','Espinar',1),
('0809','08','La Convención',1),
('0810','08','Paruro',1),
('0811','08','Paucartambo',1),
('0812','08','Quispicanchi',1),
('0813','08','Urubamba',1),
('0901','09','Huancavelica',1),
('0902','09','Acobamba',1),
('0903','09','Angaraes',1),
('0904','09','Castrovirreyna',1),
('0905','09','Churcampa',1),
('0906','09','Huaytará',1),
('0907','09','Tayacaja',1),
('1001','10','Huánuco',1),
('1002','10','Ambo',1),
('1003','10','Dos de Mayo',1),
('1004','10','Huacaybamba',1),
('1005','10','Huamalíes',1),
('1006','10','Leoncio Prado',1),
('1007','10','Marañón',1),
('1008','10','Pachitea',1),
('1009','10','Puerto Inca',1),
('1010','10','Lauricocha',1),
('1011','10','Yarowilca',1),
('1101','11','Ica',1),
('1102','11','Chincha',1),
('1103','11','Nasca',1),
('1104','11','Palpa',1),
('1105','11','Pisco',1),
('1201','12','Huancayo',1),
('1202','12','Concepción',1),
('1203','12','Chanchamayo',1),
('1204','12','Jauja',1),
('1205','12','Junín',1),
('1206','12','Satipo',1),
('1207','12','Tarma',1),
('1208','12','Yauli',1),
('1209','12','Chupaca',1),
('1301','13','Trujillo',1),
('1302','13','Ascope',1),
('1303','13','Bolívar',1),
('1304','13','Chepén',1),
('1305','13','Julcán',1),
('1306','13','Otuzco',1),
('1307','13','Pacasmayo',1),
('1308','13','Pataz',1),
('1309','13','Sánchez Carrión',1),
('1310','13','Santiago de Chuco',1),
('1311','13','Gran Chimú',1),
('1312','13','Virú',1),
('1401','14','Chiclayo',1),
('1402','14','Ferreñafe',1),
('1403','14','Lambayeque',1),
('1501','15','Lima',1),
('1502','15','Barranca',1),
('1503','15','Cajatambo',1),
('1504','15','Canta',1),
('1505','15','Cañete',1),
('1506','15','Huaral',1),
('1507','15','Huarochirí',1),
('1508','15','Huaura',1),
('1509','15','Oyón',1),
('1510','15','Yauyos',1),
('1601','16','Maynas',1),
('1602','16','Alto Amazonas',1),
('1603','16','Loreto',1),
('1604','16','Mariscal Ramón Castilla',1),
('1605','16','Requena',1),
('1606','16','Ucayali',1),
('1607','16','Datem del Marañón',1),
('1608','16','Putumayo',1),
('1701','17','Tambopata',1),
('1702','17','Manu',1),
('1703','17','Tahuamanu',1),
('1801','18','Mariscal Nieto',1),
('1802','18','General Sánchez Cerro',1),
('1803','18','Ilo',1),
('1901','19','Pasco',1),
('1902','19','Daniel Alcides Carrión',1),
('1903','19','Oxapampa',1),
('2001','20','Piura',1),
('2002','20','Ayabaca',1),
('2003','20','Huancabamba',1),
('2004','20','Morropón',1),
('2005','20','Paita',1),
('2006','20','Sullana',1),
('2007','20','Talara',1),
('2008','20','Sechura',1),
('2101','21','Puno',1),
('2102','21','Azángaro',1),
('2103','21','Carabaya',1),
('2104','21','Chucuito',1),
('2105','21','El Collao',1),
('2106','21','Huancané',1),
('2107','21','Lampa',1),
('2108','21','Melgar',1),
('2109','21','Moho',1),
('2110','21','San Antonio de Putina',1),
('2111','21','San Román',1),
('2112','21','Sandia',1),
('2113','21','Yunguyo',1),
('2201','22','Moyobamba',1),
('2202','22','Bellavista',1),
('2203','22','El Dorado',1),
('2204','22','Huallaga',1),
('2205','22','Lamas',1),
('2206','22','Mariscal Cáceres',1),
('2207','22','Picota',1),
('2208','22','Rioja',1),
('2209','22','San Martín',1),
('2210','22','Tocache',1),
('2301','23','Tacna',1),
('2302','23','Candarave',1),
('2303','23','Jorge Basadre',1),
('2304','23','Tarata',1),
('2401','24','Tumbes',1),
('2402','24','Contralmirante Villar',1),
('2403','24','Zarumilla',1),
('2501','25','Coronel Portillo',1),
('2502','25','Atalaya',1),
('2503','25','Padre Abad',1),
('2504','25','Purús',1);
COMMIT;

--
-- Table structure for table `purchase_fee`
--

CREATE TABLE `purchase_fee` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `purchase_id` int(10) unsigned NOT NULL,
  `date` date NOT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `amount` decimal(12,2) NOT NULL,
  `payment_method_type_id` char(2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_fee_purchase_id_foreign` (`purchase_id`),
  KEY `purchase_fee_currency_type_id_foreign` (`currency_type_id`),
  KEY `purchase_fee_payment_method_type_id_foreign` (`payment_method_type_id`),
  CONSTRAINT `purchase_fee_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `purchase_fee_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `purchase_fee_purchase_id_foreign` FOREIGN KEY (`purchase_id`) REFERENCES `purchases` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_fee`
--

COMMIT;

--
-- Table structure for table `purchase_items`
--

CREATE TABLE `purchase_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `purchase_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `item_lot_group_id` int(10) unsigned DEFAULT NULL,
  `lot_code` varchar(255) DEFAULT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `unit_value` decimal(16,6) NOT NULL,
  `date_of_due` date DEFAULT NULL,
  `affectation_igv_type_id` varchar(255) NOT NULL,
  `total_base_igv` decimal(12,4) NOT NULL,
  `percentage_igv` decimal(12,4) NOT NULL,
  `total_igv` decimal(12,4) NOT NULL,
  `system_isc_type_id` varchar(255) DEFAULT NULL,
  `total_base_isc` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `percentage_isc` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_isc` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_base_other_taxes` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `percentage_other_taxes` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_other_taxes` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_taxes` decimal(12,4) NOT NULL,
  `price_type_id` varchar(255) NOT NULL,
  `unit_price` decimal(16,6) NOT NULL,
  `total_value` decimal(12,4) NOT NULL,
  `total_charge` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_discount` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total` decimal(12,4) NOT NULL,
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `warehouse_id` int(10) unsigned DEFAULT NULL,
  `name_product_pdf` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_items_purchase_id_foreign` (`purchase_id`),
  KEY `purchase_items_item_id_foreign` (`item_id`),
  KEY `purchase_items_affectation_igv_type_id_foreign` (`affectation_igv_type_id`),
  KEY `purchase_items_system_isc_type_id_foreign` (`system_isc_type_id`),
  KEY `purchase_items_price_type_id_foreign` (`price_type_id`),
  KEY `purchase_items_warehouse_id_foreign` (`warehouse_id`),
  KEY `purchase_items_item_lot_group_id_index` (`item_lot_group_id`),
  CONSTRAINT `purchase_items_affectation_igv_type_id_foreign` FOREIGN KEY (`affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `purchase_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `purchase_items_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `cat_price_types` (`id`),
  CONSTRAINT `purchase_items_purchase_id_foreign` FOREIGN KEY (`purchase_id`) REFERENCES `purchases` (`id`) ON DELETE CASCADE,
  CONSTRAINT `purchase_items_system_isc_type_id_foreign` FOREIGN KEY (`system_isc_type_id`) REFERENCES `cat_system_isc_types` (`id`),
  CONSTRAINT `purchase_items_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_items`
--

INSERT INTO `purchase_items` VALUES
(1,1,37,'{\"id\":37,\"item_code\":null,\"full_description\":\"A000037 - Ricocan Cachorros Carne y Leche 3 kg\",\"description\":\"Ricocan Cachorros Carne y Leche 3 kg\",\"currency_type_id\":\"PEN\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":33,\"purchase_unit_price\":23.3,\"unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"purchase_has_igv\":true,\"has_perception\":false,\"lots_enabled\":false,\"percentage_perception\":null,\"item_unit_types\":[{\"id\":21,\"description\":\"Unidad\",\"item_id\":37,\"unit_type_id\":\"NIU\",\"quantity_unit\":\"1.00\",\"price1\":\"33.00\",\"price2\":\"0.00\",\"price3\":\"0.00\",\"price_default\":1,\"barcode\":\"21NIU1\"}],\"series_enabled\":false,\"purchase_has_isc\":false,\"purchase_system_isc_type_id\":null,\"purchase_percentage_isc\":\"0.00\",\"name_disa\":null,\"laboratory\":null,\"exportable_pharmacy\":false,\"colors\":[],\"stock_by_extra\":{\"total\":null,\"CatItemStatus\":{\"detailed\":[],\"total\":null},\"CatItemUnitBusiness\":{\"detailed\":[],\"total\":null},\"CatItemMoldCavity\":{\"detailed\":[],\"total\":null},\"CatItemPackageMeasurement\":{\"detailed\":[],\"total\":null},\"CatItemUnitsPerPackage\":{\"detailed\":[],\"total\":null},\"CatItemMoldProperty\":{\"detailed\":[],\"total\":null},\"CatItemProductFamily\":{\"detailed\":[],\"total\":null},\"colors\":{\"detailed\":[],\"total\":null},\"CatItemSize\":{\"detailed\":[],\"total\":null}},\"sanitary\":null,\"cod_digemid\":null,\"unit_type_text\":\"Unidades\",\"name\":null,\"second_name\":null,\"model\":null,\"barcode\":\"A000037\",\"brand\":null,\"category_description\":null,\"warehouse_id\":1,\"internal_id\":\"A000037\",\"item_code_gs1\":null,\"stock\":\"4.0000\",\"stock_min\":\"1.00\",\"amount_sale_unit_price\":33,\"calculate_quantity\":false,\"has_igv\":true,\"active\":true,\"has_igv_description\":\"No\",\"purchase_has_igv_description\":\"No\",\"sale_unit_price_with_igv\":\"S\\/ 33.00\",\"created_at\":\"2025-12-27 19:39:43\",\"updated_at\":\"2026-04-06 16:55:27\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"4.0000\",\"warehouse_id\":1,\"checked\":true}],\"apply_store\":false,\"apply_restaurant\":false,\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"image_url_medium\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"image_url_small\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"tags\":[],\"tags_id\":[],\"item_warehouse_prices\":[],\"is_for_production\":false,\"supplies\":[],\"total_stock\":\"4.00\",\"text_filter\":null,\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"extra\":{\"colors\":null,\"CatItemUnitsPerPackage\":null,\"CatItemMoldProperty\":null,\"CatItemProductFamily\":null,\"CatItemMoldCavity\":null,\"CatItemPackageMeasurement\":null,\"CatItemStatus\":null,\"CatItemSize\":null,\"CatItemUnitBusiness\":null},\"category\":null,\"purchase_unit_value\":19.74576271,\"original_unit_type_id\":\"NIU\",\"sale_affectation_igv_type\":{\"id\":\"20\",\"active\":1,\"exportation\":0,\"free\":0,\"description\":\"Exonerado - Operaci\\u00f3n Onerosa\"},\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"CatItemUnitsPerPackage\":[],\"CatItemMoldProperty\":[],\"CatItemProductFamily\":[],\"CatItemMoldCavity\":[],\"CatItemPackageMeasurement\":[],\"CatItemStatus\":[],\"CatItemSize\":[],\"CatItemUnitBusiness\":[],\"attributes\":[],\"lots_group\":[],\"lots\":[],\"is_set\":false,\"lot_code\":null,\"date_of_due\":null,\"change_free_affectation_igv\":false,\"original_affectation_igv_type_id\":\"20\",\"payWithPoints\":false,\"points\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"subject_to_detraction\":false,\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"factory_code\":null,\"restrict_sale_cpe\":false,\"name_product_pdf\":null,\"unit_price\":\"23.3\",\"presentation\":[]}',NULL,NULL,1.0000,23.300000,NULL,'20',23.3000,18.0000,0.0000,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,'01',23.300000,23.3000,0.0000,0.0000,23.3000,'[]','[]','[]',1,NULL);
COMMIT;

--
-- Table structure for table `purchase_order_items`
--

CREATE TABLE `purchase_order_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `purchase_order_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `quantity` int(11) NOT NULL,
  `unit_value` decimal(16,6) NOT NULL,
  `affectation_igv_type_id` varchar(255) NOT NULL,
  `total_base_igv` decimal(12,2) NOT NULL,
  `percentage_igv` decimal(12,2) NOT NULL,
  `total_igv` decimal(12,2) NOT NULL,
  `system_isc_type_id` varchar(255) DEFAULT NULL,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxes` decimal(12,2) NOT NULL,
  `price_type_id` varchar(255) NOT NULL,
  `unit_price` decimal(16,6) NOT NULL,
  `total_value` decimal(12,2) NOT NULL,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_order_items_purchase_order_id_foreign` (`purchase_order_id`),
  KEY `purchase_order_items_item_id_foreign` (`item_id`),
  KEY `purchase_order_items_affectation_igv_type_id_foreign` (`affectation_igv_type_id`),
  KEY `purchase_order_items_system_isc_type_id_foreign` (`system_isc_type_id`),
  KEY `purchase_order_items_price_type_id_foreign` (`price_type_id`),
  CONSTRAINT `purchase_order_items_affectation_igv_type_id_foreign` FOREIGN KEY (`affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `purchase_order_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `purchase_order_items_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `cat_price_types` (`id`),
  CONSTRAINT `purchase_order_items_purchase_order_id_foreign` FOREIGN KEY (`purchase_order_id`) REFERENCES `purchase_orders` (`id`) ON DELETE CASCADE,
  CONSTRAINT `purchase_order_items_system_isc_type_id_foreign` FOREIGN KEY (`system_isc_type_id`) REFERENCES `cat_system_isc_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_order_items`
--

COMMIT;

--
-- Table structure for table `purchase_orders`
--

CREATE TABLE `purchase_orders` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `external_id` char(36) NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `prefix` varchar(255) NOT NULL DEFAULT 'OC',
  `date_of_issue` date NOT NULL,
  `date_of_due` date DEFAULT NULL,
  `time_of_issue` time NOT NULL,
  `supplier_id` int(10) unsigned NOT NULL,
  `supplier` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `exchange_rate_sale` decimal(13,3) NOT NULL,
  `total_prepayment` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_charge` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_discount` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_exportation` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxed` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_unaffected` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_exonerated` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_igv` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_base_isc` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_isc` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_base_other_taxes` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_other_taxes` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_taxes` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total_value` decimal(12,4) NOT NULL DEFAULT 0.0000,
  `total` decimal(12,4) NOT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `upload_filename` varchar(255) DEFAULT NULL,
  `purchase_quotation_id` int(10) unsigned DEFAULT NULL,
  `sale_opportunity_id` int(10) unsigned DEFAULT NULL,
  `payment_method_type_id` char(2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_orders_purchase_quotation_id_foreign` (`purchase_quotation_id`),
  KEY `purchase_orders_user_id_foreign` (`user_id`),
  KEY `purchase_orders_establishment_id_foreign` (`establishment_id`),
  KEY `purchase_orders_supplier_id_foreign` (`supplier_id`),
  KEY `purchase_orders_soap_type_id_foreign` (`soap_type_id`),
  KEY `purchase_orders_state_type_id_foreign` (`state_type_id`),
  KEY `purchase_orders_currency_type_id_foreign` (`currency_type_id`),
  KEY `purchase_orders_payment_method_type_id_foreign` (`payment_method_type_id`),
  KEY `purchase_orders_sale_opportunity_id_foreign` (`sale_opportunity_id`),
  CONSTRAINT `purchase_orders_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `purchase_orders_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `purchase_orders_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `purchase_orders_purchase_quotation_id_foreign` FOREIGN KEY (`purchase_quotation_id`) REFERENCES `purchase_quotations` (`id`),
  CONSTRAINT `purchase_orders_sale_opportunity_id_foreign` FOREIGN KEY (`sale_opportunity_id`) REFERENCES `sale_opportunities` (`id`),
  CONSTRAINT `purchase_orders_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `purchase_orders_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `purchase_orders_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `purchase_orders_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_orders`
--

COMMIT;

--
-- Table structure for table `purchase_payments`
--

CREATE TABLE `purchase_payments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `purchase_id` int(10) unsigned NOT NULL,
  `purchase_fee_id` bigint(20) unsigned DEFAULT NULL,
  `date_of_payment` date NOT NULL,
  `payment_method_type_id` char(2) NOT NULL,
  `has_card` tinyint(1) NOT NULL DEFAULT 0,
  `card_brand_id` char(2) DEFAULT NULL,
  `reference` varchar(255) DEFAULT NULL,
  `payment` decimal(12,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_payments_purchase_id_foreign` (`purchase_id`),
  KEY `purchase_payments_card_brand_id_foreign` (`card_brand_id`),
  KEY `purchase_payments_payment_method_type_id_foreign` (`payment_method_type_id`),
  KEY `purchase_payments_date_of_payment_index` (`date_of_payment`),
  KEY `purchase_payments_purchase_fee_id_index` (`purchase_fee_id`),
  CONSTRAINT `purchase_payments_card_brand_id_foreign` FOREIGN KEY (`card_brand_id`) REFERENCES `card_brands` (`id`),
  CONSTRAINT `purchase_payments_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `purchase_payments_purchase_id_foreign` FOREIGN KEY (`purchase_id`) REFERENCES `purchases` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_payments`
--

INSERT INTO `purchase_payments` VALUES
(1,1,NULL,'2026-04-02','01',0,NULL,NULL,23.30);
COMMIT;

--
-- Table structure for table `purchase_quotation_items`
--

CREATE TABLE `purchase_quotation_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `purchase_quotation_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_quotation_items_purchase_quotation_id_foreign` (`purchase_quotation_id`),
  KEY `purchase_quotation_items_item_id_foreign` (`item_id`),
  CONSTRAINT `purchase_quotation_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `purchase_quotation_items_purchase_quotation_id_foreign` FOREIGN KEY (`purchase_quotation_id`) REFERENCES `purchase_quotations` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_quotation_items`
--

COMMIT;

--
-- Table structure for table `purchase_quotations`
--

CREATE TABLE `purchase_quotations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `external_id` char(36) NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `establishment` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `prefix` varchar(255) NOT NULL,
  `date_of_issue` date NOT NULL,
  `time_of_issue` time NOT NULL,
  `suppliers` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_quotations_user_id_foreign` (`user_id`),
  KEY `purchase_quotations_establishment_id_foreign` (`establishment_id`),
  KEY `purchase_quotations_soap_type_id_foreign` (`soap_type_id`),
  KEY `purchase_quotations_state_type_id_foreign` (`state_type_id`),
  CONSTRAINT `purchase_quotations_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `purchase_quotations_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `purchase_quotations_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `purchase_quotations_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_quotations`
--

COMMIT;

--
-- Table structure for table `purchase_settlement_items`
--

CREATE TABLE `purchase_settlement_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `purchase_settlement_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `quantity` decimal(12,2) NOT NULL,
  `unit_value` decimal(12,2) NOT NULL,
  `affectation_igv_type_id` varchar(255) NOT NULL,
  `total_base_igv` decimal(12,2) NOT NULL,
  `percentage_igv` decimal(12,2) NOT NULL,
  `total_igv` decimal(12,2) NOT NULL,
  `total_taxes` decimal(12,2) NOT NULL,
  `price_type_id` varchar(255) NOT NULL,
  `unit_price` decimal(12,2) NOT NULL,
  `total_value` decimal(12,2) NOT NULL,
  `total` decimal(12,2) NOT NULL,
  `income_tax_affectation_igv_type_id` varchar(255) DEFAULT NULL,
  `income_retention_percentage` decimal(12,2) NOT NULL DEFAULT 0.00,
  `income_retention_amount` decimal(12,2) NOT NULL DEFAULT 0.00,
  PRIMARY KEY (`id`),
  KEY `purchase_settlement_items_purchase_settlement_id_foreign` (`purchase_settlement_id`),
  KEY `purchase_settlement_items_item_id_foreign` (`item_id`),
  KEY `p_s_i_income_tax_affectation_igv_type_id_fk` (`income_tax_affectation_igv_type_id`),
  KEY `purchase_settlement_items_affectation_igv_type_id_foreign` (`affectation_igv_type_id`),
  KEY `purchase_settlement_items_price_type_id_foreign` (`price_type_id`),
  CONSTRAINT `p_s_i_income_tax_affectation_igv_type_id_fk` FOREIGN KEY (`income_tax_affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `purchase_settlement_items_affectation_igv_type_id_foreign` FOREIGN KEY (`affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `purchase_settlement_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `purchase_settlement_items_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `cat_price_types` (`id`),
  CONSTRAINT `purchase_settlement_items_purchase_settlement_id_foreign` FOREIGN KEY (`purchase_settlement_id`) REFERENCES `purchase_settlements` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_settlement_items`
--

COMMIT;

--
-- Table structure for table `purchase_settlement_payments`
--

CREATE TABLE `purchase_settlement_payments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `purchase_settlement_id` int(10) unsigned NOT NULL,
  `date_of_payment` date NOT NULL,
  `payment_method_type_id` char(2) NOT NULL,
  `reference` varchar(255) DEFAULT NULL,
  `change` decimal(12,2) NOT NULL DEFAULT 0.00,
  `payment` decimal(12,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_settlement_payments_purchase_settlement_id_foreign` (`purchase_settlement_id`),
  KEY `purchase_settlement_payments_payment_method_type_id_foreign` (`payment_method_type_id`),
  CONSTRAINT `purchase_settlement_payments_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `purchase_settlement_payments_purchase_settlement_id_foreign` FOREIGN KEY (`purchase_settlement_id`) REFERENCES `purchase_settlements` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_settlement_payments`
--

COMMIT;

--
-- Dumping data for table `purchase_settlements`
--

COMMIT;

--
-- Table structure for table `purchase_xml_imports`
--

CREATE TABLE `purchase_xml_imports` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `import_id` char(36) NOT NULL,
  `created_by` int(10) unsigned DEFAULT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'previewed',
  `supplier_id` int(10) unsigned DEFAULT NULL,
  `supplier_ruc` varchar(15) DEFAULT NULL,
  `document_type_id` varchar(2) DEFAULT NULL,
  `series` varchar(20) DEFAULT NULL,
  `number` varchar(20) DEFAULT NULL,
  `xml_fingerprint_sha256` char(64) NOT NULL,
  `payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`payload`)),
  `issues` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`issues`)),
  `resolutions` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`resolutions`)),
  `confirmed_purchase_id` int(10) unsigned DEFAULT NULL,
  `confirmed_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `purchase_xml_imports_import_id_unique` (`import_id`),
  KEY `purchase_xml_imports_created_by_foreign` (`created_by`),
  KEY `purchase_xml_imports_supplier_id_foreign` (`supplier_id`),
  KEY `purchase_xml_imports_confirmed_purchase_id_foreign` (`confirmed_purchase_id`),
  KEY `purchase_xml_imports_status_index` (`status`),
  KEY `purchase_xml_imports_fingerprint_idx` (`xml_fingerprint_sha256`),
  CONSTRAINT `purchase_xml_imports_confirmed_purchase_id_foreign` FOREIGN KEY (`confirmed_purchase_id`) REFERENCES `purchases` (`id`),
  CONSTRAINT `purchase_xml_imports_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`),
  CONSTRAINT `purchase_xml_imports_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_xml_imports`
--

COMMIT;

--
-- Table structure for table `purchases`
--

CREATE TABLE `purchases` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `external_id` char(36) NOT NULL,
  `xml_fingerprint_sha256` char(64) DEFAULT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `group_id` char(2) NOT NULL,
  `document_type_id` varchar(255) NOT NULL,
  `series` char(4) NOT NULL,
  `number` int(11) NOT NULL,
  `date_of_issue` date NOT NULL,
  `date_of_due` date DEFAULT NULL,
  `time_of_issue` time NOT NULL,
  `supplier_id` int(10) unsigned NOT NULL,
  `supplier` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `purchase_order_id` int(10) unsigned DEFAULT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `payment_condition_id` varchar(255) DEFAULT NULL,
  `observation` text DEFAULT NULL,
  `exchange_rate_sale` decimal(13,3) NOT NULL,
  `total_prepayment` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exportation` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxed` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_unaffected` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exonerated` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_igv` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_plastic_bag_taxes` decimal(6,2) NOT NULL DEFAULT 0.00,
  `total_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_value` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `total_canceled` tinyint(1) NOT NULL DEFAULT 0,
  `customer_id` int(10) unsigned DEFAULT NULL,
  `perception_date` date DEFAULT NULL,
  `perception_number` int(11) DEFAULT NULL,
  `total_perception` decimal(12,2) DEFAULT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `prepayments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `guides` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `related` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `perception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `detraction` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `legends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `purchases_xml_fingerprint_unique` (`xml_fingerprint_sha256`),
  KEY `purchases_user_id_foreign` (`user_id`),
  KEY `purchases_establishment_id_foreign` (`establishment_id`),
  KEY `purchases_supplier_id_foreign` (`supplier_id`),
  KEY `purchases_soap_type_id_foreign` (`soap_type_id`),
  KEY `purchases_state_type_id_foreign` (`state_type_id`),
  KEY `purchases_group_id_foreign` (`group_id`),
  KEY `purchases_document_type_id_foreign` (`document_type_id`),
  KEY `purchases_currency_type_id_foreign` (`currency_type_id`),
  KEY `purchases_purchase_order_id_foreign` (`purchase_order_id`),
  KEY `purchases_customer_id_foreign` (`customer_id`),
  KEY `purchases_payment_condition_id_foreign` (`payment_condition_id`),
  KEY `purchases_supplier_document_series_number_idx` (`supplier_id`,`document_type_id`,`series`,`number`),
  CONSTRAINT `purchases_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `purchases_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `purchases_document_type_id_foreign` FOREIGN KEY (`document_type_id`) REFERENCES `cat_document_types` (`id`),
  CONSTRAINT `purchases_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `purchases_group_id_foreign` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`),
  CONSTRAINT `purchases_payment_condition_id_foreign` FOREIGN KEY (`payment_condition_id`) REFERENCES `general_payment_conditions` (`id`),
  CONSTRAINT `purchases_purchase_order_id_foreign` FOREIGN KEY (`purchase_order_id`) REFERENCES `purchase_orders` (`id`),
  CONSTRAINT `purchases_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `purchases_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `purchases_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `purchases_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchases`
--

INSERT INTO `purchases` VALUES
(1,2,'5204a522-ee49-4b2f-9aee-a1e747983a28',NULL,1,'02','01','02','03','X',1,'2026-04-02','2026-04-02','15:46:01',34,'{\"identity_document_type_id\":\"0\",\"identity_document_type\":{\"id\":\"0\",\"description\":\"Doc.trib.no.dom.sin.ruc\"},\"number\":\"99999999\",\"name\":\"Clientes - Varios\",\"trade_name\":null,\"country_id\":\"PE\",\"country\":{\"id\":\"PE\",\"description\":\"PERU\"},\"department_id\":null,\"department\":{\"id\":null,\"description\":null},\"province_id\":null,\"province\":{\"id\":null,\"description\":null},\"district_id\":null,\"district\":{\"id\":null,\"description\":null},\"address\":null,\"email\":null,\"telephone\":null,\"perception_agent\":false,\"address_id\":null,\"internal_code\":null,\"address_type_id\":null,\"address_type\":{\"id\":null,\"description\":null}}',NULL,'PEN','01',NULL,3.467,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.30,0.00,0.00,0.00,0.00,0.00,0.00,0.00,23.30,23.30,'X-1-1-20260406',1,NULL,NULL,NULL,0.00,'[]','[]',NULL,'[]',NULL,NULL,NULL,NULL,'2026-04-06 16:58:08','2026-04-06 16:58:08',NULL);
COMMIT;

--
-- Table structure for table `quotation_items`
--

CREATE TABLE `quotation_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `quotation_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `unit_value` decimal(16,6) NOT NULL,
  `affectation_igv_type_id` varchar(255) NOT NULL,
  `total_base_igv` decimal(12,2) NOT NULL,
  `percentage_igv` decimal(12,2) NOT NULL,
  `total_igv` decimal(12,2) NOT NULL,
  `system_isc_type_id` varchar(255) DEFAULT NULL,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxes` decimal(12,2) NOT NULL,
  `price_type_id` varchar(255) NOT NULL,
  `unit_price` decimal(16,6) NOT NULL,
  `total_value` decimal(12,2) NOT NULL,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `additional_information` longtext DEFAULT NULL COMMENT 'Informacion adicional',
  `warehouse_id` int(10) unsigned DEFAULT 0 COMMENT 'Id de warehouse',
  `name_product_pdf` longtext DEFAULT NULL COMMENT 'Nombre de producto en el pdf',
  PRIMARY KEY (`id`),
  KEY `quotation_items_quotation_id_foreign` (`quotation_id`),
  KEY `quotation_items_item_id_foreign` (`item_id`),
  KEY `quotation_items_affectation_igv_type_id_foreign` (`affectation_igv_type_id`),
  KEY `quotation_items_system_isc_type_id_foreign` (`system_isc_type_id`),
  KEY `quotation_items_price_type_id_foreign` (`price_type_id`),
  CONSTRAINT `quotation_items_affectation_igv_type_id_foreign` FOREIGN KEY (`affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `quotation_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `quotation_items_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `cat_price_types` (`id`),
  CONSTRAINT `quotation_items_quotation_id_foreign` FOREIGN KEY (`quotation_id`) REFERENCES `quotations` (`id`) ON DELETE CASCADE,
  CONSTRAINT `quotation_items_system_isc_type_id_foreign` FOREIGN KEY (`system_isc_type_id`) REFERENCES `cat_system_isc_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `quotation_items`
--

COMMIT;

--
-- Table structure for table `quotation_payments`
--

CREATE TABLE `quotation_payments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `quotation_id` int(10) unsigned NOT NULL,
  `date_of_payment` date NOT NULL,
  `payment_method_type_id` char(2) NOT NULL,
  `has_card` tinyint(1) NOT NULL DEFAULT 0,
  `card_brand_id` char(2) DEFAULT NULL,
  `reference` varchar(255) DEFAULT NULL,
  `change` decimal(12,2) DEFAULT NULL,
  `payment` decimal(12,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `quotation_payments_quotation_id_foreign` (`quotation_id`),
  KEY `quotation_payments_card_brand_id_foreign` (`card_brand_id`),
  KEY `quotation_payments_payment_method_type_id_foreign` (`payment_method_type_id`),
  CONSTRAINT `quotation_payments_card_brand_id_foreign` FOREIGN KEY (`card_brand_id`) REFERENCES `card_brands` (`id`),
  CONSTRAINT `quotation_payments_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `quotation_payments_quotation_id_foreign` FOREIGN KEY (`quotation_id`) REFERENCES `quotations` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `quotation_payments`
--

COMMIT;

--
-- Table structure for table `quotations`
--

CREATE TABLE `quotations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `seller_id` int(10) unsigned DEFAULT NULL,
  `external_id` char(36) NOT NULL,
  `establishment_id` int(10) unsigned NOT NULL,
  `establishment` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `soap_type_id` char(2) NOT NULL,
  `state_type_id` char(2) NOT NULL,
  `prefix` char(3) NOT NULL,
  `date_of_issue` date NOT NULL,
  `time_of_issue` time NOT NULL,
  `date_of_due` varchar(255) DEFAULT NULL,
  `delivery_date` varchar(255) DEFAULT NULL,
  `customer_id` int(10) unsigned NOT NULL,
  `customer` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `shipping_address` text DEFAULT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `payment_method_type_id` char(2) DEFAULT NULL,
  `exchange_rate_sale` decimal(13,3) NOT NULL,
  `total_prepayment` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exportation` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxed` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_unaffected` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_exonerated` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_igv` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_igv_free` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_value` decimal(12,2) NOT NULL DEFAULT 0.00,
  `subtotal` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `prepayments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `guides` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `related` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `perception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `detraction` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `legends` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `filename` varchar(255) DEFAULT NULL,
  `terms_condition` text DEFAULT NULL,
  `referential_information` varchar(100) DEFAULT NULL,
  `account_number` varchar(255) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `contact` varchar(255) DEFAULT NULL,
  `changed` tinyint(1) NOT NULL DEFAULT 0,
  `sale_opportunity_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `description` varchar(1000) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `quotations_user_id_foreign` (`user_id`),
  KEY `quotations_establishment_id_foreign` (`establishment_id`),
  KEY `quotations_customer_id_foreign` (`customer_id`),
  KEY `quotations_soap_type_id_foreign` (`soap_type_id`),
  KEY `quotations_state_type_id_foreign` (`state_type_id`),
  KEY `quotations_currency_type_id_foreign` (`currency_type_id`),
  KEY `quotations_payment_method_type_id_foreign` (`payment_method_type_id`),
  KEY `quotations_sale_opportunity_id_foreign` (`sale_opportunity_id`),
  CONSTRAINT `quotations_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `quotations_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `quotations_establishment_id_foreign` FOREIGN KEY (`establishment_id`) REFERENCES `establishments` (`id`),
  CONSTRAINT `quotations_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `quotations_sale_opportunity_id_foreign` FOREIGN KEY (`sale_opportunity_id`) REFERENCES `sale_opportunities` (`id`),
  CONSTRAINT `quotations_soap_type_id_foreign` FOREIGN KEY (`soap_type_id`) REFERENCES `soap_types` (`id`),
  CONSTRAINT `quotations_state_type_id_foreign` FOREIGN KEY (`state_type_id`) REFERENCES `state_types` (`id`),
  CONSTRAINT `quotations_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `quotations`
--

COMMIT;

--
-- Table structure for table `rel_user_to_documentary_offices`
--

CREATE TABLE `rel_user_to_documentary_offices` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `active` tinyint(3) unsigned NOT NULL DEFAULT 0,
  `user_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'usuario asociado',
  `documentary_office_id` int(10) unsigned NOT NULL DEFAULT 0 COMMENT 'etapa asociada',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rel_user_to_documentary_offices`
--

COMMIT;

--
-- Table structure for table `report_configurations`
--

CREATE TABLE `report_configurations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `route_name` varchar(255) NOT NULL,
  `route_path` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `convert_pen` tinyint(1) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `report_configurations_route_name_unique` (`route_name`),
  UNIQUE KEY `report_configurations_route_path_unique` (`route_path`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `report_configurations`
--

INSERT INTO `report_configurations` VALUES
(1,'tenant.reports.general_items.index','reports/general-items','Ventas - Reporte general de productos',0,'2025-12-27 19:21:58','2025-12-27 19:21:58'),
(2,'tenant.reports.purchases.general_items.index','reports/purchases/general_items','Compras - Reporte general de productos',0,'2025-12-27 19:21:58','2025-12-27 19:21:58'),
(3,'tenant.reports.purchases.index','reports/purchases','Compras - Compras totales',0,'2025-12-27 19:21:58','2025-12-27 19:21:58');
COMMIT;

--
-- Table structure for table `restaurant_configurations`
--

CREATE TABLE `restaurant_configurations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `menu_pos` tinyint(1) NOT NULL,
  `menu_order` tinyint(1) NOT NULL,
  `menu_tables` tinyint(1) NOT NULL,
  `first_menu` varchar(255) NOT NULL,
  `tables_quantity` int(11) NOT NULL DEFAULT 15,
  `menu_bar` tinyint(1) NOT NULL DEFAULT 1,
  `menu_kitchen` tinyint(1) NOT NULL DEFAULT 1,
  `items_maintenance` tinyint(1) NOT NULL DEFAULT 0,
  `enabled_environment_1` tinyint(1) NOT NULL DEFAULT 1,
  `enabled_environment_2` tinyint(1) NOT NULL DEFAULT 0,
  `tables_quantity_environment_2` int(11) NOT NULL DEFAULT 5,
  `enabled_environment_3` tinyint(1) NOT NULL DEFAULT 0,
  `tables_quantity_environment_3` int(11) NOT NULL DEFAULT 5,
  `enabled_environment_4` tinyint(1) NOT NULL DEFAULT 0,
  `tables_quantity_environment_4` int(11) NOT NULL DEFAULT 5,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `restaurant_configurations`
--

INSERT INTO `restaurant_configurations` VALUES
(1,1,1,1,'POS',15,1,1,0,1,0,5,0,5,0,5);
COMMIT;

--
-- Table structure for table `restaurant_notes`
--

CREATE TABLE `restaurant_notes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `description` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `restaurant_notes`
--

COMMIT;

--
-- Table structure for table `restaurant_roles`
--

CREATE TABLE `restaurant_roles` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `code` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `restaurant_roles`
--

INSERT INTO `restaurant_roles` VALUES
(1,'MOZO','Mozo','Usuario que genera pedidos en mesas',NULL,NULL),
(2,'CAJA','Caja','Usuario que genera pago de pedidos',NULL,NULL),
(3,'ADM','Administrador','Usuario con permisos totales',NULL,NULL),
(6,'KITBAR','Cocina/Bar','Usuario con acceso a cocina y bar',NULL,NULL);
COMMIT;

--
-- Table structure for table `restaurant_table_envs`
--

CREATE TABLE `restaurant_table_envs` (
  `id` int(10) unsigned NOT NULL,
  `name` varchar(255) NOT NULL,
  `active` tinyint(1) NOT NULL,
  `tables_quantity` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `restaurant_table_envs`
--

INSERT INTO `restaurant_table_envs` VALUES
(1,'Ambiente 1',1,25),
(2,'Ambiente 2',1,25),
(3,'Ambiente 3',1,25),
(4,'Ambiente 4',1,25);
COMMIT;

--
-- Table structure for table `restaurant_tables`
--

CREATE TABLE `restaurant_tables` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `status` varchar(255) NOT NULL,
  `products` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `total` decimal(12,2) NOT NULL,
  `personas` int(11) NOT NULL,
  `cliente` varchar(255) DEFAULT NULL,
  `comentarios` varchar(255) DEFAULT NULL,
  `label` varchar(255) NOT NULL,
  `shape` varchar(255) NOT NULL,
  `environment` varchar(255) NOT NULL,
  `waiter` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `restaurant_tables`
--

COMMIT;

--
-- Table structure for table `retention_documents`
--

CREATE TABLE `retention_documents` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `retention_id` int(10) unsigned NOT NULL,
  `document_type_id` varchar(255) NOT NULL,
  `series` varchar(255) NOT NULL,
  `number` varchar(255) NOT NULL,
  `date_of_issue` date NOT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `total_document` decimal(10,2) NOT NULL,
  `payments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `exchange_rate` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `date_of_retention` date NOT NULL,
  `total_retention` decimal(10,2) NOT NULL,
  `total_to_pay` decimal(10,2) NOT NULL,
  `total_payment` decimal(10,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `retention_documents_retention_id_foreign` (`retention_id`),
  KEY `retention_documents_document_type_id_foreign` (`document_type_id`),
  KEY `retention_documents_currency_type_id_foreign` (`currency_type_id`),
  CONSTRAINT `retention_documents_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `retention_documents_document_type_id_foreign` FOREIGN KEY (`document_type_id`) REFERENCES `cat_document_types` (`id`),
  CONSTRAINT `retention_documents_retention_id_foreign` FOREIGN KEY (`retention_id`) REFERENCES `retentions` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `retention_documents`
--

COMMIT;

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

COMMIT;

--
-- Table structure for table `sale_note_fee`
--

CREATE TABLE `sale_note_fee` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `sale_note_id` int(10) unsigned NOT NULL,
  `date` date NOT NULL,
  `currency_type_id` varchar(255) NOT NULL,
  `amount` decimal(12,2) NOT NULL,
  `payment_method_type_id` varchar(2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sale_note_fee_sale_note_id_foreign` (`sale_note_id`),
  KEY `sale_note_fee_currency_type_id_foreign` (`currency_type_id`),
  KEY `sale_note_fee_payment_method_type_id_foreign` (`payment_method_type_id`),
  CONSTRAINT `sale_note_fee_currency_type_id_foreign` FOREIGN KEY (`currency_type_id`) REFERENCES `cat_currency_types` (`id`),
  CONSTRAINT `sale_note_fee_payment_method_type_id_foreign` FOREIGN KEY (`payment_method_type_id`) REFERENCES `payment_method_types` (`id`),
  CONSTRAINT `sale_note_fee_sale_note_id_foreign` FOREIGN KEY (`sale_note_id`) REFERENCES `sale_notes` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sale_note_fee`
--

COMMIT;

--
-- Table structure for table `sale_note_items`
--

CREATE TABLE `sale_note_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `sale_note_id` int(10) unsigned NOT NULL,
  `item_id` int(10) unsigned NOT NULL,
  `item` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `unit_value` decimal(16,6) NOT NULL,
  `affectation_igv_type_id` varchar(255) NOT NULL,
  `total_base_igv` decimal(12,2) NOT NULL,
  `percentage_igv` decimal(12,2) NOT NULL,
  `total_igv` decimal(12,2) NOT NULL,
  `system_isc_type_id` varchar(255) DEFAULT NULL,
  `total_base_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_isc` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_base_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `percentage_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_other_taxes` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_plastic_bag_taxes` decimal(6,2) NOT NULL DEFAULT 0.00,
  `total_taxes` decimal(12,2) NOT NULL,
  `price_type_id` varchar(255) NOT NULL,
  `unit_price` decimal(16,6) NOT NULL,
  `total_value` decimal(12,2) NOT NULL,
  `total_charge` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total_discount` decimal(12,2) NOT NULL DEFAULT 0.00,
  `total` decimal(12,2) NOT NULL,
  `attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `discounts` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `charges` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `additional_information` text DEFAULT NULL,
  `inventory_kardex_id` int(10) unsigned DEFAULT NULL,
  `warehouse_id` int(10) unsigned DEFAULT NULL,
  `name_product_pdf` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sale_note_items_sale_note_id_foreign` (`sale_note_id`),
  KEY `sale_note_items_item_id_foreign` (`item_id`),
  KEY `sale_note_items_affectation_igv_type_id_foreign` (`affectation_igv_type_id`),
  KEY `sale_note_items_system_isc_type_id_foreign` (`system_isc_type_id`),
  KEY `sale_note_items_price_type_id_foreign` (`price_type_id`),
  KEY `sale_note_items_inventory_kardex_id_foreign` (`inventory_kardex_id`),
  KEY `sale_note_items_warehouse_id_foreign` (`warehouse_id`),
  CONSTRAINT `sale_note_items_affectation_igv_type_id_foreign` FOREIGN KEY (`affectation_igv_type_id`) REFERENCES `cat_affectation_igv_types` (`id`),
  CONSTRAINT `sale_note_items_inventory_kardex_id_foreign` FOREIGN KEY (`inventory_kardex_id`) REFERENCES `inventory_kardex` (`id`),
  CONSTRAINT `sale_note_items_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `sale_note_items_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `cat_price_types` (`id`),
  CONSTRAINT `sale_note_items_sale_note_id_foreign` FOREIGN KEY (`sale_note_id`) REFERENCES `sale_notes` (`id`) ON DELETE CASCADE,
  CONSTRAINT `sale_note_items_system_isc_type_id_foreign` FOREIGN KEY (`system_isc_type_id`) REFERENCES `cat_system_isc_types` (`id`),
  CONSTRAINT `sale_note_items_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=152 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sale_note_items`
--

INSERT INTO `sale_note_items` VALUES
(1,1,538,'{\"stock\":-1,\"id\":538,\"item_id\":538,\"full_description\":\"ECOGRAFIA\",\"name\":null,\"second_name\":null,\"description\":\"ECOGRAFIA\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"80.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"80.00\",\"aux_sale_unit_price\":\"80.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-1.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"80.00\",\"IdLoteSelected\":null}',1.0000,80.000000,'20',80.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',80.000000,80.00,0.00,0.00,80.00,'[]','[]','[]',NULL,686,NULL,NULL),
(2,2,9,'{\"stock\":38,\"id\":9,\"item_id\":9,\"full_description\":\"A000009 - Nexgard Espectra 7.6 15\",\"name\":null,\"second_name\":null,\"description\":\"Nexgard Espectra 7.6 15\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000009\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"85.00\",\"purchase_unit_price\":33.6,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"85.00\",\"aux_sale_unit_price\":\"85.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"38.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"85.00\",\"IdLoteSelected\":null}',1.0000,85.000000,'20',85.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',85.000000,85.00,0.00,0.00,85.00,'[]','[]','[]',NULL,687,NULL,NULL),
(3,3,205,'{\"stock\":31,\"id\":205,\"item_id\":205,\"full_description\":\"A000205 - Pa\\u00f1ales L\",\"name\":null,\"second_name\":null,\"description\":\"Pa\\u00f1ales L\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000205\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":\"20\",\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"31.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',20.0000,2.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,688,NULL,NULL),
(4,4,42,'{\"stock\":5,\"id\":42,\"item_id\":42,\"full_description\":\"A000042 - Rico Crack sabor a Cordero\",\"name\":null,\"second_name\":null,\"description\":\"Rico Crack sabor a Cordero\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000042\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"9.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"9.00\",\"aux_sale_unit_price\":\"9.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"5.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":3,\"unit_price\":\"9.00\",\"IdLoteSelected\":null}',1.0000,9.000000,'20',9.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',9.000000,9.00,0.00,0.00,9.00,'[]','[]','[]',NULL,710,NULL,NULL),
(5,4,469,'{\"stock\":6,\"id\":469,\"item_id\":469,\"full_description\":\"A000469 - juguete soga peluche\",\"name\":null,\"second_name\":null,\"description\":\"juguete soga peluche\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000469\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"12.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"12.00\",\"aux_sale_unit_price\":\"12.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"6.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"12.00\",\"IdLoteSelected\":null}',1.0000,12.000000,'20',12.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',12.000000,12.00,0.00,0.00,12.00,'[]','[]','[]',NULL,711,NULL,NULL),
(6,4,61,'{\"stock\":-2,\"id\":61,\"item_id\":61,\"full_description\":\"A000061 - juguete de raton inechable\",\"name\":null,\"second_name\":null,\"description\":\"juguete de raton inechable\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000061\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"5.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"5.00\",\"aux_sale_unit_price\":\"5.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-2.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"5.00\",\"IdLoteSelected\":null}',1.0000,5.000000,'20',5.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',5.000000,5.00,0.00,0.00,5.00,'[]','[]','[]',NULL,712,NULL,NULL),
(7,5,9,'{\"stock\":37,\"id\":9,\"item_id\":9,\"full_description\":\"A000009 - Nexgard Espectra 7.6 15\",\"name\":null,\"second_name\":null,\"description\":\"Nexgard Espectra 7.6 15\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000009\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"85.00\",\"purchase_unit_price\":33.6,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"85.00\",\"aux_sale_unit_price\":\"85.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"37.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"85.00\",\"IdLoteSelected\":null}',1.0000,85.000000,'20',85.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',85.000000,85.00,0.00,0.00,85.00,'[]','[]','[]',NULL,747,NULL,NULL),
(8,5,156,'{\"stock\":1,\"id\":156,\"item_id\":156,\"full_description\":\"A000156 - CORREA\",\"name\":null,\"second_name\":null,\"description\":\"CORREA\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000156\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"15.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"15.00\",\"aux_sale_unit_price\":\"15.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"1.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"15.00\",\"IdLoteSelected\":null}',1.0000,15.000000,'20',15.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',15.000000,15.00,0.00,0.00,15.00,'[]','[]','[]',NULL,748,NULL,NULL),
(9,6,11,'{\"stock\":30,\"id\":11,\"item_id\":11,\"full_description\":\"A000011 - Nexgard Espectra 30.1 60\",\"name\":null,\"second_name\":null,\"description\":\"Nexgard Espectra 30.1 60\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000011\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"110.00\",\"purchase_unit_price\":46.71,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":\"1\",\"edit_sale_unit_price\":\"110.00\",\"aux_sale_unit_price\":\"110.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"30.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":4,\"unit_price\":\"110.00\",\"IdLoteSelected\":null}',1.0000,110.000000,'20',110.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',110.000000,110.00,0.00,0.00,110.00,'[]','[]','[]',NULL,763,NULL,NULL),
(10,6,524,'{\"stock\":-18,\"id\":524,\"item_id\":524,\"full_description\":\"BA\\u00d1O + CORTE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O + CORTE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-18.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',2.0000,40.000000,'20',80.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,80.00,0.00,0.00,80.00,'[]','[]','[]',NULL,764,NULL,NULL),
(11,7,368,'{\"stock\":2,\"id\":368,\"item_id\":368,\"full_description\":\"A000368 - CASTRACION\",\"name\":null,\"second_name\":null,\"description\":\"CASTRACION\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000368\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"200.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"200.00\",\"aux_sale_unit_price\":\"200.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"2.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"200.00\",\"IdLoteSelected\":null}',1.0000,200.000000,'20',200.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',200.000000,200.00,0.00,0.00,200.00,'[]','[]','[]',NULL,774,NULL,NULL),
(12,7,549,'{\"stock\":0,\"id\":549,\"item_id\":549,\"full_description\":\"Cirug\\u00eda Colopexia\",\"name\":null,\"second_name\":null,\"description\":\"Cirug\\u00eda Colopexia\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"700.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":\"1\",\"edit_sale_unit_price\":\"700.00\",\"aux_sale_unit_price\":\"700.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"0.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"700.00\",\"IdLoteSelected\":null}',1.0000,700.000000,'20',700.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',700.000000,700.00,0.00,0.00,700.00,'[]','[]','[]',NULL,775,NULL,NULL),
(13,8,525,'{\"stock\":-2,\"id\":525,\"item_id\":525,\"full_description\":\"BA\\u00d1O MEDICADO + CORTE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O MEDICADO + CORTE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"45.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"45.00\",\"aux_sale_unit_price\":\"45.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-2.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":6,\"unit_price\":\"45.00\",\"IdLoteSelected\":null}',1.0000,45.000000,'20',45.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',45.000000,45.00,0.00,0.00,45.00,'[]','[]','[]',NULL,787,NULL,NULL),
(14,9,370,'{\"stock\":38,\"id\":370,\"item_id\":370,\"full_description\":\"A000370 - HEMOGRAMA DOCTORES\",\"name\":null,\"second_name\":null,\"description\":\"HEMOGRAMA DOCTORES\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000370\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"20.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"20.00\",\"aux_sale_unit_price\":\"20.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"38.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"20.00\",\"IdLoteSelected\":null}',1.0000,20.000000,'20',20.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',20.000000,20.00,0.00,0.00,20.00,'[]','[]','[]',NULL,788,NULL,NULL),
(15,10,380,'{\"stock\":-11,\"id\":380,\"item_id\":380,\"full_description\":\"A000380 - BA\\u00d1O GOLDEN MEDIANO\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O GOLDEN MEDIANO\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000380\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-11.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,789,NULL,NULL),
(16,10,7,'{\"stock\":123,\"id\":7,\"item_id\":7,\"full_description\":\"A000007 - Nexgard 25.1 50\",\"name\":null,\"second_name\":\"Afoxolaner\",\"description\":\"Nexgard 25.1 50\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000007\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"85.00\",\"purchase_unit_price\":39.44,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"85.00\",\"aux_sale_unit_price\":\"85.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"123.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":\"Afoxolaner\",\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":3,\"unit_price\":\"85.00\",\"IdLoteSelected\":null}',1.0000,85.000000,'20',85.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',85.000000,85.00,0.00,0.00,85.00,'[]','[]','[]',NULL,790,NULL,NULL),
(17,11,219,'{\"stock\":37,\"id\":219,\"item_id\":219,\"full_description\":\"A000219 - COLLAR ROJO\",\"name\":null,\"second_name\":null,\"description\":\"COLLAR ROJO\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000219\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"5.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"5.00\",\"aux_sale_unit_price\":\"5.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"37.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"5.00\",\"IdLoteSelected\":null}',1.0000,5.000000,'20',5.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',5.000000,5.00,0.00,0.00,5.00,'[]','[]','[]',NULL,791,NULL,NULL),
(18,11,536,'{\"stock\":-5,\"id\":536,\"item_id\":536,\"full_description\":\"TRATAMIENTO\",\"name\":null,\"second_name\":null,\"description\":\"TRATAMIENTO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"25.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"25.00\",\"aux_sale_unit_price\":\"25.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-5.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":3,\"unit_price\":\"25.00\",\"IdLoteSelected\":null}',1.0000,25.000000,'20',25.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',25.000000,25.00,0.00,0.00,25.00,'[]','[]','[]',NULL,792,NULL,NULL),
(19,11,475,'{\"stock\":1,\"id\":475,\"item_id\":475,\"full_description\":\"A000475 - NEXGARD CANBO\",\"name\":null,\"second_name\":null,\"description\":\"NEXGARD CANBO\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000475\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"60.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"60.00\",\"aux_sale_unit_price\":\"60.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"1.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":14,\"unit_price\":\"60.00\",\"IdLoteSelected\":null}',1.0000,60.000000,'20',60.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',60.000000,60.00,0.00,0.00,60.00,'[]','[]','[]',NULL,793,NULL,NULL),
(20,12,334,'{\"stock\":5,\"id\":334,\"item_id\":334,\"full_description\":\"A000334 - pechera peque\\u00f1a\",\"name\":null,\"second_name\":null,\"description\":\"pechera peque\\u00f1a\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000334\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"10.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"10.00\",\"aux_sale_unit_price\":\"10.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"5.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":29,\"unit_price\":\"10.00\",\"IdLoteSelected\":null}',2.0000,10.000000,'20',20.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',10.000000,20.00,0.00,0.00,20.00,'[]','[]','[]',NULL,794,NULL,NULL),
(21,13,202,'{\"stock\":920,\"id\":202,\"item_id\":202,\"full_description\":\"A000202 - DENTITOY\",\"name\":null,\"second_name\":null,\"description\":\"DENTITOY\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000202\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"1.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"1.00\",\"aux_sale_unit_price\":\"1.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"920.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"1.00\",\"IdLoteSelected\":null}',1.0000,1.000000,'20',1.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.000000,1.00,0.00,0.00,1.00,'[]','[]','[]',NULL,795,NULL,NULL),
(22,13,40,'{\"stock\":8,\"id\":40,\"item_id\":40,\"full_description\":\"A000040 - Ricocan Shampoo Cachorros 40 ml\",\"name\":null,\"second_name\":null,\"description\":\"Ricocan Shampoo Cachorros 40 ml\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000040\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"3.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"3.00\",\"aux_sale_unit_price\":\"3.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"8.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"3.00\",\"IdLoteSelected\":null}',1.0000,3.000000,'20',3.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',3.000000,3.00,0.00,0.00,3.00,'[]','[]','[]',NULL,796,NULL,NULL),
(23,14,536,'{\"stock\":-6,\"id\":536,\"item_id\":536,\"full_description\":\"TRATAMIENTO\",\"name\":null,\"second_name\":null,\"description\":\"TRATAMIENTO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"25.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"25.00\",\"aux_sale_unit_price\":\"25.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-6.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":3,\"unit_price\":\"25.00\",\"IdLoteSelected\":null}',1.0000,25.000000,'20',25.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',25.000000,25.00,0.00,0.00,25.00,'[]','[]','[]',NULL,797,NULL,NULL),
(24,15,540,'{\"stock\":-4,\"id\":540,\"item_id\":540,\"full_description\":\"BA\\u00d1O GRANDE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O GRANDE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"50.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"50.00\",\"aux_sale_unit_price\":\"50.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-4.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":7,\"unit_price\":\"50.00\",\"IdLoteSelected\":null}',1.0000,50.000000,'20',50.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',50.000000,50.00,0.00,0.00,50.00,'[]','[]','[]',NULL,798,NULL,NULL),
(25,16,34,'{\"stock\":63,\"id\":34,\"item_id\":34,\"full_description\":\"A000034 - Ricocan Pouch Cachorro Pollo x100gr\",\"name\":null,\"second_name\":null,\"description\":\"Ricocan Pouch Cachorro Pollo x100gr\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000034\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"3.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"3.00\",\"aux_sale_unit_price\":\"3.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"63.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":3,\"unit_price\":\"3.00\",\"IdLoteSelected\":null}',2.0000,3.000000,'20',6.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',3.000000,6.00,0.00,0.00,6.00,'[]','[]','[]',NULL,799,NULL,NULL),
(26,17,219,'{\"stock\":36,\"id\":219,\"item_id\":219,\"full_description\":\"A000219 - COLLAR ROJO\",\"name\":null,\"second_name\":null,\"description\":\"COLLAR ROJO\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000219\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"5.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"5.00\",\"aux_sale_unit_price\":\"5.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"36.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"5.00\",\"IdLoteSelected\":null}',1.0000,5.000000,'20',5.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',5.000000,5.00,0.00,0.00,5.00,'[]','[]','[]',NULL,800,NULL,NULL),
(27,17,454,'{\"stock\":1,\"id\":454,\"item_id\":454,\"full_description\":\"A000454 - peine\",\"name\":null,\"second_name\":null,\"description\":\"peine\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000454\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"20.00\",\"purchase_unit_price\":20,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"20.00\",\"aux_sale_unit_price\":\"20.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"1.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"20.00\",\"IdLoteSelected\":null}',1.0000,20.000000,'20',20.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',20.000000,20.00,0.00,0.00,20.00,'[]','[]','[]',NULL,801,NULL,NULL),
(28,17,542,'{\"stock\":-5,\"id\":542,\"item_id\":542,\"full_description\":\"Qu\\u00edntuple\",\"name\":null,\"second_name\":null,\"description\":\"Qu\\u00edntuple\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-5.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"10\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":4,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,802,NULL,NULL),
(29,18,202,'{\"stock\":918,\"id\":202,\"item_id\":202,\"full_description\":\"A000202 - DENTITOY\",\"name\":null,\"second_name\":null,\"description\":\"DENTITOY\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000202\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"1.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":4,\"edit_sale_unit_price\":\"1.00\",\"aux_sale_unit_price\":\"1.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"918.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":6,\"unit_price\":\"1.00\",\"IdLoteSelected\":null}',4.0000,1.000000,'20',4.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.000000,4.00,0.00,0.00,4.00,'[]','[]','[]',NULL,823,NULL,NULL),
(30,18,95,'{\"stock\":15,\"id\":95,\"item_id\":95,\"full_description\":\"A000095 - PECHERAS EN BOLSA # 3\",\"name\":null,\"second_name\":null,\"description\":\"PECHERAS EN BOLSA # 3\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000095\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"15.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"15.00\",\"aux_sale_unit_price\":\"15.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"15.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"15.00\",\"IdLoteSelected\":null}',1.0000,15.000000,'20',15.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',15.000000,15.00,0.00,0.00,15.00,'[]','[]','[]',NULL,824,NULL,NULL),
(31,18,542,'{\"stock\":-8,\"id\":542,\"item_id\":542,\"full_description\":\"Qu\\u00edntuple\",\"name\":null,\"second_name\":null,\"description\":\"Qu\\u00edntuple\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-8.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"10\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,825,NULL,NULL),
(32,19,539,'{\"stock\":-2,\"id\":539,\"item_id\":539,\"full_description\":\"PEINE\",\"name\":null,\"second_name\":null,\"description\":\"PEINE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"7.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"7.00\",\"aux_sale_unit_price\":\"7.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-2.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":7,\"unit_price\":\"7.00\",\"IdLoteSelected\":null}',1.0000,7.000000,'20',7.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',7.000000,7.00,0.00,0.00,7.00,'[]','[]','[]',NULL,826,NULL,NULL),
(33,19,463,'{\"stock\":1,\"id\":463,\"item_id\":463,\"full_description\":\"A000463 - peine a vapor\",\"name\":null,\"second_name\":null,\"description\":\"peine a vapor\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000463\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"18.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"18.00\",\"aux_sale_unit_price\":\"18.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"1.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":6,\"unit_price\":\"18.00\",\"IdLoteSelected\":null}',1.0000,18.000000,'20',18.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',18.000000,18.00,0.00,0.00,18.00,'[]','[]','[]',NULL,827,NULL,NULL),
(34,20,543,'{\"stock\":-6,\"id\":543,\"item_id\":543,\"full_description\":\"Desparasitaci\\u00f3n cachorros y    gatos peque\\u00f1os\",\"name\":null,\"second_name\":null,\"description\":\"Desparasitaci\\u00f3n cachorros y    gatos peque\\u00f1os\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"5.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"5.00\",\"aux_sale_unit_price\":\"5.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-6.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":3,\"unit_price\":\"5.00\",\"IdLoteSelected\":null}',1.0000,5.000000,'20',5.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',5.000000,5.00,0.00,0.00,5.00,'[]','[]','[]',NULL,830,NULL,NULL),
(35,21,186,'{\"stock\":7,\"id\":186,\"item_id\":186,\"full_description\":\"A000186 - VENDA AUTOADHESIVAS\",\"name\":null,\"second_name\":null,\"description\":\"VENDA AUTOADHESIVAS\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000186\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"9.50\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"9.50\",\"aux_sale_unit_price\":\"9.50\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"7.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"9.50\",\"IdLoteSelected\":null}',1.0000,9.500000,'20',9.50,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',9.500000,9.50,0.00,0.00,9.50,'[]','[]','[]',NULL,831,NULL,NULL),
(36,22,538,'{\"stock\":-5,\"id\":538,\"item_id\":538,\"full_description\":\"ECOGRAFIA\",\"name\":null,\"second_name\":null,\"description\":\"ECOGRAFIA\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"80.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"80.00\",\"aux_sale_unit_price\":\"80.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-5.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"80.00\",\"IdLoteSelected\":null}',1.0000,80.000000,'20',80.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',80.000000,80.00,0.00,0.00,80.00,'[]','[]','[]',NULL,836,NULL,NULL),
(37,23,11,'{\"stock\":29,\"id\":11,\"item_id\":11,\"full_description\":\"A000011 - Nexgard Espectra 30.1 60\",\"name\":null,\"second_name\":null,\"description\":\"Nexgard Espectra 30.1 60\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000011\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"110.00\",\"purchase_unit_price\":46.71,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"110.00\",\"aux_sale_unit_price\":\"110.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"29.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":4,\"unit_price\":\"110.00\",\"IdLoteSelected\":null}',1.0000,110.000000,'20',110.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',110.000000,110.00,0.00,0.00,110.00,'[]','[]','[]',NULL,837,NULL,NULL),
(38,23,542,'{\"stock\":-9,\"id\":542,\"item_id\":542,\"full_description\":\"Qu\\u00edntuple\",\"name\":null,\"second_name\":null,\"description\":\"Qu\\u00edntuple\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-9.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"10\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,838,NULL,NULL),
(39,24,524,'{\"stock\":-22,\"id\":524,\"item_id\":524,\"full_description\":\"BA\\u00d1O + CORTE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O + CORTE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-22.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,839,NULL,NULL),
(40,25,547,'{\"stock\":-4,\"id\":547,\"item_id\":547,\"full_description\":\"Hemograma Clientes\",\"name\":null,\"second_name\":null,\"description\":\"Hemograma Clientes\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-4.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,840,NULL,NULL),
(41,25,538,'{\"stock\":-6,\"id\":538,\"item_id\":538,\"full_description\":\"ECOGRAFIA\",\"name\":null,\"second_name\":null,\"description\":\"ECOGRAFIA\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"80.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"80.00\",\"aux_sale_unit_price\":\"80.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-6.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"80.00\",\"IdLoteSelected\":null}',1.0000,80.000000,'20',80.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',80.000000,80.00,0.00,0.00,80.00,'[]','[]','[]',NULL,841,NULL,NULL),
(42,26,542,'{\"stock\":-10,\"id\":542,\"item_id\":542,\"full_description\":\"Qu\\u00edntuple\",\"name\":null,\"second_name\":null,\"description\":\"Qu\\u00edntuple\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"10\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,842,NULL,NULL),
(43,27,92,'{\"stock\":56,\"id\":92,\"item_id\":92,\"full_description\":\"A000092 - COLLAR PEQUE\\u00d1O\",\"name\":null,\"second_name\":null,\"description\":\"COLLAR PEQUE\\u00d1O\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000092\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"4.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"4.00\",\"aux_sale_unit_price\":\"4.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"56.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"4.00\",\"IdLoteSelected\":null}',1.0000,4.000000,'20',4.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',4.000000,4.00,0.00,0.00,4.00,'[]','[]','[]',NULL,843,NULL,NULL),
(44,27,34,'{\"stock\":61,\"id\":34,\"item_id\":34,\"full_description\":\"A000034 - Ricocan Pouch Cachorro Pollo x100gr\",\"name\":null,\"second_name\":null,\"description\":\"Ricocan Pouch Cachorro Pollo x100gr\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000034\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"3.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"3.00\",\"aux_sale_unit_price\":\"3.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"61.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":3,\"unit_price\":\"3.00\",\"IdLoteSelected\":null}',2.0000,3.000000,'20',6.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',3.000000,6.00,0.00,0.00,6.00,'[]','[]','[]',NULL,844,NULL,NULL),
(45,27,85,'{\"stock\":0,\"id\":85,\"item_id\":85,\"full_description\":\"A000085 - LACTEO CANINO X 150GR\",\"name\":null,\"second_name\":null,\"description\":\"LACTEO CANINO X 150GR\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000085\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"20.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"20.00\",\"aux_sale_unit_price\":\"20.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"0.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"20.00\",\"IdLoteSelected\":null}',1.0000,20.000000,'20',20.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',20.000000,20.00,0.00,0.00,20.00,'[]','[]','[]',NULL,845,NULL,NULL),
(46,28,531,'{\"stock\":-16,\"id\":531,\"item_id\":531,\"full_description\":\"TRATAMIENTO\",\"name\":null,\"second_name\":null,\"description\":\"TRATAMIENTO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"20.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"20.00\",\"aux_sale_unit_price\":\"20.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-16.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"20.00\",\"IdLoteSelected\":null}',1.0000,20.000000,'20',20.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',20.000000,20.00,0.00,0.00,20.00,'[]','[]','[]',NULL,846,NULL,NULL),
(47,29,524,'{\"stock\":-23,\"id\":524,\"item_id\":524,\"full_description\":\"BA\\u00d1O + CORTE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O + CORTE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-23.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,847,NULL,NULL),
(48,30,380,'{\"stock\":-17,\"id\":380,\"item_id\":380,\"full_description\":\"A000380 - BA\\u00d1O GOLDEN MEDIANO\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O GOLDEN MEDIANO\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000380\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-17.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,876,NULL,NULL),
(49,31,380,'{\"stock\":-20,\"id\":380,\"item_id\":380,\"full_description\":\"A000380 - BA\\u00d1O GOLDEN MEDIANO\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O GOLDEN MEDIANO\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000380\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-20.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,892,NULL,NULL),
(50,32,380,'{\"stock\":-20,\"id\":380,\"item_id\":380,\"full_description\":\"A000380 - BA\\u00d1O GOLDEN MEDIANO\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O GOLDEN MEDIANO\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000380\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-20.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,893,NULL,NULL),
(51,33,429,'{\"stock\":0,\"id\":429,\"item_id\":429,\"full_description\":\"A000429 - POLO TALLA #3\",\"name\":null,\"second_name\":null,\"description\":\"POLO TALLA #3\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000429\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"18.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"18.00\",\"aux_sale_unit_price\":\"18.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"0.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":10,\"unit_price\":\"18.00\",\"IdLoteSelected\":null}',1.0000,18.000000,'20',18.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',18.000000,18.00,0.00,0.00,18.00,'[]','[]','[]',NULL,894,NULL,NULL),
(52,33,522,'{\"stock\":-6,\"id\":522,\"item_id\":522,\"full_description\":\"BA\\u00d1O MEDICADO PERRO MEDIANO\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O MEDICADO PERRO MEDIANO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"35.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"35.00\",\"aux_sale_unit_price\":\"35.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-6.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":3,\"unit_price\":\"35.00\",\"IdLoteSelected\":null}',1.0000,35.000000,'20',35.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',35.000000,35.00,0.00,0.00,35.00,'[]','[]','[]',NULL,895,NULL,NULL),
(53,34,380,'{\"stock\":-22,\"id\":380,\"item_id\":380,\"full_description\":\"A000380 - BA\\u00d1O GOLDEN MEDIANO\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O GOLDEN MEDIANO\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000380\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-22.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',2.0000,40.000000,'20',80.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,80.00,0.00,0.00,80.00,'[]','[]','[]',NULL,896,NULL,NULL),
(54,35,144,'{\"stock\":8,\"id\":144,\"item_id\":144,\"full_description\":\"A000144 - Shampoo Fruppy\",\"name\":null,\"second_name\":null,\"description\":\"Shampoo Fruppy\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000144\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"18.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"18.00\",\"aux_sale_unit_price\":\"18.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"8.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"18.00\",\"IdLoteSelected\":null}',1.0000,18.000000,'20',18.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',18.000000,18.00,0.00,0.00,18.00,'[]','[]','[]',NULL,897,NULL,NULL),
(55,36,556,'{\"stock\":0,\"id\":556,\"item_id\":556,\"full_description\":\"internamiento\",\"name\":null,\"second_name\":null,\"description\":\"internamiento\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"60.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":3,\"edit_sale_unit_price\":\"60.00\",\"aux_sale_unit_price\":\"60.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"0.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"60.00\",\"IdLoteSelected\":null}',3.0000,60.000000,'20',180.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',60.000000,180.00,0.00,0.00,180.00,'[]','[]','[]',NULL,937,NULL,NULL),
(56,37,540,'{\"stock\":-9,\"id\":540,\"item_id\":540,\"full_description\":\"BA\\u00d1O GRANDE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O GRANDE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"50.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"50.00\",\"aux_sale_unit_price\":\"50.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-9.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":7,\"unit_price\":\"50.00\",\"IdLoteSelected\":null}',1.0000,50.000000,'20',50.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',50.000000,50.00,0.00,0.00,50.00,'[]','[]','[]',NULL,950,NULL,NULL),
(57,38,39,'{\"stock\":0,\"id\":39,\"item_id\":39,\"full_description\":\"A000039 - Canbo Cachorro Cordero 1kg\",\"name\":null,\"second_name\":null,\"description\":\"Canbo Cachorro Cordero 1kg\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000039\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"22.00\",\"purchase_unit_price\":16.9,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"22.00\",\"aux_sale_unit_price\":\"22.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"0.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":3,\"unit_price\":\"22.00\",\"IdLoteSelected\":null}',1.0000,22.000000,'20',22.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',22.000000,22.00,0.00,0.00,22.00,'[]','[]','[]',NULL,1030,NULL,NULL),
(58,39,547,'{\"stock\":-8,\"id\":547,\"item_id\":547,\"full_description\":\"Hemograma Clientes\",\"name\":null,\"second_name\":null,\"description\":\"Hemograma Clientes\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-8.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":4,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,1075,NULL,NULL),
(59,39,538,'{\"stock\":-10,\"id\":538,\"item_id\":538,\"full_description\":\"ECOGRAFIA\",\"name\":null,\"second_name\":null,\"description\":\"ECOGRAFIA\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"80.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"80.00\",\"aux_sale_unit_price\":\"80.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"80.00\",\"IdLoteSelected\":null}',1.0000,80.000000,'20',80.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',80.000000,80.00,0.00,0.00,80.00,'[]','[]','[]',NULL,1076,NULL,NULL),
(60,39,565,'{\"stock\":0,\"id\":565,\"item_id\":565,\"full_description\":\"QUIMIO CON DOXORROBUSINA\",\"name\":null,\"second_name\":null,\"description\":\"QUIMIO CON DOXORROBUSINA\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"200.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"200.00\",\"aux_sale_unit_price\":\"200.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"200.00\",\"IdLoteSelected\":null}',1.0000,200.000000,'20',200.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',200.000000,200.00,0.00,0.00,200.00,'[]','[]','[]',NULL,1077,NULL,NULL),
(61,40,121,'{\"stock\":38,\"id\":121,\"item_id\":121,\"full_description\":\"A000121 - Vacuna Rabia\",\"name\":null,\"second_name\":null,\"description\":\"Vacuna Rabia\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000121\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"30.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"30.00\",\"aux_sale_unit_price\":\"30.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"38.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"30.00\",\"IdLoteSelected\":null}',1.0000,30.000000,'20',30.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',30.000000,30.00,0.00,0.00,30.00,'[]','[]','[]',NULL,1106,NULL,NULL),
(62,41,572,'{\"stock\":30,\"id\":572,\"item_id\":572,\"full_description\":\"Nexgard SPECTRA 1\\/2 pastilla\",\"name\":null,\"second_name\":null,\"description\":\"Nexgard SPECTRA 1\\/2 pastilla\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"50.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"50.00\",\"aux_sale_unit_price\":\"50.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"30.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"50.00\",\"IdLoteSelected\":null}',1.0000,50.000000,'20',50.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',50.000000,50.00,0.00,0.00,50.00,'[]','[]','[]',NULL,1118,NULL,NULL),
(63,41,523,'{\"stock\":-13,\"id\":523,\"item_id\":523,\"full_description\":\"BA\\u00d1O SOLO\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O SOLO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"30.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"30.00\",\"aux_sale_unit_price\":\"30.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-13.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":4,\"unit_price\":\"30.00\",\"IdLoteSelected\":null}',1.0000,30.000000,'20',30.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',30.000000,30.00,0.00,0.00,30.00,'[]','[]','[]',NULL,1119,NULL,NULL),
(64,42,523,'{\"stock\":-14,\"id\":523,\"item_id\":523,\"full_description\":\"BA\\u00d1O SOLO\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O SOLO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"30.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"30.00\",\"aux_sale_unit_price\":\"30.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-14.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":4,\"unit_price\":\"30.00\",\"IdLoteSelected\":null}',1.0000,30.000000,'20',30.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',30.000000,30.00,0.00,0.00,30.00,'[]','[]','[]',NULL,1120,NULL,NULL),
(65,42,572,'{\"stock\":29,\"id\":572,\"item_id\":572,\"full_description\":\"Nexgard SPECTRA 1\\/2 pastilla\",\"name\":null,\"second_name\":null,\"description\":\"Nexgard SPECTRA 1\\/2 pastilla\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"50.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"50.00\",\"aux_sale_unit_price\":\"50.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"29.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"50.00\",\"IdLoteSelected\":null}',1.0000,50.000000,'20',50.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',50.000000,50.00,0.00,0.00,50.00,'[]','[]','[]',NULL,1121,NULL,NULL),
(66,43,576,'{\"stock\":0,\"id\":576,\"item_id\":576,\"full_description\":\"Correo\",\"name\":null,\"second_name\":null,\"description\":\"Correo\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"16.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"16.00\",\"aux_sale_unit_price\":\"16.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"0.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"16.00\",\"IdLoteSelected\":null}',1.0000,16.000000,'20',16.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',16.000000,16.00,0.00,0.00,16.00,'[]','[]','[]',NULL,1130,NULL,NULL),
(67,44,411,'{\"stock\":1,\"id\":411,\"item_id\":411,\"full_description\":\"A000411 - Patas de Pollo\",\"name\":null,\"second_name\":null,\"description\":\"Patas de Pollo\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000411\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"1.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',2.0000,2.000000,'20',4.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,4.00,0.00,0.00,4.00,'[]','[]','[]',NULL,1131,NULL,NULL),
(68,45,578,'{\"stock\":0,\"id\":578,\"item_id\":578,\"full_description\":\"Cadena Gruesa de Metal\",\"name\":null,\"second_name\":null,\"description\":\"Cadena Gruesa de Metal\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"13.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"13.00\",\"aux_sale_unit_price\":\"13.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"0.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":3,\"unit_price\":\"13.00\",\"IdLoteSelected\":null}',1.0000,13.000000,'20',13.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',13.000000,13.00,0.00,0.00,13.00,'[]','[]','[]',NULL,1148,NULL,NULL),
(69,46,524,'{\"stock\":-47,\"id\":524,\"item_id\":524,\"full_description\":\"BA\\u00d1O + CORTE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O + CORTE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-47.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,1152,NULL,NULL),
(70,47,179,'{\"stock\":6,\"id\":179,\"item_id\":179,\"full_description\":\"A000179 - Pelota huella peque\\u00f1a\",\"name\":null,\"second_name\":null,\"description\":\"Pelota huella peque\\u00f1a\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000179\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"4.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"4.00\",\"aux_sale_unit_price\":\"4.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"6.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":6,\"unit_price\":\"4.00\",\"IdLoteSelected\":null}',1.0000,4.000000,'20',4.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',4.000000,4.00,0.00,0.00,4.00,'[]','[]','[]',NULL,1163,NULL,NULL),
(71,47,142,'{\"stock\":34,\"id\":142,\"item_id\":142,\"full_description\":\"A000142 - LACTATO RINGER X LITRO\",\"name\":null,\"second_name\":null,\"description\":\"LACTATO RINGER X LITRO\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000142\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"20.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"20.00\",\"aux_sale_unit_price\":\"20.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"34.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":12,\"unit_price\":\"20.00\",\"IdLoteSelected\":null}',1.0000,20.000000,'20',20.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',20.000000,20.00,0.00,0.00,20.00,'[]','[]','[]',NULL,1164,NULL,NULL),
(72,47,547,'{\"stock\":-13,\"id\":547,\"item_id\":547,\"full_description\":\"Hemograma Clientes\",\"name\":null,\"second_name\":null,\"description\":\"Hemograma Clientes\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-13.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":4,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,1165,NULL,NULL),
(73,48,524,'{\"stock\":-49,\"id\":524,\"item_id\":524,\"full_description\":\"BA\\u00d1O + CORTE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O + CORTE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-49.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',2.0000,40.000000,'20',80.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,80.00,0.00,0.00,80.00,'[]','[]','[]',NULL,1183,NULL,NULL),
(74,49,29,'{\"stock\":-1,\"id\":29,\"item_id\":29,\"full_description\":\"A000029 - Churu Unidad Chiken\",\"name\":null,\"second_name\":null,\"description\":\"Churu Unidad Chiken\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000029\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"4.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"4.00\",\"aux_sale_unit_price\":\"4.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-1.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"4.00\",\"IdLoteSelected\":null}',1.0000,4.000000,'20',4.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',4.000000,4.00,0.00,0.00,4.00,'[]','[]','[]',NULL,1198,NULL,NULL),
(75,49,239,'{\"stock\":10,\"id\":239,\"item_id\":239,\"full_description\":\"A000239 - vestido con blonda talla O\",\"name\":null,\"second_name\":null,\"description\":\"vestido con blonda talla O\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000239\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"24.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"24.00\",\"aux_sale_unit_price\":\"24.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"24.00\",\"IdLoteSelected\":null}',1.0000,24.000000,'20',24.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',24.000000,24.00,0.00,0.00,24.00,'[]','[]','[]',NULL,1199,NULL,NULL),
(76,49,524,'{\"stock\":-53,\"id\":524,\"item_id\":524,\"full_description\":\"BA\\u00d1O + CORTE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O + CORTE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-53.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,1200,NULL,NULL),
(77,50,567,'{\"stock\":-10,\"id\":567,\"item_id\":567,\"full_description\":\"HEMOVIT 2 GR\",\"name\":null,\"second_name\":null,\"description\":\"HEMOVIT 2 GR\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"4.50\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"4.50\",\"aux_sale_unit_price\":\"4.50\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"4.50\",\"IdLoteSelected\":null}',2.0000,4.500000,'20',9.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',4.500000,9.00,0.00,0.00,9.00,'[]','[]','[]',NULL,1308,NULL,NULL),
(78,50,531,'{\"stock\":-58,\"id\":531,\"item_id\":531,\"full_description\":\"TRATAMIENTO\",\"name\":null,\"second_name\":null,\"description\":\"TRATAMIENTO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"20.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"20.00\",\"aux_sale_unit_price\":\"20.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-58.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"20.00\",\"IdLoteSelected\":null}',1.0000,20.000000,'20',20.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',20.000000,20.00,0.00,0.00,20.00,'[]','[]','[]',NULL,1309,NULL,NULL),
(79,50,547,'{\"stock\":-20,\"id\":547,\"item_id\":547,\"full_description\":\"Hemograma Clientes\",\"name\":null,\"second_name\":null,\"description\":\"Hemograma Clientes\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-20.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,1310,NULL,NULL),
(80,51,524,'{\"stock\":-94,\"id\":524,\"item_id\":524,\"full_description\":\"BA\\u00d1O + CORTE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O + CORTE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-94.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,1416,NULL,NULL),
(81,52,380,'{\"stock\":-40,\"id\":380,\"item_id\":380,\"full_description\":\"A000380 - Ba\\u00f1o golden mediano\",\"name\":null,\"second_name\":null,\"description\":\"Ba\\u00f1o golden mediano\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000380\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-40.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,1483,NULL,NULL),
(82,53,147,'{\"stock\":6,\"id\":147,\"item_id\":147,\"full_description\":\"A000147 - Proteggo 20   40 kg\",\"name\":null,\"second_name\":\"Fluralaner\",\"description\":\"Proteggo 20   40 kg\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000147\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"155.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"155.00\",\"aux_sale_unit_price\":\"155.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"6.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":\"Fluralaner\",\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"155.00\",\"IdLoteSelected\":null}',1.0000,155.000000,'20',155.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',155.000000,155.00,0.00,0.00,155.00,'[]','[]','[]',NULL,1513,NULL,NULL),
(83,54,536,'{\"stock\":-16,\"id\":536,\"item_id\":536,\"full_description\":\"TRATAMIENTO\",\"name\":null,\"second_name\":null,\"description\":\"TRATAMIENTO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"25.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"25.00\",\"aux_sale_unit_price\":\"25.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-16.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":3,\"unit_price\":\"25.00\",\"IdLoteSelected\":null}',1.0000,25.000000,'20',25.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',25.000000,25.00,0.00,0.00,25.00,'[]','[]','[]',NULL,1546,NULL,NULL),
(84,55,523,'{\"stock\":-35,\"id\":523,\"item_id\":523,\"full_description\":\"BA\\u00d1O SOLO\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O SOLO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"30.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"30.00\",\"aux_sale_unit_price\":\"30.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-35.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":4,\"unit_price\":\"30.00\",\"IdLoteSelected\":null}',1.0000,30.000000,'20',30.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',30.000000,30.00,0.00,0.00,30.00,'[]','[]','[]',NULL,1737,NULL,NULL),
(85,56,524,'{\"stock\":-162,\"id\":524,\"item_id\":524,\"full_description\":\"BA\\u00d1O + CORTE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O + CORTE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-162.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,1832,NULL,NULL),
(86,57,11,'{\"stock\":28,\"id\":11,\"item_id\":11,\"full_description\":\"A000011 - Nexgard Espectra 30.1 60\",\"name\":null,\"second_name\":null,\"description\":\"Nexgard Espectra 30.1 60\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000011\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"110.00\",\"purchase_unit_price\":46.71,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"110.00\",\"aux_sale_unit_price\":\"110.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"28.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":4,\"unit_price\":\"110.00\",\"IdLoteSelected\":null}',1.0000,110.000000,'20',110.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',110.000000,110.00,0.00,0.00,110.00,'[]','[]','[]',NULL,1916,NULL,NULL),
(87,58,170,'{\"stock\":8,\"id\":170,\"item_id\":170,\"full_description\":\"A000170 - Eutanacia\",\"name\":null,\"second_name\":null,\"description\":\"Eutanacia\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000170\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"50.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"50.00\",\"aux_sale_unit_price\":\"50.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"8.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"50.00\",\"IdLoteSelected\":null}',2.0000,50.000000,'20',100.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',50.000000,100.00,0.00,0.00,100.00,'[]','[]','[]',NULL,2152,NULL,NULL),
(88,59,531,'{\"stock\":-137,\"id\":531,\"item_id\":531,\"full_description\":\"TRATAMIENTO\",\"name\":null,\"second_name\":null,\"description\":\"TRATAMIENTO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"20.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"20.00\",\"aux_sale_unit_price\":\"20.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-137.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"20.00\",\"IdLoteSelected\":null}',2.0000,20.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',20.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,2177,NULL,NULL),
(89,59,547,'{\"stock\":-45,\"id\":547,\"item_id\":547,\"full_description\":\"Hemograma Clientes\",\"name\":null,\"second_name\":null,\"description\":\"Hemograma Clientes\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-45.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":4,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,2178,NULL,NULL),
(90,60,547,'{\"stock\":-46,\"id\":547,\"item_id\":547,\"full_description\":\"Hemograma Clientes\",\"name\":null,\"second_name\":null,\"description\":\"Hemograma Clientes\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-46.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":4,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,2179,NULL,NULL),
(91,60,531,'{\"stock\":-137,\"id\":531,\"item_id\":531,\"full_description\":\"TRATAMIENTO\",\"name\":null,\"second_name\":null,\"description\":\"TRATAMIENTO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"20.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"20.00\",\"aux_sale_unit_price\":\"20.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-137.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"20.00\",\"IdLoteSelected\":null}',1.0000,20.000000,'20',20.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',20.000000,20.00,0.00,0.00,20.00,'[]','[]','[]',NULL,2180,NULL,NULL),
(92,61,524,'{\"stock\":-213,\"id\":524,\"item_id\":524,\"full_description\":\"BA\\u00d1O + CORTE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O + CORTE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-213.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,2181,NULL,NULL),
(93,62,577,'{\"stock\":-1,\"id\":577,\"item_id\":577,\"full_description\":\"Collar izabelino XXS\",\"name\":null,\"second_name\":null,\"description\":\"Collar izabelino XXS\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"15.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"15.00\",\"aux_sale_unit_price\":\"15.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-1.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":21,\"unit_price\":\"15.00\",\"IdLoteSelected\":null}',1.0000,15.000000,'20',15.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',15.000000,15.00,0.00,0.00,15.00,'[]','[]','[]',NULL,2182,NULL,NULL),
(94,62,523,'{\"stock\":-57,\"id\":523,\"item_id\":523,\"full_description\":\"BA\\u00d1O SOLO\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O SOLO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"30.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"30.00\",\"aux_sale_unit_price\":\"30.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-57.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":4,\"unit_price\":\"30.00\",\"IdLoteSelected\":null}',1.0000,30.000000,'20',30.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',30.000000,30.00,0.00,0.00,30.00,'[]','[]','[]',NULL,2183,NULL,NULL),
(95,63,168,'{\"stock\":51,\"id\":168,\"item_id\":168,\"full_description\":\"A000168 - Nexgard Media Pastilla de 10.1 a 25 Kg\",\"name\":null,\"second_name\":null,\"description\":\"Nexgard Media Pastilla de 10.1 a 25 Kg\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000168\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"51.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":7,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,2209,NULL,NULL),
(96,63,531,'{\"stock\":-143,\"id\":531,\"item_id\":531,\"full_description\":\"TRATAMIENTO\",\"name\":null,\"second_name\":null,\"description\":\"TRATAMIENTO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"20.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"20.00\",\"aux_sale_unit_price\":\"20.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-143.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"20.00\",\"IdLoteSelected\":null}',1.0000,20.000000,'20',20.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',20.000000,20.00,0.00,0.00,20.00,'[]','[]','[]',NULL,2210,NULL,NULL),
(97,64,132,'{\"stock\":-5,\"id\":132,\"item_id\":132,\"full_description\":\"A000132 - Pat\\u00e9 Ricocat Sardina Pollo\",\"name\":null,\"second_name\":null,\"description\":\"Pat\\u00e9 Ricocat Sardina Pollo\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000132\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"6.00\",\"purchase_unit_price\":4.9,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"6.00\",\"aux_sale_unit_price\":\"6.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-5.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"6.00\",\"IdLoteSelected\":null}',1.0000,6.000000,'20',6.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',6.000000,6.00,0.00,0.00,6.00,'[]','[]','[]',NULL,2267,NULL,NULL),
(98,64,531,'{\"stock\":-145,\"id\":531,\"item_id\":531,\"full_description\":\"TRATAMIENTO\",\"name\":null,\"second_name\":null,\"description\":\"TRATAMIENTO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"20.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"20.00\",\"aux_sale_unit_price\":\"20.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-145.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"20.00\",\"IdLoteSelected\":null}',1.0000,20.000000,'20',20.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',20.000000,20.00,0.00,0.00,20.00,'[]','[]','[]',NULL,2268,NULL,NULL),
(99,65,269,'{\"stock\":30,\"id\":269,\"item_id\":269,\"full_description\":\"A000269 - Shampoo pelo blanco sachet\",\"name\":null,\"second_name\":null,\"description\":\"Shampoo pelo blanco sachet\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000269\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"2.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"2.00\",\"aux_sale_unit_price\":\"2.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"30.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"2.00\",\"IdLoteSelected\":null}',2.0000,2.000000,'20',4.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',2.000000,4.00,0.00,0.00,4.00,'[]','[]','[]',NULL,2274,NULL,NULL),
(100,66,9,'{\"stock\":30,\"id\":9,\"item_id\":9,\"full_description\":\"A000009 - Nexgard Espectra 7.6 15\",\"name\":null,\"second_name\":null,\"description\":\"Nexgard Espectra 7.6 15\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000009\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"85.00\",\"purchase_unit_price\":33.6,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"85.00\",\"aux_sale_unit_price\":\"85.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"30.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"85.00\",\"IdLoteSelected\":null}',1.0000,85.000000,'20',85.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',85.000000,85.00,0.00,0.00,85.00,'[]','[]','[]',NULL,2437,NULL,NULL),
(101,66,524,'{\"stock\":-247,\"id\":524,\"item_id\":524,\"full_description\":\"BA\\u00d1O + CORTE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O + CORTE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-247.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,2438,NULL,NULL),
(102,67,121,'{\"stock\":32,\"id\":121,\"item_id\":121,\"full_description\":\"A000121 - Vacuna Rabia\",\"name\":null,\"second_name\":null,\"description\":\"Vacuna Rabia\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000121\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"30.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"30.00\",\"aux_sale_unit_price\":\"30.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"32.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"30.00\",\"IdLoteSelected\":null}',1.0000,30.000000,'20',30.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',30.000000,30.00,0.00,0.00,30.00,'[]','[]','[]',NULL,2611,NULL,NULL),
(103,67,529,'{\"stock\":-7,\"id\":529,\"item_id\":529,\"full_description\":\"Desparacitacion (15-25KG)\",\"name\":null,\"second_name\":null,\"description\":\"Desparacitacion (15-25KG)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"15.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"15.00\",\"aux_sale_unit_price\":\"15.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-7.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"15.00\",\"IdLoteSelected\":null}',1.0000,15.000000,'20',15.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',15.000000,15.00,0.00,0.00,15.00,'[]','[]','[]',NULL,2612,NULL,NULL),
(104,67,542,'{\"stock\":-66,\"id\":542,\"item_id\":542,\"full_description\":\"Qu\\u00edntuple\",\"name\":null,\"second_name\":null,\"description\":\"Qu\\u00edntuple\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-66.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"10\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,2613,NULL,NULL),
(105,68,38,'{\"stock\":-12,\"id\":38,\"item_id\":38,\"full_description\":\"A000038 - Canbo Cachorros Pollo 1kg\",\"name\":null,\"second_name\":null,\"description\":\"Canbo Cachorros Pollo 1kg\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000038\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"22.00\",\"purchase_unit_price\":16.9,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"22.00\",\"aux_sale_unit_price\":\"22.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-12.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"22.00\",\"IdLoteSelected\":null}',1.0000,22.000000,'20',22.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',22.000000,22.00,0.00,0.00,22.00,'[]','[]','[]',NULL,2669,NULL,NULL),
(106,69,603,'{\"stock\":-2,\"id\":603,\"item_id\":603,\"full_description\":\"Correa\",\"name\":null,\"second_name\":null,\"description\":\"Correa\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"30.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":2,\"edit_sale_unit_price\":\"30.00\",\"aux_sale_unit_price\":\"30.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-2.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":13,\"unit_price\":\"30.00\",\"IdLoteSelected\":null}',2.0000,30.000000,'20',60.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',30.000000,60.00,0.00,0.00,60.00,'[]','[]','[]',NULL,2670,NULL,NULL),
(107,69,8,'{\"stock\":168,\"id\":8,\"item_id\":8,\"full_description\":\"A000008 - Nexgard 10.1 25\",\"name\":null,\"second_name\":\"Afoxolaner\",\"description\":\"Nexgard 10.1 25\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000008\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"75.00\",\"purchase_unit_price\":33.27,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"75.00\",\"aux_sale_unit_price\":\"75.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"168.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":\"Afoxolaner\",\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":4,\"unit_price\":\"75.00\",\"IdLoteSelected\":null}',1.0000,75.000000,'20',75.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',75.000000,75.00,0.00,0.00,75.00,'[]','[]','[]',NULL,2671,NULL,NULL),
(108,69,7,'{\"stock\":113,\"id\":7,\"item_id\":7,\"full_description\":\"A000007 - Nexgard 25.1 50\",\"name\":null,\"second_name\":\"Afoxolaner\",\"description\":\"Nexgard 25.1 50\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000007\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"85.00\",\"purchase_unit_price\":39.44,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"85.00\",\"aux_sale_unit_price\":\"85.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"113.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":\"Afoxolaner\",\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"85.00\",\"IdLoteSelected\":null}',1.0000,85.000000,'20',85.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',85.000000,85.00,0.00,0.00,85.00,'[]','[]','[]',NULL,2672,NULL,NULL),
(109,70,524,'{\"stock\":-293,\"id\":524,\"item_id\":524,\"full_description\":\"BA\\u00d1O + CORTE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O + CORTE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-293.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,2694,NULL,NULL),
(110,71,524,'{\"stock\":-294,\"id\":524,\"item_id\":524,\"full_description\":\"BA\\u00d1O + CORTE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O + CORTE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-294.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":7,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,2695,NULL,NULL),
(111,71,14,'{\"stock\":13,\"id\":14,\"item_id\":14,\"full_description\":\"A000014 - Simp\\u00e1rica 10   20 Kg\",\"name\":null,\"second_name\":null,\"description\":\"Simp\\u00e1rica 10   20 Kg\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000014\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"95.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"95.00\",\"aux_sale_unit_price\":\"95.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"13.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"95.00\",\"IdLoteSelected\":null}',1.0000,95.000000,'20',95.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',95.000000,95.00,0.00,0.00,95.00,'[]','[]','[]',NULL,2696,NULL,NULL),
(112,72,528,'{\"stock\":-66,\"id\":528,\"item_id\":528,\"full_description\":\"Desparacitacion (3-15KG)\",\"name\":null,\"second_name\":null,\"description\":\"Desparacitacion (3-15KG)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"10.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"10.00\",\"aux_sale_unit_price\":\"10.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-66.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"10.00\",\"IdLoteSelected\":null}',1.0000,10.000000,'20',10.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',10.000000,10.00,0.00,0.00,10.00,'[]','[]','[]',NULL,2819,NULL,NULL),
(113,72,268,'{\"stock\":11,\"id\":268,\"item_id\":268,\"full_description\":\"A000268 - Nexgard Media Pastilla 25.1 a 50 kg\",\"name\":null,\"second_name\":null,\"description\":\"Nexgard Media Pastilla 25.1 a 50 kg\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000268\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"45.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"45.00\",\"aux_sale_unit_price\":\"45.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"11.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":10,\"unit_price\":\"45.00\",\"IdLoteSelected\":null}',1.0000,45.000000,'20',45.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',45.000000,45.00,0.00,0.00,45.00,'[]','[]','[]',NULL,2820,NULL,NULL),
(114,72,524,'{\"stock\":-320,\"id\":524,\"item_id\":524,\"full_description\":\"BA\\u00d1O + CORTE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O + CORTE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-320.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,2821,NULL,NULL),
(115,73,531,'{\"stock\":-204,\"id\":531,\"item_id\":531,\"full_description\":\"TRATAMIENTO\",\"name\":null,\"second_name\":null,\"description\":\"TRATAMIENTO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"20.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"20.00\",\"aux_sale_unit_price\":\"20.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-204.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"20.00\",\"IdLoteSelected\":null}',1.0000,20.000000,'20',20.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',20.000000,20.00,0.00,0.00,20.00,'[]','[]','[]',NULL,2826,NULL,NULL),
(116,74,370,'{\"stock\":26,\"id\":370,\"item_id\":370,\"full_description\":\"A000370 - Hemograma Doctores\",\"name\":null,\"second_name\":null,\"description\":\"Hemograma Doctores\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000370\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"20.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"20.00\",\"aux_sale_unit_price\":\"20.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"26.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":3,\"unit_price\":\"20.00\",\"IdLoteSelected\":null}',1.0000,20.000000,'20',20.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',20.000000,20.00,0.00,0.00,20.00,'[]','[]','[]',NULL,2838,NULL,NULL),
(117,75,531,'{\"stock\":-205,\"id\":531,\"item_id\":531,\"full_description\":\"TRATAMIENTO\",\"name\":null,\"second_name\":null,\"description\":\"TRATAMIENTO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"20.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"20.00\",\"aux_sale_unit_price\":\"20.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-205.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"20.00\",\"IdLoteSelected\":null}',1.0000,20.000000,'20',20.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',20.000000,20.00,0.00,0.00,20.00,'[]','[]','[]',NULL,2842,NULL,NULL),
(118,76,290,'{\"stock\":2,\"id\":290,\"item_id\":290,\"full_description\":\"A000290 - juguete de entrenamiento\",\"name\":null,\"second_name\":null,\"description\":\"juguete de entrenamiento\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000290\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"11.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"11.00\",\"aux_sale_unit_price\":\"11.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"2.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"11.00\",\"IdLoteSelected\":null}',1.0000,11.000000,'20',11.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',11.000000,11.00,0.00,0.00,11.00,'[]','[]','[]',NULL,2877,NULL,NULL),
(119,77,202,'{\"stock\":811,\"id\":202,\"item_id\":202,\"full_description\":\"A000202 - Dentitoy\",\"name\":null,\"second_name\":null,\"description\":\"Dentitoy\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000202\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"1.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"1.00\",\"aux_sale_unit_price\":\"1.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"811.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"1.00\",\"IdLoteSelected\":null}',1.0000,1.000000,'20',1.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.000000,1.00,0.00,0.00,1.00,'[]','[]','[]',NULL,2900,NULL,NULL),
(120,77,96,'{\"stock\":5,\"id\":96,\"item_id\":96,\"full_description\":\"A000096 - PECHERA BOLSA # 4\",\"name\":null,\"second_name\":null,\"description\":\"PECHERA BOLSA # 4\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000096\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"16.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"16.00\",\"aux_sale_unit_price\":\"16.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"5.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"16.00\",\"IdLoteSelected\":null}',1.0000,16.000000,'20',16.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',16.000000,16.00,0.00,0.00,16.00,'[]','[]','[]',NULL,2901,NULL,NULL),
(121,78,517,'{\"stock\":25,\"id\":517,\"item_id\":517,\"full_description\":\"A000517 - HEMOVITAB\",\"name\":null,\"second_name\":null,\"description\":\"HEMOVITAB\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000517\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"3.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":5,\"edit_sale_unit_price\":\"3.00\",\"aux_sale_unit_price\":\"3.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"25.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":3,\"unit_price\":\"3.00\",\"IdLoteSelected\":null}',5.0000,3.000000,'20',15.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',3.000000,15.00,0.00,0.00,15.00,'[]','[]','[]',NULL,2923,NULL,NULL),
(122,78,531,'{\"stock\":-212,\"id\":531,\"item_id\":531,\"full_description\":\"TRATAMIENTO\",\"name\":null,\"second_name\":null,\"description\":\"TRATAMIENTO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"20.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"20.00\",\"aux_sale_unit_price\":\"20.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-212.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"20.00\",\"IdLoteSelected\":null}',1.0000,20.000000,'20',20.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',20.000000,20.00,0.00,0.00,20.00,'[]','[]','[]',NULL,2924,NULL,NULL),
(123,78,547,'{\"stock\":-73,\"id\":547,\"item_id\":547,\"full_description\":\"Hemograma Clientes\",\"name\":null,\"second_name\":null,\"description\":\"Hemograma Clientes\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-73.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,2925,NULL,NULL),
(124,79,132,'{\"stock\":-8,\"id\":132,\"item_id\":132,\"full_description\":\"A000132 - Pat\\u00e9 Ricocat Sardina Pollo\",\"name\":null,\"second_name\":null,\"description\":\"Pat\\u00e9 Ricocat Sardina Pollo\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000132\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"6.00\",\"purchase_unit_price\":4.9,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"6.00\",\"aux_sale_unit_price\":\"6.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-8.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"6.00\",\"IdLoteSelected\":null}',1.0000,6.000000,'20',6.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',6.000000,6.00,0.00,0.00,6.00,'[]','[]','[]',NULL,2943,NULL,NULL),
(125,79,8,'{\"stock\":166,\"id\":8,\"item_id\":8,\"full_description\":\"A000008 - Nexgard 10.1 25\",\"name\":null,\"second_name\":\"Afoxolaner\",\"description\":\"Nexgard 10.1 25\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000008\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"75.00\",\"purchase_unit_price\":33.27,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"75.00\",\"aux_sale_unit_price\":\"75.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"166.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":\"Afoxolaner\",\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"75.00\",\"IdLoteSelected\":null}',1.0000,75.000000,'20',75.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',75.000000,75.00,0.00,0.00,75.00,'[]','[]','[]',NULL,2944,NULL,NULL),
(126,80,95,'{\"stock\":11,\"id\":95,\"item_id\":95,\"full_description\":\"A000095 - PECHERAS EN BOLSA # 3\",\"name\":null,\"second_name\":null,\"description\":\"PECHERAS EN BOLSA # 3\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000095\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"15.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"15.00\",\"aux_sale_unit_price\":\"15.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"11.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"15.00\",\"IdLoteSelected\":null}',1.0000,15.000000,'20',15.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',15.000000,15.00,0.00,0.00,15.00,'[]','[]','[]',NULL,2951,NULL,NULL),
(127,80,542,'{\"stock\":-74,\"id\":542,\"item_id\":542,\"full_description\":\"Qu\\u00edntuple\",\"name\":null,\"second_name\":null,\"description\":\"Qu\\u00edntuple\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-74.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"10\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":0,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,2952,NULL,NULL),
(128,81,523,'{\"stock\":-88,\"id\":523,\"item_id\":523,\"full_description\":\"BA\\u00d1O SOLO\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O SOLO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"30.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"30.00\",\"aux_sale_unit_price\":\"30.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-88.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":4,\"unit_price\":\"30.00\",\"IdLoteSelected\":null}',1.0000,30.000000,'20',30.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',30.000000,30.00,0.00,0.00,30.00,'[]','[]','[]',NULL,2969,NULL,NULL),
(129,81,524,'{\"stock\":-350,\"id\":524,\"item_id\":524,\"full_description\":\"BA\\u00d1O + CORTE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O + CORTE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-350.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,2970,NULL,NULL),
(130,82,524,'{\"stock\":-362,\"id\":524,\"item_id\":524,\"full_description\":\"BA\\u00d1O + CORTE\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O + CORTE\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-362.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":5,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,3024,NULL,NULL),
(131,83,529,'{\"stock\":-9,\"id\":529,\"item_id\":529,\"full_description\":\"Desparacitacion (15-25KG)\",\"name\":null,\"second_name\":null,\"description\":\"Desparacitacion (15-25KG)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"15.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"15.00\",\"aux_sale_unit_price\":\"15.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-9.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"15.00\",\"IdLoteSelected\":null}',1.0000,15.000000,'20',15.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',15.000000,15.00,0.00,0.00,15.00,'[]','[]','[]',NULL,3063,NULL,NULL),
(132,83,12,'{\"stock\":128,\"id\":12,\"item_id\":12,\"full_description\":\"A000012 - Prednisolona\",\"name\":null,\"second_name\":null,\"description\":\"Prednisolona\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000012\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"3.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":5,\"edit_sale_unit_price\":\"3.00\",\"aux_sale_unit_price\":\"3.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"128.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":2,\"unit_price\":\"3.00\",\"IdLoteSelected\":null}',5.0000,3.000000,'20',15.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',3.000000,15.00,0.00,0.00,15.00,'[]','[]','[]',NULL,3064,NULL,NULL),
(133,83,523,'{\"stock\":-92,\"id\":523,\"item_id\":523,\"full_description\":\"BA\\u00d1O SOLO\",\"name\":null,\"second_name\":null,\"description\":\"BA\\u00d1O SOLO\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"30.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"30.00\",\"aux_sale_unit_price\":\"30.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-92.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":4,\"unit_price\":\"30.00\",\"IdLoteSelected\":null}',1.0000,30.000000,'20',30.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',30.000000,30.00,0.00,0.00,30.00,'[]','[]','[]',NULL,3065,NULL,NULL),
(134,83,547,'{\"stock\":-78,\"id\":547,\"item_id\":547,\"full_description\":\"Hemograma Clientes\",\"name\":null,\"second_name\":null,\"description\":\"Hemograma Clientes\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-78.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"index\":1,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,3066,NULL,NULL),
(135,84,268,'{\"stock\":10,\"id\":268,\"item_id\":268,\"full_description\":\"A000268 - Nexgard Media Pastilla 25.1 a 50 kg\",\"name\":null,\"second_name\":null,\"description\":\"Nexgard Media Pastilla 25.1 a 50 kg\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000268\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"45.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"45.00\",\"aux_sale_unit_price\":\"45.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"10.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":10,\"unit_price\":\"45.00\",\"IdLoteSelected\":null}',1.0000,45.000000,'20',45.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',45.000000,45.00,0.00,0.00,45.00,'[]','[]','[]',NULL,3088,NULL,NULL),
(136,84,545,'{\"stock\":-11,\"id\":545,\"item_id\":545,\"full_description\":\"Ba\\u00f1o Simple : Pelo corto grandes\",\"name\":null,\"second_name\":null,\"description\":\"Ba\\u00f1o Simple : Pelo corto grandes\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-11.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":4,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,3089,NULL,NULL),
(137,85,129,'{\"stock\":26,\"id\":129,\"item_id\":129,\"full_description\":\"A000129 - Collar de gatos\",\"name\":null,\"second_name\":null,\"description\":\"Collar de gatos\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000129\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"6.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"6.00\",\"aux_sale_unit_price\":\"6.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"26.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":1,\"unit_price\":\"6.00\",\"IdLoteSelected\":null}',1.0000,6.000000,'20',6.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',6.000000,6.00,0.00,0.00,6.00,'[]','[]','[]',NULL,3101,NULL,NULL),
(138,85,202,'{\"stock\":785,\"id\":202,\"item_id\":202,\"full_description\":\"A000202 - Dentitoy\",\"name\":null,\"second_name\":null,\"description\":\"Dentitoy\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000202\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"1.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"1.00\",\"aux_sale_unit_price\":\"1.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"785.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":2,\"unit_price\":\"1.00\",\"IdLoteSelected\":null}',1.0000,1.000000,'20',1.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.000000,1.00,0.00,0.00,1.00,'[]','[]','[]',NULL,3102,NULL,NULL),
(139,86,380,'{\"stock\":-75,\"id\":380,\"item_id\":380,\"full_description\":\"A000380 - Ba\\u00f1o golden mediano\",\"name\":null,\"second_name\":null,\"description\":\"Ba\\u00f1o golden mediano\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000380\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-75.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":2,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,3124,NULL,NULL),
(140,87,202,'{\"stock\":783,\"id\":202,\"item_id\":202,\"full_description\":\"A000202 - Dentitoy\",\"name\":null,\"second_name\":null,\"description\":\"Dentitoy\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000202\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"1.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":5,\"edit_sale_unit_price\":\"1.00\",\"aux_sale_unit_price\":\"1.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"783.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":2,\"unit_price\":\"1.00\",\"IdLoteSelected\":null}',5.0000,1.000000,'20',5.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',1.000000,5.00,0.00,0.00,5.00,'[]','[]','[]',NULL,3126,NULL,NULL),
(141,87,380,'{\"stock\":-76,\"id\":380,\"item_id\":380,\"full_description\":\"A000380 - Ba\\u00f1o golden mediano\",\"name\":null,\"second_name\":null,\"description\":\"Ba\\u00f1o golden mediano\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000380\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-76.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":2,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,3127,NULL,NULL),
(142,88,545,'{\"stock\":-15,\"id\":545,\"item_id\":545,\"full_description\":\"Ba\\u00f1o Simple : Pelo corto grandes\",\"name\":null,\"second_name\":null,\"description\":\"Ba\\u00f1o Simple : Pelo corto grandes\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"40.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-15.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":4,\"unit_price\":\"40.00\",\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,3133,NULL,NULL),
(143,88,528,'{\"stock\":-74,\"id\":528,\"item_id\":528,\"full_description\":\"Desparacitacion (3-15KG)\",\"name\":null,\"second_name\":null,\"description\":\"Desparacitacion (3-15KG)\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"10.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"10.00\",\"aux_sale_unit_price\":\"10.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-74.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":0,\"unit_price\":\"10.00\",\"IdLoteSelected\":null}',1.0000,10.000000,'20',10.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',10.000000,10.00,0.00,0.00,10.00,'[]','[]','[]',NULL,3134,NULL,NULL),
(144,88,268,'{\"stock\":9,\"id\":268,\"item_id\":268,\"full_description\":\"A000268 - Nexgard Media Pastilla 25.1 a 50 kg\",\"name\":null,\"second_name\":null,\"description\":\"Nexgard Media Pastilla 25.1 a 50 kg\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000268\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":\"45.00\",\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"45.00\",\"aux_sale_unit_price\":\"45.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"9.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":10,\"unit_price\":\"45.00\",\"IdLoteSelected\":null}',1.0000,45.000000,'20',45.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',45.000000,45.00,0.00,0.00,45.00,'[]','[]','[]',NULL,3135,NULL,NULL),
(145,89,545,'{\"stock\":-16,\"id\":545,\"item_id\":545,\"full_description\":\"Ba\\u00f1o Simple : Pelo corto grandes\",\"name\":null,\"second_name\":null,\"description\":\"Ba\\u00f1o Simple : Pelo corto grandes\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":40,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-16.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":4,\"unit_price\":40,\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,3140,NULL,NULL),
(146,89,626,'{\"stock\":0,\"id\":626,\"item_id\":626,\"full_description\":\"fenobarbital pg\",\"name\":null,\"second_name\":null,\"description\":\"fenobarbital pg\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":5,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":5,\"edit_sale_unit_price\":\"5.00\",\"aux_sale_unit_price\":\"5.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"0.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":5,\"description\":\"Unidad\",\"item_id\":626,\"unit_type_id\":\"NIU\",\"quantity_unit\":\"1.0000\",\"price1\":\"5.0000\",\"price2\":\"0.0000\",\"price3\":\"0.0000\",\"price_default\":1,\"barcode\":\"5NIU1\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":2,\"presentation\":{\"id\":5,\"description\":\"Unidad\",\"item_id\":626,\"unit_type_id\":\"NIU\",\"quantity_unit\":\"1.0000\",\"price1\":\"5.0000\",\"price2\":\"0.0000\",\"price3\":\"0.0000\",\"price_default\":1,\"barcode\":\"5NIU1\",\"unit_type\":{\"id\":\"NIU\",\"active\":1,\"symbol\":null,\"description\":\"Unidades\"}},\"unit_price\":5,\"IdLoteSelected\":null}',5.0000,5.000000,'20',25.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',5.000000,25.00,0.00,0.00,25.00,'[]','[]','[]',NULL,3141,NULL,NULL),
(147,90,621,'{\"stock\":-2,\"id\":621,\"item_id\":621,\"full_description\":\"Curaci\\u00f3n herida\",\"name\":null,\"second_name\":null,\"description\":\"Curaci\\u00f3n herida\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":15,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"10\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"15.00\",\"aux_sale_unit_price\":\"15.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-2.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"10\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":0,\"unit_price\":15,\"IdLoteSelected\":null}',1.0000,12.711864,'10',12.71,18.00,2.29,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,2.29,'01',15.000000,12.71,0.00,0.00,15.00,'[]','[]','[]',NULL,3155,NULL,NULL),
(148,90,545,'{\"stock\":-19,\"id\":545,\"item_id\":545,\"full_description\":\"Ba\\u00f1o Simple : Pelo corto grandes\",\"name\":null,\"second_name\":null,\"description\":\"Ba\\u00f1o Simple : Pelo corto grandes\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":40,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-19.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":4,\"unit_price\":40,\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,3156,NULL,NULL),
(149,91,209,'{\"stock\":1,\"id\":209,\"item_id\":209,\"full_description\":\"A000209 - PECHERA TELA\",\"name\":null,\"second_name\":null,\"description\":\"PECHERA TELA\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000209\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":30,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"30.00\",\"aux_sale_unit_price\":\"30.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"1.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":16,\"unit_price\":30,\"IdLoteSelected\":null}',1.0000,30.000000,'20',30.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',30.000000,30.00,0.00,0.00,30.00,'[]','[]','[]',NULL,3176,NULL,NULL),
(150,91,168,'{\"stock\":43,\"id\":168,\"item_id\":168,\"full_description\":\"A000168 - Nexgard Media Pastilla de 10.1 a 25 Kg\",\"name\":null,\"second_name\":null,\"description\":\"Nexgard Media Pastilla de 10.1 a 25 Kg\",\"currency_type_id\":\"PEN\",\"internal_id\":\"A000168\",\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":40,\"purchase_unit_price\":0,\"unit_type_id\":\"NIU\",\"aux_unit_type_id\":\"NIU\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"20\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"43.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":1,\"location\":\"Est\",\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":7,\"unit_price\":40,\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,3177,NULL,NULL),
(151,91,524,'{\"stock\":-380,\"id\":524,\"item_id\":524,\"full_description\":\"Ba\\u00f1o + Corte\",\"name\":\"Basico\",\"second_name\":null,\"description\":\"Ba\\u00f1o + Corte\",\"currency_type_id\":\"PEN\",\"internal_id\":null,\"currency_type_symbol\":\"S\\/\",\"sale_unit_price\":40,\"purchase_unit_price\":0,\"unit_type_id\":\"ZZ\",\"aux_unit_type_id\":\"ZZ\",\"sale_affectation_igv_type_id\":\"20\",\"purchase_affectation_igv_type_id\":\"10\",\"calculate_quantity\":false,\"has_igv\":true,\"is_set\":false,\"active\":1,\"edit_unit_price\":false,\"aux_quantity\":1,\"edit_sale_unit_price\":\"40.00\",\"aux_sale_unit_price\":\"40.00\",\"image_url\":\"https:\\/\\/sanfrancisco.softlte.org.pe\\/logo\\/imagen-no-disponible.jpg\",\"warehouses\":[{\"warehouse_description\":\"Almac\\u00e9n Oficina Principal\",\"stock\":\"-380.0000\"}],\"category_id\":0,\"sets\":[],\"unit_type\":[{\"id\":1,\"description\":\"Unidad\",\"item_id\":524,\"unit_type_id\":\"ZZ\",\"quantity_unit\":\"1.0000\",\"price1\":\"40.0000\",\"price2\":\"0.0000\",\"price3\":\"0.0000\",\"price_default\":1,\"barcode\":\"1ZZ1\",\"unit_type\":{\"id\":\"ZZ\",\"active\":1,\"symbol\":null,\"description\":\"Servicio\"}}],\"category\":null,\"brand\":null,\"has_plastic_bag_taxes\":false,\"amount_plastic_bag_taxes\":\"0.10\",\"lots_group\":[],\"active_principle\":null,\"points\":null,\"payWithPoints\":false,\"generic\":0,\"location\":null,\"has_isc\":false,\"system_isc_type_id\":null,\"percentage_isc\":\"0.00\",\"stock_min\":\"1\",\"exchange_points\":false,\"quantity_of_points\":0,\"exchanged_for_points\":false,\"used_points_for_exchange\":null,\"original_affectation_igv_type_id\":\"20\",\"restrict_sale_cpe\":false,\"requires_prescription\":false,\"commission_amount\":null,\"commission_type\":null,\"index\":5,\"presentation\":{\"id\":1,\"description\":\"Unidad\",\"item_id\":524,\"unit_type_id\":\"ZZ\",\"quantity_unit\":\"1.0000\",\"price1\":\"40.0000\",\"price2\":\"0.0000\",\"price3\":\"0.0000\",\"price_default\":1,\"barcode\":\"1ZZ1\",\"unit_type\":{\"id\":\"ZZ\",\"active\":1,\"symbol\":null,\"description\":\"Servicio\"}},\"unit_price\":40,\"IdLoteSelected\":null}',1.0000,40.000000,'20',40.00,18.00,0.00,NULL,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,'01',40.000000,40.00,0.00,0.00,40.00,'[]','[]','[]',NULL,3178,NULL,NULL);
