diff --git a/client/src/components/parts-order-modal/parts-order-modal.component.jsx b/client/src/components/parts-order-modal/parts-order-modal.component.jsx index c3ade9187..4fc3a5789 100644 --- a/client/src/components/parts-order-modal/parts-order-modal.component.jsx +++ b/client/src/components/parts-order-modal/parts-order-modal.component.jsx @@ -1,17 +1,16 @@ import { DeleteFilled, DownOutlined, WarningFilled } from "@ant-design/icons"; import { useSplitTreatments } from "@splitsoftware/splitio-react"; import { Checkbox, Divider, Dropdown, Form, Input, InputNumber, Radio, Select, Space, Tag } from "antd"; -import React from "react"; import { useTranslation } from "react-i18next"; import { connect } from "react-redux"; import { createStructuredSelector } from "reselect"; import { selectBodyshop } from "../../redux/user/user.selectors"; +import DateTimePicker from "../form-date-time-picker/form-date-time-picker.component.jsx"; import CurrencyInput from "../form-items-formatted/currency-form-item.component"; import FormListMoveArrows from "../form-list-move-arrows/form-list-move-arrows.component"; import LayoutFormRow from "../layout-form-row/layout-form-row.component"; import VendorSearchSelect from "../vendor-search-select/vendor-search-select.component"; import PartsOrderModalPriceChange from "./parts-order-modal-price-change.component"; -import DateTimePicker from "../form-date-time-picker/form-date-time-picker.component.jsx"; const mapStateToProps = createStructuredSelector({ bodyshop: selectBodyshop @@ -33,7 +32,7 @@ export function PartsOrderModalComponent({ bodyshop, vendorList, sendTypeState, }); const { t } = useTranslation(); - const handleClick = ({ item, key, keyPath }) => { + const handleClick = ({ item }) => { form.setFieldsValue({ comments: item.props.value }); }; @@ -98,17 +97,18 @@ export function PartsOrderModalComponent({ bodyshop, vendorList, sendTypeState, )} - - - - {t("parts_orders.labels.parts_order")} - {t("parts_orders.labels.sublet_order")} - - + {!isReturn && ( + + + {t("parts_orders.labels.parts_order")} + {t("parts_orders.labels.sublet_order")} + + + )} {t("parts_orders.labels.inthisorder")} - {(fields, { add, remove, move }) => { + {(fields, { remove, move }) => { return (
{fields.map((field, index) => ( diff --git a/server/opensearch/os-handler.js b/server/opensearch/os-handler.js index 15eddea83..66e76cc50 100644 --- a/server/opensearch/os-handler.js +++ b/server/opensearch/os-handler.js @@ -204,7 +204,7 @@ async function OpenSearchSearchHandler(req, res) { : process.env.BODY_SHOP_ID_MATCH_OVERRIDE; const { body } = await osClient.search({ - ...(index ? { index } : {}), + ...(index ? { index } : { index: ["jobs", "vehicles", "owners", "bills", "payments"] }), body: { size: 100, query: { @@ -248,8 +248,8 @@ async function OpenSearchSearchHandler(req, res) { "*ownr_fn^8", "*ownr_co_nm^8", "*ownr_ph1^8", - "*ownr_ph2^8", - "*" + "*ownr_ph2^8" + // "*" ] } }