Remove disable scrub if SGI to begin testing.
This commit is contained in:
@@ -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