Browse Source

update

master
CANCERYS\kw093 23 hours ago
parent
commit
3e808d454f
3 changed files with 8 additions and 7 deletions
  1. +1
    -1
      src/components/PickOrderSearch/LotTable.tsx
  2. +3
    -2
      src/components/PickOrderSearch/SearchResultsTable.tsx
  3. +4
    -4
      src/components/PickOrderSearch/newcreatitem.tsx

+ 1
- 1
src/components/PickOrderSearch/LotTable.tsx View File

@@ -358,7 +358,7 @@ const LotTable: React.FC<LotTableProps> = ({
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"
/>


+ 3
- 2
src/components/PickOrderSearch/SearchResultsTable.tsx View File

@@ -167,7 +167,7 @@ const SearchResultsTable: React.FC<SearchResultsTableProps> = ({
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}
</Typography>
</TableCell>
@@ -177,6 +177,7 @@ const SearchResultsTable: React.FC<SearchResultsTableProps> = ({
{item.uomDesc || "-"}
</Typography>
</TableCell>
<TableCell align="right">
{/* Order Quantity */}

@@ -208,7 +209,7 @@ const SearchResultsTable: React.FC<SearchResultsTableProps> = ({
}}
disabled={isItemInCreated(item.id)}
/>
</TableCell>
{/* Target Date */}
<TableCell align="right">
<Typography variant="body2">


+ 4
- 4
src/components/PickOrderSearch/newcreatitem.tsx View File

@@ -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() }
</Typography>
);
},
);
},
},
{
name: "targetDate",
@@ -1191,7 +1191,7 @@ const handleQtyBlur = useCallback((itemId: number) => {
textAlign: 'right' // Add right alignment for the value
}}
>
{stockBalance}
{stockBalance?.toLocaleString() }
</Typography>
</Box>
);


Loading…
Cancel
Save