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

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 年 前
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);
3 年 前
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);
3 年 前
Thanks. We'll check it.
3 年 前
Hi,
I would like to know how we can change the file  ( Libraries\Nop.Services\Orders\OrderProcessingService.cs line:841 ) in nopcommerce 4.3 installed on Azure app service ?
3 年 前
You need to edit the file Libraries\Nop.Services\Orders\OrderProcessingService.cs using Visual Studio in a development enviroment, test the change then re-build the program and re-publish to the server
3 年 前
Any changes to .cs files must be made by a developer using Visual Studio.  Make code changes, compile the project, publish the assembly (in this case, it would be Nop.Services.dll file).
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.