YARA-994 and fixed metal plate bug

This commit is contained in:
SepehrYahyaee
2026-07-15 10:33:50 +03:30
parent 385757c3a0
commit da7a4f8890
3 changed files with 48 additions and 9 deletions

View File

@@ -10205,6 +10205,18 @@ export class ClaimRequestManagementService {
base: GetCaptureRequirementsV2ResponseDto,
): GetCaptureRequirementsV2ResponseDto {
const skipMetalPlate = !!(blame as any)?.isMadeByFileMaker;
// For V4/V5 files strip metal-plate keys from the base response entirely
// so they never appear in any phase — the front-end should not show them.
if (skipMetalPlate) {
base = {
...base,
requiredDocuments: base.requiredDocuments.filter(
(d) => !OPTIONAL_CAPTURE_PHASE_DOC_KEYS_V4V5.includes(d.key as any),
),
};
}
const step = claimCase.workflow?.currentStep;
const capturePartDone = this.claimV3StepCompleted(
claimCase,