Update the POS printed receipt for cash rounding
If your store uses customized POS receipt through code editor, then you might need to update your POS printed receipt manually to make sure that it displays cash rounding on the receipt. If you use the receipt visual editor, then the cash rounding adjustment and the adjusted total print on your receipts automatically, and you don't need to update your receipts.
These changes require familiarity with the Liquid code in your receipt template. If your template is highly customized and you're not sure how to apply the necessary changes, then contact the developer who made the changes. The receipt code editor doesn't support resetting a template to default. To return to a default template, migrate to the receipt visual editor.
On this page
Update the POS printed receipt
You can update the POS printed receipt to display the total cash rounding adjustment amount from payment and refund transactions, along with the rounded total amount in the receipt.
Before you start, open the receipt code editor. The steps to open it depend on whether all of your POS locations are eligible for the code editor.
Steps:
- In the receipt code editor, in the
transactions.liquidtemplate, locate the code block that contains<section class='totals'>. - At the end of the section (after it prints
receipt.total), if cash rounding is present on the order, addorder.total_cash_rounding_adjustmentandorder.total_adjusted_amountliquid variables, which POS client will set to the total cash rounding adjustment and rounded total amount, respectively.
{% if order.total_cash_rounding_adjustment %}
{% comment %} order.total_cash_rounding_adjustment is a string, converting for safety edited {% endcomment %}
{% assign rounding = order.total_cash_rounding_adjustment | plus: 0 | abs %}
{% if rounding > 0 %}
<div class='rounding-row-top-border'></div>
<div class='totals-container'>
<p class='totals-text'>{{ 'receipt.cash_rounding' | t | capitalize }}</p>
<p>{{ order.total_cash_rounding_adjustment | money | escape }}</p>
</div>
<div class='totals-container'>
<p class='totals-bold-text'>{{ 'receipt.adjusted_total' | t | capitalize }}</p>
<p class='price'>{{ order.total_adjusted_amount | money | escape }}</p>
</div>
{% endif %}
{% endif %}