Run period charges at the end of each charge period
Accounts receivablePeriodic tasks
Action:MarkupPeriodChargeCalculateService
Used by
Accounts receivable clerk
Business process
Define freight and other charges for orders in Dynamics 365 Supply Chain Management
Menu item
Action:MarkupPeriodChargeCalculateService
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, “Shortfall becomes a free text invoice line”, 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 is
The Calculate period charge batch job, part of the Period charges feature.
What you do here
Calculates period charges and generates free text invoice lines for customers whose invoiced orders over a period don't meet the criteria in period charge rules; can run manually or on a recurrence.
Example
For example, BEAT's rule charges a 100.00 USD freight minimum per month; customer US-001 paid 45.00 USD of freight from 1 to 31 January, so the January run creates a free text invoice line of 55.00 USD for that customer.
The page in Dynamics 365. page title tab to open what to set or check
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 it
At the end of each charge period, after the sales invoices for the period are posted, so customers who missed the period charge rule thresholds are charged.
How often
Manually per period or on a recurrence; for a recurring job use Max invoice age instead of fixed dates.
Batch settings
Run it in batch with a recurrence; the Extra batch helpers parameter spreads large calculations across threads.
What the output shows
Free text invoices with one line per shortfall, for example the missing amount below a monetary threshold or a fixed charge below a quantity threshold. No invoice for a customer means the thresholds were met.
The invoice account to calculate charges for; leave blank for all.Microsoft Learn
Rule name
A single period charge rule to calculate; leave blank for all rules.Microsoft Learn
Max invoice age
The maximum age in days of invoices to include; used for recurring jobs.Microsoft Learn
Days per free text invoice
How many days each generated free text invoice covers.Microsoft Learn
Common errors and fixes
Message
What to do
A customer below the threshold gets no period charge
The rule or its line doesn't select the customer's invoices, for example a different currency or charge code on the rule line. Check the rule line criteria and run it again. Microsoft Learn
A recurring run charges the same invoices twice
Fixed From and To invoice dates were used on a recurring job. Leave them blank and use Max invoice age for recurring runs. Microsoft Learn
Test checklist
A customer below the threshold gets a free text invoice with the expected shortfall.
Line invoice base shows the rule line and the included invoices.
Schedule it monthly with Customer account and Rule name blank, From and To invoice date blank, Max invoice age set, and review the created free text invoices before posting.A recurring job uses Max invoice age instead of fixed dates, so each run picks up the right invoices.
PrivilegeMaintain period charge calculationMarkupPeriodChargeCalculateServiceMaintain
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 it
To use itAccounts receivable clerk CustInvoiceAccountsReceivableClerkGive people one of these roles. On this system, 1 role can run this page.Checked in Dynamics 365
Load order: Calculate period charge has no data entity in Data management, so it can't be loaded from a file or a configuration template. It creates free text invoices from rules and posted invoices, so there is nothing to migrate; the rules themselves are set up on Period charge rule.Microsoft Learn
Checked in a working Dynamics 365 system, version 10.0.49: the menu item, form, table and security, the page.
To cite this step: AR-PER-100, Run period charges at the end of each charge period. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/AR-PER-100