<p><aclass="reference external image-reference"href="https://odoo-community.org/page/development-status"><imgalt="Beta"src="https://img.shields.io/badge/maturity-Beta-yellow.png"/></a><aclass="reference external image-reference"href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><imgalt="License: AGPL-3"src="https://img.shields.io/badge/licence-AGPL--3-blue.png"/></a><aclass="reference external image-reference"href="https://github.com/OCA/account-closing/tree/17.0/account_cutoff_picking"><imgalt="OCA/account-closing"src="https://img.shields.io/badge/github-OCA%2Faccount--closing-lightgray.png?logo=github"/></a><aclass="reference external image-reference"href="https://translation.odoo-community.org/projects/account-closing-17-0/account-closing-17-0-account_cutoff_picking"><imgalt="Translate me on Weblate"src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png"/></a><aclass="reference external image-reference"href="https://runboat.odoo-community.org/builds?repo=OCA/account-closing&target_branch=17.0"><imgalt="Try me on Runboat"src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png"/></a></p>
<p>This module generates expense/revenue accruals and prepaid
expense/revenue based on the status of orders, pickings and invoices.
The module is named <em>account_cutoff_accrual_picking</em> because it
initially only supported accruals ; support for prepaid expense/revenue
was added later (it should be renamed in later versions).</p>
<p>To understand the behavior of this module, let’s take the example of an
expense accrual. When you click on the button <em>Re-Generate Lines</em> of an
<em>Expense Accrual</em>:</p>
<olclass="arabic simple">
<li>Odoo will look for all incoming picking in Done state with a
<em>Transfer Date</em><= <em>Cut-off Date</em>. For performance reasons, by
default, the incoming picking dated before <em>Cut-off Date</em> minus 30
days will not be taken into account (this limit is configurable via
the field <em>Picking Analysis</em>). It will go to the stock moves of those
pickings and see if they are linked to a purchase order line.</li>
<li>Once this analysis is completed, Odoo has a list of purchase order
lines to analyse for potential expense accrual.</li>
<li>For each of these purchase order lines, Odoo will:<ul>
<li>scan the related stock moves in <em>done</em> state and check their
transfer date,</li>
<li>scan the related invoices lines and check their invoice date.</li>
</ul>
</li>
<li>If, for a particular purchase order line, the quantity of products
received before the cutoff-date (or on the same day) minus the
quantity of products invoiced before the cut-off date (or on the same
day) is positive, Odoo will generate a cut-off line.</li>
</ol>
<p>Now, let’s take the example of a prepaid expense. When you click on the
button <em>Re-Generate Lines</em> of a <em>Prepaid Expense</em>:</p>
<olclass="arabic simple">
<li>Odoo will look for all vendor bills dated before (or equal to)
<em>Cut-off Date</em>. For performance reasons, by default, the vendor bills
dated before <em>Cut-off Date</em> minus 30 days will not be taken into
account (this limit is configurable via the field <em>Picking
Analysis</em>). It will go to the invoice lines of those vendor bills and
see if they are linked to a purchase order line.</li>
<li>Once this analysis is completed, Odoo has a list of purchase order
lines to analyse for potential prepaid expense.</li>
<li>For each of these purchase order lines, Odoo will:<ul>
<li>scan the related stock moves in <em>done</em> state and check their
transfer date,</li>
<li>scan the related invoices lines and check their invoice date.</li>
</ul>
</li>
<li>If, for a particular purchase order line, the quantity of products
invoiced before the cutoff-date (or on the same day) minus the
quantity of products received before the cut-off date (or on the same
day) is positive, Odoo will generate a cut-off line.</li>
</ol>
<p>This module should work well with multiple units of measure (including
products purchased and invoiced in different units of measure) and in
<p>This module is part of the <aclass="reference external"href="https://github.com/OCA/account-closing/tree/17.0/account_cutoff_picking">OCA/account-closing</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <aclass="reference external"href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>