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

@@ -0,0 +1,38 @@
<div class="row mb-3">
<div class="col">
<h4>
<x-form.buttons.button-add id="add_payment" class="btn-xs" />
Règlements
</h4>
</div>
</div>
@if ($payments ?? false)
@foreach ($payments as $payment)
@endforeach
@endif
@push('js')
<script>
$('#add_payment').click(function() {
InvoicePaymentCreate();
});
function InvoicePaymentCreate() {
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();");
}
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();");
}
function InvoicePaymentRefresh() {
}
</script>
@endpush