{"id":150290,"date":"2026-09-30T08:13:16","date_gmt":"2026-09-30T08:13:16","guid":{"rendered":"https:\/\/docs.daftra.com\/tutorial\/%d8%a5%d8%b9%d8%af%d8%a7%d8%af-%d8%af%d9%81%d8%aa%d8%b1%d8%a9-%d9%84%d9%84%d8%b5%d9%8a%d8%af%d9%84%d9%8a%d8%a7%d8%aa-%d8%b1%d9%82%d9%85-%d8%a7%d9%84%d8%b4%d8%ad%d9%86%d8%a9-%d9%88%d8%aa%d8%a7%d8%b1\/"},"modified":"2026-10-12T12:02:06","modified_gmt":"2026-10-12T12:02:06","slug":"setting-up-the-system-for-pharmacies-lot-number-expiry-date-and-medical-insurance","status":"publish","type":"tutorial","link":"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-the-system-for-pharmacies-lot-number-expiry-date-and-medical-insurance\/","title":{"rendered":"Setting Up the System for Pharmacies: Lot Number, Expiry Date, and Medical Insurance"},"content":{"rendered":"<div dir=\"ltr\" lang=\"en\">\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">This guide explains setting up the system for a pharmacy step by step: from enabling the apps and settings, to defining medicines with a lot number and an expiry date, then buying and selling from the invoice and the point of sale, dealing with insurance companies, and following the medicines that are close to expiry.<\/p>\n<h2 style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">What Will You Need to Enable?<\/h2>\n<table style=\"width: 100%; border-collapse: collapse; margin: 0 0 18px;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Feature<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Where to Enable It<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Mandatory?<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Inventory<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Apps Manager<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Mandatory<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Track Products by Serial Number, Lot Number, or Expiry Date<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Inventory &amp; Products Settings (not from the Apps Manager)<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Mandatory<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Use Multiple Units per Item (box \/ strip)<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Inventory &amp; Products Settings<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Recommended<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Selling Expired Products (turning it off)<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Invoice Settings<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Recommended<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Point of sale<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Apps Manager<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Optional (for quick selling at the cashier)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Insurances<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Apps Manager<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Optional (for dealing with insurance companies)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Brief Workflow<\/h2>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">1. Enable the apps \u2192 2. Tracking and inventory settings \u2192 3. Set up the units and warehouses \u2192 4. Define the medicines \u2192 5. Enter the opening balance with lots \u2192 6. Sell and choose the lot \u2192 7. Follow the expiry with reports<\/p>\n<h2 style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Step 1: Enable the Apps<\/h2>\n<ol style=\"margin: 0 0 16px; padding-left: 26px;\">\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Go to the &#8220;Apps Manager&#8221;.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Enable the &#8220;Inventory app&#8221; (requires enabling sales).<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">If you will sell at the cashier, enable &#8220;Point of Sale&#8221;.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">If you deal with medical insurance companies, enable &#8220;Insurances&#8221; (requires sales and clients).<\/li>\n<\/ol>\n<div style=\"display: flex; gap: 10px; background: #f6f8fb; border-left: 4px solid #1a56db; border-radius: 6px; padding: 14px 16px; margin: 0 0 18px;\">\n<p><span style=\"flex: 0 0 auto; font-size: 18px; line-height: 1.6;\">\ud83d\udec8<\/span><\/p>\n<p style=\"margin: 0; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Note:<\/strong> the product tracking feature doesn&#8217;t appear in the Apps Manager, and it is enabled from the inventory settings as in the next step.<\/p>\n<\/div>\n<h2 style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Step 2: Inventory and Tracking Settings<\/h2>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Go to &#8220;Product Settings&#8221; from &#8220;Inventory &amp; Product Settings&#8221; and set the following:<\/p>\n<table style=\"width: 100%; border-collapse: collapse; margin: 0 0 18px;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Setting<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Options (Default)<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">What It Does<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Track Products by Serial Number, Lot Number, or Expiry Date<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">On \/ Off (Off)<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Enables the tracking type field in products. Enable it.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Negative Inventory<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Stop operations when the quantity runs out for all products \/ Allow only products trackable by quantity \/ Allow all products<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">For a pharmacy, it is recommended to choose Stop operations when the quantity runs out for all products so that a lot that doesn&#8217;t exist isn&#8217;t sold.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Use Multiple Units per Item<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">On \/ Off (Off)<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">To sell the medicine by the box or by the strip. After enabling it, click Manage Units to create a template such as: box = 3 strips.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Requisitions for Sales Invoices \/ Requisitions for Purchase Invoices<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">On \/ Off<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">If you enable them, the lot number and expiry date are entered in the stock requisition and not in the invoice. For small pharmacies, it is preferable to leave them off to enter the data directly in the invoice and the point of sale.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div style=\"display: flex; gap: 10px; background: #fff8e6; border-left: 4px solid #d97706; border-radius: 6px; padding: 14px 16px; margin: 0 0 18px;\">\n<p><span style=\"flex: 0 0 auto; font-size: 18px; line-height: 1.6;\">\u26a0<\/span><\/p>\n<p style=\"margin: 0; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Warning:<\/strong> once you have a single product tracked with a type other than quantity only, the tracking setting cannot be turned off again.<\/p>\n<\/div>\n<h2 style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Step 3: Preventing the Sale of Expired Medicines<\/h2>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Go to &#8220;Invoice Settings&#8221; from the &#8220;Sales Settings&#8221;, and in the Stock Availability and Validity Restrictions section you will find Selling Expired Products:<\/p>\n<ul style=\"margin: 0 0 16px; padding-left: 26px;\">\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">If the option is on Allowed (the default): only a warning appears when choosing an expired lot, and the sale can be completed.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">If you turn it off: the system prevents saving an invoice that contains an expired lot.<\/li>\n<\/ul>\n<div style=\"display: flex; gap: 10px; background: #f6f8fb; border-left: 4px solid #1a56db; border-radius: 6px; padding: 14px 16px; margin: 0 0 18px;\">\n<p><span style=\"flex: 0 0 auto; font-size: 18px; line-height: 1.6;\">\ud83d\udec8<\/span><\/p>\n<p style=\"margin: 0; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Note:<\/strong> this section appears only after enabling product tracking.<\/p>\n<\/div>\n<h2 style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Step 4: Setting Up Warehouses and Units<\/h2>\n<ol style=\"margin: 0 0 16px; padding-left: 26px;\">\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Create the warehouses (such as: the main pharmacy, the back store).<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Create the unit templates from Manage Units, such as: the base unit &#8220;strip,&#8221; and the larger unit &#8220;box&#8221; with a factor of 3.<\/li>\n<\/ol>\n<h2 style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Step 5: Defining the Medicines<\/h2>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">From Add Product:<\/p>\n<ol style=\"margin: 0 0 16px; padding-left: 26px;\">\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Enter the medicine name, the box barcode, the selling price, and the purchase price.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Choose the category (important if you will use insurance because the insurance percentages are set by category).<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">In the Inventory Management section, enable Track Stock then choose the tracking type.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Choose the unit template if it exists, then save.<\/li>\n<\/ol>\n<table style=\"width: 100%; border-collapse: collapse; margin: 0 0 18px;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Tracking Type<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">When to Use It in the Pharmacy<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Lot number and expiry date<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">The most suitable option for most medicines: you know the lot and its expiry date together.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Expiry date<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Products for which only the expiry date matters (preparations, supplements).<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Lot number<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Products that need the lot number to withdraw them in a recall, without an expiry date.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Serial number<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Medical devices (blood pressure monitor, glucose meter) where each piece has an independent number.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Quantity only<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Products with no shelf life (tools, accessories).<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div style=\"display: flex; gap: 10px; background: #fff8e6; border-left: 4px solid #d97706; border-radius: 6px; padding: 14px 16px; margin: 0 0 18px;\">\n<p><span style=\"flex: 0 0 auto; font-size: 18px; line-height: 1.6;\">\u26a0<\/span><\/p>\n<p style=\"margin: 0; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Warning:<\/strong> the opening stock of a tracked product cannot be entered while creating it, and the tracking type cannot be changed after the product has stock movements unless the Allow all products option is enabled in negative stock. Choose the correct type from the start.<\/p>\n<\/div>\n<h2 style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Step 6: Entering the Opening Balance and Purchases by Lots<\/h2>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Enter the quantities you have in one of two ways:<\/p>\n<ul style=\"margin: 0 0 16px; padding-left: 26px;\">\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">A purchase invoice from the supplier: in each line, enter the lot number and choose the expiry date.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">A manual addition requisition for the opening balance: enter the lines and quantities with the lot data and the expiry date for each line.<\/li>\n<\/ul>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Example<\/strong><\/p>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">You received 50 boxes of one medicine in two lots: 30 boxes of lot LT-101 expiring 03\/2027, and 20 boxes of lot LT-102 expiring 09\/2027. Add them in two separate lines for the same medicine, each line with its lot and its date.<\/p>\n<div style=\"display: flex; gap: 10px; background: #f6f8fb; border-left: 4px solid #1a56db; border-radius: 6px; padding: 14px 16px; margin: 0 0 18px;\">\n<p><span style=\"flex: 0 0 auto; font-size: 18px; line-height: 1.6;\">\ud83d\udec8<\/span><\/p>\n<p style=\"margin: 0; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Note:<\/strong> the same lot number can be received more than once, but the serial number must be unique.<\/p>\n<\/div>\n<h2 style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Step 7: Selling from the Sales Invoice<\/h2>\n<ol style=\"margin: 0 0 16px; padding-left: 26px;\">\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Create a sales invoice and choose the client and the medicine.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">In the tracking field, search and choose the required lot.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">If you sell from two different lots, add the medicine in two lines: each line with its lot and its quantity.<\/li>\n<\/ol>\n<div style=\"display: flex; gap: 10px; background: #fff8e6; border-left: 4px solid #d97706; border-radius: 6px; padding: 14px 16px; margin: 0 0 18px;\">\n<p><span style=\"flex: 0 0 auto; font-size: 18px; line-height: 1.6;\">\u26a0<\/span><\/p>\n<p style=\"margin: 0; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Warning:<\/strong> the system doesn&#8217;t choose the lot automatically and doesn&#8217;t sort them by the nearest expiry, so make sure to choose the lot nearest to expiry manually (applying the principle &#8220;first expiring, first out&#8221;).<\/p>\n<\/div>\n<h2 style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Step 8: Selling from the Point of Sale (the Cashier)<\/h2>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">To be able to choose the lot in the point of sale, go to the POS settings and enable, in order:<\/p>\n<ol style=\"margin: 0 0 16px; padding-left: 26px;\">\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Journal Entry per Invoice.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Enter Product Tracking Data (appears only after enabling the previous setting).<\/li>\n<\/ol>\n<ul style=\"margin: 0 0 16px; padding-left: 26px;\">\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">These two settings cannot be changed while a point of sale session is open; close the sessions first.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Entering tracking data in the point of sale works only when stock requisitions for sales invoices are turned off.<\/li>\n<\/ul>\n<h2 style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Step 9: Dealing with Insurance Companies (Optional)<\/h2>\n<ol style=\"margin: 0 0 16px; padding-left: 26px;\">\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">From Insurance Agents, add the insurance company (the name, phone, and email).<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Add the insurance class for the company (such as: gold, silver), and specify for each product category: the discount percentage, the company&#8217;s coverage percentage, the client&#8217;s coverage percentage, and the maximum co-payment.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Open the client&#8217;s data and choose an insurance company and an insurance class and enter the insurance number.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">When an invoice is created for this client, the percentages are applied automatically: the client pays their share, and a separate insurance invoice is created with the company&#8217;s share to be collected later.<\/li>\n<\/ol>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Example<\/strong><\/p>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">A medicine priced at 200 in the &#8220;Chronic Medicines&#8221; category, and the class covers 80% for the company and 20% for the client: the client pays 40, and an insurance invoice of 160 is recorded against the insurance company.<\/p>\n<h2 style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Step 10: Following Lots and Expiry Dates<\/h2>\n<ul style=\"margin: 0 0 16px; padding-left: 26px;\">\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">The Product Tracking screen from the inventory menu to display all lots and the remaining quantities.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\">From Reports you will find the Tracking Reports section: Track Products by Lot Number and Expiry Date; Track Products by Expiry Date; Track Products by Lot Number.<\/li>\n<\/ul>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #111827; margin: 24px 0 10px;\">How do I know which medicines will expire soon?<\/h3>\n<p style=\"margin: 0 0 14px; line-height: 1.9; font-size: 16px; color: #1f2430;\">Open the report Track Products by Lot Number and Expiry Date (or the expiry date report) and set the Expiry Date From to today and the Expiry Date To to a date 3 months from now, for example, and the medicines that will expire within this period appear.<\/p>\n<div style=\"display: flex; gap: 10px; background: #f6f8fb; border-left: 4px solid #1a56db; border-radius: 6px; padding: 14px 16px; margin: 0 0 18px;\">\n<p><span style=\"flex: 0 0 auto; font-size: 18px; line-height: 1.6;\">\ud83d\udec8<\/span><\/p>\n<p style=\"margin: 0; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Note:<\/strong> the expiry date report shows products of the expiry date type only, while products of the lot number and expiry date type appear in the lot number and expiry date report.<\/p>\n<\/div>\n<h2 style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">What Is Available and Not Available for Pharmacies<\/h2>\n<\/div>\n<div dir=\"ltr\" lang=\"en\">\n<table style=\"width: 100%; border-collapse: collapse; margin: 0 0 18px;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Feature<\/th>\n<th style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; background: #f6f8fb; font-weight: bold;\">Status<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Tracking the lot number and expiry date<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Available<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Selling by the box and the strip<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Available (multiple units)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Preventing the sale of expired items<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Available (a setting in invoices)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Automatically choosing the lot nearest to expiry<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Not available \u2014 the choice is manual<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">An automatic alert before the expiry<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Not available \u2014 use the expiry date report with a future period<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Medical insurance and splitting the invoice<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Available (the Insurances app)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Linking the prescription to the invoice and dispensing the medicine<\/td>\n<td style=\"border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; vertical-align: top;\">Not available \u2014 the prescriptions app is for clinics and isn&#8217;t linked to inventory<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 style=\"font-size: 22px; font-weight: bold; color: #111827; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef0f3;\">Frequently Asked Questions<\/h2>\n<ul style=\"margin: 0 0 16px; padding-left: 26px;\">\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Why can&#8217;t I enter the initial quantity of the medicine?<\/strong> Tracked products don&#8217;t accept an initial quantity; enter it with a purchase invoice or a manual addition requisition with the lot data.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Why doesn&#8217;t the lot number field appear in the invoice?<\/strong> Either the product&#8217;s tracking type is quantity only, or stock requisitions for sales invoices are enabled, so the lot number is entered in the stock requisition.<\/li>\n<li style=\"margin-bottom: 10px; line-height: 1.9; font-size: 16px; color: #1f2430;\"><strong style=\"color: #111827;\">Can two lots be sold in one line?<\/strong> No, each line accepts one lot; add the medicine in a second line for the other lot.<\/li>\n<\/ul>\n<\/div>\n","protected":false},"author":17,"featured_media":0,"template":"","categories":[3255,7479],"tags":[21106,4798,21103,4804,21102,21101,21098,21100,21105,21099,21097,21104],"class_list":["post-150290","tutorial","type-tutorial","status-publish","hentry","category-industries","category-pharmacy-management","tag-does-the-system-choose-the-lot-automatically","tag-expiry-date","tag-how-do-i-know-which-medicines-will-expire","tag-lot-number","tag-medical-insurance-companies","tag-medicine-tracking","tag-medicines-about-to-expire","tag-pharmacy-software","tag-prevent-selling-expired-products","tag-selling-by-box-and-strip","tag-set-up-the-system-for-a-pharmacy","tag-why-cant-i-enter-the-opening-quantity-of-a-medicine"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Setting Up the System for Pharmacies: Lot Number, Expiry Date, and Medical Insurance - Daftra Knowledge Base<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-the-system-for-pharmacies-lot-number-expiry-date-and-medical-insurance\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setting Up the System for Pharmacies: Lot Number, Expiry Date, and Medical Insurance - Daftra Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"This guide explains setting up the system for a pharmacy step by step: from enabling the apps and settings, to defining medicines with a lot number and an expiry date, then buying and selling from the invoice and the point of sale, dealing with insurance companies, and following the medicines that are close to expiry. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-the-system-for-pharmacies-lot-number-expiry-date-and-medical-insurance\/\" \/>\n<meta property=\"og:site_name\" content=\"Daftra Knowledge Base\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-12T12:02:06+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/docs.daftra.com\/#organization\",\"name\":\"Daftra\",\"url\":\"https:\/\/docs.daftra.com\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/docs.daftra.com\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/10\/daftra-ar.svg\",\"contentUrl\":\"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/10\/daftra-ar.svg\",\"caption\":\"Daftra\"},\"image\":{\"@id\":\"https:\/\/docs.daftra.com\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.daftra.com\/#website\",\"url\":\"https:\/\/docs.daftra.com\/\",\"name\":\"Daftra Knowledge Base\",\"description\":\"Daftra\",\"publisher\":{\"@id\":\"https:\/\/docs.daftra.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.daftra.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-the-system-for-pharmacies-lot-number-expiry-date-and-medical-insurance\/#webpage\",\"url\":\"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-the-system-for-pharmacies-lot-number-expiry-date-and-medical-insurance\/\",\"name\":\"Setting Up the System for Pharmacies: Lot Number, Expiry Date, and Medical Insurance - Daftra Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/docs.daftra.com\/#website\"},\"datePublished\":\"2026-09-30T08:13:16+00:00\",\"dateModified\":\"2026-10-12T12:02:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-the-system-for-pharmacies-lot-number-expiry-date-and-medical-insurance\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-the-system-for-pharmacies-lot-number-expiry-date-and-medical-insurance\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-the-system-for-pharmacies-lot-number-expiry-date-and-medical-insurance\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.daftra.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setting Up the System for Pharmacies: Lot Number, Expiry Date, and Medical Insurance\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setting Up the System for Pharmacies: Lot Number, Expiry Date, and Medical Insurance - Daftra Knowledge Base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-the-system-for-pharmacies-lot-number-expiry-date-and-medical-insurance\/","og_locale":"en_US","og_type":"article","og_title":"Setting Up the System for Pharmacies: Lot Number, Expiry Date, and Medical Insurance - Daftra Knowledge Base","og_description":"This guide explains setting up the system for a pharmacy step by step: from enabling the apps and settings, to defining medicines with a lot number and an expiry date, then buying and selling from the invoice and the point of sale, dealing with insurance companies, and following the medicines that are close to expiry. [&hellip;]","og_url":"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-the-system-for-pharmacies-lot-number-expiry-date-and-medical-insurance\/","og_site_name":"Daftra Knowledge Base","article_modified_time":"2026-10-12T12:02:06+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/docs.daftra.com\/#organization","name":"Daftra","url":"https:\/\/docs.daftra.com\/","sameAs":[],"logo":{"@type":"ImageObject","@id":"https:\/\/docs.daftra.com\/#logo","inLanguage":"en-US","url":"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/10\/daftra-ar.svg","contentUrl":"https:\/\/docs.daftra.com\/wp-content\/uploads\/2023\/10\/daftra-ar.svg","caption":"Daftra"},"image":{"@id":"https:\/\/docs.daftra.com\/#logo"}},{"@type":"WebSite","@id":"https:\/\/docs.daftra.com\/#website","url":"https:\/\/docs.daftra.com\/","name":"Daftra Knowledge Base","description":"Daftra","publisher":{"@id":"https:\/\/docs.daftra.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.daftra.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-the-system-for-pharmacies-lot-number-expiry-date-and-medical-insurance\/#webpage","url":"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-the-system-for-pharmacies-lot-number-expiry-date-and-medical-insurance\/","name":"Setting Up the System for Pharmacies: Lot Number, Expiry Date, and Medical Insurance - Daftra Knowledge Base","isPartOf":{"@id":"https:\/\/docs.daftra.com\/#website"},"datePublished":"2026-09-30T08:13:16+00:00","dateModified":"2026-10-12T12:02:06+00:00","breadcrumb":{"@id":"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-the-system-for-pharmacies-lot-number-expiry-date-and-medical-insurance\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-the-system-for-pharmacies-lot-number-expiry-date-and-medical-insurance\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.daftra.com\/en\/tutorial\/setting-up-the-system-for-pharmacies-lot-number-expiry-date-and-medical-insurance\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.daftra.com\/en\/"},{"@type":"ListItem","position":2,"name":"Setting Up the System for Pharmacies: Lot Number, Expiry Date, and Medical Insurance"}]}]}},"_links":{"self":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/150290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial"}],"about":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/types\/tutorial"}],"author":[{"embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/users\/17"}],"version-history":[{"count":2,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/150290\/revisions"}],"predecessor-version":[{"id":150325,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/150290\/revisions\/150325"}],"wp:attachment":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/media?parent=150290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/categories?post=150290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tags?post=150290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}