feature/IO-3255-simplified-parts-management - Record Labor Again
This commit is contained in:
@@ -101,6 +101,7 @@ export function JobLinesComponent({
|
|||||||
: {})
|
: {})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const jobIsPrivate = bodyshop.md_ins_cos.find((c) => c.name === job.ins_co_nm)?.private;
|
const jobIsPrivate = bodyshop.md_ins_cos.find((c) => c.name === job.ins_co_nm)?.private;
|
||||||
|
|
||||||
|
|||||||
@@ -34,8 +34,9 @@ const KNOWN_PART_RATE_TYPES = [
|
|||||||
"CCM",
|
"CCM",
|
||||||
"CCDR"
|
"CCDR"
|
||||||
];
|
];
|
||||||
|
|
||||||
// Config: include labor lines and labor in totals (default false for development ease)
|
// 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.
|
* Fetches the default order status for a bodyshop.
|
||||||
* @param {string} shopId - The bodyshop UUID.
|
* @param {string} shopId - The bodyshop UUID.
|
||||||
@@ -681,7 +682,7 @@ const vehicleDamageEstimateAddRq = async (req, res) => {
|
|||||||
|
|
||||||
// Insert job
|
// Insert job
|
||||||
const { insert_jobs_one: newJob } = await client.request(INSERT_JOB_WITH_LINES, { job: jobInput });
|
const { insert_jobs_one: newJob } = await client.request(INSERT_JOB_WITH_LINES, { job: jobInput });
|
||||||
|
|
||||||
return res.status(200).json({ success: true, jobId: newJob.id });
|
return res.status(200).json({ success: true, jobId: newJob.id });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.log("parts-route-error", "error", null, null, { error: err });
|
logger.log("parts-route-error", "error", null, null, { error: err });
|
||||||
|
|||||||
Reference in New Issue
Block a user