update payments and vat mentions

This commit is contained in:
ludo
2023-12-21 23:04:42 +01:00
parent 643c26d549
commit 8a463e7b9e
13 changed files with 86 additions and 143 deletions

View File

@@ -4,7 +4,7 @@
<div class="col-9">
<h5>
<a href="{{ route('Admin.Shop.Orders.edit', ['id' => $invoice['order_id']]) }}" class="btn btn-success">
<i class="fa fa-truck"></i>
<i class="fa fa-fw fa-truck"></i>
</a>
Facture {{ $invoice['ref'] }}
<span class="small">
@@ -20,12 +20,11 @@
<div class="row mb-3">
<div class="col-6">
<h5>
@if ($invoice['order']['customer']['company'])
Société : {{ $invoice['order']['customer']['company'] }}<br />
@endif
{{ $invoice['order']['customer']['first_name'] }}
{{ $invoice['order']['customer']['last_name'] }}
@if ($invoice['order']['customer']['company'])
<br>
{{ $invoice['order']['customer']['company'] }}
@endif
</h5>
@if ($invoice['order']['delivery_address'])

View File

@@ -27,6 +27,8 @@
</table>
@endif
@include('load.form.datepicker')
@push('js')
<script>
$('#add_payment').click(function() {
@@ -37,14 +39,14 @@
var url_open = "{{ route('Admin.Shop.InvoicePayments.create') }}";
var url_save = "{{ route('Admin.Shop.InvoicePayments.store') }}";
openModal("Ajouter un paiement", '#invoice_payment-form', url_open, url_save,
"InvoicePaymentRefresh();");
"InvoicePaymentRefresh();", 'sm');
}
function InvoicePaymentEdit(id) {
var url_open = "{{ route('Admin.Shop.InvoicePayments.edit') }}/" + id;
var url_save = "{{ route('Admin.Shop.InvoicePayments.store') }}";
openModal("Editer un paiement", '#invoice_payment-form', url_open, url_save,
"InvoicePaymentRefresh();");
"InvoicePaymentRefresh();", 'sm');
}
function InvoicePaymentRefresh() {