brainloper-ui 21.0.1 → 21.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1982,14 +1982,14 @@ class FunctionsService {
|
|
|
1982
1982
|
});
|
|
1983
1983
|
return uniqueArray;
|
|
1984
1984
|
}
|
|
1985
|
-
transformDate(date) {
|
|
1985
|
+
transformDate(date, utc = false) {
|
|
1986
1986
|
if (!date) {
|
|
1987
1987
|
return '';
|
|
1988
1988
|
}
|
|
1989
1989
|
const dateObj = new Date(date);
|
|
1990
|
-
const day = this.validateTwoDigitFormat(dateObj.getDate().toString());
|
|
1991
|
-
const month = this.validateTwoDigitFormat((dateObj.getMonth() + 1).toString());
|
|
1992
|
-
const year = dateObj.getFullYear();
|
|
1990
|
+
const day = this.validateTwoDigitFormat((utc ? dateObj.getUTCDate() : dateObj.getDate()).toString());
|
|
1991
|
+
const month = this.validateTwoDigitFormat(((utc ? dateObj.getUTCMonth() : dateObj.getMonth()) + 1).toString());
|
|
1992
|
+
const year = utc ? dateObj.getUTCFullYear() : dateObj.getFullYear();
|
|
1993
1993
|
return `${day}/${month}/${year}`;
|
|
1994
1994
|
}
|
|
1995
1995
|
formatNumber(value) {
|
|
@@ -3867,7 +3867,7 @@ class PurchaseOrderPdfService {
|
|
|
3867
3867
|
const rows = [
|
|
3868
3868
|
[
|
|
3869
3869
|
{ content: `Proveedor: ${order.providerName}`, styles: { fontStyle: 'bold' } },
|
|
3870
|
-
{ content: `Fecha de creación: ${this.functions.transformDate(order.created)}`, styles: { halign: 'right' } }
|
|
3870
|
+
{ content: `Fecha de creación: ${this.functions.transformDate(order.created, true)}`, styles: { halign: 'right' } }
|
|
3871
3871
|
],
|
|
3872
3872
|
[
|
|
3873
3873
|
{ content: `Almacén: ${order.warehouse}` },
|