Removed Est_number from Job. Potential Breaking changes. IO-553

This commit is contained in:
Patrick Fic
2021-01-07 15:25:32 -08:00
parent 3da3fb96e2
commit 0c83a62dd2
64 changed files with 1730 additions and 269 deletions

View File

@@ -3,12 +3,12 @@ import { useLazyQuery } from "@apollo/react-hooks";
import { Empty, Select } from "antd";
import _ from "lodash";
import React, { forwardRef, useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import {
SEARCH_JOBS_BY_ID_FOR_AUTOCOMPLETE,
SEARCH_JOBS_FOR_AUTOCOMPLETE,
SEARCH_JOBS_FOR_AUTOCOMPLETE
} from "../../graphql/jobs.queries";
import AlertComponent from "../alert/alert.component";
const { Option } = Select;
const JobSearchSelect = (
@@ -22,6 +22,7 @@ const JobSearchSelect = (
},
ref
) => {
const { t } = useTranslation();
const [callSearch, { loading, error, data }] = useLazyQuery(
SEARCH_JOBS_FOR_AUTOCOMPLETE,
{
@@ -100,9 +101,9 @@ const JobSearchSelect = (
{theOptions
? theOptions.map((o) => (
<Option key={o.id} value={o.id}>
{`${
o.ro_number ? `RO ${o.ro_number}` : `EST ${o.est_number}`
} | ${o.ownr_ln || ""} ${o.ownr_fn || ""} ${
{`${o.ro_number || t("general.labels.na")} | ${
o.ownr_ln || ""
} ${o.ownr_fn || ""} ${
o.ownr_co_nm ? ` ${o.ownr_co_num}` : ""
}| ${o.v_model_yr || ""} ${o.v_make_desc || ""} ${
o.v_model_desc || ""