NopCommerce 4.3 Bug Invoice do not print the used RewardPoints on the invoice (both email and pdf)

1 month ago
1. nopCommerce version : 4.3
2. Expected behavior :
When Order is placed and reward point is used during purchase
Set ReedemedRewardPointEntryId on Order table

3. Actual behavior:

ReedemedRewardPointEntryId is Null on the Order table

4. Steps to reproduce the problem

Place and order
Use RewardPoint when placing an Order
Go Print Invoice you will notice the used Reward Point is not printed on the Invoice.

5. Any private modifications you made to your nopCommerce

OrderProcessingService.cs
line 841 changed to

order.RedeemedRewardPointsEntryId =_rewardPointService.AddRewardPointsHistoryEntry(details.Customer, -details.RedeemedRewardPoints, order.StoreId,
                string.Format(_localizationService.GetResource("RewardPoints.Message.RedeemedForOrder", order.CustomerLanguageId), order.CustomOrderNumber),
                order, details.RedeemedRewardPointsAmount);
            _customerService.UpdateCustomer(details.Customer);
1 month ago
Two lines of changes actually on the OrderProcessingService.cs line #841 missed to put the second line in the description.

order.RedeemedRewardPointsEntryId =_rewardPointService.AddRewardPointsHistoryEntry(details.Customer, -details.RedeemedRewardPoints, order.StoreId,
                string.Format(_localizationService.GetResource("RewardPoints.Message.RedeemedForOrder", order.CustomerLanguageId), order.CustomOrderNumber),
                order, details.RedeemedRewardPointsAmount);
            
_orderService.UpdateOrder(order);
1 month ago
Thanks. We'll check it.