|
|
@ -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([]); |
|
|
|
} |
|
|
|