diff options
| author | Antoine Prieels <anp@odoo.com> | 2020-09-11 11:34:49 +0000 |
|---|---|---|
| committer | Antoine Prieels <anp@odoo.com> | 2020-09-11 13:27:29 +0000 |
| commit | 236445d668944a728802ce98a61d68164f7e4ecc (patch) | |
| tree | 3196ef506300ae77d10859923ca33f617971e7ac /addons/pos_six/static/src | |
| parent | 621313e2f91c6f77a3ae772c75f23275f6679cd3 (diff) | |
[FIX] pos_six: 0.01€ difference in Six transactions
Some payments were 0.01€ lower on the payment terminal compared to the
amount showing in the POS.
closes odoo/odoo#57543
X-original-commit: 3fd0822f42c1a9dbe5b786a3a767da969431ddaa
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
Diffstat (limited to 'addons/pos_six/static/src')
| -rw-r--r-- | addons/pos_six/static/src/js/payment_six.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/pos_six/static/src/js/payment_six.js b/addons/pos_six/static/src/js/payment_six.js index debf003e876..bc4633d1fd1 100644 --- a/addons/pos_six/static/src/js/payment_six.js +++ b/addons/pos_six/static/src/js/payment_six.js @@ -130,7 +130,7 @@ var PaymentSix = PaymentInterface.extend({ _sendTransaction: function (transactionType) { var amount = new timapi.Amount( - parseInt(this.pos.get_order().selected_paymentline.amount / this.pos.currency.rounding), + Math.round(this.pos.get_order().selected_paymentline.amount / this.pos.currency.rounding), timapi.constants.Currency[this.pos.currency.name], this.pos.currency.decimals ); |
