IO-1075 Io-1074 Admin disable updates
This commit is contained in:
@@ -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?
|
||||
|
||||
@@ -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")}
|
||||
|
||||
@@ -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 : {}} />
|
||||
|
||||
Reference in New Issue
Block a user