BeyondERP.Newsletter
Menu

Setup step on the Inventory settlements cleanup page · Cost management

Clean up old inventory settlements

Delete canceled settlements, and optionally group closed settlements, for periods that are closed and audited.

Used by
Information technology manager, Inventory accountant
Business process
Manage data
Menu item
action:InventCostCleanUp
Setup steps
1 on this page

How this guide was checked

Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Only old canceled settlements are deleted”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA periodic job that groups closed inventory transactions or deletes canceled inventory settlements.
What you do hereUse this periodic task to free system resources by grouping or deleting old settlement data.
ExampleFor example, after the inventory closes for 2024 are final and audited, BEAT's IT manager runs the job with Delete canceled settlements posted before 1/1/2025, removing the canceled settlements left by reversed closes in 2024 while keeping everything from 2025 onward.
Inventory settlements cleanup page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

End user · Functional consultant

3How to do it

About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.

When to run it

When to run itAfter inventory close for the old periods is final and the business has confirmed that settlement detail before the chosen dates is no longer needed.
How oftenOn demand, as part of periodic database housekeeping, with dates far behind the current fiscal year.
Batch settingsSchedule it as a one-off batch job outside business hours; the first run on years of settlements can process a large volume.
What the output showsFewer inventory settlement records: closed settlements before the first date are grouped, and canceled settlements before the second date are deleted. If later reconciliation of inventory with finance fails for an old period, the dates were set too close to that period.

Source: Microsoft Learn

Setup steps on this page

Clean up old inventory settlements

Delete canceled settlements, and optionally group closed settlements, for periods that are closed and audited.

Steps from Microsoft

  1. Go to Cost management > Inventory accounting > Clean up > Inventory settlements cleanup.
  2. Agree with finance that settlement detail before the chosen date is no longer needed, and test the job in a test environment first.
  3. In Delete canceled settlements posted before, enter a date well before the current fiscal year; where your dialog also shows Group settlements posted before, fill it only if you want closed settlements grouped.
  4. Use Records to include to limit the run to certain items, and run it in the background outside business hours, then select OK.
  5. Open the settlements of a sample item and check that only canceled settlements before the date are gone.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Group settlements posted beforeClosed transaction settlements posted before this date are grouped. Grouped transactions can't be changed afterwards. The dialog captured in BEAT showed only the delete date below.Microsoft Learn
Delete canceled settlements posted beforeCanceled settlements posted before this date are deleted; they can then no longer be reconciled with finance transactions.Microsoft Learn 1/1/2025
Records to includeFilter that limits which items or inventory transactions the job processes.Checked in Dynamics 365
Run in the backgroundSends the job to the batch framework with a batch group, recurrence and alerts instead of running it while you wait.Checked in Dynamics 365

Common errors and fixes

MessageWhat to do
Old periods can no longer be reconciled with financeCanceled settlements that are deleted can't be reconciled with finance transactions. Keep the delete date well before any period that may still be audited. Microsoft Learn

Test checklist

  1. No settlement after the chosen dates was grouped or deleted.
  2. Inventory value for the closed periods is the same before and after the run.
  3. The batch job log shows no errors.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Clean up old inventory settlementsRun it once a year at most, with dates before the last audited fiscal year, and only after a trial in a test environment.Grouped settlements lose their transaction detail and deleted canceled settlements can't be reconciled with finance, so the dates must stay far from the current year.How far back must inventory settlement detail be kept?Using a date close to the current fiscal year, which removes detail the auditors still ask for.Test: Only old canceled settlements are deleted

Feature management and licence

Licence or add-inIn this system 2 roles can open this page, among them Inventory accountant and Information technology manager.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: inventory settlements are kept per legal entity, and the job cleans those of the current legal entity. Microsoft data model
Can it be undoneOne-way: Grouped or deleted settlements can't be restored.
If you change it laterGrouped closed transactions can no longer be changed, and deleted canceled settlements can't be reconciled with finance transactions. Microsoft Learn
Technical architect

6Technical

Menu itemaction:InventCostCleanUp Checked in Dynamics 365
FormDialog Checked in Dynamics 365
Who can open it

2 security roles. Select a role to see its duties and privileges.

  • RoleInformation technology managerSysServerITManager
    • DutyMaintain system settingsSysServerSettingsMaintain
      • PrivilegeClean up inventory settlementsInventCostCleanUpProcess
  • RoleInventory accountantInventCostAccountant
    • DutyMaintain inventory valuationInventClosingInventoryValuationMaintain
      • PrivilegeClean up inventory settlementsInventCostCleanUpProcess
Roles worked out from Microsoft's standard security setup and checked in a working Dynamics 365 system (version 10.0.49)
Roles to set it up and use itTo use itInventory accountant InventCostAccountantInformation technology manager SysServerITManagerGive people one of these roles. On this system, 2 roles can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:InventCostCleanUp
Data migrationLoad order: Inventory settlements cleanup has no data entity in Data management, so it can't be loaded from a file or a configuration template. It deletes or groups settlement records created by inventory close; nothing is migrated.Checked in Dynamics 365
Everyone

8Sources

To cite this step: CM-CLN-020, Clean up old inventory settlements. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/CM-CLN-020