🚫 Skip KSeF Lines
The Skip KSeF Lines module allows you to exclude selected lines from export to the KSeF invoice. The Skip in KSeF flag can be set on the item card – then every document line with that item will be automatically skipped. The flag can also be set manually directly on a sales or service document line.
Key Features
- Automatic skipping of lines during KSeF export based on the item card setting.
- Manual marking of individual document lines to be skipped.
- Automatic skipping of shipment number comments – text lines automatically inserted by the "Get Shipment Lines" function can be marked to be skipped in KSeF (configurable in settings).
- Support for sales and service documents – orders, invoices, credit memos.
- Flag value automatically copied from the item card to the document line when the item is selected.
- Lines marked to be skipped are not included in the KSeF invoice structure – they are not visible to KSeF.
Supported Documents
| Document | Supported |
|---|---|
| Sales Order | ✅ |
| Sales Invoice | ✅ |
| Sales Credit Memo | ✅ |
| Service Order | ✅ |
| Service Invoice | ✅ |
| Service Credit Memo | ✅ |
How It Works
- On the Item Card in the KSeF Helper section, check the Skip in KSeF field for items whose lines should not be included in the KSeF invoice.
- When creating a sales or service document, when the user selects an item with the flag enabled, the Skip in KSeF value is automatically copied to the document line.
- If needed, the flag can also be set or cleared manually directly on the document line (the field is available on line sub-forms, hidden by default – it must be added via personalization).
- During KSeF export, the system filters lines and skips all lines with the Skip in KSeF flag checked. These lines are not included in the KSeF invoice structure.
⚠️ Limitation: You cannot mark a line with a non-zero amount to be skipped. Attempting to check the Skip in KSeF flag on a line with a non-zero amount will display an error. The validation also works in the other direction – if a line is already marked with the Skip in KSeF flag, changing the amount to a non-zero value is blocked. Skipping lines with an amount would violate the KSeF document structure.
Usage Examples
Skipping Shipment Number Comments
When using the Get Shipment Lines function on a sales invoice, Business Central automatically inserts text lines with shipment numbers. These lines are often not needed in the KSeF structure. To automatically mark them for skipping, enable the Skip Shipment No. Comments option in KSeF Helper Settings.
When the option is enabled, every text line automatically inserted from a shipment receives the Skip in KSeF = yes flag and does not go into the KSeF invoice.
Example: A sales invoice created from two shipments – the system automatically inserts lines "Shipment No. WS-001" and "Shipment No. WS-002". With the option enabled in settings, these lines are automatically marked as Skip in KSeF and do not appear in the KSeF invoice structure.
Skipping Comments in AdditionalDescription
Sales documents often contain Comment type lines that serve as additional descriptions – e.g., delivery conditions, notes for the recipient, or promotion information. Such lines have no commercial value but could be exported to the AdditionalDescription section in the KSeF invoice. To prevent this, simply check the Skip in KSeF flag on the document line – the comment line will be skipped during export.
Example: A sales invoice has a Comment type line with "Additional delivery information". Before posting, simply check the Skip in KSeF field on that line – the comment line will not appear in the KSeF structure but will remain on the document in BC.
Skipping Lines Without Value (e.g., pallets, packaging)
Some sales documents contain auxiliary lines that have no commercial value – e.g., pallets, returnable packaging, or logistical elements. Such lines can cause problems in the KSeF invoice structure (e.g., a line with zero value). Marking these items with the Skip in KSeF flag allows only the relevant commercial lines to be exported to KSeF.
Example: Item "EUR PALLET" with a price of 0.00 – after checking Skip in KSeF on the item card, the pallet line will not go into the electronic invoice. The KSeF invoice will contain only commercial items and services with a value.
Configuration
Item Card
- Open the Item Card page.
- Go to the KSeF Helper section.
- Check the Skip in KSeF field so that lines with this item are automatically skipped in KSeF export.
Document Lines
The Skip in KSeF field is available on line sub-forms of the following documents:
- Sales Order
- Sales Invoice
- Sales Credit Memo
- Service Order
- Service Invoice
- Service Credit Memo
The field is hidden by default. To display it, use the Personalize option on the line sub-form.
On posted documents (e.g., posted sales invoice) the field is visible as information – the value has already been copied from the source document.