Merge branch 'feature/AIO/promanager' into test-AIO

This commit is contained in:
Patrick Fic
2024-04-11 14:29:09 -07:00
2 changed files with 4 additions and 5 deletions

View File

@@ -608,13 +608,12 @@ function ResolveCCCLineIssues(estData, bodyshop) {
//Web Est seems to have additional costs with UNQ_SEQ 0. Keep them all? //Web Est seems to have additional costs with UNQ_SEQ 0. Keep them all?
if (line.unq_seq === 0) return; if (line.unq_seq === 0) return;
if (index0ActPrice !== line.act_price) { if (index0ActPrice !== line.act_price) {
line.notes += ` | Price override.`; // line.notes += ` | Price override.`;
return; return;
} }
const indexInEstData = estData.joblines.data.findIndex((l) => l.unq_seq === line.unq_seq); const indexInEstData = estData.joblines.data.findIndex((l) => l.unq_seq === line.unq_seq);
estData.joblines.data[ //estData.joblines.data[indexInEstData].notes +=
indexInEstData // ` | Act Price delete. (prev act price = ${estData.joblines.data[indexInEstData].act_price})`;
].notes += ` | Scrubbed due to the line_ref issue. (prev act price = ${estData.joblines.data[indexInEstData].act_price})`;
estData.joblines.data[indexInEstData].act_price = 0; estData.joblines.data[indexInEstData].act_price = 0;
estData.joblines.data[indexInEstData].db_price = 0; estData.joblines.data[indexInEstData].db_price = 0;
}); });

View File

@@ -925,7 +925,7 @@ function CalculateTaxesTotals(job, otherTotals) {
thresholdAmount === 9999.99 || thresholdAmount === 9999.99 ||
InstanceMgr({ InstanceMgr({
imex: false, imex: false,
rome: false, rome: thresholdAmount === 0 && parseInt(tyCounter) === 1,
promanager: thresholdAmount === 0 && parseInt(tyCounter) === 1 promanager: thresholdAmount === 0 && parseInt(tyCounter) === 1
}) })
) { ) {