[Settle Storage] - Discounts are positive in Vouchers

Issue No: GRN-1962
Created 1/6/2020 1:17:03 PM
Type Bug
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 18.3
Description This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-239668 - Storage Discounts add to the voucher total when it should be reduced.|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-239668] This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-240014 - Discounts are positive on vouchers|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-240014]     1. Create a DP contract.   2. Create a scale ticket where distribution type is DP. Select the DP contract you created.   3. Enter discounts. Make sure to have positive and negative (Premium) discounts   4. Distribute ticket.   5. Go to Storage and settle DP against spot sale.   5. Check the voucher.   Issue: Created Vouchers from settle storage has a positive discount.   !pastedImage_d128615_0.png|height=525,width=1895!     Acceptance:   Discounts should be deducted to payable.