fix(ocme): cycle counts on an empty stock row would crash corrected so this wont happen
This commit is contained in:
@@ -81,7 +81,9 @@ export const cycleCount = async (lane: any, user: User) => {
|
|||||||
const postCount = {
|
const postCount = {
|
||||||
laneId: ocme[0].alpla_laneID,
|
laneId: ocme[0].alpla_laneID,
|
||||||
warehouseName: "",
|
warehouseName: "",
|
||||||
laneName: alplaStock[0].alpla_laneDescription,
|
laneName: alplaStock[0]?.alpla_laneDescription
|
||||||
|
? alplaStock[0].alpla_laneDescription
|
||||||
|
: ocme[0].alpla_laneDescription,
|
||||||
good: !combineBoth.every(
|
good: !combineBoth.every(
|
||||||
(s) => !s.info.includes("Validate") || !s.info.includes("sent")
|
(s) => !s.info.includes("Validate") || !s.info.includes("sent")
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user