BeyondERP.Newsletter
Menu

Setup step on the Delete leave and absence plan accruals page · Leave and absence

Delete plan accruals safely

Decide when to delete a plan's accruals and whether balance adjustments go with them.

See how to set it up Back to Leave and absence

Used by
Human resource assistant
Business process
Develop leave and absence policies
Menu item
LeaveAccrualDeleteController
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, “Delete keeps adjustments when told”, 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 process dialog that deletes leave accrual records for one leave plan from a chosen date onward.
What you do hereUse this page to remove accruals for a leave plan dated today or later, optionally including balance adjustments, for example before running the accrual again.
ExampleFor example, BEAT set the PTO-US plan to 10.00 hours a month instead of 8.00, so HR deletes the plan's accruals from today with Delete balance adjustments set to No, fixes the tier and accrues again.
Delete leave and absence plan accruals 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 itWhen accruals for a plan were run with wrong settings or dates and must be removed before you accrue again.
How oftenOn demand, only when accruals need correcting.
What the output showsAccrual records for the plan from the chosen date on are removed, and employee balances drop by those amounts. If past accruals are still there, remember the date can't be earlier than today.

Source: Microsoft Learn

Setup steps on this page

Delete plan accruals safely

Decide when to delete a plan's accruals and whether balance adjustments go with them.

Steps from Microsoft

  1. Go to Leave and absence > Manage leave > Delete leave and absence plan accruals.
  2. Select the Leave plan whose accruals are wrong; the delete works on one plan at a time.
  3. Set Delete balance adjustments to No unless the manual adjustments in that range must go too. It opens as Yes.
  4. Enter the Leave accrual date. It must be today or a later date; accruals from that date onward are deleted.
  5. Open Leave accrual audit to see the delete, then run Accrue leave and absence plans again to rebuild the balances.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Leave planThe leave plan whose accruals are deleted.Microsoft Learn
Delete balance adjustmentsAlso deletes the balance adjustments in the range. On the live system the dialog opens with this option set to Yes, so set it to No unless you mean to remove manual adjustments.Checked in Dynamics 365No
Leave accrual dateThe date from which accruals are deleted; it must be today or a future date.Microsoft Learn

Common errors and fixes

MessageWhat to do
Past accruals are still in the balance after the delete.The Leave accrual date must be today or later, so accruals dated before today can't be deleted with this job. Correct older balances with an adjustment instead. Microsoft Learn
Manual balance adjustments disappeared after the delete.Delete balance adjustments was left on Yes. The adjustments are gone and must be entered again; leave the option on No next time. Microsoft Learn

Test checklist

  1. Leave accrual audit lists the delete.
  2. A sample employee's balance no longer includes accruals from the chosen date on.
  3. Accruals in other plans are unchanged.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Delete plan accruals safelyDelete balance adjustments = No, Leave accrual date = the first date that is wrong (today or later), and run Accrue leave and absence plans for the same plan right after.The delete removes accruals for the plan from that date on, and with the option on it also removes balance adjustments, which can't be brought back.When may plan accruals be deleted?Leaving Delete balance adjustments on Yes, the value the dialog opens with, and losing the manual adjustments HR entered.Test: Delete keeps adjustments when told

Feature management and licence

Licence or add-inOn the live system, Human resource assistant runs this job.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyWorks on one leave plan at a time, for all its employees, from the chosen date onward. Microsoft Learn
Can it be undoneIrreversible: Deleted accruals and adjustments can't be restored; accruals can only be rebuilt by accruing again.
If you change it laterRunning the dialog deletes the matching accrual records, which changes the leave balances of the employees in that plan. Microsoft Learn
Technical architect

6Technical

Menu itemLeaveAccrualDeleteController Checked in Dynamics 365
FormSysOperationTemplateForm Checked in Dynamics 365
Who can open it

1 security role. Select a role to see its duties and privileges.

  • RoleHuman resource assistantHcmHumanResourceAssistant
    • DutyMaintain worker-specific leave and absence processesLeaveProcessMaintain
      • PrivilegeProcess the deletion of accruals for leave and absenceLeaveAccrualDeleteProcess
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 itHuman resource assistant HcmHumanResourceAssistantGive people one of these roles. On this system, 1 role can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=LeaveAccrualDeleteController
Data migrationLoad order: Delete leave and absence plan accruals has no data entity in Data management: it removes accrual transactions. Don't use it during data migration; correct loaded balances with a new bank transaction instead.Microsoft Learn
Everyone

8Sources

To cite this step: LA-USE-020, Delete plan accruals safely. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/LA-USE-020