From cd42bd6496e47b257db490066eaf864a86467369 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 15 Oct 2025 08:17:05 -0700 Subject: [PATCH] Convert mileage to string, change JSON file name. --- electron/estimate-scrubber/estimate-scrubber.js | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/electron/estimate-scrubber/estimate-scrubber.js b/electron/estimate-scrubber/estimate-scrubber.js index 399fb50..bac819a 100644 --- a/electron/estimate-scrubber/estimate-scrubber.js +++ b/electron/estimate-scrubber/estimate-scrubber.js @@ -68,6 +68,8 @@ async function ScrubEstimate({ job }) { job.rf_ph1 = job.bodyshop.phone; job.g_ttl_amt = job.clm_total; job.source_system = "M"; //Requested by Steven. + job.v_mileage = job.v_mileage?.toString() || "" //Requested by Steven to be a string. + delete job.clm_total; delete job.bodyshop; //Bodyshop has to be passed through the object as we don't have access to the store here. @@ -102,7 +104,7 @@ async function ScrubEstimate({ job }) { }); } - const fileName = `RPS-Scrub-${job.id}-${job.clm_no}-${Date.now()}`; + const fileName = `RPS-Scrub-${esApiKey}-${job.clm_no}-${Date.now()}`; // Write job object to logs subfolder try { diff --git a/package.json b/package.json index 72685bd..368237a 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "productName": "ImEX RPS", "author": "ImEX Systems Inc. ", "description": "ImEX RPS", - "version": "1.5.0-alpha.1", + "version": "1.5.0-alpha.2", "main": "electron/main.js", "homepage": "./", "dependencies": {