1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Fix for Date in Expenses #731

This commit is contained in:
Hillel Coren 2016-02-18 12:02:30 +02:00
parent 65557fc0bd
commit 869febc1d3
3 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ class Expense extends EntityModel
use SoftDeletes;
use PresentableTrait;
protected $dates = ['deleted_at','expense_date'];
protected $dates = ['deleted_at'];
protected $presenter = 'App\Ninja\Presenters\ExpensePresenter';
protected $fillable = [

View File

@ -160,7 +160,7 @@
}
$vendorSelect.combobox();
$('#expense_date').datepicker('update', new Date());
$('#expense_date').datepicker('update', '{{ $expense ? $expense->expense_date : 'new Date()' }}');
$('.expense_date .input-group-addon').click(function() {
toggleDatePicker('expense_date');