Remove disable scrub if SGI to begin testing.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"productName": "ImEX RPS",
|
||||
"author": "ImEX Systems Inc. <support@thinkimex.com>",
|
||||
"description": "ImEX RPS",
|
||||
"version": "1.6.0-beta.4",
|
||||
"version": "1.6.0-alpha.10",
|
||||
"main": "electron/main.js",
|
||||
"homepage": "./",
|
||||
"dependencies": {
|
||||
|
||||
@@ -59,17 +59,17 @@ export function EstimateScrubberButton({ bodyshop, jobid, job }) {
|
||||
}
|
||||
setLoading(false);
|
||||
};
|
||||
const isSGI = bodyshop?.ins_rule_set === "SGI";
|
||||
|
||||
const buttonDisabled = job?.g_bett_amt == null;
|
||||
|
||||
return buttonDisabled ? (
|
||||
<Tooltip title="Additional information is required to scrub this estimate. Please reimport the estimate to enable scrubbing.">
|
||||
<Button disabled={isSGI || job?.g_bett_amt == null} loading={loading}>
|
||||
<Button disabled={buttonDisabled} loading={loading}>
|
||||
Scrub Estimate with Estimate Scrubber (BETA)
|
||||
</Button>
|
||||
</Tooltip>
|
||||
) : (
|
||||
<Button onClick={handleScrub} disabled={isSGI || job?.g_bett_amt == null} loading={loading}>
|
||||
<Button onClick={handleScrub} disabled={buttonDisabled} loading={loading}>
|
||||
Scrub Estimate with Estimate Scrubber (BETA)
|
||||
</Button>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user