Compare commits

..

2 Commits

Author SHA1 Message Date
Allan Carr
25429e78f8 IO-2518 Null coalesce for v_vin for warning 2024-01-08 10:37:19 -08:00
Allan Carr
ded798fdf1 IO-2518 Dealership Vin Warning 2023-12-29 16:37:34 -08:00
8 changed files with 23 additions and 37 deletions

View File

@@ -221,6 +221,11 @@ export function JobsDetailHeader({ job, bodyshop, disabled }) {
<VehicleVinDisplay>
{`${job.v_vin || t("general.labels.na")}`}
</VehicleVinDisplay>
{bodyshop.pbs_serialnumber || bodyshop.cdk_dealerid ? (
job.v_vin?.length !== 17 ? (
<WarningFilled style={{ color: "tomato", marginLeft: ".3rem" }} />
) : null
) : null}
</DataLabel>
<DataLabel label={t("jobs.fields.regie_number")}>
{job.regie_number || t("general.labels.na")}

View File

@@ -2023,24 +2023,24 @@
- active:
_eq: true
columns:
- created_at
- employeeid
- id
- labor_rates
- percentage
- teamid
- created_at
- updated_at
- employeeid
- id
- teamid
select_permissions:
- role: user
permission:
columns:
- created_at
- employeeid
- id
- labor_rates
- percentage
- teamid
- created_at
- updated_at
- employeeid
- id
- teamid
filter:
employee_team:
bodyshop:
@@ -2055,13 +2055,13 @@
- role: user
permission:
columns:
- created_at
- employeeid
- id
- labor_rates
- percentage
- teamid
- created_at
- updated_at
- employeeid
- id
- teamid
filter:
employee_team:
bodyshop:
@@ -2123,23 +2123,21 @@
_eq: true
columns:
- active
- bodyshopid
- created_at
- id
- max_load
- name
- created_at
- updated_at
- bodyshopid
- id
select_permissions:
- role: user
permission:
columns:
- active
- bodyshopid
- created_at
- id
- max_load
- name
- created_at
- updated_at
- bodyshopid
- id
filter:
bodyshop:
associations:
@@ -2155,7 +2153,6 @@
columns:
- active
- bodyshopid
- max_load
- name
- updated_at
filter:

View File

@@ -1,4 +0,0 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."employee_team_members" add column "max_load" numeric
-- not null default '10000';

View File

@@ -1,2 +0,0 @@
alter table "public"."employee_team_members" add column "max_load" numeric
not null default '10000';

View File

@@ -1,3 +0,0 @@
alter table "public"."employee_team_members" alter column "max_load" set default '10000'::numeric;
alter table "public"."employee_team_members" alter column "max_load" drop not null;
alter table "public"."employee_team_members" add column "max_load" numeric;

View File

@@ -1 +0,0 @@
alter table "public"."employee_team_members" drop column "max_load" cascade;

View File

@@ -1,4 +0,0 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."employee_teams" add column "max_load" numeric
-- not null default '10000';

View File

@@ -1,2 +0,0 @@
alter table "public"."employee_teams" add column "max_load" numeric
not null default '10000';