Exclusion on non-reman manual part changes.

This commit is contained in:
Patrick Fic
2021-05-20 15:12:50 -07:00
parent 8b41870765
commit 29a0058e88
3 changed files with 16 additions and 11 deletions

View File

@@ -431,16 +431,16 @@ async function DecodeLinFile(extensionlessFilePath) {
//05/20
//Well have to apply a rule that will not count any A/M, Reman or new part price that is manually changed to $0.00. Only recycled parts that are changed to $0.00 can be counted towards RPS.
// This is separate from $0.00 DB prices that need to be updated to the manually entered price.
// if (
// jobline.part_type !== "PAL" &&
// jobline.act_price === 0 &&
// jobline.price_j
// ) {
// log.info(
// `Jobline '${jobline.line_desc}' ignored because it was manually changed to 0..`
// );
// jobline.ignore = true;
// }
if (
jobline.part_type !== "PAL" &&
jobline.act_price === 0 &&
jobline.price_j
) {
log.info(
`Jobline '${jobline.line_desc}' ignored because it was manually changed to 0..`
);
jobline.ignore = true;
}
// if (
// !!jobline.db_price &&