In our script we see that the approvalstatus field...
# suiteflow
c
In our script we see that the approvalstatus field is 1 (In approval) but the documentstatus = 'E' and the Status = 'Rejected'