web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

Email sales receipt ignore receipt format design in header and parts of body

(0) ShareShare
ReportReport
Posted on by 1,457

We have a custom receipt that is a copy of the standard sales receipt.

When the sales transaction in Store Transactions in POS is selected and then clicked on show receipt, the receipt shows the data as the receipt format is designed in the receipt designer.

However when one clicks to email the receipt or when the receipt is emailed from the cart after conclusion of the transaction, the header as well as the item name and item comment is centered.  Sometime sit looks centered but it is actually a little bit off to the right. So why will emailing the receipt do this?

When I decode the ReceiptService DLL, I can see where it emails the receipt, it first convert the receipt to HTML. 

So is it HTML that does it or the email template? 

Correct when printed or viewed in Store Transactions:

pastedimage1646083907999v1.png

The same receipt when clicking on Email:

pastedimage1646083957002v2.png

As you can see from the above image, it has no problem respecting the footer and the first line of the "lines" section. but the item comment and item name on the "Lines" section is centered automatically instead of starting on the left. The header respect it even less.

If I look at the email template assigned to the receipt format in the receipt profile, then it has only %message%  which is left justified, not centered and this is the part that receives the receipt converted into HTML. The email template itself is an HTML file uploaded.

So can anybody shed some light on how to fix the emailing of the receipt so that it will look on the email the same as on the preview and printing of the receipt. Our users don't like the way the emailed receipt looks like which is understandable because it is a document that is emailed to the customer and it looks untidy, not professional at all.

I have the same question (0)
  • Verified answer
    Ramune Profile Picture
    on at

    Hi Retha,

    did you check the doc as below?

    docs.microsoft.com/.../email-receipts

    Does it help you to find an answer?

  • Retha Profile Picture
    1,457 on at

    Hi Ramune

    thanks for giving me the link.  I contacted the user who designed the email template and he confirmed that the PRE-tags were in place. however when I opened the file I saw that it had in the row-tag an align=center and that is what caused the email not to respect the receipt format.

    I removed it and re-loaded the template and now it's working

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 301 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 120 Super User 2025 Season 2

#3
Siv Sagar Profile Picture

Siv Sagar 105 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans