1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fixed problem with dates with new PDF designs

This commit is contained in:
Hillel Coren 2015-07-28 10:56:23 +03:00
parent aa421b00ad
commit c16f74d9a2
2 changed files with 4 additions and 4 deletions

View File

@ -31824,11 +31824,11 @@ NINJA.invoiceDetails = function(invoice) {
],
[
{text: invoiceLabels.invoice_date},
{text: moment(invoice.invoice_date, 'YYYY-MM-DD').format('MMM D YYYY')}
{text: invoice.invoice_date}
],
[
{text: invoiceLabels.due_date},
{text: invoice.due_date ? moment(invoice.due_date, 'YYYY-MM-DD').format('MMM D YYYY') : false}
{text: invoice.due_date}
]
];

View File

@ -347,11 +347,11 @@ NINJA.invoiceDetails = function(invoice) {
],
[
{text: invoiceLabels.invoice_date},
{text: moment(invoice.invoice_date, 'YYYY-MM-DD').format('MMM D YYYY')}
{text: invoice.invoice_date}
],
[
{text: invoiceLabels.due_date},
{text: invoice.due_date ? moment(invoice.due_date, 'YYYY-MM-DD').format('MMM D YYYY') : false}
{text: invoice.due_date}
]
];