Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Préavis – Problème avec la date de réception du préavis dans les pdf d'autorisation (navire tiers) #3629

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading