Hi,
By default, the Swiss QR Bill is rendered as a separate report in BC, which results in two PDFs instead of one unified layout. This behavior is by design, but it can be overridden with a clean report extension strategy.
Hereās how to merge the QR Bill into your custom Sales Invoice report:
First, disable the automatic generation of the separate QR Bill PDF:
- Go to QR-Bill Setup and uncheck Sales Invoice under Document Types Enabled for QR-Bills.
- Alternatively, remove the QR Bill entry from Report Selection ā Sales. This prevents the system from generating the second report.
Next, embed the QR Bill layout directly into your custom Sales Invoice report:
- Extend your custom report using AL and include the necessary QR Bill fields in the dataset:
- IBAN or QR-IBAN
- Reference number
- Creditor and payer details
- Amount
- You can export the layout of the standard QR Bill report and reuse its RDLC components.
- Position the QR Bill section at the bottom of your invoice layout, ensuring no page breaks interfere with rendering.
If youāre using RDLC, make sure the QR Bill section is placed in the footer or bottom group of the main body, and that it respects the invoiceās page height constraints.
For advanced scenarios, you can also generate the QR code using AL or external services and embed it as an image in the report. This gives you full control over placement and styling.
Helpful Reference
QR-Bill Management ā Microsoft Learn
Generate Swiss QR Code without external services ā Yun Zhu
QR-Bill App Integration ā Continia
If you find this helpful, feel free to mark this as the suggested or verified answer.
Cheers
Jeffrey