microsoft / Dynamics365Commerce.Solutions

Repository for hosting the Dynamics 365 Commerce end to end sample solutions
Other
58 stars 26 forks source link

Customized Discount error in Commerce SDK #244

Closed Tech-Kishan closed 8 months ago

Tech-Kishan commented 8 months ago

Other Development Issue

Summary

Describe the issue We have a customization of employee/customer Discount with affiliation. we limit the discount to 1500 for employee/customer for a month. If employee/customer has used all of the given discount then we don't give any more discount. But the problem we are facing right now is when a employee/customer had used all the discount and if a user gives him manual discount then the discount applied is shown zero on line level but on discount screen of total it shows value which is not right. So how can we solve this issue. I have provided the code screen shot where the condition being applied as well as the result. Version and Error Info Commerce SDK Version: 9.44 Exception/Error Details:

Screenshots

Here is the Code that get to the result of what we are doing MicrosoftTeams-image (1)

And Here is the result with error MicrosoftTeams-image (2)