fix invoice payment

This commit is contained in:
ludo
2023-11-25 19:33:41 +01:00
parent 34f0b2796f
commit 82b864768e
10 changed files with 127 additions and 149 deletions

View File

@@ -1,16 +1 @@
@extends('layout.index', [
'title' => __('invoices.title'),
'subtitle' => __('invoices.create.title'),
'breadcrumb' => [__('invoices.title'), __('invoices.create.title')]
])
@include('boilerplate::load.fileinput')
@section('content')
{{ Form::open(['route' => 'Admin.Shop.Invoices.store', 'id' => 'invoice-form', 'autocomplete' => 'off']) }}
@include('Admin.Shop.Invoices.form')
@include('components.save')
</form>
@endsection
@include('Admin.Shop.InvoicePayments.form')

View File

@@ -4,7 +4,7 @@
'label' => 'Règlement',
'name' => 'payment_type',
'list' => $payment_types ?? [],
'value' => $invoice_payment['payment_type'],
'value' => $invoice_payment['payment_type'] ?? null,
'class' => 'select2',
])
</div>
@@ -12,15 +12,7 @@
@include('components.form.input', [
'label' => 'Montant',
'name' => 'amount',
'value' => $invoice_payment['amount'],
'value' => $invoice_payment['amount'] ?? null,
])
</div>
</div>
<div class="row">
<div class="col-md-8">
<div class="float-right mt-3">
@include('components.form.buttons.button-save')
</div>
</div>
</div>