Skip to content

Commit

Permalink
Merge PR OCA#862 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Oct 24, 2022
2 parents 0b697c0 + a58b198 commit ffb7286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pos_payment_method_cashdro/static/src/js/screens.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ odoo.define("pos_payment_method_cashdro.screens", function (require) {
// Cashdro treats decimals as positions in an integer we also have
// to deal with floating point computing to avoid decimals at the
// end or the drawer will reject our request.
var amount = parseInt(order.get_due(payment_line).toFixed(2) * 100);
var amount = Math.round(order.get_due(payment_line) * 100);
var url = this._cashdro_payment_url({"amount": amount});
var operation_id = "";
var request = this._cashdro_request(url)
Expand Down

0 comments on commit ffb7286

Please sign in to comment.