summaryrefslogtreecommitdiff
path: root/addons/pos_mercury/static/src/xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/pos_mercury/static/src/xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/pos_mercury/static/src/xml')
-rw-r--r--addons/pos_mercury/static/src/xml/OrderReceipt.xml28
-rw-r--r--addons/pos_mercury/static/src/xml/PaymentScreenPaymentLines.xml15
-rw-r--r--addons/pos_mercury/static/src/xml/PaymentTransactionPopup.xml22
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>