Browse Source

Oct 08: [FIX] Bug Fixed 'multi_currency_payment_in_pos'

pull/345/merge
Cybrosys Technologies 7 months ago
parent
commit
4d82e0ad68
  1. 0
      multi_currency_payment_in_pos/README.rst
  2. 2
      multi_currency_payment_in_pos/static/src/js/backend_order.js
  3. 4
      multi_currency_payment_in_pos/static/xml/multicurrency_templates.xml

0
multi_currency_payment_in_pos/README.rst

2
multi_currency_payment_in_pos/static/src/js/backend_order.js

@ -17,6 +17,7 @@ odoo.define('backend_order.MultiCurrencyValues', function(require) {
_save_to_server (orders, options) {
if(orders.length > 0){
for (let i = 0, len = orders[0].data.statement_ids.length; i < len; i++){
if (this.orders[0].paymentlines[i]){
if(this.orders[0].paymentlines[i].converted_currency){
orders[0].data.statement_ids[i][2].currency_amount = this.orders[0].paymentlines[i].converted_currency.amount
orders[0].data.statement_ids[i][2].payment_currency = this.orders[0].paymentlines[i].converted_currency.name
@ -26,6 +27,7 @@ odoo.define('backend_order.MultiCurrencyValues', function(require) {
}
}
}
}
if (!orders || !orders.length) {
return Promise.resolve([]);
}

4
multi_currency_payment_in_pos/static/xml/multicurrency_templates.xml

@ -30,8 +30,8 @@
<h3>Currency Conversion</h3>
</div>
<div>
<div class="rate_string"></div>
<div>Total Amount = <span class="total_amount"></span></div>
<div class="rate_string"/>
<div>Total Amount = <span class="total_amount"/></div>
</div>
<br/>
<div>

Loading…
Cancel
Save