Voucher: Voucher totals and qty incorrect

Issue No: SC-2575
Created 3/15/2019 1:26:00 PM
Type Bug
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 18.3
Description Steps:   1. Create new purchase contract where pricing type is Basis. Sample below:   !pastedImage_d114129_0.png!   2. Create Settlement Price for the item's commodity.   !pastedImage_d114129_1.png!   3. Create Basis Entry for the basis purchase contract.   !pastedImage_d114129_2.png!   4. Create another purchase contract where pricing type is Priced.   !pastedImage_d114129_3.png!   5. Price the basis purchase contract and save.   !pastedImage_d114129_4.png!   6. Create Load In ticket and select the purchase basis contract. On Manual Distribution screen, allocate the quantity on the 2 contracts and process. (Contract 1 = 13,964.314471 and Contract 2 = 4496.77)   !pastedImage_d114129_5.png!   7. It creates single Inventory Receipt. Order Qty, Receipt Qty and Cost are correct.   !pastedImage_d114129_6.png!   8. Check the Voucher search   Issue:   It creates 2 vouchers:   !pastedImage_d114129_7.png!   Voucher 1:   !pastedImage_d114129_8.png!   Voucher 2:   !pastedImage_d114129_9.png!   Acceptance:   Should only create 1 Voucher and should match qty and price totals on associated IR   ==================================================================================================================================   Steps:   * Scale Ticket 242 was distributed and auto applied to contracts 10023 and 10024 * IR-1589 was created * Vouchers 4211 and 4212 were created * Voucher 4211 doubled the qty of the amount that should be applied to Contract 10023 and also applied it to 10024 at the same price * Voucher 4212 was created for the amount of units that should have been applied to contract 10024 but at zero price. This created a voucher for $0.00 * Both Contracts were priced prior to tickets being applied to contracts * I deleted 4212 to try to correct the issue * I unposted 4211 and attempted to delete and got the following error: * !pastedImage_d114129_10.png! * I attempted to undistribute ticket 242 and got the following error: * !pastedImage_d114129_11.png!   Issue:   * Voucher is created at the incorrect units and price * second voucher should not have been created   Acceptance   * Voucher should match qty and price totals on IR-1589