diff options
Diffstat (limited to 'addons/pos_mercury/static/src/xml')
3 files changed, 65 insertions, 0 deletions
diff --git a/addons/pos_mercury/static/src/xml/OrderReceipt.xml b/addons/pos_mercury/static/src/xml/OrderReceipt.xml new file mode 100644 index 00000000..014884c0 --- /dev/null +++ b/addons/pos_mercury/static/src/xml/OrderReceipt.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates id="template" xml:space="preserve"> + + <t t-name="pos_mercury.OrderReceipt" t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension" owl="1"> + <xpath expr="//t[@t-foreach='receipt.paymentlines']" position="inside"> + <t t-if="line.mercury_data"> + <div class="pos-receipt-left-padding"> + <span>APPROVAL CODE: </span> + <span> + <t t-esc="line.mercury_auth_code" /> + </span> + </div> + </t> + </xpath> + <xpath expr="//div[hasclass('pos-receipt-order-data')]" position="after"> + <div t-if="hasPosMercurySignature"> + <br /> + <div>CARDHOLDER WILL PAY CARD ISSUER</div> + <div>ABOVE AMOUNT PURSUANT</div> + <div>TO CARDHOLDER AGREEMENT</div> + <br /> + <br /> + <div>X______________________________</div> + </div> + </xpath> + </t> + +</templates> diff --git a/addons/pos_mercury/static/src/xml/PaymentScreenPaymentLines.xml b/addons/pos_mercury/static/src/xml/PaymentScreenPaymentLines.xml new file mode 100644 index 00000000..0a01d9f8 --- /dev/null +++ b/addons/pos_mercury/static/src/xml/PaymentScreenPaymentLines.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates id="template" xml:space="preserve"> + + <t t-name="pos_mercury.PaymentScreenPaymentLines" t-inherit="point_of_sale.PaymentScreenPaymentLines" t-inherit-mode="extension" owl="1"> + <xpath expr="//div[hasclass('paymentline')]//t[@t-esc='line.payment_method.name']" position="replace"> + <t t-if="!line.payment_method.is_cash_count and line.mercury_swipe_pending"> + <span>WAITING FOR SWIPE</span> + </t> + <t t-else=""> + <t t-esc="line.payment_method.name" /> + </t> + </xpath> + </t> + +</templates> diff --git a/addons/pos_mercury/static/src/xml/PaymentTransactionPopup.xml b/addons/pos_mercury/static/src/xml/PaymentTransactionPopup.xml new file mode 100644 index 00000000..39c05a8f --- /dev/null +++ b/addons/pos_mercury/static/src/xml/PaymentTransactionPopup.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<templates id="template" xml:space="preserve"> + + <t t-name="PaymentTransactionPopup" owl="1"> + <div role="dialog" class="modal-dialog"> + <div class="popup"> + <p class="title"> + <t t-esc="props.title"></t> + </p> + <p class="body"> + <t t-esc="state.message"></t> + </p> + <div t-if="state.confirmButtonIsShown" class="footer"> + <div class="button cancel" t-on-click="confirm"> + <t t-esc="props.confirmText"></t> + </div> + </div> + </div> + </div> + </t> + +</templates> |
