Sales and KSeF

An invoice that gets through KSeF the first timeSales documents built the way Comarch ERP XL does them — with a modern interface and KSeF built in, not bolted on.

You issue an invoice from an order or from scratch; the system calculates prices, discounts, VAT and instalments, keeps numbering and buyer data in order and, once the invoice is approved, sends it to KSeF (the Polish national e-invoicing system) in the background. Corrections, advance invoices, invoices in euro at the NBP rate and a printout with a QR code are part of the same flow. On tax matters and in the FA(3) mapping HQSFlow follows Comarch ERP XL.

Sales invoice (FS)Numbering per companyPrice listsPayments and instalmentsCorrections (FSK)Currencies at NBP ratesAdvance invoicesKSeF 2.0 and FA(3)PDF with KSeF QR codeGUS and VAT white list

What you get

The invoice you know from Comarch ERP XL

A record with General, Customer (buyer, recipient, payer), Payments, Header, VAT and KSeF tabs. Lines are edited in a grid like a spreadsheet, and prices, discounts and the VAT table — from net or from gross — are calculated by the server. Buffer, approval, cancellation, “Copy as new”.

Numbering set for each company

Document series, numbering schemes built from tokens ({SYMBOL}, {NR}, {MM}, {RRRR}, {SERIA}…) with a live preview, and document definitions for the company and its centres. The planned number shows right after “Add”; the final one is assigned on save — no gaps or duplicates, even when several people issue invoices at once.

Price lists with effective dates

Net and gross price types, item prices valid from a given day (a price rise can be entered in advance) and a default price type on the customer record. Each line shows the list price, the discount and the price after discount.

Payments, instalments, company account

Payment method and term, the company bank account, split payment, paid in full or in part. A payment can be split into instalments — “Add instalment” suggests the amount still left.

KSeF 2.0 without a separate program

FA(3) sending on approval, from the document or in bulk from the list. A background queue retries, the KSeF number and the UPO receipt land on the document, and the XML preview shows exactly what will be sent. An invoice already sent can't be cancelled — only corrected.

Company or operator credentials

The company's KSeF token or certificate and — as in Comarch ERP XL — an operator's own credential for manual sending (My profile → KSeF). Secrets are stored encrypted, and every submission shows who requested it and whose credential was used.

Corrections with “before / after”

Quantity, value, VAT rate, buyer data, collective (a discount for a period) and manual corrections to an invoice issued outside the system. Every line has a before and after state; the difference is a refund or an extra payment. The next correction starts from the state after the previous one.

Currencies at NBP rates

An invoice in euro or another currency at the NBP average rate (table A) from the business day before the tax point, fetched with one button. VAT in złoty, the VAT table in both currencies. A manual rate needs a permission.

Advance and final invoices

An advance invoice (FSL) for an order or contract, with the amount split across VAT rates in proportion to the order, plus its correction. The final invoice suggests the buyer's advances to settle and shows the amount “to pay after advances”.

PDF printout with a KSeF QR code

Original and copy, a QR code with the KSeF verification link, a “BUFOR” (draft) watermark on unapproved documents. A correction prints as a corrective invoice with the before, after and difference.

GUS and the VAT white list

Customer and company data fetched from GUS (the Polish business register) by NIP, REGON or KRS — with a comparison of what will change. VAT status and bank accounts checked against the VAT white list, with the result and request ID kept.

Details accounting will recognise

The cash accounting method on the document (by default from company settings), local government units and VAT groups, factoring, VAT exemption grounds, procedures on lines, references to contracts, orders and delivery notes. Every invoice lists its related documents — orders, corrections, advance invoices.

Screenshots from the working system

Sales in screenshots

The fictional company “Przykładowa Grupa Handlowa” and fictional customers. None of the documents in the screenshots was sent to KSeF.

The sales invoice list — filters for period, series, status and KSeF, draft and approved invoices, net, VAT and gross totals for the month
The invoice list. Period, series, status and KSeF state in the filters, totals for the whole selection under the table.
A sales invoice — lines with the order number, list price, discount, net price and VAT rate
An invoice from an order. Every line knows which order it came from.
The Payments tab — the company bank account and a payment split into two instalments with due dates and amounts
Payment in two instalments, with the company account and split payment.
An invoice in euro — the Currency section with the NBP average rate, table number and date, and lines valued in EUR
An invoice in EUR. The NBP average rate with the table number and the tax point date.
A final invoice from an order — lines and the Settled advances table with the advance invoice, rate and amount
The final invoice settles the advance invoice for the same order.
The FA(3) XML preview window of an invoice — header, seller and buyer data in the KSeF structure, Copy and Download buttons
FA(3) XML preview before sending — exactly what will go to KSeF.
The Header tab — a reference to the customer's order and a table of related documents with the order and a correction
References to orders and contracts, and related documents — the order, corrections, advances.
A quantity correction — the state before, after and the difference for a line, the amount to refund
A quantity correction. Before, after and difference in one row, “To refund” in the summary.
A value correction in the buffer — the new line price, the reason and the net difference
A value correction — you change the price “after”, the system does the rest.
The sales corrections list with the correction type, the corrected invoice, the customer and the total of differences
Corrections on their own list, with type and corrected invoice.
Editing a numbering scheme — a pattern with tokens, token buttons and a preview of the number FS-1/11/2026/SC
A numbering scheme with tokens and a live number preview.
The Prices tab of an item — default net and retail gross prices with effective dates
Item prices with effective dates — including a scheduled price rise.

Click a screenshot to see it at full resolution. All data in the screenshots is fictional. The application interface is in Polish.

An invoice modelled on Comarch ERP XL

Anyone who has issued invoices in Comarch ERP XL will feel at home: buyer, recipient and payer, buffer and approval, series, VAT registers, JPK procedures. HQSFlow is not a copy — lines are edited in a grid from the keyboard, calculations run on the server, and the invoice shows totals and the amount due as you type. An approved document is read-only; its description, attachments and selected attributes can still be filled in later.

A number that adds up

Each company in the database has its own series, numbering schemes and document definitions — also separate ones for centres in the structure. A scheme is built from tokens, and the preview shows what the number will look like. The counter resets every month, every year or never. The number is assigned at save time in a single transaction, so two people issuing an invoice in the same second won’t get the same number.

KSeF inside the document flow

KSeF is configured on the company record: environment, token or certificate (stored encrypted in the database) and a “Test connection” button. An invoice can go to KSeF:

  • automatically — on approval, through a background queue that retries failed attempts by itself,
  • manually — with “Send to KSeF” on the document, using the company credential or the operator’s own,
  • in bulk — from the invoice list.

The KSeF number, the UPO receipt (kept as an attachment of the document) and the verification link land on the invoice, and the printout gets a QR code. The KSeF tab shows the communication history, who issued the document, who requested sending and with which credential. We have tested the integration on the Ministry of Finance test environment.

Corrections, currencies and advances — the Comarch ERP XL way

A correction is one document type, and you choose its kind under “Correct”. A buyer data correction goes to KSeF without lines, a collective correction covers many invoices of a buyer for a period, a manual correction refers to an invoice issued outside the system. An invoice in a foreign currency takes the NBP rate according to art. 31a of the Polish VAT Act, and its correction takes the rate of the corrected invoice. An advance invoice is created from an order or contract, and the final invoice settles advances in each VAT rate — in full or in part.

Let's talk about your company

Tell us how many companies, customers and items you have and what you use today. We will show HQSFlow on examples close to yours and tell you honestly what it already handles — and what it doesn't yet.

Book a demo

We answer every request personally, usually within one working day.

Please enter your name.
Please enter a valid e-mail address.
Please check the phone number or leave the field empty.
Please tell us briefly what the demo should cover.
How we handle your data

The controller of your data is HQS Systems. We use what you send here only to answer your request and to carry on the resulting conversation, and we keep it no longer than that requires. You can ask us at any time to show, correct or delete your data by writing to office@hqs.cloud.