From c525b7ea3fc25f5060bc8366ba65b5217589189a Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 29 Apr 2024 12:06:42 -0700 Subject: [PATCH] Place featurewrapped on bills in job line expander. --- bodyshop_translations.babel | 42 +++++++++ .../job-lines-expander.component.jsx | 89 ++++++++++--------- client/src/translations/en_us/common.json | 4 +- client/src/translations/es/common.json | 1 + client/src/translations/fr/common.json | 1 + 5 files changed, 93 insertions(+), 44 deletions(-) diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index 5c8b43a92..c23acfa76 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -3939,6 +3939,27 @@ + + returnfrombill + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + savewithdiscrepancy false @@ -40798,6 +40819,27 @@ labels + + notyetdispatched + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + parts_dispatch false diff --git a/client/src/components/job-detail-lines/job-lines-expander.component.jsx b/client/src/components/job-detail-lines/job-lines-expander.component.jsx index 53ca81457..22f0f8616 100644 --- a/client/src/components/job-detail-lines/job-lines-expander.component.jsx +++ b/client/src/components/job-detail-lines/job-lines-expander.component.jsx @@ -12,6 +12,7 @@ import { createStructuredSelector } from "reselect"; import { selectBodyshop } from "../../redux/user/user.selectors"; import { QUERY_JOBLINE_TASKS_PAGINATED } from "../../graphql/tasks.queries.js"; import TaskListContainer from "../task-list/task-list.container.jsx"; +import FeatureWrapper from "../feature-wrapper/feature-wrapper.component.jsx"; const mapStateToProps = createStructuredSelector({ bodyshop: selectBodyshop @@ -98,55 +99,59 @@ export function JobLinesExpander({ jobline, jobid, bodyshop }) { ) })) - : { - key: "dispatch-lines", - children: t("parts_orders.labels.notyetordered") - } - } - /> - - - {t("bills.labels.bills")} - 0 - ? data.billlines.map((line) => ({ - key: line.id, - children: ( - - - - {line.bill.invoice_number} - - - - - {`${t("billlines.fields.actual_price")}: `} - {line.actual_price} - - - - - {`${t("billlines.fields.actual_cost")}: `} - {line.actual_cost} - - - - {line.bill.date} - - {line.bill.vendor.name} - - ) - })) : [ { - key: "no-orders", - children: t("bills.labels.nobilllines") + key: "dispatch-lines", + children: t("parts_dispatch.labels.notyetdispatched") } ] } /> + null}> + + {t("bills.labels.bills")} + 0 + ? data.billlines.map((line) => ({ + key: line.id, + children: ( + + + + {line.bill.invoice_number} + + + + + {`${t("billlines.fields.actual_price")}: `} + {line.actual_price} + + + + + {`${t("billlines.fields.actual_cost")}: `} + {line.actual_cost} + + + + {line.bill.date} + + {line.bill.vendor.name} + + ) + })) + : [ + { + key: "no-orders", + children: t("bills.labels.nobilllines") + } + ] + } + /> + +