Updated assessor page

This commit is contained in:
Patrick Alvin Alcala 2026-03-27 19:42:54 +08:00
parent 9ff7f33c71
commit 3354a74cd7

View file

@ -80,8 +80,8 @@ export default () => {
const [filter, setFilter] = createSignal('')
// const listType = ['Print', 'Reprint (No Change)', 'Void and Reapprove']
const listType = ['Print', 'Reprint (No Change)']
const listType = ['Print', 'Reprint (No Change)', 'Void and Reapprove']
// const listType = ['Print', 'Reprint (No Change)']
const [selectedType, setSelectedType] = createSignal('Print')
const [voidError, setVoidError] = createSignal(false)
@ -378,9 +378,6 @@ export default () => {
if (status.pops_paid === true) popsPaid = true
}
// const status = await statusPopsOp(application)
// const message = status.message
if (!popsExist) {
setIsLoading(false)
setVoidError(true)
@ -399,10 +396,18 @@ export default () => {
if (division === 'electrical') {
await setNewStatus(division, 'ELECTRICAL ORDER OF PAYMENT VOIDED', '173', 'ELECOPVOIDED', 1)
await setNewStatus(division, 'FOR ELECTRICAL ORDER OF PAYMENT APPROVAL', '94', 'ELECOPAPPROVE', 0)
setLoadingText('Processing for Re-approvalsss222')
await updateDocflow(division, application, 'FOR ELECTRICAL ORDER OF PAYMENT PRINTING')
const checkOpPrinting = await checkDocflow(division, application, 'FOR ELECTRICAL ORDER OF PAYMENT PRINTING')
if (checkOpPrinting) {
await updateDocflow(division, application, 'FOR ELECTRICAL ORDER OF PAYMENT PRINTING')
}
setLoadingText('Processing for Re-approvalsss')
await updateDocflow(division, application, 'FOR ELECTRICAL OFFICIAL RECEIPT VALIDATION')
const checkOrValidation = await checkDocflow(division, application, 'FOR ELECTRICAL OFFICIAL RECEIPT VALIDATION')
if (checkOrValidation) {
await updateDocflow(division, application, 'FOR ELECTRICAL OFFICIAL RECEIPT VALIDATION')
}
// await updateDocflow(division, application, 'FOR ELECTRICAL OFFICIAL RECEIPT VALIDATION')
await updateOpForApproval(division, application)
setLoadingText('Processing for Re-approvalsss')
await clearEsignTransactions(application)
@ -463,6 +468,11 @@ export default () => {
})
}
const checkDocflow = async (division: string, application: string, status: string) => {
const response = await getApi(`check-docflowprinting-${division}`, application, status)
return parseInt(response) === 0
}
const getSignatureImage = async (id: number) => {
try {
const response = await getApi('get-signatureimage', id)