Slicing a contract sequence using "Monthly" changes end date incorrectly

Issue No: CT-3314
Created 6/6/2019 11:32:05 AM
Type Bug
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 18.3, 19.1
Description This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-243743 - Contract Sequence: Dates incorrect when slicing|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-243743] This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-231668 - Slicing a contract sequence using "Monthly" changes end date incorrectly|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-231668] Issue:   * Slicing a contract sequence using the monthly function extends the end date by a month for each new sequence. * Common practice would be to enter the start date and end date for the entire contract initially and then the slice would create new sequences within that date range.   Use Case:   # When a user is creating what they'll call a "clock contract", they will initially create a contract with 1 sequence that encompasses the entire quantity and date range of the contract. # User then slices the sequence into 12 individual sequences representing 12 delivery periods. They will choose Monthly to tie a monthly start and end date to each sequence. Seq 1 Start Date should equal the start date of the original contract sequence (before slicing). The start end end date for the subsequent sequences would be the same month. # Example: ## Initial sequence was 01/01/2019 - 12/31/2019 and sliced into 12 sequences ## seq 1 = 01/01/2019 - 01/31/2019 ## seq 2 = 02/01/2019 - 02/28/2019 ## seq 3 = 03/01/2019 - 03/31/2019 ## etc... ## seq 12 = 12/01/2019 - 12/31/2019   Steps:   # Enter new Sale Priced Soybean Contract # Quantity = 12,000 bu # Price = 9.5 # Create new sequence # Start Date = 01/01/2019 # End Date = 12/31/2019 # Slice sequence into 12 sequences using the Monthly Function # * Start date changes sequentially by +1 month # * End date changes sequentially by +1 month for each sequence     Acceptance:   # Enter new Sale Priced Soybean Contract # Quantity = 12,000 bu # Price = 9.5 # Create new sequence # Start Date = 01/01/2019 # End Date = 12/31/2019 # Slice sequence into 12 sequences using the Monthly Function # * Start date changes sequentially by +1 month # * End date equals the end of the corresponding month for start date # EX: Start Date = 01/01/2019 End Date = 01/31/2019     !pastedImage_d119699_0.png|height=97,width=1088!     !pastedImage_d119699_1.png|height=743,width=680!