diff --git a/client/src/components/documents-upload/documents-upload.utility.js b/client/src/components/documents-upload/documents-upload.utility.js index bca78f094..7dfb925e4 100644 --- a/client/src/components/documents-upload/documents-upload.utility.js +++ b/client/src/components/documents-upload/documents-upload.utility.js @@ -24,7 +24,7 @@ export const handleUpload = (ev, context) => { const fileName = ev.file.name || ev.filename; let key = `${bodyshop.id}/${jobId}/${fileName.replace( - /\.[^/.]+$/, + /[^a-zA-Z ]/g, "" )}-${new Date().getTime()}`; let extension = fileName.split(".").pop(); diff --git a/client/src/components/job-search-select/job-search-select.component.jsx b/client/src/components/job-search-select/job-search-select.component.jsx index 42c0be5db..248474580 100644 --- a/client/src/components/job-search-select/job-search-select.component.jsx +++ b/client/src/components/job-search-select/job-search-select.component.jsx @@ -1,6 +1,6 @@ import { LoadingOutlined } from "@ant-design/icons"; import { useLazyQuery } from "@apollo/client"; -import { Empty, Select } from "antd"; +import { Empty, Select, Space, Tag } from "antd"; import _ from "lodash"; import React, { forwardRef, useEffect } from "react"; import { useTranslation } from "react-i18next"; @@ -80,13 +80,18 @@ const JobSearchSelect = ( {theOptions ? theOptions.map((o) => ( )) : null} diff --git a/client/src/graphql/jobs.queries.js b/client/src/graphql/jobs.queries.js index 1546da001..7a8974a5b 100644 --- a/client/src/graphql/jobs.queries.js +++ b/client/src/graphql/jobs.queries.js @@ -1043,6 +1043,7 @@ export const SEARCH_JOBS_FOR_AUTOCOMPLETE = gql` v_make_desc v_model_desc v_model_yr + status } } `; diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json index b645b0d0e..b0ee18084 100644 --- a/client/src/translations/en_us/common.json +++ b/client/src/translations/en_us/common.json @@ -2284,7 +2284,7 @@ "city": "City", "cost_center": "Cost Center", "country": "Country", - "discount": "Discount %", + "discount": "Discount % (as decimal)", "display_name": "Display Name", "due_date": "Payment Due Date", "email": "Contact Email", diff --git a/hasura/migrations/1626374103197_alter_table_public_vehicles_drop_constraint_vehicles_v_vin_shopid_key/down.yaml b/hasura/migrations/1626374103197_alter_table_public_vehicles_drop_constraint_vehicles_v_vin_shopid_key/down.yaml new file mode 100644 index 000000000..4269f014e --- /dev/null +++ b/hasura/migrations/1626374103197_alter_table_public_vehicles_drop_constraint_vehicles_v_vin_shopid_key/down.yaml @@ -0,0 +1,6 @@ +- args: + cascade: false + read_only: false + sql: alter table "public"."vehicles" add constraint "vehicles_v_vin_shopid_key" + unique ("v_vin", "shopid"); + type: run_sql diff --git a/hasura/migrations/1626374103197_alter_table_public_vehicles_drop_constraint_vehicles_v_vin_shopid_key/up.yaml b/hasura/migrations/1626374103197_alter_table_public_vehicles_drop_constraint_vehicles_v_vin_shopid_key/up.yaml new file mode 100644 index 000000000..264d47e3d --- /dev/null +++ b/hasura/migrations/1626374103197_alter_table_public_vehicles_drop_constraint_vehicles_v_vin_shopid_key/up.yaml @@ -0,0 +1,5 @@ +- args: + cascade: false + read_only: false + sql: alter table "public"."vehicles" drop constraint "vehicles_v_vin_shopid_key"; + type: run_sql