Due and until dates now inclusive in invoice search #2666

This commit is contained in:
Martin Lensment 2015-06-29 16:19:33 +03:00
parent ffebff72dd
commit a3378813a4
2 changed files with 6 additions and 6 deletions

View file

@ -23,12 +23,12 @@
= f.search_field :number_lteq, class: 'form-control', placeholder: t(:maximum_invoice_no), autocomplete: 'off' = f.search_field :number_lteq, class: 'form-control', placeholder: t(:maximum_invoice_no), autocomplete: 'off'
.col-md-3 .col-md-3
.form-group .form-group
= f.label t(:due_date_after) = f.label t(:due_date_from)
= f.search_field :due_date_gt, value: params[:q][:due_date_gt], class: 'form-control datepicker', placeholder: t(:due_date_after), autocomplete: 'off' = f.search_field :due_date_gteq, value: params[:q][:due_date_gteq], class: 'form-control datepicker', placeholder: t(:due_date_from), autocomplete: 'off'
.col-md-3 .col-md-3
.form-group .form-group
= f.label t(:due_date_before) = f.label t(:due_date_until)
= f.search_field :due_date_lt, value: params[:q][:due_date_lt], class: 'form-control datepicker', placeholder: t(:due_date_before), autocomplete: 'off' = f.search_field :due_date_lteq, value: params[:q][:due_date_lteq], class: 'form-control datepicker', placeholder: t(:due_date_until), autocomplete: 'off'
.row .row
.col-md-3 .col-md-3
.form-group .form-group

View file

@ -753,8 +753,8 @@ en:
cannot_bind_cancelled_invoice: 'Cannot bind cancelled invoice' cannot_bind_cancelled_invoice: 'Cannot bind cancelled invoice'
minimum_invoice_no: 'Miminum invoice no' minimum_invoice_no: 'Miminum invoice no'
maximum_invoice_no: 'Maximum invoice no' maximum_invoice_no: 'Maximum invoice no'
due_date_after: 'Due date after' due_date_from: 'Due date from'
due_date_before: 'Due date before' due_date_until: 'Due date until'
minimum_total: 'Minimum total' minimum_total: 'Minimum total'
maximum_total: 'Maximum total' maximum_total: 'Maximum total'
hostname_end: 'Hostname end' hostname_end: 'Hostname end'