cancel invoice/bill

This commit is contained in:
denisdulici
2020-03-28 17:54:36 +03:00
parent 889be5fd98
commit 75413a0496
30 changed files with 445 additions and 104 deletions

View File

@ -273,8 +273,7 @@
<div class="card-footer">
<div class="row">
<div class="col-xs-12 col-sm-6">
@if($invoice->status != 'paid')
@if ($payment_methods)
@if (!empty($payment_methods) && !in_array($invoice->status, ['paid', 'cancelled']))
{!! Form::open([
'id' => 'invoice-payment',
'role' => 'form',
@ -285,7 +284,6 @@
{{ Form::selectGroup('payment_method', '', 'money el-icon-money', $payment_methods, '', ['change' => 'onChangePaymentMethod', 'id' => 'payment-method', 'class' => 'form-control', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.payment_methods', 1)])], 'col-sm-12') }}
{!! Form::hidden('invoice_id', $invoice->id, ['v-model' => 'form.invoice_id']) !!}
{!! Form::close() !!}
@endif
@endif
</div>
<div class="col-xs-12 col-sm-6 text-right">

View File

@ -219,19 +219,17 @@
<div class="card-footer">
<div class="row">
<div class="col-md-4">
@if($invoice->status != 'paid')
@if ($payment_methods)
{!! Form::open([
'id' => 'invoice-payment',
'role' => 'form',
'autocomplete' => "off",
'novalidate' => 'true',
'class' => 'mb-0',
]) !!}
{{ Form::selectGroup('payment_method', '', 'fas fa-wallet', $payment_methods, '', ['change' => 'onChangePaymentMethodSigned', 'id' => 'payment-method', 'class' => 'form-control', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.payment_methods', 1)])], 'mb-0') }}
{!! Form::hidden('invoice_id', $invoice->id, ['v-model' => 'form.invoice_id']) !!}
{!! Form::close() !!}
@endif
@if (!empty($payment_methods) && !in_array($invoice->status, ['paid', 'cancelled']))
{!! Form::open([
'id' => 'invoice-payment',
'role' => 'form',
'autocomplete' => "off",
'novalidate' => 'true',
'class' => 'mb-0',
]) !!}
{{ Form::selectGroup('payment_method', '', 'fas fa-wallet', $payment_methods, '', ['change' => 'onChangePaymentMethodSigned', 'id' => 'payment-method', 'class' => 'form-control', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.payment_methods', 1)])], 'mb-0') }}
{!! Form::hidden('invoice_id', $invoice->id, ['v-model' => 'form.invoice_id']) !!}
{!! Form::close() !!}
@endif
</div>