IO-1862 Only show remove from production when job in production on close screen.

This commit is contained in:
Patrick Fic
2022-06-09 13:18:49 -07:00
parent c01f402f92
commit 0089e50a29
2 changed files with 2 additions and 1 deletions

View File

@@ -1829,6 +1829,7 @@ export const QUERY_JOB_CLOSE_DETAILS = gql`
ins_co_id
dms_allocation
id
inproduction
ded_amt
ded_status
depreciation_taxes

View File

@@ -250,7 +250,7 @@ export function JobsCloseComponent({ job, bodyshop, jobRO }) {
onlyFuture={!!bodyshop.cdk_dealerid}
/>
</Form.Item>
{!jobRO && (
{!jobRO && job.inproduction && (
<Form.Item
label={t("jobs.actions.removefromproduction")}
name="removefromproduction"