From d5db1b95004af7246ca6c86d6e8450a628a6ebd0 Mon Sep 17 00:00:00 2001 From: Joseph Caburnay Date: Fri, 10 Sep 2021 07:26:22 +0000 Subject: [PATCH] [FIX] point_of_sale: take into account the discount in the orderline when refunding closes odoo/odoo#77903 Signed-off-by: pimodoo --- .../static/src/js/Screens/TicketScreen/TicketScreen.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/point_of_sale/static/src/js/Screens/TicketScreen/TicketScreen.js b/addons/point_of_sale/static/src/js/Screens/TicketScreen/TicketScreen.js index ab84bc7c8b5..0da57d71c7a 100644 --- a/addons/point_of_sale/static/src/js/Screens/TicketScreen/TicketScreen.js +++ b/addons/point_of_sale/static/src/js/Screens/TicketScreen/TicketScreen.js @@ -235,6 +235,7 @@ odoo.define('point_of_sale.TicketScreen', function (require) { merge: false, refunded_orderline_id: orderline.id, tax_ids: orderline.tax_ids, + discount: orderline.discount, }); refundDetail.destinationOrderUid = destinationOrder.uid; } @@ -415,6 +416,7 @@ odoo.define('point_of_sale.TicketScreen', function (require) { orderBackendId: orderline.order.backendId, orderPartnerId, tax_ids: orderline.get_taxes().map(tax => tax.id), + discount: orderline.discount, }, destinationOrderUid: false, };