Browse Source

update

master
cyril.tsui 1 month ago
parent
commit
c2112d0880
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/components/ScheduleTable/ScheduleTable.tsx

+ 3
- 2
src/components/ScheduleTable/ScheduleTable.tsx View File

@@ -232,8 +232,9 @@ function ScheduleTable<T extends ResultWithId>({
<IconButton <IconButton
color="primary" color="primary"
disabled={ disabled={
!(row as unknown as DetailedProdScheduleLineResult).bomMaterials.every(ele => (ele.availableQty ?? 0) >= (ele.demandQty ?? 0))
|| editingRowId === row.id
// !(row as unknown as DetailedProdScheduleLineResult).bomMaterials.every(ele => (ele.availableQty ?? 0) >= (ele.demandQty ?? 0))
// ||
editingRowId === row.id
|| (row as unknown as DetailedProdScheduleLineResult).approved} || (row as unknown as DetailedProdScheduleLineResult).approved}
onClick={() => handleReleaseClick(row)} onClick={() => handleReleaseClick(row)}
> >


Loading…
Cancel
Save