Updated backend

This commit is contained in:
Patrick Alvin Alcala 2025-10-16 17:25:13 +08:00
parent b11fcdb236
commit 03ebafab67
2 changed files with 13 additions and 2 deletions

View file

@ -736,6 +736,16 @@ func connect() {
"result": result,
})
case "get-signeddateassessed-electrical":
err := db.QueryRow(`SELECT IFNULL(txndate, '') AS result FROM electricaldocflowtxn WHERE electricalid = ? AND remarks = "FOR ELECTRICAL ORDER OF PAYMENT APPROVAL"`, data).Scan(&result)
if err != nil {
c.AbortWithError(http.StatusBadRequest, err)
c.String(http.StatusBadRequest, err.Error())
return
}
c.JSON(http.StatusOK, gin.H{
"result": result,
})
}
})
@ -774,6 +784,7 @@ func connect() {
c.JSON(http.StatusOK, gin.H{
"result": result,
})
}
})