Unstaging Payments
For all previously staged payments that have not been selected for payment (pymnt_select_status = N), unstage payments will reset the Approved for Payment flag and changes the header and lines status back to APY (Approved for Payment). It then inserts a row on a new table for Unstaging (so that the staging process picks these up in subsequent runs) and then deletes the row from EX_SHEET_PYMNT or EX_ADVNCE_PYMNT. When the Staging process runs, it picks up these unstaged payments and restages them with current information.