Refactored target percentage to use redux and only be calculated once per job.
This commit is contained in:
@@ -31,6 +31,10 @@ async function DecodeEstimate(filePath) {
|
||||
returnValue = {
|
||||
ERROR: `Insurance Company Name is not valid for RPS. (${job.INS_CO_NM})`,
|
||||
};
|
||||
} else if (!job.clm_no) {
|
||||
returnValue = {
|
||||
ERROR: `An unique claim number must be set for all jobs sent to RPS.`,
|
||||
};
|
||||
} else {
|
||||
returnValue = _.transform(job, function (result, val, key) {
|
||||
result[key.toLowerCase()] = val;
|
||||
|
||||
Reference in New Issue
Block a user