From 57886dc276cf54c77321f7a28426f1c431721ce7 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 21 Jan 2020 08:54:37 -0800 Subject: [PATCH] Updated field names. --- .../job-detail-cards.customer.component.jsx | 12 ++++++------ .../jobs-list/jobs-list.component.jsx | 12 ++++++------ client/src/graphql/jobs.queries.js | 18 ++++++++---------- .../down.yaml | 6 ++++++ .../up.yaml | 6 ++++++ .../down.yaml | 6 ++++++ .../up.yaml | 6 ++++++ .../down.yaml | 6 ++++++ .../up.yaml | 6 ++++++ 9 files changed, 56 insertions(+), 22 deletions(-) create mode 100644 hasura/migrations/1579565033587_alter_table_public_jobs_alter_column_ded_status/down.yaml create mode 100644 hasura/migrations/1579565033587_alter_table_public_jobs_alter_column_ded_status/up.yaml create mode 100644 hasura/migrations/1579565906890_alter_table_public_vehicles_alter_column_v_vin/down.yaml create mode 100644 hasura/migrations/1579565906890_alter_table_public_vehicles_alter_column_v_vin/up.yaml create mode 100644 hasura/migrations/1579565961308_alter_table_public_vehicles_alter_column_v_vin/down.yaml create mode 100644 hasura/migrations/1579565961308_alter_table_public_vehicles_alter_column_v_vin/up.yaml diff --git a/client/src/components/job-detail-cards/job-detail-cards.customer.component.jsx b/client/src/components/job-detail-cards/job-detail-cards.customer.component.jsx index 1ad95037a..ffb3fc607 100644 --- a/client/src/components/job-detail-cards/job-detail-cards.customer.component.jsx +++ b/client/src/components/job-detail-cards/job-detail-cards.customer.component.jsx @@ -13,14 +13,14 @@ export default function JobDetailCardsCustomerComponent({ loading, data }) { extraLink={data?.owner ? `/manage/owners/${data?.owner?.id}` : null}> {data ? ( -
{`${data?.pit_owner_first_name ?? - ""} ${data.pit_owner_last_name ?? ""}`}
+
{`${data?.ownr_fn ?? + ""} ${data.ownr_ln ?? ""}`}
- {`${data?.pit_owner_phone ?? ""}`} + {`${data?.ownr_ph1 ?? ""}`}
- {data?.pit_owner_email ? ( - -
{`${data?.pit_owner_email ?? ""}`}
+ {data?.ownr_ea ? ( +
+
{`${data?.ownr_ea ?? ""}`}
) : null} diff --git a/client/src/components/jobs-list/jobs-list.component.jsx b/client/src/components/jobs-list/jobs-list.component.jsx index 30af167ed..e64a39889 100644 --- a/client/src/components/jobs-list/jobs-list.component.jsx +++ b/client/src/components/jobs-list/jobs-list.component.jsx @@ -43,13 +43,13 @@ export default function JobsList({ dataIndex: "owner", key: "owner", ellipsis: true, - sorter: (a, b) => alphaSort(a.pit_owner_last_name, b.pit_owner_last_name), + sorter: (a, b) => alphaSort(a.ownr_ln, b.ownr_ln), sortOrder: state.sortedInfo.columnKey === "owner" && state.sortedInfo.order, render: (text, record) => { return record.owner ? ( - {record.pit_owner_first_name} {record.pit_owner_last_name} + {record.ownr_fn} {record.ownr_ln} ) : ( t("jobs.errors.noowner") @@ -58,13 +58,13 @@ export default function JobsList({ }, { title: t("jobs.fields.phone1"), - dataIndex: "pit_owner_phone", - key: "pit_owner_phone", + dataIndex: "ownr_ph1", + key: "ownr_ph1", ellipsis: true, render: (text, record) => { - return record.pit_owner_phone ? ( + return record.ownr_ph1 ? ( - {record.pit_owner_phone} + {record.ownr_ph1}