|
@@ -74,7 +74,7 @@ class ProcessRowUpdateError extends Error { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function TempInputGridForMockUp({ stockInLine }: Props) { |
|
|
function TempInputGridForMockUp({ stockInLine }: Props) { |
|
|
const { t } = useTranslation("home"); |
|
|
|
|
|
|
|
|
const { t } = useTranslation("schedule"); |
|
|
const apiRef = useGridApiRef(); |
|
|
const apiRef = useGridApiRef(); |
|
|
const [rowModesModel, setRowModesModel] = useState<GridRowModesModel>({}); |
|
|
const [rowModesModel, setRowModesModel] = useState<GridRowModesModel>({}); |
|
|
const getRowId = useCallback<GridRowIdGetter<StockInLineRow>>( |
|
|
const getRowId = useCallback<GridRowIdGetter<StockInLineRow>>( |
|
@@ -169,19 +169,22 @@ function TempInputGridForMockUp({ stockInLine }: Props) { |
|
|
() => [ |
|
|
() => [ |
|
|
{ |
|
|
{ |
|
|
field: "code", |
|
|
field: "code", |
|
|
|
|
|
headerName: t("Code"), |
|
|
flex: 1, |
|
|
flex: 1, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: "name", |
|
|
field: "name", |
|
|
|
|
|
headerName: t("Name"), |
|
|
flex: 1, |
|
|
flex: 1, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: "type", |
|
|
field: "type", |
|
|
|
|
|
headerName: t("type"), |
|
|
flex: 1, |
|
|
flex: 1, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: "inStockQty", |
|
|
field: "inStockQty", |
|
|
headerName: "Available Qty", |
|
|
|
|
|
|
|
|
headerName: t("Available Qty"), |
|
|
flex: 0.5, |
|
|
flex: 0.5, |
|
|
type: "number", |
|
|
type: "number", |
|
|
editable: true, |
|
|
editable: true, |
|
@@ -194,7 +197,7 @@ function TempInputGridForMockUp({ stockInLine }: Props) { |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: "purchaseQty", |
|
|
field: "purchaseQty", |
|
|
headerName: "Demand Qty", |
|
|
|
|
|
|
|
|
headerName: t("Demand Qty"), |
|
|
flex: 0.5, |
|
|
flex: 0.5, |
|
|
editable: true, |
|
|
editable: true, |
|
|
align: "right", |
|
|
align: "right", |
|
@@ -205,7 +208,7 @@ function TempInputGridForMockUp({ stockInLine }: Props) { |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: "status", |
|
|
field: "status", |
|
|
headerName: "status", |
|
|
|
|
|
|
|
|
headerName: t("status"), |
|
|
flex: 0.5, |
|
|
flex: 0.5, |
|
|
editable: true, |
|
|
editable: true, |
|
|
align: "center", |
|
|
align: "center", |
|
|