IO-1020 Show CCC on job detail header.
This commit is contained in:
@@ -20652,6 +20652,27 @@
|
||||
</translation>
|
||||
</translations>
|
||||
</concept_node>
|
||||
<concept_node>
|
||||
<name>contracts</name>
|
||||
<definition_loaded>false</definition_loaded>
|
||||
<description></description>
|
||||
<comment></comment>
|
||||
<default_text></default_text>
|
||||
<translations>
|
||||
<translation>
|
||||
<language>en-US</language>
|
||||
<approved>false</approved>
|
||||
</translation>
|
||||
<translation>
|
||||
<language>es-MX</language>
|
||||
<approved>false</approved>
|
||||
</translation>
|
||||
<translation>
|
||||
<language>fr-CA</language>
|
||||
<approved>false</approved>
|
||||
</translation>
|
||||
</translations>
|
||||
</concept_node>
|
||||
<concept_node>
|
||||
<name>cost</name>
|
||||
<definition_loaded>false</definition_loaded>
|
||||
|
||||
@@ -81,6 +81,17 @@ export function JobsDetailHeader({ job, bodyshop, disabled }) {
|
||||
{job.alt_transport}
|
||||
<JobAltTransportChange job={job} />
|
||||
</DataLabel>
|
||||
{job.cccontracts.length > 0 && (
|
||||
<DataLabel label={t("jobs.labels.contracts")}>
|
||||
{job.cccontracts.map((c) => (
|
||||
<Link
|
||||
key={c.id}
|
||||
to={`/manage/courtesycars/contracts/${c.id}`}
|
||||
>{`${c.agreementnumber} - ${c.courtesycar.fleetnumber} ${c.courtesycar.year} ${c.courtesycar.make} ${c.courtesycar.model}`}</Link>
|
||||
))}
|
||||
</DataLabel>
|
||||
)}
|
||||
|
||||
{(job.inproduction || jobInPostProduction) && (
|
||||
<DataLabel label={t("jobs.fields.production_vars.note")}>
|
||||
<ProductionListColumnProductionNote record={job} />
|
||||
|
||||
@@ -15,7 +15,6 @@ const mapStateToProps = createStructuredSelector({
|
||||
});
|
||||
|
||||
export function JobsDetailRates({ jobRO, form, job }) {
|
||||
console.log(form.getFieldsValue());
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<div>
|
||||
|
||||
@@ -574,6 +574,7 @@ export const GET_JOB_BY_PK = gql`
|
||||
model
|
||||
year
|
||||
plate
|
||||
fleetnumber
|
||||
}
|
||||
}
|
||||
cieca_ttl
|
||||
|
||||
@@ -1238,6 +1238,7 @@
|
||||
"checklistdocuments": "Checklist Documents",
|
||||
"checklists": "Checklists",
|
||||
"closeconfirm": "Are you sure you want to close this job? This cannot be easily undone.",
|
||||
"contracts": "CC Contracts",
|
||||
"cost": "Cost",
|
||||
"cost_labor": "Cost - Labor",
|
||||
"cost_parts": "Cost - Parts",
|
||||
|
||||
@@ -1238,6 +1238,7 @@
|
||||
"checklistdocuments": "",
|
||||
"checklists": "",
|
||||
"closeconfirm": "",
|
||||
"contracts": "",
|
||||
"cost": "",
|
||||
"cost_labor": "",
|
||||
"cost_parts": "",
|
||||
|
||||
@@ -1238,6 +1238,7 @@
|
||||
"checklistdocuments": "",
|
||||
"checklists": "",
|
||||
"closeconfirm": "",
|
||||
"contracts": "",
|
||||
"cost": "",
|
||||
"cost_labor": "",
|
||||
"cost_parts": "",
|
||||
|
||||
Reference in New Issue
Block a user