IO-3020 IO-3036 Additional cleanup.

This commit is contained in:
Patrick Fic
2024-12-06 15:13:56 -08:00
parent eaea73a955
commit cc7cea7139
5 changed files with 5 additions and 145 deletions

View File

@@ -586,42 +586,9 @@ function ResolveCCCLineIssues(estData, bodyshop) {
});
});
//Group by line no
// For everything but the first one, strip out the price number in
//TODO: How do we merge these 2 functions together and have it function properly for Rome?
// InstanceRenderManager({
// executeFunction: true,
// args: [],
// promanager: () => {
// const groupedByLineRef = _.groupBy(estData.joblines.data, "line_ref");
// Object.keys(groupedByLineRef).forEach((lineRef) => {
// let index0ActPrice;
// groupedByLineRef[lineRef].forEach((line, index) => {
// //Let the first one keep it
// if (index === 0) {
// index0ActPrice = line.act_price;
// return;
// }
// //Web Est seems to have additional costs with UNQ_SEQ 0. Keep them all?
// if (line.unq_seq === 0) return;
// if (index0ActPrice !== line.act_price) {
// // line.notes += ` | Price override.`;
// return;
// }
// const indexInEstData = estData.joblines.data.findIndex((l) => l.unq_seq === line.unq_seq);
// //estData.joblines.data[indexInEstData].notes +=
// // ` | Act Price delete. (prev act price = ${estData.joblines.data[indexInEstData].act_price})`;
// estData.joblines.data[indexInEstData].act_price = 0;
// estData.joblines.data[indexInEstData].db_price = 0;
// });
// });
// }
// });
InstanceRenderManager({
executeFunction: true,
args: [],
promanager: null, //Require to prevent auto firing of Rome.
rome: () => {
//Generate the list of duplicated UNQ_SEQ that will feed into the next section to scrub the lines.
const unqSeqHash = _.groupBy(estData.joblines.data, "unq_seq");

View File

@@ -4335,7 +4335,6 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
</LayoutFormRow>
{InstanceRenderManager({
promanager: "USE_ROME",
rome: (
<LayoutFormRow header={<div>Adjustments</div>} id="refund">
{bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber ? (