diff --git a/client/src/components/job-detail-lines/job-lines.component.jsx b/client/src/components/job-detail-lines/job-lines.component.jsx index 7810b0e6b..81e253d58 100644 --- a/client/src/components/job-detail-lines/job-lines.component.jsx +++ b/client/src/components/job-detail-lines/job-lines.component.jsx @@ -101,6 +101,7 @@ export function JobLinesComponent({ : {}) } }); + const { t } = useTranslation(); const jobIsPrivate = bodyshop.md_ins_cos.find((c) => c.name === job.ins_co_nm)?.private; diff --git a/server/integrations/partsManagement/endpoints/vehicleDamageEstimateAddRq.js b/server/integrations/partsManagement/endpoints/vehicleDamageEstimateAddRq.js index 67ca8deb3..8093ca2ed 100644 --- a/server/integrations/partsManagement/endpoints/vehicleDamageEstimateAddRq.js +++ b/server/integrations/partsManagement/endpoints/vehicleDamageEstimateAddRq.js @@ -34,8 +34,9 @@ const KNOWN_PART_RATE_TYPES = [ "CCM", "CCDR" ]; + // Config: include labor lines and labor in totals (default false for development ease) -const INCLUDE_LABOR = process.env.PARTS_MGMT_INCLUDE_LABOR === "true"; +const INCLUDE_LABOR = true; /** * Fetches the default order status for a bodyshop. * @param {string} shopId - The bodyshop UUID. @@ -681,7 +682,7 @@ const vehicleDamageEstimateAddRq = async (req, res) => { // Insert job const { insert_jobs_one: newJob } = await client.request(INSERT_JOB_WITH_LINES, { job: jobInput }); - + return res.status(200).json({ success: true, jobId: newJob.id }); } catch (err) { logger.log("parts-route-error", "error", null, null, { error: err });