Modern receipt designer in Commerce headquarters

The modern receipt designer provides a React-based design experience for Commerce receipt formats directly from Commerce headquarters. It replaces the legacy ClickOnce designer launch experience with a browser-based designer that you can open from the Receipt formats page. The designer includes a visual canvas, template selection, reusable templates, localized field labels and preview data, custom receipt fields, validation, and preview support.

In Commerce version 10.0.50, the designer also supports fixed and repeating tables and rich-text formatting for document receipts. You can use these capabilities for detailed invoices, order summaries, tax breakdowns, and other B2B and trade-counter scenarios.

The modern designer saves structured receipt layout data for the new receipt format path. Store Commerce can use the structured receipt format path when you enable the modern receipt designer feature and the Commerce Scale Unit supports structured receipts.

Prerequisites

  • Update Commerce headquarters, Commerce Scale Unit, Store Commerce, and Hardware Station to compatible versions before you use tables or document typography.
  • Enable the modern receipt designer feature in Feature management before using the structured receipt path in Store Commerce.
  • Configure existing receipt profiles, printers, and hardware profiles for registers where receipts are printed.

Important

  • Enable the modern receipt designer feature only after updating the Commerce Scale Unit or Retail Server to a version that supports structured receipts. When you enable the feature, Store Commerce uses the structured receipt endpoint for supported receipt flows. If the endpoint isn't available, receipt preview or printing can fail.

  • Commerce version 10.0.50 migrates supported legacy receipt layouts to the modern designer JSON format. Review migrated formats in the modern designer and test them with representative transaction data before deploying them to stores.

Open the modern receipt designer

To open the modern receipt designer, follow these steps:

  1. In Commerce headquarters, go to Retail and Commerce > Channel setup > POS setup > POS > Receipt formats.
  2. Create a receipt format, or select an existing receipt format.
  3. Select Designer.
  4. If the receipt format doesn't already have a modern design, select a template from the template gallery or start from a blank template.
  5. Select Edit format to open the full designer canvas.

Note

The template gallery appears only when a receipt format doesn't already have a modern design, such as when you create a new receipt format or open an existing format before it has been saved in the modern designer. After a modern design exists for the receipt format, the gallery isn't shown again for that format.

Screenshot of the modern receipt designer template gallery embedded on the Receipt formats page.

Design a receipt format

The modern designer canvas shows the receipt layout with separate receipt sections and fields. The field palette lists standard receipt fields and custom fields. Use the palette and property editor to add fields, position fields, and edit properties.

To design a receipt format, follow these steps:

  1. Open the modern receipt designer from the receipt format.
  2. Use the field palette to find the field to add. Standard fields and custom fields are grouped separately.
  3. Drag the field to the receipt canvas.
  4. Select a field on the canvas to edit its properties.
  5. Update applicable properties, such as position, length, alignment, font weight, prefix, or text.
  6. Resolve any validation errors that appear in the designer.
  7. Select Save.

Screenshot of the modern receipt designer canvas with receipt fields and the field palette.

Custom fields and localized labels

In Commerce version 10.0.49, the modern receipt designer supports user-defined receipt custom fields. Custom fields appear in the field palette with their configured captions. If a translated caption is available for the current legal entity and language, the designer shows the localized caption. If a translation isn't available, the designer falls back to the field name.

Standard field labels and sample preview data are also localized in version 10.0.49. This behavior helps implementers design receipt layouts in the same language context that store users see.

Add tables

Commerce version 10.0.50 supports the following table types:

  • Fixed table: Contains rows that you add and arrange in the designer. Cells can contain static text or receipt fields.
  • Repeating table: Defines a row that Commerce repeats for each matching record. Repeating tables support item lines, invoice lines, tenders, tax summaries, loyalty earn lines, and loyalty redeem lines. You can add repeating tables only to the Lines section.

Important

For physical printing, fixed and repeating tables and document typography are supported only through the Windows printer path in Windows Hardware Station. OPOS, Epson, Star, and Adyen printer paths reject layouts that contain these capabilities instead of producing partial or lossy output. Previews and modern HTML email receipts support tables independently of the physical printer path.

To add and configure a table, follow these steps:

  1. In the field palette, add a fixed or repeating table to the canvas.
  2. For a repeating table, select the applicable Line type.
  3. Add, remove, resize, move, or reorder rows, columns, and cells.
  4. Add static text, standard receipt fields, or eligible custom fields to the cells.
  5. Configure column headings, borders, banded rows, alignment, and text formatting as required.
  6. Resolve validation errors, and then select Save.

You can position multiple tables and ordinary fields on the same receipt line when there's enough space. Repeating fields can be blank when a value isn't available for a record. Preview and test the format with representative transactions, including transactions with no matching records and transactions with long or multiline values.

Note

You can't save a layout that contains a table when content extends beyond the selected paper width. Export remains available so that an implementer can correct the layout outside the designer.

Apply rich-text formatting

For compatible document formats, you can apply the following rich-text formatting to ordinary fields, table cells, and table headings:

  • Font family.
  • Font size from 11 through 96 pixels.
  • Normal, light, semibold, or bold font weight.
  • Italic, underline, and strike-through.
  • Text alignment.

Windows uses the nearest available weight when the selected font doesn't contain the exact authored weight. If the selected font or size isn't available, Windows Hardware Station uses the configured Windows printer font and size.

Thermal and mobile receipt formats continue to use their existing regular and large font sizes. The document font family and pixel-size settings don't change thermal formatting.

Validate receipt lines

The modern designer validates line-level issues while you edit the receipt format. Validation helps prevent field placement and line-type issues before the format is used in Store Commerce.

Validation can detect problems such as:

  • Fields that conflict with the line type.
  • Fields that overlap in the same line.
  • Line types that need to be inferred or corrected after fields are moved.

If validation errors appear, select the affected field or line, correct the placement or field selection, and save the format again.

Save a receipt format as a template

Templates let you reuse a receipt design across formats. You can save a completed design as a template and select it later when another receipt format needs the same layout pattern.

To save a receipt format as a template, follow these steps:

  1. Open the receipt format in the modern receipt designer.
  2. Make the required layout changes.
  3. Select Save as Template.
  4. Enter a template name and description.
  5. Select Save as Template.

To use a saved template:

  1. Create a new receipt format or open a receipt format that doesn't already have a modern design.
  2. Select the template from the gallery.
  3. Open the designer to make any receipt-specific changes.

You can't apply saved templates from the gallery after a receipt format already has a modern design.

Preview the receipt format

After you save a modern receipt design, the Receipt formats page shows an embedded preview. The preview helps you confirm the layout before testing the format in Store Commerce.

To preview a receipt format, follow these steps:

  1. In Commerce headquarters, open the receipt format.
  2. Review the embedded preview on the Receipt formats page.
  3. If you need to make any changes, select Edit format.
  4. Save the changes and return to the receipt format page. The preview refreshes after the save.

Screenshot of the embedded modern receipt preview on the Receipt formats page.

Use modern receipt formats in Store Commerce

When you enable the modern receipt designer feature, Store Commerce uses the structured receipt path for supported receipt scenarios. Structured receipts include a device-agnostic receipt document that Store Commerce and Retail hardware station use for preview and printing.

Supported receipt flows include:

  • Post-sale receipt print and gift receipt print or email.
  • Show journal receipt preview, print, print all, quick email, gift receipts, and document-based preview.
  • Customer Transactions receipt preview and print.
  • Cash management receipts, such as bank drop, safe drop, tender removal, starting amount, tender declaration, open drawer, void transaction, suspend transaction, and gift card inquiry receipts.

Note

Changes saved in the modern receipt designer aren't saved back to the legacy designer format. If the modern receipt designer feature is later disabled, changes made only in the modern designer won't appear in the legacy designer. The modern changes are available again if you re-enable the feature.

The structured receipt path aligns preview, print, print-all, email, and gift receipt behavior with the legacy path. Store Commerce uses receipt print behavior settings, such as Always print, Prompt user, and Do not print, when deciding which receipts to print.

If you configure the receipt with Prompt user, Store Commerce prompts at checkout and prints the selected structured receipt through the configured printer. If a receipt can't be printed because the receipt or printer configuration doesn't allow printing, Store Commerce shows the same type of availability message used by the legacy receipt path.

Output support for tables and document formatting

The following outputs support the table and document-formatting capabilities that were added in Commerce version 10.0.50:

Output Support
Modern designer and Commerce headquarters preview Fixed and repeating tables, table formatting, and document typography.
Store Commerce receipt preview, Show journal, and Customer transactions Fixed and repeating tables, table formatting, and document typography.
Windows printer through Windows Hardware Station Fixed and repeating tables, table formatting, document typography, images, and barcodes
Modern receipt email composed by Commerce Scale Unit HTML tables and document typography.

For physical printing, tables and document typography require the Windows printer path. OPOS, Epson, Star, and Adyen printer paths don't support these capabilities and reject the layout instead of producing partial or lossy output. Table-free receipts without document typography continue to use the existing printer paths.

Windows Hardware Station keeps a table row together during pagination when possible. For document layouts from 99 through 140 columns, pagination also respects the configured document margins and the printer driver's printable area.

Modern email receipts preserve tables and formatting when Commerce Scale Unit composes the receipt from the modern JSON layout. Email client font availability and CSS support can affect the final appearance. Older headquarters-composed email workflows retain their existing plain-text behavior.

Close the designer with unsaved changes

If you change a receipt design and try to leave the page before saving, the designer reports the dirty state to the Commerce headquarters host. Commerce headquarters can then prompt before closing or navigating away, helping prevent accidental loss of receipt layout changes.

Starting with Commerce release version 10.0.50, store associates can print customer order invoices from the point of sale (POS) in Microsoft Dynamics 365 Commerce. Retailers can configure a separate invoice receipt, include invoice information on existing receipts, or use both options. This feature requires the modern receipt designer to be enabled.

Set up a customer order invoice receipt

Use the Customer order invoice receipt type to print an invoice separately from other customer order receipts.

  1. In Commerce headquarters, go to Retail and Commerce > Channel setup > POS setup > POS > Receipt formats.
  2. Create a receipt format.
  3. Select Customer order invoice as the receipt type.
  4. Configure the print behavior for the receipt format.
  5. Open the modern receipt designer.
  6. Add the invoice fields that your business requires, such as the invoice number, invoiced lines, and invoiced total.
  7. Save the receipt design.
  8. Add the receipt format to the receipt profile used for invoice printing in the store.
  9. Verify that the receipt profile is assigned to the appropriate printer through the register's hardware profile.

Enable printing for the Customer order invoice receipt type in each store where associates need to print separate invoices.

Note

Invoice fields let you show invoiced information on the receipt. Use the invoiced lines and invoiced total when designing an invoice, rather than relying only on fields that describe the customer order.

Include invoice information on existing receipts

You can also add invoice fields to an existing receipt format. For example, you can include the invoice number on a customer order receipt or add invoice details to a sales receipt instead of printing a separate invoice.

  1. In Commerce headquarters, open the existing receipt format.
  2. Open the modern receipt designer.
  3. Add the required invoice fields.
  4. Save the updated receipt design.

Select the receipt content that matches your business needs:

Printing requirement Configuration
Print a separate customer order invoice Configure and enable the Customer order invoice receipt type.
Show the invoice number on an existing receipt Add the invoice number field to that receipt format.
Include invoice details on an existing receipt Add the required invoice fields, such as invoiced lines and invoiced total.

The invoice number assigned in headquarters is available when customer orders are created, edited, or fulfilled at POS. You can include this number on existing receipts.

Note

Printing additional invoice details on an existing receipt requires a live connection to headquarters to retrieve that information. Consider this requirement when deciding whether to include detailed invoice information on existing receipts or print a separate invoice.

When you enable the Customer order invoice receipt type for printing in the store, the following actions support invoice printing:

POS action When the invoice prints
Create a customer order with carryout lines When you complete the customer order transaction that includes carryout lines.
Edit a customer order with carryout lines When you complete the customer order transaction that includes newly added carryout lines.
Quick order pickup When you complete the pickup.
Regular order pickup When you complete the pickup.

Reprint a customer order invoice

Store associates can reprint an invoice receipt from Show journal.

  1. In POS, open Show journal.
  2. Find the transaction associated with the invoice.
  3. Select the transaction.
  4. Use the receipt reprint action to reprint the customer order invoice.