From e9f4b48839213a09cdc94aa9ab808c15643ff6e4 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Thu, 10 Feb 2022 15:14:25 -0800 Subject: [PATCH] IO-1718 Only allow type change based on split for part order. --- .../parts-order-modal.component.jsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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 3d51d7131..073091cb0 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 @@ -46,6 +46,11 @@ export function PartsOrderModalComponent({ {}, bodyshop.imexshopid ); + const { OEConnection_PriceChange } = useTreatments( + ["OEConnection_PriceChange"], + {}, + bodyshop.imexshopid + ); const { t } = useTranslation(); return ( @@ -128,7 +133,14 @@ export function PartsOrderModalComponent({ key={`${index}part_type`} name={[field.name, "part_type"]} > - {t("joblines.fields.part_types.PAA")} @@ -240,7 +252,7 @@ export function PartsOrderModalComponent({ {t("general.labels.none")} {t("parts_orders.labels.email")} {t("parts_orders.labels.print")} - {OEConnection.treatment === "on" && isReturn === false && ( + {OEConnection.treatment === "on" && !isReturn && ( {t("parts_orders.labels.oec")} )}