{"id":17980,"date":"2026-01-30T12:29:42","date_gmt":"2026-01-30T12:29:42","guid":{"rendered":"https:\/\/tenthplanet.in\/idempiere\/?p=17980"},"modified":"2026-01-30T12:29:43","modified_gmt":"2026-01-30T12:29:43","slug":"how-auto-allocation-works-in-idempiere","status":"publish","type":"post","link":"https:\/\/tenthplanet.in\/idempiere\/how-auto-allocation-works-in-idempiere\/","title":{"rendered":"How Auto Allocation Works in iDempiere"},"content":{"rendered":"\n<p>Auto Allocation is the mechanism iDempiere uses to <strong>automatically match completed <\/strong><strong>p<\/strong><strong>ayments\/<\/strong><strong>r<\/strong><strong>eceipts with open <\/strong><strong>i<\/strong><strong>nvoices<\/strong> for the same business partner. Its goal is to close the financial loop cleanly\u2014ensuring invoices move to <em>p<\/em><em>aid<\/em> status without manual line-by-line allocation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Starting Point (Preconditions)<\/strong><\/h2>\n\n\n\n<p>Auto allocation only works when financial documents are already in a stable state.<br>A <strong>Sales invoice (AR)<\/strong> must be <em>completed &amp; posted<\/em>, and a corresponding <strong>payment \/ receipt<\/strong> must also be <em>completed &amp; posted<\/em>. Both must belong to the <strong>same business partner<\/strong> and be in the <strong>same currency<\/strong>.<\/p>\n\n\n\n<p>At this stage:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The invoice shows <strong>o<\/strong><strong>pen<\/strong><strong> \/ <\/strong><strong>u<\/strong><strong>npaid<\/strong><\/li>\n\n\n\n<li>The payment exists but is <strong>not yet allocated<\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Launching Auto Allocation<\/strong><\/h2>\n\n\n\n<p>Auto allocation is triggered from <strong>p<\/strong><strong>ayment<\/strong><strong> and <\/strong><strong>r<\/strong><strong>eceipt \u2192 <\/strong><strong>a<\/strong><strong>uto <\/strong><strong>a<\/strong><strong>llocation<\/strong>.<br>Here, the user defines <em>how<\/em> the system should search and match documents.<\/p>\n\n\n\n<p>Key inputs guide the allocation logic:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Business <\/strong><strong>p<\/strong><strong>artner <\/strong><strong>g<\/strong><strong>roup<\/strong> or <strong>specific <\/strong><strong>b<\/strong><strong>usiness <\/strong><strong>p<\/strong><strong>artner<\/strong><\/li>\n\n\n\n<li><strong>AP \/ AR scope<\/strong> (Receivables only, Payables only, or both)<\/li>\n\n\n\n<li>Optional <strong>a<\/strong><strong>llocate <\/strong><strong>o<\/strong><strong>ldest <\/strong><strong>f<\/strong><strong>irst<\/strong><\/li>\n\n\n\n<li>Optional <strong>r<\/strong><strong>un<\/strong><strong> as <\/strong><strong>j<\/strong><strong>ob<\/strong> for background processing<\/li>\n<\/ul>\n\n\n\n<p>Once confirmed, iDempiere scans all eligible invoices and payments under those rules.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"445\" src=\"https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-2.png\" alt=\"\" class=\"wp-image-17986\" srcset=\"https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-2.png 1024w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-2-300x130.png 300w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-2-768x334.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Allocation Logic (What the System Does Internally)<\/strong><\/h2>\n\n\n\n<p>The system applies a deterministic matching sequence. It does <strong>not guess<\/strong>.<\/p>\n\n\n\n<p>First, it checks whether the <strong>payment explicitly references an invoice<\/strong>.<br>If not, it then matches by <strong>exact amount<\/strong> between open invoices and available payments.<br>If <em>a<\/em><em>llocate <\/em><em>o<\/em><em>ldest <\/em><em>f<\/em><em>irst<\/em> is enabled, invoices are consumed chronologically.<\/p>\n\n\n\n<p>Important behaviors:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Allocation is <strong>amount-based<\/strong>, not line-based<\/li>\n\n\n\n<li>Partial allocations are allowed<\/li>\n\n\n\n<li>Over\/Under payments are recorded explicitly (no silent adjustments)<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"218\" src=\"https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-1-1-1024x218.png\" alt=\"\" class=\"wp-image-17988\" srcset=\"https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-1-1-1024x218.png 1024w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-1-1-300x64.png 300w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-1-1-768x163.png 768w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-1-1-1536x326.png 1536w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-1-1.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Allocation Document Creation<\/strong><\/h2>\n\n\n\n<p>When matching succeeds, iDempiere automatically creates a <strong>payment allocation document<\/strong>.<\/p>\n\n\n\n<p>This document:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Has its own <strong>document no<\/strong><\/li>\n\n\n\n<li>Is <strong>c<\/strong><strong>ompleted<\/strong><strong> &amp; <\/strong><strong>p<\/strong><strong>osted<\/strong><\/li>\n\n\n\n<li>Contains <strong>allocation lines<\/strong> linking:\n<ul class=\"wp-block-list\">\n<li>Business Partner<\/li>\n\n\n\n<li>Payment<\/li>\n\n\n\n<li>Invoice<\/li>\n\n\n\n<li>Allocated Amount<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>This allocation document becomes the <strong>audit bridge<\/strong> between invoice and payment.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"674\" src=\"https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-2-1.png\" alt=\"\" class=\"wp-image-17989\" srcset=\"https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-2-1.png 1024w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-2-1-300x197.png 300w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-2-1-768x506.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Impact on Invoice and Payment<\/strong><\/h2>\n\n\n\n<p>After allocation:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <strong>Invoice<\/strong> is marked <strong>p<\/strong><strong>aid<\/strong><\/li>\n\n\n\n<li>The <strong>Payment<\/strong> shows allocation references<\/li>\n\n\n\n<li>The <strong>Allocation tab<\/strong> in the Invoice displays the linked payment and amount<\/li>\n<\/ul>\n\n\n\n<p>Financial integrity is preserved\u2014no balances disappear, everything is traceable.<\/p>\n\n\n\n<p><strong>Sales Order (50007) \u2192 Shipment (500006) \u2192 Invoice (1000003) \u2192 Payment (4000007) \u2192 Auto <\/strong><strong>a<\/strong><strong>llocated to <\/strong><strong>i<\/strong><strong>nvoice.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"678\" src=\"https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-3-1.png\" alt=\"\" class=\"wp-image-17993\" srcset=\"https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-3-1.png 1024w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-3-1-300x199.png 300w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2026\/01\/TenthPlanet-iDempiere-Purchase-AutoAllocation-3-1-768x509.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Accounting &amp; Controls<\/strong><\/h2>\n\n\n\n<p>From an accounting perspective:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>AR clearing is resolved<\/li>\n\n\n\n<li>Customer balance is updated correctly<\/li>\n\n\n\n<li>No extra journal entries are created beyond the allocation logic<\/li>\n<\/ul>\n\n\n\n<p>If allocation cannot be completed (amount mismatch, currency mismatch, missing documents), the system <strong>fails safely<\/strong> and leaves documents untouched.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Why Auto Allocation Matters<\/strong><\/h2>\n\n\n\n<p>Auto allocation removes repetitive finance work while enforcing strict accounting rules.<br>It is especially critical in high-volume environments where manual allocation would be error-prone and slow.<\/p>\n\n\n\n<p>Used correctly, it ensures:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Faster month-end closing<\/li>\n\n\n\n<li>Accurate customer balances<\/li>\n\n\n\n<li>Clean audit trails<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Summary Flow<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Invoice completed \u2192 payment received<\/li>\n\n\n\n<li>Auto allocation executed<\/li>\n\n\n\n<li>Allocation document created<\/li>\n\n\n\n<li>Invoice marked paid \u2192 books stay balanced<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Auto Allocation is the mechanism iDempiere uses to automatically match completed payments\/receipts with open invoices for the same business partner. [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[33],"tags":[],"class_list":["post-17980","post","type-post","status-publish","format-standard","hentry","category-purchase"],"acf":[],"_links":{"self":[{"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/posts\/17980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/comments?post=17980"}],"version-history":[{"count":0,"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/posts\/17980\/revisions"}],"wp:attachment":[{"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/media?parent=17980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/categories?post=17980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/tags?post=17980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}