Update src/Pages/BookingScreen/Components/BSItemCards/BSItemCard.jsx
This commit is contained in:
parent
898804559f
commit
f19ac0a651
|
|
@ -2101,7 +2101,6 @@ const BSItemCard = (props) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else if (itemWiseLimitPreferenece) {
|
} else if (itemWiseLimitPreferenece) {
|
||||||
|
|
||||||
const inwardQtyMap = CartOrderDetails.reduce((acc, curr) => {
|
const inwardQtyMap = CartOrderDetails.reduce((acc, curr) => {
|
||||||
const inwardId = curr?.InwardDtlId;
|
const inwardId = curr?.InwardDtlId;
|
||||||
const qty = Number(curr?.OrderQty) || 0;
|
const qty = Number(curr?.OrderQty) || 0;
|
||||||
|
|
@ -2124,7 +2123,7 @@ const BSItemCard = (props) => {
|
||||||
inwardQtyMap[currentInwardId] = addQty;
|
inwardQtyMap[currentInwardId] = addQty;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("Final InwardDtlId Qty Map:", inwardQtyMap);
|
console.log('Final InwardDtlId Qty Map:', inwardQtyMap);
|
||||||
const isExceeded = Object.values(inwardQtyMap).some(
|
const isExceeded = Object.values(inwardQtyMap).some(
|
||||||
(qty) => qty > maxQtyLimit
|
(qty) => qty > maxQtyLimit
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue