Add line discounting & remove NA ignores & reset ignore values on reimport.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user