|
@ -17,12 +17,14 @@ odoo.define('backend_order.MultiCurrencyValues', function(require) { |
|
|
_save_to_server (orders, options) { |
|
|
_save_to_server (orders, options) { |
|
|
if(orders.length > 0){ |
|
|
if(orders.length > 0){ |
|
|
for (let i = 0, len = orders[0].data.statement_ids.length; i < len; i++){ |
|
|
for (let i = 0, len = orders[0].data.statement_ids.length; i < len; i++){ |
|
|
if(this.orders[0].paymentlines[i].converted_currency){ |
|
|
if (this.orders[0].paymentlines[i]){ |
|
|
orders[0].data.statement_ids[i][2].currency_amount = this.orders[0].paymentlines[i].converted_currency.amount |
|
|
if(this.orders[0].paymentlines[i].converted_currency){ |
|
|
orders[0].data.statement_ids[i][2].payment_currency = this.orders[0].paymentlines[i].converted_currency.name |
|
|
orders[0].data.statement_ids[i][2].currency_amount = this.orders[0].paymentlines[i].converted_currency.amount |
|
|
}else{ |
|
|
orders[0].data.statement_ids[i][2].payment_currency = this.orders[0].paymentlines[i].converted_currency.name |
|
|
orders[0].data.statement_ids[i][2].currency_amount = "" |
|
|
}else{ |
|
|
orders[0].data.statement_ids[i][2].payment_currency = "" |
|
|
orders[0].data.statement_ids[i][2].currency_amount = "" |
|
|
|
|
|
orders[0].data.statement_ids[i][2].payment_currency = "" |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|