Invoice and bill add payment change paid at format and add language support.

This commit is contained in:
cuneytsenturk 2018-07-18 17:33:30 +03:00
parent 67228694a1
commit 23132d848c
2 changed files with 8 additions and 4 deletions

View File

@ -334,7 +334,7 @@
html += ' {!! Form::label('paid_at', trans('general.date'), ['class' => 'control-label']) !!}';
html += ' <div class="input-group">';
html += ' <div class="input-group-addon"><i class="fa fa-calendar"></i></div>';
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 += ' </div>';
html += ' </div>';
html += ' <div class="form-group col-md-6 required">';
@ -391,7 +391,9 @@
$('#paid_at').datepicker({
format: 'yyyy-mm-dd',
autoclose: true
weekStart: 1,
autoclose: true,
language: '{{ language()->getShortCode() }}'
});
$("#account_id").select2({

View File

@ -347,7 +347,7 @@
html += ' {!! Form::label('paid_at', trans('general.date'), ['class' => 'control-label']) !!}';
html += ' <div class="input-group">';
html += ' <div class="input-group-addon"><i class="fa fa-calendar"></i></div>';
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 += ' </div>';
html += ' </div>';
html += ' <div class="form-group col-md-6 required">';
@ -404,7 +404,9 @@
$('#paid_at').datepicker({
format: 'yyyy-mm-dd',
autoclose: true
weekStart: 1,
autoclose: true,
language: '{{ language()->getShortCode() }}'
});
$("#account_id").select2({