|
|
|
@@ -619,17 +619,32 @@ const closeNewModal = useCallback(() => { |
|
|
|
key={`edit`} |
|
|
|
/>, |
|
|
|
<GridActionsCellItem |
|
|
|
icon={<Button |
|
|
|
id="emailSupplier" |
|
|
|
type="button" |
|
|
|
variant="contained" |
|
|
|
color="primary" |
|
|
|
sx={{ width: '150px' }} |
|
|
|
disabled={params.row.status != "rejected" && params.row.status != "partially_completed"} |
|
|
|
onClick={() => handleMailTemplateForStockInLine(params.row.id as number)} |
|
|
|
> |
|
|
|
{t("email supplier")} |
|
|
|
</Button>} |
|
|
|
icon={ |
|
|
|
data.status !== "received" ? |
|
|
|
(<Button |
|
|
|
id="emailSupplier" |
|
|
|
type="button" |
|
|
|
variant="contained" |
|
|
|
color="primary" |
|
|
|
sx={{ width: '150px' }} |
|
|
|
disabled={params.row.status != "rejected" && params.row.status != "partially_completed"} |
|
|
|
onClick={() => handleMailTemplateForStockInLine(params.row.id as number)} |
|
|
|
> |
|
|
|
{t("email supplier")} |
|
|
|
</Button>) : ( |
|
|
|
<Button |
|
|
|
id="printQrCode" |
|
|
|
type="button" |
|
|
|
variant="contained" |
|
|
|
// color="red" |
|
|
|
sx={{ width: '150px', backgroundColor: '#7f434a' }} |
|
|
|
disabled={btnIsLoading || data.status != "received"} |
|
|
|
onClick={() => printQrcode(params.row)} |
|
|
|
> |
|
|
|
{t("printQrCode")} |
|
|
|
</Button> |
|
|
|
) |
|
|
|
} |
|
|
|
label="start" |
|
|
|
sx={{ |
|
|
|
// color: "primary.main", |
|
|
|
|