1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-18 07:52:23 +01:00

[bug] ignored coupon when booking an event with card payment

This commit is contained in:
Sylvain 2021-06-18 17:19:24 +02:00
parent f5126084b9
commit 33e45fd536
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
- Fix a bug: can't see the dates for the next booked training session, when the user is reserving a machine without the appropriate training
- Fix a bug: invalid link to the user's manual
- Fix a bug: unable to sync coupons on stripe
- Fix a bug: ignored coupon when booking an event with card payment
## v5.0.4 2021 June 15

View File

@ -715,7 +715,7 @@ Application.Controllers.controller('ShowEventController', ['$scope', '$state', '
growl.error(_t('app.shared.cart.online_payment_disabled'));
} else {
$scope.toggleOnlinePaymentModal(() => {
$scope.onlinePayment.cartItems = mkCartItems(reservation, 'card');
$scope.onlinePayment.cartItems = mkCartItems(reservation, $scope.coupon.applied, 'card');
});
}
};