diff --git a/print/core/filters/date.js b/print/core/filters/date.js index 37b9dd16f..0988eda75 100644 --- a/print/core/filters/date.js +++ b/print/core/filters/date.js @@ -1,6 +1,6 @@ const Vue = require('vue'); const strftime = require('strftime'); -Vue.filter('date', function(value, specifiers) { +Vue.filter('date', function(value, specifiers = '%d-%m-%Y') { return strftime(specifiers, value); }); diff --git a/print/templates/email/buyer-week-waste/buyer-week-waste.html b/print/templates/email/buyer-week-waste/buyer-week-waste.html index 56d0a7e0d..b9ebd6175 100644 --- a/print/templates/email/buyer-week-waste/buyer-week-waste.html +++ b/print/templates/email/buyer-week-waste/buyer-week-waste.html @@ -43,7 +43,7 @@ {{waste.buyer}} - {{(waste.percentage / 100) | percentage(4, 4, locale)}} + {{(waste.percentage / 100) | percentage(2, 2, locale)}} {{waste.dwindle | currency('EUR', locale)}} {{waste.total | currency('EUR', locale)}} diff --git a/print/templates/email/buyer-week-waste/locale/es.yml b/print/templates/email/buyer-week-waste/locale/es.yml index fca8c3a2b..d4220dd91 100644 --- a/print/templates/email/buyer-week-waste/locale/es.yml +++ b/print/templates/email/buyer-week-waste/locale/es.yml @@ -4,6 +4,6 @@ dear: Hola description: A continuaciĆ³n se muestra la merma semanal a fecha de {0}. buyer: Comprador percentage: Porcentaje -weakening: Mermas +dwindle: Merma total: Total wasteDetailLink: 'Para ver el desglose de mermas haz clic en el siguiente enlace:' \ No newline at end of file diff --git a/print/templates/reports/delivery-note/delivery-note.html b/print/templates/reports/delivery-note/delivery-note.html index 1bad225de..77f214c07 100644 --- a/print/templates/reports/delivery-note/delivery-note.html +++ b/print/templates/reports/delivery-note/delivery-note.html @@ -231,7 +231,7 @@
{{$t('digitalSignature')}}
-
{{signature.created | date}}
+
{{signature.created | date('%d-%m-%Y')}}