{"id":160029,"date":"2026-11-25T12:33:54","date_gmt":"2026-11-25T12:33:54","guid":{"rendered":"https:\/\/docs.daftra.com\/tutorial\/configuring-automatic-first-expired-first-out-fefo-allocation-in-sales-invoices-and-stock-issue-vouchers\/"},"modified":"2026-11-25T12:33:54","modified_gmt":"2026-11-25T12:33:54","slug":"configuring-automatic-first-expired-first-out-fefo-allocation-in-sales-invoices-and-stock-issue-vouchers","status":"publish","type":"tutorial","link":"https:\/\/docs.daftra.com\/en\/tutorial\/configuring-automatic-first-expired-first-out-fefo-allocation-in-sales-invoices-and-stock-issue-vouchers\/","title":{"rendered":"Configuring Automatic First-Expired, First-Out (FEFO) Allocation in Sales Invoices and Stock Issue Vouchers"},"content":{"rendered":"<div dir=\"ltr\" lang=\"en\">\n<p style=\"margin:0 0 14px;line-height:1.9;font-size:16px;color:#1f2430;\">When you enable <strong style=\"color:#111827;\">Auto-assign earliest expiry date (FEFO)<\/strong>, the system automatically allocates the product quantity on a Sales Invoice across expiry-date batches, starting with the earliest valid date, based on the balance available in each batch. You do not need to select dates manually, and the batch that expires first is issued first.<\/p>\n<div style=\"background:#f6f8fb;border:1px solid #e5e7eb;border-radius:8px;padding:12px 16px;margin:0 0 20px;font-size:15px;line-height:1.8;\">\n<div style=\"display:flex;gap:8px;padding:4px 0;\"><span style=\"min-width:120px;color:#6b7280;\">Required permissions<\/span><span style=\"color:#1f2430;\"><strong style=\"color:#111827;\">Edit General Settings<\/strong> to enable the setting.<\/span><\/div>\n<div style=\"display:flex;gap:8px;padding:4px 0;\"><span style=\"min-width:120px;color:#6b7280;\">How to access<\/span><span style=\"color:#1f2430;\"><strong style=\"color:#111827;\">Inventory<\/strong> \u2190 <strong style=\"color:#111827;\">Inventory and Product Settings<\/strong> \u2190 <a style=\"color:#1a56db;\" href=\"https:\/\/go.daftra.com\/owner\/settings\/inventory\" target=\"_blank\" rel=\"noopener\"><strong style=\"color:#1a56db;\">Product Settings<\/strong><\/a> \u2190 <strong style=\"color:#111827;\">Product Tracking<\/strong> section \u2190 <strong style=\"color:#111827;\">Auto-assign earliest expiry date (FEFO)<\/strong><\/span><\/div>\n<\/div>\n<div style=\"border:1px solid #e5e7eb;border-radius:8px;padding:12px 16px;margin:0 0 20px;\">\n<p style=\"margin:0 0 6px;font-weight:700;color:#111827;\">Table of Contents<\/p>\n<ol style=\"margin:0;padding-left:22px;\">\n<li style=\"margin-bottom:4px;\"><a style=\"color:#1a56db;\" href=\"#setting\"><strong style=\"color:#1a56db;\">The Setting<\/strong><\/a><\/li>\n<li style=\"margin-bottom:4px;\"><a style=\"color:#1a56db;\" href=\"#how\"><strong style=\"color:#1a56db;\">How the System Allocates the Quantity<\/strong><\/a><\/li>\n<li style=\"margin-bottom:4px;\"><a style=\"color:#1a56db;\" href=\"#where\"><strong style=\"color:#1a56db;\">Where the Split Happens<\/strong><\/a><\/li>\n<li style=\"margin-bottom:4px;\"><a style=\"color:#1a56db;\" href=\"#edit\"><strong style=\"color:#1a56db;\">Editing Before Saving<\/strong><\/a><\/li>\n<li style=\"margin-bottom:4px;\"><a style=\"color:#1a56db;\" href=\"#scope\"><strong style=\"color:#1a56db;\">What FEFO Does Not Cover<\/strong><\/a><\/li>\n<li style=\"margin-bottom:4px;\"><a style=\"color:#1a56db;\" href=\"#faq\"><strong style=\"color:#1a56db;\">Frequently Asked Questions<\/strong><\/a><\/li>\n<\/ol>\n<\/div>\n<h2 id=\"setting\" style=\"font-size:22px;font-weight:700;color:#111827;margin:32px 0 14px;padding-bottom:8px;border-bottom:2px solid #eef0f3;\">The Setting<\/h2>\n<table style=\"width:100%;border-collapse:collapse;margin:0 0 18px;\">\n<tr>\n<th style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;background:#f6f8fb;font-weight:700;\">Item<\/th>\n<th style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;background:#f6f8fb;font-weight:700;\">Value<\/th>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Name in the interface<\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\"><strong style=\"color:#111827;\">Auto-assign earliest expiry date (FEFO)<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Location<\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\"><strong style=\"color:#111827;\">Inventory and Product Settings<\/strong> \u2190 <a style=\"color:#1a56db;\" href=\"https:\/\/go.daftra.com\/owner\/settings\/inventory\" target=\"_blank\" rel=\"noopener\"><strong style=\"color:#1a56db;\">Product Settings<\/strong><\/a> \u2190 <strong style=\"color:#111827;\">Product Tracking<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Default<\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Disabled<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Scope<\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Applies to the entire account (all users and warehouses)<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Tracking types<\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\"><strong style=\"color:#111827;\">Expiry Date<\/strong>, <strong style=\"color:#111827;\">Lot Number and Expiry Date<\/strong>, and <strong style=\"color:#111827;\">Lot Number<\/strong> (the oldest lot received is issued first)<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Documents<\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Sales Invoices only<\/td>\n<\/tr>\n<\/table>\n<h2 id=\"how\" style=\"font-size:22px;font-weight:700;color:#111827;margin:32px 0 14px;padding-bottom:8px;border-bottom:2px solid #eef0f3;\">How the System Allocates the Quantity<\/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;\">It sorts the batches available in the warehouse by expiry date, nearest first, starting from the invoice date. Batches that expire on the invoice date are included. For products tracked by shipment number only, shipments are sorted from the earliest received.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">It fills the first line from the nearest batch up to the batch&#8217;s maximum balance, then creates a line for the next batch, and so on.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">Any quantity that no batch covers is placed in an additional line without a batch if the <strong style=\"color:#111827;\">Negative Stock<\/strong> setting is set to <strong style=\"color:#111827;\">Allow for all products<\/strong>; otherwise, only the available quantity is allocated and a message appears such as &#8220;There is not enough valid stock to cover this quantity. Available: 30 units across non-expired batches. Expired batches must be assigned manually if needed.&#8221; For products tracked by shipment number only, the message &#8220;There is not enough stock to cover this quantity. Available: 30 units.&#8221; appears. This message appears in the invoice only.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">Expired batches are never selected automatically.<\/li>\n<\/ol>\n<table style=\"width:100%;border-collapse:collapse;margin:0 0 18px;\">\n<tr>\n<th style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;background:#f6f8fb;font-weight:700;\">Example: 45 requested; available are a batch of 20 (nearest) and a batch of 10<\/th>\n<th style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;background:#f6f8fb;font-weight:700;\">Result<\/th>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Line 1<\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">20 from the nearest batch<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Line 2<\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">10 from the next batch<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Line 3<\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">15 without a batch (only when negative stock is allowed for all products); you must select an expiry date for it or delete it before saving<\/td>\n<\/tr>\n<\/table>\n<h2 id=\"where\" style=\"font-size:22px;font-weight:700;color:#111827;margin:32px 0 14px;padding-bottom:8px;border-bottom:2px solid #eef0f3;\">Where the Split Happens<\/h2>\n<table style=\"width:100%;border-collapse:collapse;margin:0 0 18px;\">\n<tr>\n<th style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;background:#f6f8fb;font-weight:700;\">Stock Requisitions for Sales Invoices<\/th>\n<th style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;background:#f6f8fb;font-weight:700;\">Where the Split Happens<\/th>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Disabled<\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">In the lines of the sales invoice itself.<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Enabled<\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">In the lines of the stock issue requisition linked to the invoice.<\/td>\n<\/tr>\n<\/table>\n<h2 id=\"edit\" style=\"font-size:22px;font-weight:700;color:#111827;margin:32px 0 14px;padding-bottom:8px;border-bottom:2px solid #eef0f3;\">Editing Before Saving<\/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 resulting lines can be edited before saving: you can change the batch or the quantity, or delete a line.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">A line without a batch needs to be resolved before saving (select an expiry date or delete the line); otherwise the message &#8220;You must enter the expiry date for the quantity entered for the product&#8221; appears, followed by the product name.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">In the invoice, FEFO runs when you leave the quantity field or change the unit of measure, and it excludes quantities already taken by other lines of the same invoice. In the stock issue requisition, a line that already has a batch stays as it is.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">In the stock issue requisition, no shortage message appears: if there is no valid balance in any batch, the line stays without a batch for you to choose one before approval, and if the balance is insufficient and <strong style=\"color:#111827;\">Negative Stock<\/strong> is not set to <strong style=\"color:#111827;\">Allow for all products<\/strong>, only the quantity available in the batches is issued.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">For a product tracked by shipment number that has only one shipment number available, the shipment number is filled in automatically in the line when the setting is enabled.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">You can always use manual allocation by adding lines or using the <strong style=\"color:#111827;\">Split<\/strong> button.<\/li>\n<\/ul>\n<h2 id=\"scope\" style=\"font-size:22px;font-weight:700;color:#111827;margin:32px 0 14px;padding-bottom:8px;border-bottom:2px solid #eef0f3;\">What FEFO Does Not Cover<\/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;\">Quotations, sales orders, returns, and credit notes.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">Purchases and stock addition requisitions.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">Products tracked by serial number.<\/li>\n<\/ul>\n<h2 id=\"faq\" style=\"font-size:22px;font-weight:700;color:#111827;margin:32px 0 14px;padding-bottom:8px;border-bottom:2px solid #eef0f3;\">Frequently Asked Questions<\/h2>\n<h3 style=\"font-size:18px;font-weight:700;color:#111827;margin:24px 0 10px;\">Is FEFO enabled by default?<\/h3>\n<p style=\"margin:0 0 14px;line-height:1.9;font-size:16px;color:#1f2430;\">No.<\/p>\n<h3 style=\"font-size:18px;font-weight:700;color:#111827;margin:24px 0 10px;\">Can it be enabled for a single warehouse?<\/h3>\n<p style=\"margin:0 0 14px;line-height:1.9;font-size:16px;color:#1f2430;\">No. The setting applies at the account level.<\/p>\n<h3 style=\"font-size:18px;font-weight:700;color:#111827;margin:24px 0 10px;\">Does it ever select expired dates?<\/h3>\n<p style=\"margin:0 0 14px;line-height:1.9;font-size:16px;color:#1f2430;\">Never.<\/p>\n<h3 style=\"font-size:18px;font-weight:700;color:#111827;margin:24px 0 10px;\">What happens if the available balance is not enough?<\/h3>\n<p style=\"margin:0 0 14px;line-height:1.9;font-size:16px;color:#1f2430;\">If negative stock is allowed for all products, the remaining quantity is placed on an additional line with no batch. You must select an expiry date for this line or delete it before saving. Otherwise, only the available quantity is allocated and a stock shortage message appears.<\/p>\n<h3 style=\"font-size:18px;font-weight:700;color:#111827;margin:24px 0 10px;\">Can the suggested batches be changed?<\/h3>\n<p style=\"margin:0 0 14px;line-height:1.9;font-size:16px;color:#1f2430;\">Yes, before saving.<\/p>\n<\/div>\n","protected":false},"author":17,"featured_media":0,"template":"","categories":[2185,2180],"tags":[33061,33062,33055,33077,33063,33076,33071,33066,33052,33060,8592,33070,33067,33073,33074,33064,33065,33072,33078,33068,33069,22875,25350,33075],"class_list":["post-160029","tutorial","type-tutorial","status-publish","hentry","category-product-tracking","category-inventory-settings","tag-auto-assign-earliest-expiry-date","tag-auto-assign-earliest-expiry-date-fefo","tag-automatically-assign-oldest-expiry-date","tag-disable-fefo-setting","tag-earliest-expiry-date-first","tag-enable-fefo-in-sales-invoices","tag-expired-batches","tag-expiry-date-tracking","tag-fefo","tag-first-expired-first-out","tag-inventory-and-product-settings","tag-line-without-expiry-date","tag-lot-number-and-expiry-date","tag-negative-stock-setting","tag-not-enough-valid-stock","tag-oldest-expiry-date-first","tag-product-tracking-settings","tag-sales-invoice-stock-allocation","tag-select-batch-by-expiry-date","tag-shipment-number-and-expiry-date","tag-split-line-automatically","tag-stock-issue-requisition","tag-stock-issue-voucher","tag-you-must-enter-the-expiry-date"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Configuring Automatic First-Expired, First-Out (FEFO) Allocation in Sales Invoices and Stock Issue Vouchers - 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\/configuring-automatic-first-expired-first-out-fefo-allocation-in-sales-invoices-and-stock-issue-vouchers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configuring Automatic First-Expired, First-Out (FEFO) Allocation in Sales Invoices and Stock Issue Vouchers - Daftra Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"When you enable Auto-assign earliest expiry date (FEFO), the system automatically allocates the product quantity on a Sales Invoice across expiry-date batches, starting with the earliest valid date, based on the balance available in each batch. You do not need to select dates manually, and the batch that expires first is issued first. Required permissionsEdit [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.daftra.com\/en\/tutorial\/configuring-automatic-first-expired-first-out-fefo-allocation-in-sales-invoices-and-stock-issue-vouchers\/\" \/>\n<meta property=\"og:site_name\" content=\"Daftra Knowledge Base\" \/>\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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/docs.daftra.com\/en\/#organization\",\"name\":\"Daftra\",\"url\":\"https:\/\/docs.daftra.com\/en\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/docs.daftra.com\/en\/#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\/en\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.daftra.com\/en\/#website\",\"url\":\"https:\/\/docs.daftra.com\/en\/\",\"name\":\"Daftra Knowledge Base\",\"description\":\"Daftra\",\"publisher\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.daftra.com\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/configuring-automatic-first-expired-first-out-fefo-allocation-in-sales-invoices-and-stock-issue-vouchers\/#webpage\",\"url\":\"https:\/\/docs.daftra.com\/en\/tutorial\/configuring-automatic-first-expired-first-out-fefo-allocation-in-sales-invoices-and-stock-issue-vouchers\/\",\"name\":\"Configuring Automatic First-Expired, First-Out (FEFO) Allocation in Sales Invoices and Stock Issue Vouchers - Daftra Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/#website\"},\"datePublished\":\"2026-11-25T12:33:54+00:00\",\"dateModified\":\"2026-11-25T12:33:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/configuring-automatic-first-expired-first-out-fefo-allocation-in-sales-invoices-and-stock-issue-vouchers\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.daftra.com\/en\/tutorial\/configuring-automatic-first-expired-first-out-fefo-allocation-in-sales-invoices-and-stock-issue-vouchers\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.daftra.com\/en\/tutorial\/configuring-automatic-first-expired-first-out-fefo-allocation-in-sales-invoices-and-stock-issue-vouchers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.daftra.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configuring Automatic First-Expired, First-Out (FEFO) Allocation in Sales Invoices and Stock Issue Vouchers\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Configuring Automatic First-Expired, First-Out (FEFO) Allocation in Sales Invoices and Stock Issue Vouchers - 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\/configuring-automatic-first-expired-first-out-fefo-allocation-in-sales-invoices-and-stock-issue-vouchers\/","og_locale":"en_US","og_type":"article","og_title":"Configuring Automatic First-Expired, First-Out (FEFO) Allocation in Sales Invoices and Stock Issue Vouchers - Daftra Knowledge Base","og_description":"When you enable Auto-assign earliest expiry date (FEFO), the system automatically allocates the product quantity on a Sales Invoice across expiry-date batches, starting with the earliest valid date, based on the balance available in each batch. You do not need to select dates manually, and the batch that expires first is issued first. Required permissionsEdit [&hellip;]","og_url":"https:\/\/docs.daftra.com\/en\/tutorial\/configuring-automatic-first-expired-first-out-fefo-allocation-in-sales-invoices-and-stock-issue-vouchers\/","og_site_name":"Daftra Knowledge Base","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/docs.daftra.com\/en\/#organization","name":"Daftra","url":"https:\/\/docs.daftra.com\/en\/","sameAs":[],"logo":{"@type":"ImageObject","@id":"https:\/\/docs.daftra.com\/en\/#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\/en\/#logo"}},{"@type":"WebSite","@id":"https:\/\/docs.daftra.com\/en\/#website","url":"https:\/\/docs.daftra.com\/en\/","name":"Daftra Knowledge Base","description":"Daftra","publisher":{"@id":"https:\/\/docs.daftra.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.daftra.com\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/docs.daftra.com\/en\/tutorial\/configuring-automatic-first-expired-first-out-fefo-allocation-in-sales-invoices-and-stock-issue-vouchers\/#webpage","url":"https:\/\/docs.daftra.com\/en\/tutorial\/configuring-automatic-first-expired-first-out-fefo-allocation-in-sales-invoices-and-stock-issue-vouchers\/","name":"Configuring Automatic First-Expired, First-Out (FEFO) Allocation in Sales Invoices and Stock Issue Vouchers - Daftra Knowledge Base","isPartOf":{"@id":"https:\/\/docs.daftra.com\/en\/#website"},"datePublished":"2026-11-25T12:33:54+00:00","dateModified":"2026-11-25T12:33:54+00:00","breadcrumb":{"@id":"https:\/\/docs.daftra.com\/en\/tutorial\/configuring-automatic-first-expired-first-out-fefo-allocation-in-sales-invoices-and-stock-issue-vouchers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.daftra.com\/en\/tutorial\/configuring-automatic-first-expired-first-out-fefo-allocation-in-sales-invoices-and-stock-issue-vouchers\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.daftra.com\/en\/tutorial\/configuring-automatic-first-expired-first-out-fefo-allocation-in-sales-invoices-and-stock-issue-vouchers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.daftra.com\/en\/"},{"@type":"ListItem","position":2,"name":"Configuring Automatic First-Expired, First-Out (FEFO) Allocation in Sales Invoices and Stock Issue Vouchers"}]}]}},"_links":{"self":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/160029","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":0,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tutorial\/160029\/revisions"}],"wp:attachment":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/media?parent=160029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/categories?post=160029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tags?post=160029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}