Enhanced Combined Shipments and Invoice Rule
The module introduces Invoicing Rules: rules that define how shipments and return receipts are grouped and turned into invoices and credit memos. The rule is proposed automatically on sales orders and lines, follows the documents up to the posted shipment, and is applied by the combined invoicing functions.
The standard Business Central functions Combine Shipments and Combine Return Receipts are automatically replaced by the enhanced versions:
- Enhanced Combine Shipments (instead of Combine Shipments);
- Enhanced Combine Return Receipts (instead of Combine Return Receipts).
Search for Invoicing Rules using the search function (magnifying glass). The list shows the rules (Code, Description); use New or open an existing rule to access the card.
| Field | Description |
|---|---|
| Code | Rule identifier. |
| Description | Rule description. |
| Copy Comment Lines | Copies the comment lines of the shipment (or return receipt) to the invoice, keeping their position relative to the invoiced lines. |
| Calculate Invoice Discount | Recalculates the invoice discount at the end of invoicing. |
| Add Shipment Totals | After the lines of each shipment, adds a "Total shipment amount" text line with currency and shipment amount. |
| Add External Document References | Before the lines of each shipment, adds a "Your reference … of …" line with the external document no. and the order document date. |
| Sort Lines | When set to Description, the lines of each shipment are copied to the invoice in description order instead of the original order. |
| Prices Including VAT | Whether the generated invoices/credit memos have prices including VAT. Documents with different settings are never combined. |
| Break per Location Code | Creates separate invoices for each location code of the shipped lines; the location is set on the invoice. |
| Break per Sell-To | Creates separate invoices for each sell-to customer (keeping the bill-to customer of the shipment). Without this option the invoice is issued to the bill-to customer. |
| Prevent Zero Prices | Prevents posting the invoice (or credit memo) if it contains lines with a quantity but a zero unit price. |
Depending on other active modules, the following may also be available: Calculate Customer Charges, Add Standard Texts, Apply Stamp, Break per Store No., Add Store Name, DPC Invoicing, Fattura Document Type and Generate Split Lines. These options are also run when the rule is applied to the invoice (see below).
| Page | Field | Effect |
|---|---|---|
| Sales & Receivables Setup | Default Invoicing Rule | Rule proposed on every new sales document. |
| Customer Card (Invoicing FastTab) | Invoicing Rule | Rule proposed when the customer is entered on a sales document; takes precedence over the default. |
| Order Type card | Invoicing Rule | Rule proposed on documents with that order type. |
| Store Categories | Invoicing Rule | Rule applied to invoices generated for the stores of the category. |
| Item Sales Setup | Invoicing Rule | Rule assigned to individual sales lines of the item (or item discount group) matching the setup. |
| Price List Lines | Invoicing Rule | Rule associated with the price line (column visible when prices are visible). |
The Invoicing Rule field is available on:
- Sales Order and Sales Return Order, on the Invoice Details FastTab;
- sales order and return order lines (hidden column, can be shown via Personalize);
- Sales Invoice and Sales Credit Memo (Credit Memo Details FastTab);
- the Posted Sales Shipment - Update page (Update Document), where it can be corrected after posting.
New lines inherit the rule from the header. When the rule is changed on the header, all lines without a rule or with the previous rule are updated; lines with a different specific rule are left unchanged. An order can therefore contain lines with different rules, which are invoiced on separate documents.
- Search for Combine Shipments (Enhanced Combine Shipments opens automatically).
- Set the shipment filters: Posting Date, Bill-to Customer No., Order Type.
- In the Options section enter:
- Posting Date: used as posting, document, order and shipment date of the created invoices (mandatory);
- Invoicing Rule: optional filter to invoice only lines with specific rules.
- Choose OK. At the end, a message shows how many invoices were created or updated.
How it works:
- only shipped and not yet invoiced lines are considered;
- lines are grouped into invoices by bill-to customer, salesperson, line invoicing rule, company bank account, prices including VAT setting and, when active, payment terms; the breaks defined by the rule (location, sell-to, store) are added;
- if Combine Shipments is not enabled on the order, a dedicated invoice is created for that order, with the order number as external document no.;
- if an open invoice previously generated with the same characteristics already exists, lines are added to it instead of creating a new one; generated invoices are marked as Combined Shipment;
- a blank separator line is inserted after the lines of each shipment;
- line prices are taken from the shipment and are not recalculated;
- at the end, the invoicing rule is applied to each invoice (invoice discount and additional options).
- Search for Combine Return Receipts (Enhanced Combine Return Receipts opens automatically).
- Set the filters (Posting Date, Bill-to Customer No., Order Type) and, under Options, the Posting Date and the optional Invoicing Rule filter (and, when available, Add Standard Texts).
- Choose OK: a message shows how many credit memos were created or updated.
Grouping follows the same rules as combined invoicing (customer, salesperson, rule, bank account, prices including VAT, non-combinable return order), with the rule's Copy Comment Lines and Sort Lines options.
-
Apply Invoicing Rule (Sales Invoice, Actions menu): reapplies the rule to the invoice, recalculating the invoice discount and additional options; previously added items (charges, stamp, standard texts) are removed first and then recreated.
-
Finalize Credit Memos (Sales Credit Memos list): on the selected credit memos, after confirming the options, repeats the final operations (for example standard texts).
-
The rule is also applied to invoices created directly from a single shipment.
-
When lines are copied from a shipment to a return order, they take the rule of the return order header.
-
With Prevent Zero Prices, posting is blocked with the message " <no.> has no price".