IO-1898 Add vehicle notes.
This commit is contained in:
@@ -44249,6 +44249,27 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>notes</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>
|
<concept_node>
|
||||||
<name>plate_no</name>
|
<name>plate_no</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
|
|||||||
@@ -216,6 +216,20 @@ export function JobsDetailHeader({ job, bodyshop, disabled }) {
|
|||||||
<DataLabel label={t("jobs.labels.relatedros")}>
|
<DataLabel label={t("jobs.labels.relatedros")}>
|
||||||
<JobsRelatedRos jobid={job.id} job={job} />
|
<JobsRelatedRos jobid={job.id} job={job} />
|
||||||
</DataLabel>
|
</DataLabel>
|
||||||
|
{job.vehicle.notes && (
|
||||||
|
<DataLabel label={t("vehicles.fields.notes")}>
|
||||||
|
<span style={{ whiteSpace: "pre" }}>{job.vehicle.notes}</span>
|
||||||
|
</DataLabel>
|
||||||
|
)}
|
||||||
|
{job.vehicle.v_paint_codes && (
|
||||||
|
<DataLabel label={t("vehicles.fields.v_paint_codes")}>
|
||||||
|
<span style={{ whiteSpace: "pre" }}>
|
||||||
|
{Object.keys(job.vehicle.v_paint_codes).map((key, idx) => (
|
||||||
|
<Tag key={idx}>{job.vehicle.v_paint_codes[key]}</Tag>
|
||||||
|
))}
|
||||||
|
</span>
|
||||||
|
</DataLabel>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
</Col>
|
</Col>
|
||||||
|
|||||||
@@ -139,6 +139,9 @@ export default function VehicleDetailFormComponent({ form, loading }) {
|
|||||||
<Input />
|
<Input />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
|
<Form.Item label={t("vehicles.fields.notes")} name="notes">
|
||||||
|
<Input.TextArea rows={4} />
|
||||||
|
</Form.Item>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -530,6 +530,8 @@ export const GET_JOB_BY_PK = gql`
|
|||||||
v_model_desc
|
v_model_desc
|
||||||
v_make_desc
|
v_make_desc
|
||||||
v_color
|
v_color
|
||||||
|
notes
|
||||||
|
v_paint_codes
|
||||||
jobs {
|
jobs {
|
||||||
id
|
id
|
||||||
ro_number
|
ro_number
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ export const QUERY_VEHICLE_BY_ID = gql`
|
|||||||
v_bstyle
|
v_bstyle
|
||||||
updated_at
|
updated_at
|
||||||
trim_color
|
trim_color
|
||||||
|
notes
|
||||||
jobs {
|
jobs {
|
||||||
id
|
id
|
||||||
ro_number
|
ro_number
|
||||||
|
|||||||
@@ -2633,6 +2633,7 @@
|
|||||||
},
|
},
|
||||||
"fields": {
|
"fields": {
|
||||||
"description": "Vehicle Description",
|
"description": "Vehicle Description",
|
||||||
|
"notes": "Vehicle Notes",
|
||||||
"plate_no": "License Plate",
|
"plate_no": "License Plate",
|
||||||
"plate_st": "Plate Jurisdiction",
|
"plate_st": "Plate Jurisdiction",
|
||||||
"trim_color": "Trim Color",
|
"trim_color": "Trim Color",
|
||||||
|
|||||||
@@ -2633,6 +2633,7 @@
|
|||||||
},
|
},
|
||||||
"fields": {
|
"fields": {
|
||||||
"description": "Descripcion del vehiculo",
|
"description": "Descripcion del vehiculo",
|
||||||
|
"notes": "",
|
||||||
"plate_no": "Placa",
|
"plate_no": "Placa",
|
||||||
"plate_st": "Jurisdicción de placas",
|
"plate_st": "Jurisdicción de placas",
|
||||||
"trim_color": "Recortar color",
|
"trim_color": "Recortar color",
|
||||||
|
|||||||
@@ -2633,6 +2633,7 @@
|
|||||||
},
|
},
|
||||||
"fields": {
|
"fields": {
|
||||||
"description": "Description du véhicule",
|
"description": "Description du véhicule",
|
||||||
|
"notes": "",
|
||||||
"plate_no": "Plaque d'immatriculation",
|
"plate_no": "Plaque d'immatriculation",
|
||||||
"plate_st": "Juridiction de la plaque",
|
"plate_st": "Juridiction de la plaque",
|
||||||
"trim_color": "Couleur de garniture",
|
"trim_color": "Couleur de garniture",
|
||||||
|
|||||||
@@ -4925,60 +4925,62 @@
|
|||||||
- active:
|
- active:
|
||||||
_eq: true
|
_eq: true
|
||||||
columns:
|
columns:
|
||||||
- id
|
|
||||||
- created_at
|
- created_at
|
||||||
- updated_at
|
|
||||||
- v_vin
|
|
||||||
- v_make_desc
|
|
||||||
- v_model_desc
|
|
||||||
- v_model_yr
|
|
||||||
- v_color
|
|
||||||
- v_paint_codes
|
|
||||||
- v_bstyle
|
|
||||||
- v_engine
|
|
||||||
- shopid
|
|
||||||
- db_v_code
|
- db_v_code
|
||||||
|
- id
|
||||||
|
- notes
|
||||||
- plate_no
|
- plate_no
|
||||||
- plate_st
|
- plate_st
|
||||||
- v_cond
|
- shopid
|
||||||
- v_prod_dt
|
|
||||||
- v_type
|
|
||||||
- v_trimcode
|
|
||||||
- trim_color
|
- trim_color
|
||||||
- v_mldgcode
|
- updated_at
|
||||||
- v_options
|
- v_bstyle
|
||||||
- v_tone
|
- v_color
|
||||||
- v_stage
|
- v_cond
|
||||||
|
- v_engine
|
||||||
|
- v_make_desc
|
||||||
- v_makecode
|
- v_makecode
|
||||||
|
- v_mldgcode
|
||||||
|
- v_model_desc
|
||||||
|
- v_model_yr
|
||||||
|
- v_options
|
||||||
|
- v_paint_codes
|
||||||
|
- v_prod_dt
|
||||||
|
- v_stage
|
||||||
|
- v_tone
|
||||||
|
- v_trimcode
|
||||||
|
- v_type
|
||||||
|
- v_vin
|
||||||
select_permissions:
|
select_permissions:
|
||||||
- role: user
|
- role: user
|
||||||
permission:
|
permission:
|
||||||
columns:
|
columns:
|
||||||
- v_paint_codes
|
- created_at
|
||||||
- db_v_code
|
- db_v_code
|
||||||
|
- id
|
||||||
|
- notes
|
||||||
- plate_no
|
- plate_no
|
||||||
- plate_st
|
- plate_st
|
||||||
|
- shopid
|
||||||
- trim_color
|
- trim_color
|
||||||
|
- updated_at
|
||||||
- v_bstyle
|
- v_bstyle
|
||||||
- v_color
|
- v_color
|
||||||
- v_cond
|
- v_cond
|
||||||
- v_engine
|
- v_engine
|
||||||
- v_makecode
|
|
||||||
- v_make_desc
|
- v_make_desc
|
||||||
|
- v_makecode
|
||||||
- v_mldgcode
|
- v_mldgcode
|
||||||
- v_model_desc
|
- v_model_desc
|
||||||
- v_model_yr
|
- v_model_yr
|
||||||
- v_options
|
- v_options
|
||||||
|
- v_paint_codes
|
||||||
- v_prod_dt
|
- v_prod_dt
|
||||||
- v_stage
|
- v_stage
|
||||||
- v_tone
|
- v_tone
|
||||||
- v_trimcode
|
- v_trimcode
|
||||||
- v_type
|
- v_type
|
||||||
- v_vin
|
- v_vin
|
||||||
- created_at
|
|
||||||
- updated_at
|
|
||||||
- id
|
|
||||||
- shopid
|
|
||||||
filter:
|
filter:
|
||||||
bodyshop:
|
bodyshop:
|
||||||
associations:
|
associations:
|
||||||
@@ -4993,31 +4995,32 @@
|
|||||||
- role: user
|
- role: user
|
||||||
permission:
|
permission:
|
||||||
columns:
|
columns:
|
||||||
- v_paint_codes
|
- created_at
|
||||||
- db_v_code
|
- db_v_code
|
||||||
|
- id
|
||||||
|
- notes
|
||||||
- plate_no
|
- plate_no
|
||||||
- plate_st
|
- plate_st
|
||||||
|
- shopid
|
||||||
- trim_color
|
- trim_color
|
||||||
|
- updated_at
|
||||||
- v_bstyle
|
- v_bstyle
|
||||||
- v_color
|
- v_color
|
||||||
- v_cond
|
- v_cond
|
||||||
- v_engine
|
- v_engine
|
||||||
- v_makecode
|
|
||||||
- v_make_desc
|
- v_make_desc
|
||||||
|
- v_makecode
|
||||||
- v_mldgcode
|
- v_mldgcode
|
||||||
- v_model_desc
|
- v_model_desc
|
||||||
- v_model_yr
|
- v_model_yr
|
||||||
- v_options
|
- v_options
|
||||||
|
- v_paint_codes
|
||||||
- v_prod_dt
|
- v_prod_dt
|
||||||
- v_stage
|
- v_stage
|
||||||
- v_tone
|
- v_tone
|
||||||
- v_trimcode
|
- v_trimcode
|
||||||
- v_type
|
- v_type
|
||||||
- v_vin
|
- v_vin
|
||||||
- created_at
|
|
||||||
- updated_at
|
|
||||||
- id
|
|
||||||
- shopid
|
|
||||||
filter:
|
filter:
|
||||||
bodyshop:
|
bodyshop:
|
||||||
associations:
|
associations:
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
-- Could not auto-generate a down migration.
|
||||||
|
-- Please write an appropriate down migration for the SQL below:
|
||||||
|
-- alter table "public"."vehicles" add column "notes" text
|
||||||
|
-- null;
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
alter table "public"."vehicles" add column "notes" text
|
||||||
|
null;
|
||||||
@@ -917,7 +917,10 @@ exports.GET_JOB_BY_PK = ` query GET_JOB_BY_PK($id: uuid!) {
|
|||||||
est_co_nm
|
est_co_nm
|
||||||
est_ct_fn
|
est_ct_fn
|
||||||
est_ct_ln
|
est_ct_ln
|
||||||
|
vehicle{
|
||||||
|
id
|
||||||
|
notes
|
||||||
|
}
|
||||||
est_ph1
|
est_ph1
|
||||||
est_ea
|
est_ea
|
||||||
selling_dealer
|
selling_dealer
|
||||||
|
|||||||
Reference in New Issue
Block a user