refactor(quality): added some new options plus cancel button
This commit is contained in:
@@ -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()`,
|
||||
|
||||
Reference in New Issue
Block a user