Added clearing of lock
This commit is contained in:
parent
f07bb72625
commit
2ee284b3e6
1 changed files with 13 additions and 0 deletions
|
|
@ -413,6 +413,7 @@ export default () => {
|
|||
await updateOpForApproval(division, application)
|
||||
setLoadingText('Processing for Re-approval')
|
||||
await clearEsignTransactions(application)
|
||||
await clearEsignLock(application)
|
||||
} else if (division === 'occupancy') {
|
||||
await setNewStatus(division, 'OCCUPANCY ORDER OF PAYMENT VOIDED', '174', 'OCCOPVOIDED', 1)
|
||||
//UNFINISH
|
||||
|
|
@ -584,6 +585,18 @@ export default () => {
|
|||
}
|
||||
}
|
||||
|
||||
const clearEsignLock = async (application: string) => {
|
||||
let deleteLock
|
||||
const check = await getApi('check-esignlock', application)
|
||||
|
||||
if (parseInt(check) > 0) {
|
||||
deleteLock = await deleteApi('delete-esignlock', { data: application })
|
||||
return deleteLock
|
||||
} else {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
const saveConfig = async () => {
|
||||
if (configNewName() !== '') await saveNewName(parseInt(employeeId().toString()), configNewName())
|
||||
if (configNewPassword() !== '') await saveNewPassword(parseInt(employeeId().toString()), configNewEncPassword())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue