Removed prevention of negative RPS scores for non-oem parts RPS-72

This commit is contained in:
Patrick Fic
2020-12-18 11:31:02 -08:00
parent 18061094ac
commit 287e8a619c
2 changed files with 18 additions and 18 deletions

View File

@@ -13,15 +13,15 @@ export function CalculateJobRpsDollars(job, returnSumActPrice) {
val.part_qty || 1
)
);
if (val.price_diff > 0) {
return acc.add(
Dinero({ amount: Math.round((val.price_diff || 0) * 100) }).multiply(
val.part_qty || 1
)
);
} else {
return acc;
}
// if (val.price_diff > 0) { //
return acc.add(
Dinero({ amount: Math.round((val.price_diff || 0) * 100) }).multiply(
val.part_qty || 1
)
);
// } else {
// return acc;
// }
}, Dinero());
return returnSumActPrice ? { actPriceSum, jobRpsDollars } : jobRpsDollars;
}