[Price Contracts] - Create Voucher After Partial Pricing (Following Scale Load Ins)

Issue No: CT-2025
Created 3/28/2018 2:23:55 PM
Type Feature
Priority Major
Status Closed
Resolution Fixed
Fixed Version 18.3
Description URL = [http://hosting.irely.com/battleTE]   Version = 18.12.0322.108   Steps:   # Created Basis contract 684 # Created, distributed and process scale tickets 442 (100 bushels) and 443 (200 bushels) # Open Price Contracts screen for contract 684 # Price 200 bushels @ 5.40   The Price screen allows this and appears to be stored correctly in the DB (tblCTPriceFixation and tblCTPriceFixationDetail tables) but a voucher was not created.   What should happen:   * Assuming quantity has been received (scale): ** At least one voucher should be created every time a partial price is done. * If the partial price quantity exceeds the 1st scale ticket quantity: ** The extra should be applied to the 2nd scale ticket. ** Two vouchers should be created using the new price - one ticket per voucher. ** However, there could be multiple vouchers per ticket if the quantity priced is less than the scale amount. * If the partial price quantity exceeds the 1st and 2nd scale ticket quantity: ** The extra should be applied to the 1st, 2nd and 3rd scale tickets. ** Three vouchers should be created using the new price. * Partial pricing should continue to apply to scale tickets in a FIFO order. * Once all of the received quantities (sum of all scale tickets) have been priced then no additional partial pricing should be allowed on the sequence.