Skip to content

Commit

Permalink
Add applicant document source filter to NOI submission PDF generate
Browse files Browse the repository at this point in the history
  • Loading branch information
Abradat committed Jul 26, 2024
1 parent 6e257f5 commit 0a966e3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,13 @@ export class GenerateNoiSubmissionDocumentService {

const otherDocuments = documents.filter(
(e) =>
!e.typeCode ||
(!e.typeCode ||
[
DOCUMENT_TYPE.PHOTOGRAPH,
DOCUMENT_TYPE.PROFESSIONAL_REPORT,
DOCUMENT_TYPE.OTHER,
].includes((e.typeCode ?? 'undefined') as DOCUMENT_TYPE),
].includes((e.typeCode ?? 'undefined') as DOCUMENT_TYPE)) &&
e.document.source === DOCUMENT_SOURCE.APPLICANT,
);

const proposalMap = documents.filter(
Expand Down

0 comments on commit 0a966e3

Please sign in to comment.