Undistribute ticket should create VPRE

Issue No: AP-6475
Created 11/13/2018 10:46:47 AM
Type Gap
Priority Major
Status Closed
Resolution Fixed
Fixed Version 19.1
Description This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-241399 - Undistribute should create VPRE|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-241399] This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-222033 - Vendor Prepayments do not show up for payment|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-222033] Current process: Payment has been made for grain vouchers. Pay record has multiple vouchers associated. User can undistribute one of the tickets associated with a voucher on that Pay record. In turn, we create VPRE for each individual voucher on the Pay Record.     New Flow:   Rather than creating a VPRE for each individual voucher associated with the Pay record, we should only create a VPRE for the one voucher associated with the Ticket. Example as follows.   # TKT-1 created. # BL-1 for $100 created. # TKT-2 created. # BL-2 for $50 created. # PAY-1 created for $150 with details of BL-1, and BL-2. Details were all clear/paid. # TKT-2 undistributed. # VPRE-1 created for $50. # BL-2 is open/unpaid again. # PAY-1 will be associated wtih VPRE-1, and BL-1.