refactor(quality): added some new options plus cancel button

This commit is contained in:
2025-11-19 18:41:44 -06:00
parent 566754bf2e
commit 242ff6277a
7 changed files with 241 additions and 78 deletions

View File

@@ -71,21 +71,21 @@ export const qualityCycle = async () => {
const qDataPost = {
warehouseMovedTo: prodData[0]?.warehouseAtRequest,
locationMovedTo: prodData[0]?.locationAtRequest,
// how ling did it take the warhouse to originally move the pallet
// how ling did it take the warehouse to originally move the pallet
durationToMove: warehouse.includes(lstQData[i].palletStatus)
? differenceInMinutes(
new Date(Date.now()),
lstQData[i].upd_date,
)
: lstQData[i].durationToMove,
// how long did it take warehouse to move the pallet back agian
// how long did it take warehouse to move the pallet back again
returnDurationToInspect:
lstQData[i].palletStatus === 7
? differenceInMinutes(
new Date(Date.now()),
lstQData[i].upd_date,
)
: lstQData[i].qualityDurationToInspect,
: lstQData[i].returnDurationToInspect,
palletStatus: 2,
palletStatusText: "moved",
upd_date: sql`NOW()`,