Add line discounting & remove NA ignores & reset ignore values on reimport.

This commit is contained in:
Patrick Fic
2021-05-20 14:07:18 -07:00
parent 0a330b66b6
commit 7d529c3155
4 changed files with 50 additions and 74 deletions

View File

@@ -104,10 +104,14 @@ export const GetSupplementDelta = async (jobId, existingLinesO, newLines) => {
//Found a relevant matching line. Add it to lines to update.
linesToUpdate.push({
id: existingLines[matchingIndex].id,
newData: {
...newLine,
ignore: existingLines[matchingIndex].ignore,
},
newData: newLine,
// {
// ...newLine,
// ignore:
// newLine.db_ref === "900511" && newLine.prt_dsmk_p !== 50
// ? false
// : existingLines[matchingIndex].ignore,
// },
});
//Splice out item we found for performance.
existingLines.splice(matchingIndex, 1);