# Generate split payment mandatory

For sales documents subject to split payment, Business Central requires the dedicated VAT reversal lines to be generated. This feature makes these lines **mandatory** at posting time and allows them to be generated automatically:

- during batch posting of sales invoices and credit memos;
- when invoices are created through invoicing rules (for example when combining shipments).

A document is considered subject to split payment when it contains at least one line with VAT greater than zero whose VAT business and product posting group combination matches a reversal combination defined in **VAT Posting Setup** (split payment reversed VAT fields).


When posting an invoice, a credit memo or an order with the invoice option, if the document is subject to split payment but contains no automatically generated lines, posting is stopped with the message:

> Generate split payment lines first

In this case, generate the lines with the standard Business Central split payment action on the document, or use the options described below.


The **Batch Post Sales Invoices** and **Batch Post Sales Credit Memos** request pages include a new option:

| Field | Description |
|---|---|
| Generate Split Lines | When enabled, for documents subject to split payment that do not yet contain split lines, these lines are generated automatically before posting, avoiding the block. |


1. Open **Batch Post Sales Invoices** (or **Batch Post Sales Credit Memos**).
2. On the **Options** tab, enable **Generate Split Lines**.
3. Set the other parameters and filters, then confirm with **OK**.


The **Invoicing Rule** card includes the field:

| Field | Description |
|---|---|
| Generate Split Lines | When enabled, whenever an invoice is created or updated by applying the rule and the document is subject to split payment, existing split lines are deleted and regenerated automatically. |


- Before regenerating split lines, automatically generated lines with a zero amount including VAT are removed to avoid duplicates.
- If the document is not subject to split payment, no lines are generated and posting proceeds normally.