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 jobIsPrivate = bodyshop.md_ins_cos.find((c) => c.name === job.ins_co_nm)?.private;
|
||||
|
||||
|
||||
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user