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

@@ -68,5 +68,10 @@
"title": "Release Notes for 1.0.22",
"date": "05/20/2021",
"notes": "New Features: \n- Added support Line Discounting\n- Ignored lines will now automatically reset when importing to ensure lines are not ignored when updated in place.\nBug Fixes: \n- Improved detection of $0 price items."
},
"1.0.23": {
"title": "Release Notes for 1.0.23",
"date": "TBD",
"notes": ""
}
}

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 &&

View File

@@ -3,7 +3,7 @@
"productName": "ImEX RPS",
"author": "ImEX Systems Inc. <support@thinkimex.com>",
"description": "ImEX RPS",
"version": "1.0.22",
"version": "1.0.23",
"main": "electron/main.js",
"homepage": "./",
"dependencies": {