Upgrading the Reseller Invoice Notification Template to Include Order Number
Original Publishing Date:
2021-11-23
To simplify reconciliation and auditing, invoice notifications generated for resellers can now include order numbers.
This information is available in the resellers’ invoice notification template immediately after installation of CloudBlue Commerce 21.4 with the BSS component. The default contents of the notification template are updated automatically after the upgrade.
If you already run CloudBlue Commerce 21.x and use custom reseller’s invoice notification templates, you need to take these steps to enable the new functionality and update the contents of your custom template:
Log in as a provider to CloudBlue Commerce Provider Panel.
Go to Billing > System > Settings > System > Notifications > Notifications > Notification Templates.
Type Reseller Invoice Details in the Template Name box and click Search.
Click the Reseller Invoice Details template name.
Click the HTML tab > Edit.
-
Locate the <style>…</style>
block and incorporate these style definitions into your HTML code:
<style>
tr.naming, tr.naming_order, tr.naming_total, tr.order_naming, tr.order_total, tr.total_naming, tr.total_order {
display: none;
width: 0px;
max-height: 0px;
overflow: hidden;
mso-hide: all;
height: 0;
font-size: 0;
max-height: 0;
line-height: 0;
margin: 0 auto;
}
tr.total_total {
border-bottom: 1px solid #dddddd;
}
td.naming_naming, td.order_order, td.total_total {
border-top: 1px solid #dddddd;
}
</style>
Note: Only the lines styled with the classes #naming_naming, order_order, and total_total will be displayed in notifications.
As we added new data groups, update your custom template by adding these lines from the default template:
<tr class=naming_@@InvoicedGroupType@>
<td valign="top" align="left" style="border-right:1px solid #dddddd;"></td>
<td valign="top" align="right" style="border-right:1px solid #dddddd;"></td>
<td valign="top" align="left" style="border-right:1px solid #dddddd;"><b>@@InvoicedCustomerName@</b></td>
<td valign="top" align="right" style="border-right:1px solid #dddddd;"></td>
<td valign="top" align="right" style="border-right:1px solid #dddddd;"></td>
<td valign="top" align="right" style="border-right:1px solid #dddddd;"></td>
<td valign="top" align="right"></td>
</tr>
<tr class=order_@@InvoicedGroupType@>
<td valign="top" align="left" style="border-right:1px solid #dddddd;"></td>
<td valign="top" align="right" style="border-right:1px solid #dddddd;"></td>
<td valign="top" align="left" style="border-right:1px solid #dddddd;"><b>Order Number: @@InvoicedOrderNumber@ </b></td>
<td valign="top" align="right" style="border-right:1px solid #dddddd;"></td>
<td valign="top" align="right" style="border-right:1px solid #dddddd; "></td>
<td valign="top" align="right" style="border-right:1px solid #dddddd;"></td>
<td valign="top" align="right"></td>
</tr>
<tr class=total_@@InvoicedGroupType@>
<td valign="top" align="left" style="border-right:1px solid #dddddd;"></td>
<td valign="top" align="right" style="border-right:1px solid #dddddd;"></td>
<td valign="top" align="left" style="border-right:1px solid #dddddd;"><b>Total for @@InvoicedCustomerName@</b></td>
<td valign="top" align="right" style="border-right:1px solid #dddddd;"></td>
<td valign="top" align="right" style="border-right:1px solid #dddddd; "></td>
<td valign="top" align="right" style="border-right:1px solid #dddddd;"><b>@@Cust_Account_Currency_Symbol@ @@InvoicedCustomerAmount@</b></td>
<td valign="top" align="right"></td>
</tr>
Note: Each row (</tr>
) displays its own group, by customer name (class=naming_@@InvoicedGroupType@
), by order number (class=order_@@InvoicedGroupType@
), by customer total (class=total_@@InvoicedGroupType@
), where the @@InvoicedGroupType@
placeholder can take the values of naming, order, and total.
Click Save.
After upgrading, you can also add placeholders for PO numbers as explained in this article.