diff --git a/src/components/PickOrderSearch/LotTable.tsx b/src/components/PickOrderSearch/LotTable.tsx index f8db92f..9e92949 100644 --- a/src/components/PickOrderSearch/LotTable.tsx +++ b/src/components/PickOrderSearch/LotTable.tsx @@ -358,7 +358,7 @@ const LotTable: React.FC = ({ checked={selectedLotRowId === `row_${index}`} onChange={() => onLotSelection(`row_${index}`, lot.lotId)} // ✅ Allow selection of available AND insufficient_stock lots - disabled={lot.lotAvailability === 'expired' || lot.lotAvailability === 'status_unavailable'} + //disabled={lot.lotAvailability === 'expired' || lot.lotAvailability === 'status_unavailable'} value={`row_${index}`} name="lot-selection" /> diff --git a/src/components/PickOrderSearch/SearchResultsTable.tsx b/src/components/PickOrderSearch/SearchResultsTable.tsx index 77be50d..5ceb5f8 100644 --- a/src/components/PickOrderSearch/SearchResultsTable.tsx +++ b/src/components/PickOrderSearch/SearchResultsTable.tsx @@ -167,7 +167,7 @@ const SearchResultsTable: React.FC = ({ color={item.currentStockBalance && item.currentStockBalance > 0 ? "success.main" : "error.main"} sx={{ fontWeight: item.currentStockBalance && item.currentStockBalance > 0 ? 'bold' : 'normal' }} > - {item.currentStockBalance || 0} + {item.currentStockBalance?.toLocaleString()||0} @@ -177,6 +177,7 @@ const SearchResultsTable: React.FC = ({ {item.uomDesc || "-"} + {/* Order Quantity */} @@ -208,7 +209,7 @@ const SearchResultsTable: React.FC = ({ }} disabled={isItemInCreated(item.id)} /> - + {/* Target Date */} diff --git a/src/components/PickOrderSearch/newcreatitem.tsx b/src/components/PickOrderSearch/newcreatitem.tsx index 1b10387..0ef22cb 100644 --- a/src/components/PickOrderSearch/newcreatitem.tsx +++ b/src/components/PickOrderSearch/newcreatitem.tsx @@ -1029,10 +1029,10 @@ const handleQtyBlur = useCallback((itemId: number) => { color={stockBalance > 0 ? "success.main" : "error.main"} sx={{ fontWeight: stockBalance > 0 ? 'bold' : 'normal' }} > - {stockBalance} + {stockBalance?.toLocaleString() } - ); - }, + ); + }, }, { name: "targetDate", @@ -1191,7 +1191,7 @@ const handleQtyBlur = useCallback((itemId: number) => { textAlign: 'right' // Add right alignment for the value }} > - {stockBalance} + {stockBalance?.toLocaleString() } );