Browse Source

Oct 7 : [FIX] Bug Fixed 'pos_receipt_extend'

pull/295/head
AjmalCybro 2 years ago
parent
commit
aff54a1aa7
  1. BIN
      pos_receipt_extend/static/description/assets/modules/1.png
  2. BIN
      pos_receipt_extend/static/description/assets/modules/2.png
  3. BIN
      pos_receipt_extend/static/description/assets/modules/3.png
  4. BIN
      pos_receipt_extend/static/description/assets/modules/4.png
  5. BIN
      pos_receipt_extend/static/description/assets/modules/5.gif
  6. BIN
      pos_receipt_extend/static/description/assets/modules/6.png
  7. 8
      pos_receipt_extend/static/src/js/payment.js
  8. 18
      pos_receipt_extend/static/src/xml/OrderReceipt.xml

BIN
pos_receipt_extend/static/description/assets/modules/1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 92 KiB

BIN
pos_receipt_extend/static/description/assets/modules/2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 82 KiB

BIN
pos_receipt_extend/static/description/assets/modules/3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 92 KiB

BIN
pos_receipt_extend/static/description/assets/modules/4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 83 KiB

BIN
pos_receipt_extend/static/description/assets/modules/5.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 228 KiB

BIN
pos_receipt_extend/static/description/assets/modules/6.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 17 KiB

8
pos_receipt_extend/static/src/js/payment.js

@ -29,6 +29,13 @@ odoo.define('pos_receipt_extend.PaymentScreen', function (require) {
var self= this; var self= this;
self.env.pos.qr_code = order.qr_code; self.env.pos.qr_code = order.qr_code;
self.env.pos.customer_details = order.customer_details; self.env.pos.customer_details = order.customer_details;
self.env.pos.mobile = order.customer_mobile;
self.env.pos.phone = order.customer_phone;
self.env.pos.email = order.customer_email;
self.env.pos.vat = order.customer_vat;
self.env.pos.address = order.customer_address;
self.env.pos.name = order.customer_name;
self.env.pos.number = order.invoice_number;
var self= this; var self= this;
rpc.query({ rpc.query({
model: 'pos.order', model: 'pos.order',
@ -44,7 +51,6 @@ odoo.define('pos_receipt_extend.PaymentScreen', function (require) {
self.env.pos.invoice = result.invoice_name self.env.pos.invoice = result.invoice_name
} }
}); });
console.log(self.env.pos.invoice,'this.env.pos.invoice')
return receipt_order return receipt_order
} }
} }

18
pos_receipt_extend/static/src/xml/OrderReceipt.xml

@ -4,41 +4,41 @@
t-inherit-mode="extension" owl="1"> t-inherit-mode="extension" owl="1">
<xpath expr="//div[hasclass('pos-receipt-contact')]" position="inside"> <xpath expr="//div[hasclass('pos-receipt-contact')]" position="inside">
<t t-if="env.pos.customer_details" > <t t-if="env.pos.customer_details">
<t t-if="this.env.pos.selectedOrder.partner" > <t t-if="this.env.pos.selectedOrder.partner">
<t t-if="this.env.pos.selectedOrder.partner.name"> <t t-if="env.pos.name">
<div style="font-weight:bold;">Customer Name: <div style="font-weight:bold;">Customer Name:
<t t-esc="this.env.pos.selectedOrder.partner.name"/> <t t-esc="this.env.pos.selectedOrder.partner.name"/>
</div> </div>
</t> </t>
<t t-if="this.env.pos.selectedOrder.partner.street"> <t t-if="env.pos.address">
<div style="font-weight:bold;">Customer Address: <div style="font-weight:bold;">Customer Address:
<t t-esc="this.env.pos.selectedOrder.partner.street"/> <t t-esc="this.env.pos.selectedOrder.partner.street"/>
</div> </div>
</t> </t>
<t t-if="this.env.pos.selectedOrder.partner.mobile"> <t t-if="env.pos.mobile">
<div style="font-weight:bold;">Customer Mobile: <div style="font-weight:bold;">Customer Mobile:
<t t-esc="this.env.pos.selectedOrder.partner.mobile"/> <t t-esc="this.env.pos.selectedOrder.partner.mobile"/>
</div> </div>
</t> </t>
<t t-if="this.env.pos.selectedOrder.partner.phone"> <t t-if="env.pos.phone">
<div style="font-weight:bold;">Customer Phone: <div style="font-weight:bold;">Customer Phone:
<t t-esc="this.env.pos.selectedOrder.partner.phone"/> <t t-esc="this.env.pos.selectedOrder.partner.phone"/>
</div> </div>
</t> </t>
<t t-if="this.env.pos.selectedOrder.partner.email"> <t t-if="env.pos.email">
<div style="font-weight:bold;">Customer Email: <div style="font-weight:bold;">Customer Email:
<t t-esc="this.env.pos.selectedOrder.partner.email"/> <t t-esc="this.env.pos.selectedOrder.partner.email"/>
</div> </div>
</t> </t>
<t t-if="this.env.pos.selectedOrder.partner.vat"> <t t-if="env.pos.vat">
<div style="font-weight:bold;">Customer Vat: <div style="font-weight:bold;">Customer Vat:
<t t-esc="this.env.pos.selectedOrder.partner.vat"/> <t t-esc="this.env.pos.selectedOrder.partner.vat"/>
</div> </div>
</t> </t>
</t> </t>
</t> </t>
<t t-if="this.env.pos.invoice"> <t t-if="env.pos.invoice">
<div style="font-weight:bold;">Invoice Number: <div style="font-weight:bold;">Invoice Number:
<t t-esc="this.env.pos.invoice"/> <t t-esc="this.env.pos.invoice"/>
</div> </div>

Loading…
Cancel
Save