diff --git a/WIP Changelog.txt b/WIP Changelog.txt index f94a939..cccc10f 100644 --- a/WIP Changelog.txt +++ b/WIP Changelog.txt @@ -2,5 +2,6 @@ New Features: - Added 'This Quarter' and 'Last Quarter' date quick select. Bug Fixes: -- Added automatic job refresh on new import for estimate detail screen. -- Fixed an issue where more jobs would not be fetched in the list view in certain scenarios. \ No newline at end of file +- Resolved an issue where launching a second instance of RPS would cause the program to freeze. +- Date filtering will now ensure only correct dates are reported on, regardless of time zone. +- Added negative RPS calculations on combined estimate lines like assemblies. \ No newline at end of file diff --git a/electron/changelog.json b/electron/changelog.json index 31b63f0..c4810cb 100644 --- a/electron/changelog.json +++ b/electron/changelog.json @@ -23,5 +23,10 @@ "title": "Release Notes for 1.0.13", "date": "11/30/2020", "notes": "New Features: \n- Added 'This Quarter' and 'Last Quarter' date quick select.\n\nBug Fixes: \n- Added automatic job refresh on new import for estimate detail screen.\n- Fixed an issue where more jobs would not be fetched in the list view in certain scenarios." + }, + "1.0.14": { + "title": "Release Notes for 1.0.14", + "date": "12/18/2020", + "notes": "Bug Fixes: \n- Resolved an issue where launching a second instance of RPS could cause the program to occasionally freeze.\n- Fixed an issue where date filtering could include dates outside the range depending on time zone.\n- Added negative RPS calculations on combined estimate lines like assemblies." } } diff --git a/electron/decoder/decoder.js b/electron/decoder/decoder.js index e323bd0..c726b90 100644 --- a/electron/decoder/decoder.js +++ b/electron/decoder/decoder.js @@ -389,15 +389,15 @@ async function DecodeLinFile(extensionlessFilePath) { jobline.db_price = jobline.act_price; } - if ( - !!jobline.db_price && - jobline.db_price > 0 && - !!jobline.act_price && - jobline.act_price > jobline.db_price - ) { - //Actual price should never be higher than the DB Price. - jobline.db_price = jobline.act_price; - } + // if ( + // !!jobline.db_price && + // jobline.db_price > 0 && + // !!jobline.act_price && + // jobline.act_price > jobline.db_price + // ) { + // //Actual price should never be higher than the DB Price. + // jobline.db_price = jobline.act_price; + // } //Logic Based Exclusions. if ( diff --git a/electron/main.js b/electron/main.js index d71da0a..b07da54 100644 --- a/electron/main.js +++ b/electron/main.js @@ -119,8 +119,8 @@ function createWindow() { // Create the browser window. Menu.setApplicationMenu(menu); mainWindow = new BrowserWindow({ - width: 800, - height: 600, + // width: 800, + // height: 600, title: `ImEX RPS ${app.getVersion()}`, icon: path.join(__dirname, "../src/assets/logo192.png"), webPreferences: { @@ -141,7 +141,9 @@ function createWindow() { // Someone tried to run a second instance, we should focus our window. if (mainWindow) { if (mainWindow.isMinimized()) mainWindow.restore(); + mainWindow.show(); mainWindow.focus(); + mainWindow.maximize(); } }); @@ -228,6 +230,7 @@ app.on("window-all-closed", () => { app.on("activate", () => { // On macOS it's common to re-create a window in the app when the // dock icon is clicked and there are no other windows open. + console.log("Activate"); if (BrowserWindow.getAllWindows().length === 0) { createWindow(); } @@ -253,6 +256,7 @@ function createTray() { appIcon.on("double-click", function (event) { mainWindow.show(); + mainWindow.maximize(); }); appIcon.setToolTip("ImEX RPS"); appIcon.setContextMenu(contextMenu); @@ -327,7 +331,6 @@ autoUpdater.on("update-downloaded", (ev, info) => { buttons: ["Yes", "No"], }) .then(({ response }) => { - log.log("The button worked.", response); if (response === 0) { const isSilent = true; const isForceRunAfter = true; diff --git a/package.json b/package.json index 8b3782b..db48ca6 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "productName": "ImEX RPS", "author": "ImEX Systems Inc. ", "description": "ImEX RPS", - "version": "1.0.13", + "version": "1.0.14", "main": "electron/main.js", "homepage": "./", "dependencies": { diff --git a/src/components/atoms/vehicle-group-alert/vehicle-group-alert.atom.jsx b/src/components/atoms/vehicle-group-alert/vehicle-group-alert.atom.jsx index f2e2e53..e14c488 100644 --- a/src/components/atoms/vehicle-group-alert/vehicle-group-alert.atom.jsx +++ b/src/components/atoms/vehicle-group-alert/vehicle-group-alert.atom.jsx @@ -14,7 +14,15 @@ const models = [ "journey", "nv200", "rav4", - "odyssey", + //"odyssey", + "murano", + "edge", + "ram", + "kicks", + "qashqai", + "escape", + "santa fe", + "trax", ]; export default function VehicleGroupAlertAtom({ job, showGroup = false }) { diff --git a/src/components/molecules/jobs-detail-description/jobs-detail-description.molecule.jsx b/src/components/molecules/jobs-detail-description/jobs-detail-description.molecule.jsx index a679ac7..19286a6 100644 --- a/src/components/molecules/jobs-detail-description/jobs-detail-description.molecule.jsx +++ b/src/components/molecules/jobs-detail-description/jobs-detail-description.molecule.jsx @@ -1,4 +1,4 @@ -import { Descriptions, PageHeader, Skeleton } from "antd"; +import { Descriptions, PageHeader, Skeleton, Tooltip } from "antd"; import React from "react"; import CurrencyFormatterAtom from "../../atoms/currency-formatter/currency-formatter.atom"; import ErrorResultAtom from "../../atoms/error-result/error-result.atom"; @@ -39,12 +39,20 @@ export default function JobsDetailDescriptionMolecule({ loading, job }) { {job.v_age} - + + + Close Date + + } + > + {job.updated_at} diff --git a/src/components/molecules/reporting-dates/reporting-dates.molecule.jsx b/src/components/molecules/reporting-dates/reporting-dates.molecule.jsx index d9fc424..f380f4d 100644 --- a/src/components/molecules/reporting-dates/reporting-dates.molecule.jsx +++ b/src/components/molecules/reporting-dates/reporting-dates.molecule.jsx @@ -34,6 +34,7 @@ export function ReportingDatesMolecule({ queryReportingData }) { rules={[{ type: "array", required: true }]} > 0) { - return acc.add( - Dinero({ amount: Math.round((val.price_diff || 0) * 100) }).multiply( - val.part_qty || 1 - ) - ); - } else { - return acc; - } + // if (val.price_diff > 0) { // + return acc.add( + Dinero({ amount: Math.round((val.price_diff || 0) * 100) }).multiply( + val.part_qty || 1 + ) + ); + // } else { + // return acc; + // } }, Dinero()); return returnSumActPrice ? { actPriceSum, jobRpsDollars } : jobRpsDollars; }