select top 1 approveruserid from tbl_tpm_requestapprovers ra where ownerid = and ownertype = and requestid = and status is null and not exists ( select * from tbl_tpm_requestapprovers where requestid = and status = 'rejected' ) and not exists ( select * from tbl_tpm_requestapprovers where requestid = and status is not null and approverLevel > ra.approverLevel ) order by approverlevel #firstName# #lastname##_statusOutput#
--->
Approval History
#qmd_requestApprovers.currentrow# #left(firstName,1)# #replace(lastname," "," ","all")# #replace(status,"DRAFT","SET UP")#
Enter your comments and Approve or Reject this request:
Approve Request Reject Request