BeyondERP.Newsletter
Menu

Setup step on the Calculate period charge page · Accounts receivable

Run period charges at the end of each charge period

Charge customers whose invoiced orders over the period don't meet the period charge rules.

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 isThe Calculate period charge batch job, part of the Period charges feature.
What you do hereCalculates 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.
ExampleFor 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.
Calculate period charge 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 itAt 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 oftenManually per period or on a recurrence; for a recurring job use Max invoice age instead of fixed dates.
Batch settingsRun it in batch with a recurrence; the Extra batch helpers parameter spreads large calculations across threads.
What the output showsFree 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.

Source: Microsoft Learn

Setup steps on this page

Run period charges at the end of each charge period

Charge customers whose invoiced orders over the period don't meet the period charge rules.

Steps from Microsoft

  1. Go to Accounts receivable > Periodic tasks > Calculate period charge.
  2. On the Parameters FastTab, select a Customer account (invoice account) and a Rule name, or leave both blank to calculate for all accounts and rules.
  3. For a one-time run, enter From invoice date and To invoice date; for a recurring job, leave them blank and set Max invoice age in days.
  4. In Days per free text invoice, enter how many days each generated free text invoice covers.
  5. Schedule it with a recurrence if needed, then open All free text invoices and use Line invoice base to see which rule line created each charge.

Source: Microsoft Learn

Fields on the page

FieldWhat it means
Customer accountThe invoice account to calculate charges for; leave blank for all.Microsoft Learn
Rule nameA single period charge rule to calculate; leave blank for all rules.Microsoft Learn
Max invoice ageThe maximum age in days of invoices to include; used for recurring jobs.Microsoft Learn
Days per free text invoiceHow many days each generated free text invoice covers.Microsoft Learn

Common errors and fixes

MessageWhat to do
A customer below the threshold gets no period chargeThe 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 twiceFixed 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

  1. A customer below the threshold gets a free text invoice with the expected shortfall.
  2. Line invoice base shows the rule line and the included invoices.
  3. Customers that met the thresholds get no invoice.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Run period charges at the end of each charge periodSchedule 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.Run period charges by hand or as a recurring job?Posting the generated free text invoices without checking Line invoice base, so a wrong rule line charges customers.Test: Shortfall becomes a free text invoice line

Feature management and licence

Licence or add-inIn this system 1 role can open this page, among them Accounts receivable clerk.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: the job evaluates the period charge rules and invoices of the legal entity you run it in. Microsoft Learn
Can it be undoneReversible: The job creates free text invoices; delete them before posting if the charge is wrong.
If you change it laterCreates free text invoices for period charges based on the active period charge rules. Microsoft Learn
Technical architect

6Technical

Menu itemAction:MarkupPeriodChargeCalculateService 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.

  • RoleAccounts receivable clerkCustInvoiceAccountsReceivableClerk
    • DutyMaintain customer invoice transactionsCustInvoiceCustomerInvoiceTransMaintain
      • 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 itTo use itAccounts receivable clerk CustInvoiceAccountsReceivableClerkGive 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=Action:MarkupPeriodChargeCalculateService
Data migrationLoad 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
Everyone

8Sources

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