Merge pull request '5696-ReclamacionesFueraDePlazoLanded' (!1532) from 5696-ReclamacionesFueraDePlazoLanded into master
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #1532 Reviewed-by: Alex Moreno <alexm@verdnatura.es> Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
commit
1933341220
|
@ -194,7 +194,10 @@ class Controller extends Section {
|
|||
}
|
||||
|
||||
createClaim() {
|
||||
const timeDifference = new Date().getTime() - new Date(this.ticket.shipped).getTime();
|
||||
const today = new Date();
|
||||
today.setHours(0, 0, 0, 0);
|
||||
const timeDifference = today.getTime() - new Date(this.ticket.landed).getTime();
|
||||
|
||||
const pastDays = Math.floor(timeDifference / 86400000);
|
||||
|
||||
if (pastDays >= this.ticketConfig[0].daysForWarningClaim)
|
||||
|
|
Loading…
Reference in New Issue