[FIX] point_of_sale: take into account the discount in the orderline when refunding
closes odoo/odoo#77903 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
committed by
Pierre Masereel
parent
cfa93cabd1
commit
d5db1b9500
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user