{"id":160403,"date":"2026-12-02T10:45:49","date_gmt":"2026-12-02T10:45:49","guid":{"rendered":"https:\/\/docs.daftra.com\/faq\/why-does-a-line-with-no-expiry-date-appear-with-fefo-on-and-does-fefo-pick-expired-dates\/"},"modified":"2026-12-02T10:45:49","modified_gmt":"2026-12-02T10:45:49","slug":"why-does-a-line-with-no-expiry-date-appear-with-fefo-on-and-does-fefo-pick-expired-dates","status":"publish","type":"faq","link":"https:\/\/docs.daftra.com\/en\/faq\/why-does-a-line-with-no-expiry-date-appear-with-fefo-on-and-does-fefo-pick-expired-dates\/","title":{"rendered":"Why does a line with no expiry date appear with FEFO on, and does FEFO pick expired dates?"},"content":{"rendered":"<div dir=\"ltr\" lang=\"en\">\n<p style=\"margin:0 0 14px;line-height:1.9;font-size:16px;color:#1f2430;\">With <strong style=\"color:#111827;\">Automatically Assign Oldest Expiry Date (FEFO)<\/strong> on, the line&#x27;s quantity is spread over valid batches (expiry on or after the invoice date) from nearest to farthest by available stock. If valid batches are not enough and <strong style=\"color:#111827;\">Negative Inventory<\/strong> is set to <strong style=\"color:#111827;\">Allow for all items<\/strong>, the remaining quantity goes on an <strong style=\"color:#111827;\">extra line with no batch<\/strong>; otherwise only the available quantity is assigned and a message shows, such as &#8220;Insufficient valid stock to fulfill this quantity. Available: 30 units across non-expired batches. Expired batches must be assigned manually if needed.&#8221;<\/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;\">Example: 45 requested with 20 + 10 available \u2192 lines of 20, 10 and 15 (no batch) when negative inventory is allowed for all items, or two lines of 20 and 10 with the message when it is not.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">On the outbound requisition FEFO leaves a line that already has a batch as it is; on the invoice it skips quantities other lines of the same invoice already took from the same batch.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">Expired batches are never auto-assigned, even when selling expired items is allowed.<\/li>\n<li style=\"margin-bottom:10px;line-height:1.9;font-size:16px;color:#1f2430;\">Lines stay editable before saving: pick a batch for the last line manually, reduce the quantity, or delete it.<\/li>\n<\/ul>\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;\">Cause<\/th>\n<th style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;background:#f6f8fb;font-weight:700;\">Fix<\/th>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Valid stock is below the request.<\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Reduce quantity or add stock.<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Remaining stock is in expired batches.<\/td>\n<td style=\"border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top;\">Pick the batch manually if selling expired items is allowed.<\/td>\n<\/tr>\n<\/table>\n<\/div>\n","protected":false},"author":17,"template":"","categories":[2185],"tags":[34047,34048,34053,33066,34051,34056,34057,34049,34046,34052,34045,34050,34055,34054],"class_list":["post-160403","faq","type-faq","status-publish","hentry","category-product-tracking","tag-automatically-assign-oldest-expiry-date-fefo","tag-does-fefo-pick-expired-dates","tag-edit-fefo-lines","tag-expiry-date-tracking","tag-extra-line-with-no-batch","tag-fefo-example-45-requested","tag-fefo-quantity-split-across-batches","tag-fefo-valid-batches-only","tag-fefo-with-no-batch-line","tag-insufficient-stock-fefo","tag-line-with-no-expiry-date-appears","tag-nearest-expiry-date-first","tag-sales-invoice-fefo","tag-sell-expired-products"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Why does a line with no expiry date appear with FEFO on, and does FEFO pick expired dates? - 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\/faq\/why-does-a-line-with-no-expiry-date-appear-with-fefo-on-and-does-fefo-pick-expired-dates\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Why does a line with no expiry date appear with FEFO on, and does FEFO pick expired dates? - Daftra Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"With Automatically Assign Oldest Expiry Date (FEFO) on, the line&#x27;s quantity is spread over valid batches (expiry on or after the invoice date) from nearest to farthest by available stock. If valid batches are not enough and Negative Inventory is set to Allow for all items, the remaining quantity goes on an extra line with [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.daftra.com\/en\/faq\/why-does-a-line-with-no-expiry-date-appear-with-fefo-on-and-does-fefo-pick-expired-dates\/\" \/>\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=\"1 minute\" \/>\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\/faq\/why-does-a-line-with-no-expiry-date-appear-with-fefo-on-and-does-fefo-pick-expired-dates\/#webpage\",\"url\":\"https:\/\/docs.daftra.com\/en\/faq\/why-does-a-line-with-no-expiry-date-appear-with-fefo-on-and-does-fefo-pick-expired-dates\/\",\"name\":\"Why does a line with no expiry date appear with FEFO on, and does FEFO pick expired dates? - Daftra Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/#website\"},\"datePublished\":\"2026-12-02T10:45:49+00:00\",\"dateModified\":\"2026-12-02T10:45:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/docs.daftra.com\/en\/faq\/why-does-a-line-with-no-expiry-date-appear-with-fefo-on-and-does-fefo-pick-expired-dates\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.daftra.com\/en\/faq\/why-does-a-line-with-no-expiry-date-appear-with-fefo-on-and-does-fefo-pick-expired-dates\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.daftra.com\/en\/faq\/why-does-a-line-with-no-expiry-date-appear-with-fefo-on-and-does-fefo-pick-expired-dates\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.daftra.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Why does a line with no expiry date appear with FEFO on, and does FEFO pick expired dates?\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Why does a line with no expiry date appear with FEFO on, and does FEFO pick expired dates? - 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\/faq\/why-does-a-line-with-no-expiry-date-appear-with-fefo-on-and-does-fefo-pick-expired-dates\/","og_locale":"en_US","og_type":"article","og_title":"Why does a line with no expiry date appear with FEFO on, and does FEFO pick expired dates? - Daftra Knowledge Base","og_description":"With Automatically Assign Oldest Expiry Date (FEFO) on, the line&#x27;s quantity is spread over valid batches (expiry on or after the invoice date) from nearest to farthest by available stock. If valid batches are not enough and Negative Inventory is set to Allow for all items, the remaining quantity goes on an extra line with [&hellip;]","og_url":"https:\/\/docs.daftra.com\/en\/faq\/why-does-a-line-with-no-expiry-date-appear-with-fefo-on-and-does-fefo-pick-expired-dates\/","og_site_name":"Daftra Knowledge Base","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"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\/faq\/why-does-a-line-with-no-expiry-date-appear-with-fefo-on-and-does-fefo-pick-expired-dates\/#webpage","url":"https:\/\/docs.daftra.com\/en\/faq\/why-does-a-line-with-no-expiry-date-appear-with-fefo-on-and-does-fefo-pick-expired-dates\/","name":"Why does a line with no expiry date appear with FEFO on, and does FEFO pick expired dates? - Daftra Knowledge Base","isPartOf":{"@id":"https:\/\/docs.daftra.com\/en\/#website"},"datePublished":"2026-12-02T10:45:49+00:00","dateModified":"2026-12-02T10:45:49+00:00","breadcrumb":{"@id":"https:\/\/docs.daftra.com\/en\/faq\/why-does-a-line-with-no-expiry-date-appear-with-fefo-on-and-does-fefo-pick-expired-dates\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.daftra.com\/en\/faq\/why-does-a-line-with-no-expiry-date-appear-with-fefo-on-and-does-fefo-pick-expired-dates\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.daftra.com\/en\/faq\/why-does-a-line-with-no-expiry-date-appear-with-fefo-on-and-does-fefo-pick-expired-dates\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.daftra.com\/en\/"},{"@type":"ListItem","position":2,"name":"Why does a line with no expiry date appear with FEFO on, and does FEFO pick expired dates?"}]}]}},"_links":{"self":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/faq\/160403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/types\/faq"}],"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\/faq\/160403\/revisions"}],"wp:attachment":[{"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/media?parent=160403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/categories?post=160403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.daftra.com\/en\/wp-json\/wp\/v2\/tags?post=160403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}