IO-1382 Add ownr_co_nm to queries that were missing it.

This commit is contained in:
Patrick Fic
2021-09-27 11:38:48 -07:00
parent 545db54c14
commit 6e22091b81
2 changed files with 6 additions and 2 deletions

View File

@@ -77,6 +77,7 @@ export const QUERY_PARTS_QUEUE = gql`
) { ) {
ownr_fn ownr_fn
ownr_ln ownr_ln
ownr_co_nm
ownr_ph1 ownr_ph1
ownr_ea ownr_ea
plate_no plate_no
@@ -98,6 +99,7 @@ export const QUERY_PARTS_QUEUE = gql`
status status
updated_at updated_at
vehicleid vehicleid
ownerid
} }
} }
`; `;
@@ -110,6 +112,7 @@ export const SUBSCRIPTION_JOBS_IN_PRODUCTION = gql`
ro_number ro_number
ownr_fn ownr_fn
ownr_ln ownr_ln
ownr_co_nm
v_model_yr v_model_yr
v_model_desc v_model_desc
clm_no clm_no
@@ -1636,6 +1639,7 @@ export const QUERY_ALL_JOBS_PAGINATED_STATUS_FILTERED = gql`
) { ) {
ownr_fn ownr_fn
ownr_ln ownr_ln
ownr_co_nm
ownerid ownerid
ownr_ph1 ownr_ph1
ownr_ea ownr_ea

View File

@@ -116,8 +116,8 @@ export function PartsQueuePageComponent({ bodyshop }) {
// sorter: (a, b) => alphaSort(a.ownr_ln, b.ownr_ln), // sorter: (a, b) => alphaSort(a.ownr_ln, b.ownr_ln),
// sortOrder: sortcolumn === "owner" && sortorder, // sortOrder: sortcolumn === "owner" && sortorder,
render: (text, record) => { render: (text, record) => {
return record.owner ? ( return record.ownerid ? (
<Link to={"/manage/owners/" + record.owner.id}> <Link to={"/manage/owners/" + record.ownerid}>
{`${record.ownr_fn || ""} ${record.ownr_ln || ""} ${ {`${record.ownr_fn || ""} ${record.ownr_ln || ""} ${
record.ownr_co_nm || "" record.ownr_co_nm || ""
}`} }`}