onceApproved is null and not triggering Amendment

Issue No: FRM-4578
Created 2/28/2017 5:37:35 AM
Type Bug
Priority Minor
Status Closed
Resolution Fixed
Fixed Version 17.1
Description This issue relates to i21 Activity. Click the link below to go to the activity.   [Event 02|http://localhost/1712.267/i21/#/frm/Activity?action=edit&filters=&id=163&type=Event] Vm.get(‘onceApproved’) is always coming null. I checked in the transaction table and ysnOnceApproved column value is 1.     \t* I created a contract form a user whose Approvals contain both Contract and Amendment.  \t* Submit the contract for the approval process.  \t* It got approved by both the users.  \t* Then again go back to the user session open the same contract(Do not click on Approvals tab.) and change the Term and saved it.  \t* It did no trigger Amendment approval because onceApproved is null. Due to this Waiting for Submit is coming in the status bar and there is no Submit button or Msg.     But if I click on the Approval tab in contract screen the onceApproved is true.     Also I need to find out if the Approval record(tblSMApproval) is for Contract or for Amendment from database. Because in the contract report I need to mention which are the field changed during the Amendment.     !http://jira.irelyserver.comfile///C:/Users/ssahoo/AppData/Local/Temp/msohtmlclip1/01/clip_image002.jpg|height=467,width=537!     !http://jira.irelyserver.comfile///C:/Users/ssahoo/AppData/Local/Temp/msohtmlclip1/01/clip_image004.jpg|height=210,width=1042!     !http://jira.irelyserver.comfile///C:/Users/ssahoo/AppData/Local/Temp/msohtmlclip1/01/clip_image006.jpg|height=752,width=1093!     !http://jira.irelyserver.comfile///C:/Users/ssahoo/AppData/Local/Temp/msohtmlclip1/01/clip_image008.jpg|height=251,width=682!