Separated global function

This commit is contained in:
Patrick Alvin Alcala 2025-10-06 13:25:41 +08:00
parent 4d42433e07
commit 2aaf87b8d3

View file

@ -65,7 +65,6 @@ export default () => {
setLocation(op.result5[0])
setType(op.result6[0])
setDateOp(dayjs(op.result10[0]).format('MMMM DD, YYYY'))
// setClient(displayFullname(op.result2[0], op.result3[0], op.result4[0]))
setApplicationId(op.result11[0])
setAssessorId(op.result12[0])
setTotalOp(calculateTotal(op.result9))
@ -81,20 +80,6 @@ export default () => {
return total
}
// const displayFullname = (firstname: string, middleinitial: string, lastname: string) => {
// let result
// if (firstname.length > 0) {
// if (middleinitial.length > 0) {
// result = `${firstname} ${middleinitial}. ${lastname}`
// } else {
// result = `${firstname} ${lastname}`
// }
// } else {
// result = lastname
// }
// return result
// }
const approveHandler = async (application: string) => {
let signed: boolean = false
let forprinting: boolean = false