Skip to content

Commit

Permalink
Revert "feat(cb2-13762): VTM - Pass and issue Documents Centrally (Ad…
Browse files Browse the repository at this point in the history
…ditional test type id's to be added) (#1567)"

This reverts commit 043e77f.
  • Loading branch information
pbardy2000 committed Sep 2, 2024
1 parent b04b1d1 commit e369613
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
15 changes: 2 additions & 13 deletions src/app/forms/models/testTypeId.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,11 @@ export const TEST_TYPES_GROUP9_10: string[] = [
'107',
'113',
'116',
'199',
];

// tests for HGV and TRL - First tests, Paid/Part paid prohibition clearance on first test
export const TEST_TYPES_GROUP9_10_CENTRAL_DOCS = [
'95',
'41',
'65',
'103',
'66',
'104',
'82',
'119',
'83',
'120',
'199',
];
export const TEST_TYPES_GROUP9_10_CENTRAL_DOCS = ['95', '41', '65', '103', '66', '104', '82', '119', '83', '120'];

// tests for TRL - Paid/Part paid prohibition clearance(retest, full inspection, part inspection, without cert)
export const TEST_TYPES_GROUP12_14: string[] = ['117', '108', '109', '110', '114', '71', '72', '73', '77', '80'];
Expand Down
2 changes: 1 addition & 1 deletion src/app/models/test-types/test-type.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface TestType {
testTypeId: string;
testNumber: string;
name: string;
testCode?: string;
testCode: string;
testTypeName: string;

testTypeStartTimestamp: string | Date;
Expand Down
3 changes: 0 additions & 3 deletions src/app/store/test-records/reducers/test-records.reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,6 @@ function cleanTestResultPayload(testResult: TestResultModel | undefined) {
}

const testTypes = testResult.testTypes.map((testType, index) => {
// Always remove testCode
delete testType.testCode;

// Remove empty requiredStandards from pass/prs non-voluntary IVA/MVSA tests
if (index === 0) {
const { testTypeId, requiredStandards } = testType;
Expand Down

0 comments on commit e369613

Please sign in to comment.