Browse Source

Merge branch 'auto_current_date'

closes #48
pull/50/head
Nafies Luthfi 6 years ago
parent
commit
70dc5a695e
  1. 2
      resources/views/invoice-drafts/partials/form-draft-detail.blade.php
  2. 2
      resources/views/payments/create.blade.php

2
resources/views/invoice-drafts/partials/form-draft-detail.blade.php

@ -21,7 +21,7 @@
{!! FormField::text('date', [
'placeholder' => 'yyyy-mm-dd',
'label' => trans('invoice.date'),
'value' => $draft->date,
'value' => $draft->date ?: now()->format('Y-m-d'),
]) !!}
</div>
<div class="col-md-6">

2
resources/views/payments/create.blade.php

@ -25,7 +25,7 @@
</div>
<div class="row">
<div class="col-md-6">
{!! FormField::text('date', ['label'=> __('payment.date')]) !!}
{!! FormField::text('date', ['label'=> __('payment.date'), 'value' => now()->format('Y-m-d')]) !!}
</div>
<div class="col-md-6">
{!! FormField::price('amount', ['label'=> __('payment.amount'), 'currency' => Option::get('money_sign', 'Rp')]) !!}

Loading…
Cancel
Save