Skip to content

Commit 6928710

Browse files
authored
fix:ORV2-3352 Update: Change Term Permits Vehicles (#1781)
1 parent c591662 commit 6928710

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

database/mssql/scripts/versions/revert/v_58_ddl_revert.sql

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ DELETE FROM dbo.ORBC_TRAILER_TYPE WHERE TRAILER_TYPE='FEWHLPR';
2525
DELETE FROM dbo.ORBC_TRAILER_TYPE WHERE TRAILER_TYPE='LOGLGCY';
2626
*/
2727

28+
UPDATE dbo.ORBC_TRAILER_TYPE set [TYPE]='Fixed Equipment Semi-Trailer (16 and 24 Wheeler) Peace River',[DESCRIPTION]='Fixed Equipment Semi-Trailer (16 and 24 Wheeler) Peace River' where TRAILER_TYPE='FEWHLPR';
29+
30+
UPDATE [dbo].[ORBC_POWER_UNIT_TYPE] set IS_ACTIVE='1' WHERE [POWER_UNIT_TYPE] IN ('CRAFTAT','CRAFTMB','FARMVEH');
31+
32+
UPDATE [dbo].[ORBC_TRAILER_TYPE] set IS_ACTIVE='1' WHERE [TRAILER_TYPE] IN ('FECVYPT');
33+
2834
-- Remove the newly added policy configuration
2935
DELETE FROM [dbo].[ORBC_POLICY_CONFIGURATION]
3036
WHERE POLICY_CONFIGURATION_ID = (SELECT MAX(POLICY_CONFIGURATION_ID) FROM [dbo].[ORBC_POLICY_CONFIGURATION])

database/mssql/scripts/versions/v_58_ddl.sql

+7-1
Large diffs are not rendered by default.

vehicles/src/modules/vehicles/power-unit-types/power-unit-types.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class PowerUnitTypesService {
3333
@LogAsyncMethodExecution()
3434
async findAll(): Promise<ReadPowerUnitTypeDto[]> {
3535
return this.classMapper.mapArrayAsync(
36-
await this.powerUnitTypeRepository.find(),
36+
await this.powerUnitTypeRepository.find({ where: { isActive: '1' } }),
3737
PowerUnitType,
3838
ReadPowerUnitTypeDto,
3939
);

vehicles/src/modules/vehicles/trailer-types/trailer-types.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class TrailerTypesService {
3131
@LogAsyncMethodExecution()
3232
async findAll(): Promise<ReadTrailerTypeDto[]> {
3333
return this.classMapper.mapArrayAsync(
34-
await this.trailerTypeRepository.find(),
34+
await this.trailerTypeRepository.find({ where: { isActive: '1' } }),
3535
TrailerType,
3636
ReadTrailerTypeDto,
3737
);

0 commit comments

Comments
 (0)