--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<templates id="template" xml:space="preserve">
+
+ <t t-name="LoyaltyPoints">
+ <div class='loyalty-points'>
+ <div class='loyalty-points-title'>Points</div>
+ <t t-if='points_won'>
+ <div class="loyalty-points-won">
+ <span class='value'>+<t t-esc='widget.format_pr(points_won,rounding)'/></span>
+ </div>
+ </t>
+ <t t-if='points_spent'>
+ <div class="loyalty-points-spent">
+ <span class='value'>-<t t-esc='widget.format_pr(points_spent,rounding)'/></span>
+ </div>
+ </t>
+ <div class='loyalty-points-total'>
+ <span class='value'><t t-esc='widget.format_pr(points_total,rounding)' /></span>
+ </div>
+ </div>
+ </t>
+
+ <t t-name="LoyaltyButton">
+ <div class='control-button'>
+ <i class='fa fa-star' /> Rewards
+ </div>
+ </t>
+
+ <t t-extend='OrderWidget'>
+ <t t-jquery='.summary' t-operation='prepend'>
+ <div class='loyalty-points oe_hidden'>.</div>
+ </t>
+ </t>
+
+ <t t-extend='ClientLine'>
+ <t t-jquery='.client-line' t-operation='append'>
+ <td>
+ <t t-esc='widget.format_pr(partner.loyalty_points || 0, widget.pos.loyalty ? widget.pos.loyalty.rounding : 1.0)' />
+ </td>
+ </t>
+ </t>
+
+ <t t-extend="XmlReceipt">
+ <t t-jquery='.before-footer' t-operation='append'>
+ <t t-if='receipt.loyalty'>
+ <div class='loyalty' value-decimals='2' value-autoint='on'>
+ <div>--------------------------------</div>
+ <br/>
+ <div size='double-height'><t t-esc='receipt.loyalty.name'/></div>
+ <br />
+ <div><t t-esc='receipt.loyalty.client' /></div>
+ <br/>
+ <t t-if='receipt.loyalty.points_won'>
+ <line><left>Points Won</left><right><value><t t-esc='receipt.loyalty.points_won' /></value></right></line>
+ </t>
+ <t t-if='receipt.loyalty.points_spent'>
+ <line><left>Points Spent</left><right><value><t t-esc='receipt.loyalty.points_spent' /></value></right></line>
+ </t>
+ <t t-if='receipt.loyalty.points_total'>
+ <line><left>Total Points</left><right><value><t t-esc='receipt.loyalty.points_total' /></value></right></line>
+ </t>
+ <br />
+ </div>
+ </t>
+ </t>
+ </t>
+
+ <t t-extend='ClientDetails'>
+ <t t-jquery='.client-details-right' t-operation='prepend'>
+ <div class='client-detail'>
+ <span class='label'>Points</span>
+ <span class='detail client-points'>
+ <t t-esc='widget.format_pr(partner.loyalty_points || 0, widget.pos.loyalty ? widget.pos.loyalty.rounding : 1.0)' />
+ </span>
+ </div>
+ </t>
+ </t>
+
+ <t t-extend='ClientListScreenWidget'>
+ <t t-jquery='.client-list thead tr' t-operation='append'>
+ <th>Points</th>
+ </t>
+ </t>
+
+</templates>