BeyondERP.Newsletter
Menu

Setup step on the Invoice page · Accounts receivable

Post sales order invoices in a recurring batch

Invoice shipped sales orders automatically on a schedule.

Used by
Accounts receivable clerk, Accounting supervisor, Rental coordinator agent and 1 more role
Business process
Invoice sales orders in Dynamics 365 Supply Chain Management
Menu item
Action:SalesFormLetter_InvoiceMainMenuWrapper
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, “Recurring batch invoices new shipments”, 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 page for posting sales order invoices in a batch.
What you do hereSelect the orders to invoice and run the posting as a batch job, optionally with a recurrence, so sales order invoices are posted without manual work.
ExampleScheduling recurring invoice posting: open the page, choose Select, then Batch, set Batch processing to Yes and set the recurrence to Days.
Invoice 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 shipped sales orders should be invoiced automatically, after packing slips are posted.
How oftenOn a recurrence that matches your billing rhythm, for example daily as in the Microsoft example.
Batch settingsRun it as a recurring batch job with Late selection on, so each run picks up the orders that are ready at that moment.
What the output showsPosted sales invoices for the selected orders; the invoice remainder on each order line is reduced and fully invoiced orders get the status Invoiced. An order that stays open usually failed the credit limit check or had no quantity to invoice for the chosen Quantity option.

Source: Microsoft Learn

Setup steps on this page

Post sales order invoices in a recurring batch

Invoice shipped sales orders automatically on a schedule.

Steps from Microsoft

  1. Go to Accounts receivable > Invoices > Batch invoicing > Invoice.
  2. Select Select and choose the sales orders to invoice, for example all orders with posted packing slips, and then confirm the query.
  3. Under Parameters, keep Posting on Yes to post the invoices; turn it off only when you want a pro forma document instead.
  4. Set Late selection to Yes when the job recurs, so the order query runs each time the batch job starts instead of only now.
  5. Choose Print invoice, Print (Current or After), Check credit limit and Summary update for, for example Invoice account to combine several orders into one invoice per customer.
  6. Select Batch, set Batch processing to Yes and define a Recurrence such as Days, then check the posted invoices in Open customer invoices after the first run.

Source: Microsoft Learn

Fields on the page

FieldWhat it means
QuantityWhich quantities the invoice is based on, such as All, Picked or Packing slip.Microsoft Learn
PostingTurn on to post the invoice; turn off to print a pro forma document instead.Microsoft Learn
Print invoicePrints the invoice; turn off to post without printing.Microsoft Learn
PrintPrints after each invoice is updated (Current) or after all invoices are updated (After).Microsoft Learn
Check credit limitWhat the credit limit check looks at: nothing, the balance, or the balance plus deliveries and open orders.Microsoft Learn
Summary update forHow several sales orders are combined into invoices, for example by invoice account.Microsoft Learn
Late selectionRuns the selection query when the batch job runs instead of now.Microsoft Learn

Common errors and fixes

MessageWhat to do
Invoices are printed before posting finishes and not in the expected orderSet Print to After, so documents print once all invoices are updated, sorted as set on Form sorting. Microsoft Learn
Packing slip cannot be found or has not been postedThe order has no posted packing slip for the selected Quantity Packing slip. Post the packing slip first (for direct delivery, the purchase order product receipt), then invoice. Microsoft Learn

Test checklist

  1. Each selected order has a posted invoice in Open customer invoices.
  2. Orders combined by Summary update for share one invoice per invoice account.
  3. The batch job history shows the recurring runs without errors.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Post sales order invoices in a recurring batchA recurring batch job with Late selection on, Quantity Packing slip, Print After and Summary update for Invoice account when customers want one invoice per run.Late selection runs the query when each batch run starts, so new shipments are picked up; Print After prints once all invoices are updated, in the Form sorting order.How should shipped orders be combined into invoices?Scheduling the job without Late selection, so every run invoices only the orders selected on the day the job was created.Test: Recurring batch invoices new shipments

Feature management and licence

Licence or add-inIn this system 4 roles can open this page, among them Accounts receivable clerk, Accounting supervisor, Rental manager and Rental coordinator agent.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: the job invoices the sales orders of the legal entity it runs in. Microsoft data model
Can it be undoneIrreversible: Posted invoices are corrected with a credit note.
If you change it laterPosts customer invoices, updates the customer balance, the ledger and inventory, and changes the sales order status. Microsoft Learn
Technical architect

6Technical

Menu itemAction:SalesFormLetter_InvoiceMainMenuWrapper Checked in Dynamics 365
FormSalesEditLines Checked in Dynamics 365
Who can open it

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

  • RoleAccounting supervisorLedgerAccountingSupervisor
    • DutyMaintain sales complementary invoicesSalesComplementaryInvoiceMaintain
      • PrivilegeMaintain fiscal referenceSalesFiscalReferenceMaintain_BR
  • RoleAccounts receivable clerkCustInvoiceAccountsReceivableClerk
    • DutyMaintain customer invoice transactionsCustInvoiceCustomerInvoiceTransMaintain
      • PrivilegeSalesCFDIReferenceMaintain_MX
      • PrivilegeMaintain fiscal referenceSalesFiscalReferenceMaintain_BR
      • PrivilegeMaintain customer invoicesSalesFormLetter_InvoiceMaintain
    • DutyMaintain sales complementary invoicesSalesComplementaryInvoiceMaintain
      • PrivilegeMaintain fiscal referenceSalesFiscalReferenceMaintain_BR
  • RoleRental coordinator agentRentalCoordinatorAgent
    • DutyCreate customer invoiceRentalCreateCustomerInvoice
      • PrivilegeMaintain customer invoicesSalesFormLetter_InvoiceMaintain
  • RoleRental managerRentalManager
    • DutyCreate customer invoiceRentalCreateCustomerInvoice
      • PrivilegeMaintain customer invoicesSalesFormLetter_InvoiceMaintain
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 CustInvoiceAccountsReceivableClerkAccounting supervisor LedgerAccountingSupervisorRental manager RentalManagerRental coordinator agent RentalCoordinatorAgentGive people one of these roles. On this system, 4 roles can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=Action:SalesFormLetter_InvoiceMainMenuWrapper
Data migrationLoad order: Batch invoicing for sales orders has no data entity in Data management, so it can't be loaded from a file or a configuration template. It only reads posted data, so there is nothing to load for it; it shows data once invoices and orders are posted in the environment.Checked in Dynamics 365
Everyone

8Sources