Wrong AP Clearing report calculation for 2 contracts/sequence used in one voucher

Issue No: GRN-2511
Created 1/13/2021 4:26:52 AM
Type Bug-QC
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 19.1
Description     Steps:   Create a purchase priced contract with 2 sequences.   Create load in ticket where distribution type is open storage.   In storage screen, settle storage ticket against priced contract. Allocate units to 2 contract sequence.     Issue:     !pastedImage_d151728_0.jpg!   A voucher generated from settlement has 1 contracts but different sequence.   APC report has wrong calculation in this scenario (see screenshot below)   !pastedImage_d151728_1.jpg!   The rows hightlighted in red should be computed based on the number of units per contract/sequence used to zero-out the ap clearing'     Acceptance:   Units must be reflected correctly in select * from vyuAPGrainClearing where strTransactionNumber = 'STR#'