We've been using the built in Order Confirmation functionality referenced in Appendix D of the Web API document for a couple of years now and it's working great. I've been able to modify the templates for different kinds of order like Single, Sub and Group. I've been asked by our Group Sales person to add Total Amount Paid (Deposit) and Balance Due to the confirmation. I've figured out how to add both, but can't figure out how to format the fields. Has anyone done this who can point me in the direction of how to format my dollar amounts? Below is the code I have to add the fields to the confirmation:
<tr> <td colspan="2"> <%= TransformXml("~/templates/ATTPAC Order Email_html.xsl")%> </td> </tr><tr><td colspan="2" align="right"> <b>Total Amount Paid: </b><%= OrderData.Totals.TotalPaidAmount%><br /> <b>Balance Due:</b><%= OrderData.Totals.BalanceDue %><br /> </td> </tr>
Hi Teresa,
What about…
<b>Total Amount Paid: </b><%= OrderData.Totals.TotalPaidAmount.ToString("$ #,###.#0")%><br />
<b>Balance Due:</b><%= OrderData.Totals.BalanceDue.ToString("$ #,###.#0") %><br />
Gregg Stickney
Application Support Specialist
Tessitura Network
www.tessituranetwork.com
gstickney@tessituranetwork.com
Office +1 888-643-5778 x318
From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Teresa DeanSent: Monday, August 15, 2011 1:07 PMTo: Gregg StickneySubject: [Tessitura Technical Forum] Order Confirmation Functionality
This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!
Perfect!!!! That worked beautifully!
Thanks Gregg
Teresa
From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Gregg Stickney Sent: Monday, August 15, 2011 12:42 PM To: Teresa Dean Subject: RE: [Tessitura Technical Forum] Order Confirmation Functionality
From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Teresa Dean Sent: Monday, August 15, 2011 1:07 PM To: Gregg Stickney Subject: [Tessitura Technical Forum] Order Confirmation Functionality
<tr> <td colspan="2"> <%= TransformXml("~/templates/ATTPAC Order Email_html.xsl")%> </td> </tr> <tr> <td colspan="2" align="right"> <b>Total Amount Paid: </b><%= OrderData.Totals.TotalPaidAmount%><br /> <b>Balance Due:</b><%= OrderData.Totals.BalanceDue %><br /> </td> </tr>