Add last year option

This commit is contained in:
Hillel Coren 2016-12-25 23:58:40 +02:00
parent a7858a8561
commit f288915970
4 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -114,7 +114,7 @@ function GetPdfMake(invoice, javascript, callback) {
// set page size // set page size
dd.pageSize = invoice.account.page_size; dd.pageSize = invoice.account.page_size;
// dd.watermark = 'PAID'; //dd.watermark = {text: 'PAID', color: 'blue', opacity: 0.3};
pdfMake.fonts = {} pdfMake.fonts = {}
fonts = window.invoiceFonts || invoice.invoice_fonts; fonts = window.invoiceFonts || invoice.invoice_fonts;

View File

@ -2278,6 +2278,7 @@ $LANG = array(
'last_30_days' => 'Last 30 Days', 'last_30_days' => 'Last 30 Days',
'this_month' => 'This Month', 'this_month' => 'This Month',
'last_month' => 'Last Month', 'last_month' => 'Last Month',
'last_year' => 'Last Year',
'custom_range' => 'Custom Range', 'custom_range' => 'Custom Range',
'url' => 'URL', 'url' => 'URL',
'debug' => 'Debug', 'debug' => 'Debug',

View File

@ -114,7 +114,8 @@
"{{ trans('texts.last_7_days') }}": [moment().subtract(6, 'days'), moment()], "{{ trans('texts.last_7_days') }}": [moment().subtract(6, 'days'), moment()],
"{{ trans('texts.last_30_days') }}": [moment().subtract(29, 'days'), moment()], "{{ trans('texts.last_30_days') }}": [moment().subtract(29, 'days'), moment()],
"{{ trans('texts.this_month') }}": [moment().startOf('month'), moment().endOf('month')], "{{ trans('texts.this_month') }}": [moment().startOf('month'), moment().endOf('month')],
"{{ trans('texts.last_month') }}": [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')] "{{ trans('texts.last_month') }}": [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')],
"{{ trans('texts.last_year') }}": [moment().subtract(1, 'year'), moment()],
} }
}, cb); }, cb);