|
|
|
@@ -89,8 +89,10 @@ const JoSearch: React.FC<Props> = ({ defaultInputs, bomCombo }) => { |
|
|
|
{ |
|
|
|
name: "status", |
|
|
|
label: t("Status"), |
|
|
|
renderCell: (row) => { |
|
|
|
return t(upperFirst(row.status)) |
|
|
|
renderCell: (row) => { // TODO improve |
|
|
|
return <span style={{color: row.stockInLineStatus == "escalated" ? "red" : "inherit"}}> |
|
|
|
{t(upperFirst(row.status))} |
|
|
|
</span> |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
@@ -195,7 +197,7 @@ const JoSearch: React.FC<Props> = ({ defaultInputs, bomCombo }) => { |
|
|
|
// case "storing": btnSx = {label: t("view putaway"), color:"secondary.main"}; break; |
|
|
|
case "storing": |
|
|
|
switch (silStatus) { |
|
|
|
case "pending": btnSx = {label: t("process epqc"), color:"primary.main"}; break; |
|
|
|
case "pending": btnSx = {label: t("process epqc"), color:"success.main"}; break; |
|
|
|
case "received": btnSx = {label: t("view putaway"), color:"secondary.main"}; break; |
|
|
|
case "escalated": |
|
|
|
if (sessionToken?.id == jo.silHandlerId) { |
|
|
|
@@ -225,6 +227,7 @@ const JoSearch: React.FC<Props> = ({ defaultInputs, bomCombo }) => { |
|
|
|
if (record.stockInLineId != null) { |
|
|
|
const data = { |
|
|
|
id: record.stockInLineId, |
|
|
|
expiryDate: arrayToDateString(dayjs().add(1, "month"), "input"), |
|
|
|
} |
|
|
|
setModalInfo(data); |
|
|
|
setOpenModal(true); |
|
|
|
|