|
@@ -171,7 +171,12 @@
|
|
|
{{ session()->get('error') }}
|
|
{{ session()->get('error') }}
|
|
|
</div>
|
|
</div>
|
|
|
@endif
|
|
@endif
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ @if($currentReceip->status == 99)
|
|
|
|
|
+ <div class="alert alert-warning" role="alert">
|
|
|
|
|
+ Ricevuta annullata
|
|
|
|
|
+ </div>
|
|
|
|
|
+ @endif
|
|
|
|
|
|
|
|
<section id="accountingEntry" class="d-flex">
|
|
<section id="accountingEntry" class="d-flex">
|
|
|
<div class="accountingEntry_data" wire:key='reload-{{$selectId}}'>
|
|
<div class="accountingEntry_data" wire:key='reload-{{$selectId}}'>
|
|
@@ -727,11 +732,11 @@
|
|
|
@if($update && !$isDuplicate && !$deleted)
|
|
@if($update && !$isDuplicate && !$deleted)
|
|
|
@if($currentReceip)
|
|
@if($currentReceip)
|
|
|
@if($currentReceip->status == 99)
|
|
@if($currentReceip->status == 99)
|
|
|
- <br><b style="float:right">Annullata</b>
|
|
|
|
|
|
|
+ {{-- <br><b style="float:right">Annullata</b> --}}
|
|
|
@if($this->member && !$commercial && !$this->member->isAdult() && $parent == '')
|
|
@if($this->member && !$commercial && !$this->member->isAdult() && $parent == '')
|
|
|
<span style="color:red">Devi selezionare un genitore</span>
|
|
<span style="color:red">Devi selezionare un genitore</span>
|
|
|
@else
|
|
@else
|
|
|
- <button class="btn--ui primary sendInvoice mt-5 d-flex ms-auto" wire:click.prevent="rigenerate()"><i class="ico--ui sendingBtn"></i><span>salva e rigenera ricevuta</span></button>
|
|
|
|
|
|
|
+ <button class="btn--ui primary sendInvoice mt-5 d-flex ms-auto" wire:click.prevent="rigenerate()"><i class="ico--ui sendingBtn"></i><span>rigenera ricevuta</span></button>
|
|
|
@endif
|
|
@endif
|
|
|
@else
|
|
@else
|
|
|
<div class="mt-5 buttons--ricevuta d-flex align-items-center">
|
|
<div class="mt-5 buttons--ricevuta d-flex align-items-center">
|
|
@@ -803,6 +808,15 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
+ <div wire:ignore.self class="modal fade success-modal" id="successModal" tabindex="-1" role="dialog" aria-labelledby="successModal" aria-hidden="true">
|
|
|
|
|
+ <div class="modal-dialog">
|
|
|
|
|
+ <div class="modal-content">
|
|
|
|
|
+ <div class="modal-header"></div>
|
|
|
|
|
+ <div class="modal-body pt-4 pb-4 text-center fw-bold">Ricevuta annullata con successo</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
@endif
|
|
@endif
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -1465,3 +1479,20 @@
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
@endpush
|
|
@endpush
|
|
|
|
|
+
|
|
|
|
|
+@push('scripts')
|
|
|
|
|
+<script>
|
|
|
|
|
+Livewire.on('success', () => {
|
|
|
|
|
+ showSuccessAlert();
|
|
|
|
|
+});
|
|
|
|
|
+
|
|
|
|
|
+let success_alert_timeout;
|
|
|
|
|
+function showSuccessAlert() {
|
|
|
|
|
+ $('#successModal').modal("show");
|
|
|
|
|
+ clearTimeout(success_alert_timeout);
|
|
|
|
|
+ success_alert_timeout = setTimeout(() => {
|
|
|
|
|
+ $('#successModal').modal("hide");
|
|
|
|
|
+ }, 3000);
|
|
|
|
|
+}
|
|
|
|
|
+</script>
|
|
|
|
|
+@endpush
|