Inventory Receipt > From Ticket - Cost is wrong when valid Basis Entry is blank

Issue No: RM-1633
Created 7/18/2018 3:57:13 AM
Type Bug-QC
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 18.3
Description Steps:   1. Create a Purchase DP Contract.   !pastedImage_d101444_0.png!   2. Create a Ticket, select the DP Contract and Distribute it.   !pastedImage_d101444_1.png!   Issue: Wrong Cost computed when valid Basis Entry is 0.00.   Here is the Basis Entry setup.   For 7/10/2018, Basis Entry for item - CWRS is blank.   !pastedImage_d101444_2.png!   For 2/13/2018, Basis Entry for item - CWRS is 0.80.   !pastedImage_d101444_3.png!   I tried to check what Basis Entry it used that resulted to 322.205213 IR Cost. Here's what I found.   Ticket is distributed on 7/16/2018 (that is when Inventory Receipt is created), it used the Basis Entry for 2/13, which is 0.80 since Basis Entry for 7/10/2018 is blank.   Cost per Metric Ton in CAD x Bushel Unit Qty = Cost per Bushel in CAD   322.205213 x 0.02721557456 = 8.769   8.769 - 7.969 = 0.80 (this is the Basis Entry on 2/13/2018 but was not converted to CAD)     !pastedImage_d101444_4.png!   Acceptance Criteria:   Get valid Basis entry for the open month, even when value is blank or 0.00. Then when Ticket is disributed, there should be a validation that will tell you that there is no basis entry.   Should the user decide to Distribute the Ticket, the user should add a valid Basis entry, which is either a positive or negative amount.