From 23132d848cf3e70f78fc87c8e7ea881c89931e95 Mon Sep 17 00:00:00 2001 From: cuneytsenturk Date: Wed, 18 Jul 2018 17:33:30 +0300 Subject: [PATCH] Invoice and bill add payment change paid at format and add language support. --- resources/views/expenses/bills/show.blade.php | 6 ++++-- resources/views/incomes/invoices/show.blade.php | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/resources/views/expenses/bills/show.blade.php b/resources/views/expenses/bills/show.blade.php index 57b78fd71..9355e93be 100644 --- a/resources/views/expenses/bills/show.blade.php +++ b/resources/views/expenses/bills/show.blade.php @@ -334,7 +334,7 @@ html += ' {!! Form::label('paid_at', trans('general.date'), ['class' => 'control-label']) !!}'; html += '
'; html += '
'; - html += ' {!! Form::text('paid_at', \Date::now()->toDateString(), ['id' => 'paid_at', 'class' => 'form-control', 'required' => 'required', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'', 'data-mask' => '']) !!}'; + html += ' {!! Form::text('paid_at', \Date::now()->toDateString(), ['id' => 'paid_at', 'class' => 'form-control', 'required' => 'required', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'', 'data-mask' => '', 'autocomplete' => 'off']) !!}'; html += '
'; html += ' '; html += '
'; @@ -391,7 +391,9 @@ $('#paid_at').datepicker({ format: 'yyyy-mm-dd', - autoclose: true + weekStart: 1, + autoclose: true, + language: '{{ language()->getShortCode() }}' }); $("#account_id").select2({ diff --git a/resources/views/incomes/invoices/show.blade.php b/resources/views/incomes/invoices/show.blade.php index a99ff9fb0..f4e0ea9d6 100644 --- a/resources/views/incomes/invoices/show.blade.php +++ b/resources/views/incomes/invoices/show.blade.php @@ -347,7 +347,7 @@ html += ' {!! Form::label('paid_at', trans('general.date'), ['class' => 'control-label']) !!}'; html += '
'; html += '
'; - html += ' {!! Form::text('paid_at', \Carbon\Carbon::now()->toDateString(), ['id' => 'paid_at', 'class' => 'form-control', 'required' => 'required', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'', 'data-mask' => '']) !!}'; + html += ' {!! Form::text('paid_at', \Carbon\Carbon::now()->toDateString(), ['id' => 'paid_at', 'class' => 'form-control', 'required' => 'required', 'data-inputmask' => '\'alias\': \'yyyy-mm-dd\'', 'data-mask' => '', 'autocomplete' => 'off']) !!}'; html += '
'; html += '
'; html += '
'; @@ -404,7 +404,9 @@ $('#paid_at').datepicker({ format: 'yyyy-mm-dd', - autoclose: true + weekStart: 1, + autoclose: true, + language: '{{ language()->getShortCode() }}' }); $("#account_id").select2({