Skip to content

Commit

Permalink
Préavis – Problème avec la date de réception du préavis dans les pdf …
Browse files Browse the repository at this point in the history
…d'autorisation (navire tiers) (#3629)

## Linked issues

- Resolve #3622

----

- [ ] Tests E2E (Cypress)
  • Loading branch information
ivangabriele authored Sep 9, 2024
2 parents 4c3db41 + 2e5e357 commit 3bc051a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const HTML_TEMPLATE = `
<table>
<tr>
<td class="data-label">Préavis envoyé</td>
<td><strong>{operationDateTime}</strong></td>
<td><strong>{reportDateTime}</strong></td>
</tr>
<tr>
<td class="data-label">Arrivée estimée</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ export function getHtmlContent(
imo: pno.imo ?? 'Aucun',
internalReferenceNumber: pno.internalReferenceNumber ?? 'Aucun',
ircs: pno.ircs ?? 'Aucun',
operationDateTime: pno.operationDateTime
? customDayjs(pno.operationDateTime).utc().format('le DD/MM/YYYY à HH[h]mm UTC')
: '-',
port: pno.message.port,
portEntranceAuthorization: pno.message.hasPortEntranceAuthorization
? `<strong class="authorized">Autorisation donnée d'entrer au port<br/></strong>`
Expand All @@ -72,6 +69,7 @@ export function getHtmlContent(
? customDayjs(pno.message.predictedLandingDatetimeUtc).utc().format('le DD/MM/YYYY à HH[h]mm UTC')
: '-',
purpose: pno.message.purpose ? PriorNotification.PURPOSE_LABEL[pno.message.purpose] : '',
reportDateTime: customDayjs(pno.reportDateTime).utc().format('le DD/MM/YYYY à HH[h]mm UTC'),
vesselName: pno.vesselName
}

Expand Down

0 comments on commit 3bc051a

Please sign in to comment.