[Rapid] 0 value basis issues

Issue No: CT-4205
Created 12/13/2019 4:55:32 PM
Type Bug
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-239684 - [Rapid Contract] 0 Basis issues|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-239684] Problem:   # A 0 value should be a valid entry for the basis portion of a contract price. ## This is true for both "basis" and "priced" contracts ## This applies to both purchase and sales contracts # A 0 value should be a valid entry for the basis entry screen in risk management     Use Cases:   # User writes a priced sales contract to one of their customers. Futures = 8.24 and Basis = 0 ## Basis values may be 0, >0, <0 ## A 0 value for the basis means that there is neither an increased nor decreased local demand for the commodity and therefore must be a valid option. Cash price = 8.24 # User writes a sales basis contract to one of their customers. Basis = 0 ## As in 1b above, the local market is showing neither an increased nor decreased demand for the commodity and the grower wants to lock in that neutral basis value. Therefore, 0 must again be a valid option. Cash price = 0 + Futures # User is setting the basis value to be used in risk management. The current local demand is neutral so the local basis value = 0. Therefore, 0 must be a valid option.     Steps to Recreate: Issue 1   # Create a sales priced contract for 1,000 bu of soybeans. # Futures = 8.24, Basis = 0 # Fill in any other required information # Click Save # Contract will not be created because rapid entry doesn't validate 0 as accepted. And says it's an unfilled and required field.     Acceptance:   # Create a sales priced contract for 1,000 bu of soybeans. # Futures = 8.24, Basis = 0 # Fill in any other required information # Click Save # New contract is created     Steps to Recreate: Issue 2   # Open basis entry in risk management # Enter a 0 value for one of the futures months # Error ## 0 is not accepted as a valid entry and the field remains blank     Acceptance: Issue 2   # Open basis entry in risk management # Enter a 0 value for one of the futures months # The chosen futures month should now have a basis value of 0         Steps to Recreate: