Updating Dynamics 365 to allow discounting in refund scenarios.

Modified on Mon, Feb 3 at 3:49 PM

Work 365 now has a feature for discounting at subscription level. When a subscription with discount is refunded, the corresponding discount is also applied to the refund. This results in the discount being a negative value on the invoice line item, which Dynamics 365 does not allow. This article describes the procedure to customize Dynamics 365 to allow negative values on the discount field to overcome the above stated challenge.

1. Create an unmanaged solution called “Work 365 Unmanaged Customizations” (If it does not already exist). If it exists, open that solution.
Go to Advance Settings -> Customizations -> Solutions -> New

 

2. Click on "Save".

3. Go to Components -> Add Existing -> Entity

4. Add "Invoice Product/Invoice Line" entity, select field "Manual Discount" and click Finish. Ensure that all other options are unchecked.

5. Go to Entity -> Fields -> double click and open the field properties.

6. Change the "Minimum value" to with "-999,999,999,999.0000" number and save the changes.

7. Click on "Invoice Product" under Entities, click "Save" and then "Publish".

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article