IO-1075 Io-1074 Admin disable updates

This commit is contained in:
Patrick Fic
2021-05-10 21:43:42 -07:00
parent 15bf129b6e
commit 63a86849fb
3 changed files with 5 additions and 12 deletions

View File

@@ -147,16 +147,6 @@ function BillEnterModalContainer({
})
);
// await updateJobLines({
// variables: {
// ids: remainingValues.billlines
// .filter((il) => il.joblineid !== "noline")
// .map((li) => li.joblineid),
// status: bodyshop.md_order_statuses.default_received || "Received*",
// location: location,
// },
// });
/////////////////////////
if (upload && upload.length > 0) {
//insert Each of the documents?

View File

@@ -57,7 +57,7 @@ export function JobAdminMarkReexport({ bodyshop, job }) {
return (
<Button
loading={loading}
disabled={!job.voided && !job.date_exported}
disabled={(!job.voided && !job.date_exported) || !job.converted}
onClick={handleUpdate}
>
{t("jobs.labels.markforreexport")}

View File

@@ -88,7 +88,10 @@ export function JobsCloseContainer({ setBreadcrumbs, setSelectedHeader }) {
<Space wrap>
<ScoreboardAddButton
job={data ? data.jobs_by_pk : {}}
disabled={data && data.jobs_by_pk.voided}
disabled={
(data && data.jobs_by_pk.voided) ||
(data.jobs_by_pk && !data.jobs_by_pk.converted)
}
/>
<JobsAdminDeleteIntake job={data ? data.jobs_by_pk : {}} />
<JobsAdminMarkReexport job={data ? data.jobs_by_pk : {}} />