Skip to content

Commit

Permalink
feat(dataLimite): aggiornamento data limite massivo Dicembre 20241223
Browse files Browse the repository at this point in the history
  • Loading branch information
sgravinadxc committed Dec 23, 2024
1 parent 7ea0043 commit 5ac5de8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fe-piattaforma/src/components/CSVUploader/CSVUploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default function CSVUploader({
<div className='text-secondary' style={{fontSize: '16px'}}>
Nell'attuale finestra di caricamento è possibile inserire tutti i servizi erogati
{projectDetail?.policy === policy.RFD && (
<strong> fino al 30 Novembre 2024</strong>
<strong> fino al 31 Dicembre 2024</strong>
)}.
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions fe-piattaforma/src/utils/csvUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const mandatoryFields: (keyof CSVRecord)[] = [
'SE6',
];

const maxDate = new Date('2024-11-30')
const maxDate = new Date('2024-12-31')

export function encryptFiscalCode(filteredRecord: CSVRecord) {
return filteredRecord.AN3
Expand Down Expand Up @@ -144,7 +144,7 @@ export const validateFields = (
if(!isValidDateFormat(record.SE1) || !isValidDate(record.SE1)){ //valido tramite regex
errors.push("La data inserita per il servizio non e' valida.");
} else if (parsedDate > maxDate && extension === 'csv') {
errors.push("La data del servizio e' successiva al 30 Novembre 2024.");
errors.push("La data del servizio e' successiva al 31 Dicembre 2024.");
}
}

Expand Down

0 comments on commit 5ac5de8

Please sign in to comment.