({
:
isEdit && handleEditClick(row.id as number)}>
- {row[columnName] as String}
+ {row[columnName] as String}
)}
@@ -265,6 +272,7 @@ function EditableSearchResults({
+ Release
{(isEditable || hasCollapse) && Actions} {/* Action Column Header */}
{columns.map((column, idx) => (
diff --git a/src/components/SearchResults/TempInputGridForMockUp.tsx b/src/components/SearchResults/TempInputGridForMockUp.tsx
index f406aa6..ed6d5a1 100644
--- a/src/components/SearchResults/TempInputGridForMockUp.tsx
+++ b/src/components/SearchResults/TempInputGridForMockUp.tsx
@@ -22,7 +22,7 @@ import {
} from "react";
import StyledDataGrid from "../StyledDataGrid";
import { GridColDef } from "@mui/x-data-grid";
-import { Box, Button, Grid, Typography } from "@mui/material";
+import { Box, Button, Grid, Icon, Typography } from "@mui/material";
import { useTranslation } from "react-i18next";
import { Add } from "@mui/icons-material";
import SaveIcon from "@mui/icons-material/Save";
@@ -36,6 +36,7 @@ import PlayArrowIcon from "@mui/icons-material/PlayArrow";
import { createStockInLine, testFetch } from "@/app/api/po/actions";
import { useSearchParams } from "next/navigation";
import { decimalFormatter, stockInLineStatusMap } from "@/app/utils/formatUtil";
+import CheckCircleOutlineIcon from '@mui/icons-material/CheckCircleOutline';
interface ResultWithId {
id: number;
@@ -184,6 +185,8 @@ function TempInputGridForMockUp({ stockInLine }: Props) {
flex: 0.5,
type: "number",
editable: true,
+ align: "right",
+ headerAlign: "right",
renderCell: (row) => {
return decimalFormatter.format(row.value)
}
@@ -194,10 +197,26 @@ function TempInputGridForMockUp({ stockInLine }: Props) {
headerName: "Demand Qty",
flex: 0.5,
editable: true,
+ align: "right",
+ headerAlign: "right",
renderCell: (row) => {
return decimalFormatter.format(row.value)
}
},
+ {
+ field: "status",
+ headerName: "status",
+ flex: 0.5,
+ editable: true,
+ align: "center",
+ headerAlign: "center",
+ renderCell: () => {
+ return
+ }
+ },
// {
// field: "actions",
// type: "actions",
@@ -398,13 +417,13 @@ function TempInputGridForMockUp({ stockInLine }: Props) {
}
return classname;
}}
- // slots={{
- // footer: FooterToolbar,
- // noRowsOverlay: NoRowsOverlay,
- // }}
- // slotProps={{
- // footer: { child: footer },
- // }}
+ // slots={{
+ // footer: FooterToolbar,
+ // noRowsOverlay: NoRowsOverlay,
+ // }}
+ // slotProps={{
+ // footer: { child: footer },
+ // }}
/>
>
);