|
|
@@ -1,6 +1,7 @@
|
|
|
<div class="col card--ui" id="card--dashboard">
|
|
|
|
|
|
|
|
|
+
|
|
|
<header id="title--section" style="display:none !important" class="d-flex align-items-center justify-content-between">
|
|
|
<div class="title--section_name d-flex align-items-center justify-content-between">
|
|
|
<i class="ico--ui title_section uscite me-2"></i>
|
|
|
@@ -175,6 +176,8 @@
|
|
|
|
|
|
@else
|
|
|
|
|
|
+ <a style="margin-top:20px" class="btn--ui lightGrey" href="/{{$fromPage != '' ? ($fromPage . '?showFilters=1') : 'out'}}"><i class="fa-solid fa-arrow-left"></i></a><br><br>
|
|
|
+
|
|
|
@if (session()->has('error'))
|
|
|
<div class="alert alert-danger" role="alert">
|
|
|
{{ session()->get('error') }}
|
|
|
@@ -436,7 +439,8 @@
|
|
|
|
|
|
|
|
|
<div class="accountingExit--btn d-flex align-items-center justify-content-between">
|
|
|
- <button class="btn--ui lightGrey" type="submit" wire:click.prevent="cancel()">annulla</button>
|
|
|
+
|
|
|
+ <a class="btn--ui lightGrey" href="/{{$fromPage != '' ? ($fromPage . '?showFilters=1') : 'out'}}">annulla</a>
|
|
|
@if($add)
|
|
|
<button class="btn--ui primary" type="submit" wire:click.prevent="store()">inserisci</button>
|
|
|
@endif
|
|
|
@@ -644,39 +648,45 @@
|
|
|
<script>
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
+ loadDataTable();
|
|
|
+ } );
|
|
|
|
|
|
- /*
|
|
|
- var filterSupplier = localStorage.getItem("filterSupplier");
|
|
|
- if (filterSupplier)
|
|
|
+ @if(isset($_GET["showFilters"]))
|
|
|
+ var filterSupplier = localStorage.getItem("filterSupplierRecordOut");
|
|
|
+ if (filterSupplier && filterSupplier != "null" && filterSupplier != "undefined")
|
|
|
{
|
|
|
+ console.log("1");
|
|
|
+ console.log(filterSupplier);
|
|
|
$('.filterSupplier').val(filterSupplier);
|
|
|
$('.filterSupplier').trigger('change');
|
|
|
}
|
|
|
- var filterPaymentMethod = localStorage.getItem("filterPaymentMethod");
|
|
|
- if (filterPaymentMethod)
|
|
|
+ var filterPaymentMethod = localStorage.getItem("filterPaymentMethodRecordOut");
|
|
|
+ if (filterPaymentMethod && filterPaymentMethod != "null" && filterPaymentMethod != "undefined")
|
|
|
{
|
|
|
+ console.log("2");
|
|
|
$('.filterPaymentMethod').val(filterPaymentMethod);
|
|
|
$('.filterPaymentMethod').trigger('change');
|
|
|
}
|
|
|
- var filterCausals = localStorage.getItem("filterCausals");
|
|
|
- if (filterCausals)
|
|
|
+ var filterCausals = localStorage.getItem("filterCausalsRecordOut");
|
|
|
+ if (filterCausals && filterCausals != "null" && filterCausals != "undefined")
|
|
|
{
|
|
|
+ console.log("3");
|
|
|
$('.filterCausals').val(filterCausals);
|
|
|
$('.filterCausals').trigger('change');
|
|
|
}
|
|
|
- var filterFrom = localStorage.getItem("filterFrom");
|
|
|
- if (filterFrom)
|
|
|
+ var filterFrom = localStorage.getItem("filterFromRecordOut");
|
|
|
+ if (filterFrom && filterFrom != "" && filterFrom != "undefined")
|
|
|
{
|
|
|
+ console.log("4");
|
|
|
$('.filterFrom').val(filterFrom);
|
|
|
}
|
|
|
- var filterTo = localStorage.getItem("filterTo");
|
|
|
- if (filterTo)
|
|
|
+ var filterTo = localStorage.getItem("filterToRecordOut");
|
|
|
+ if (filterTo && filterTo != "" && filterTo != "undefined")
|
|
|
{
|
|
|
+ console.log("5");
|
|
|
$('.filterTo').val(filterTo);
|
|
|
}
|
|
|
- */
|
|
|
- loadDataTable();
|
|
|
- } );
|
|
|
+ @endif
|
|
|
|
|
|
var isFilter = false;
|
|
|
$(document).ready(function() {
|
|
|
@@ -747,12 +757,11 @@
|
|
|
var filterFrom = $('.filterFrom').val();
|
|
|
var filterTo = $('.filterTo').val();
|
|
|
|
|
|
- localStorage.setItem("filterSupplier", filterSupplier);
|
|
|
- localStorage.setItem("filterPaymentMethod", filterPaymentMethod);
|
|
|
- localStorage.setItem("filterCausals", filterCausals);
|
|
|
- localStorage.setItem("filterFrom", filterFrom);
|
|
|
- localStorage.setItem("filterTo", filterTo);
|
|
|
-
|
|
|
+ localStorage.setItem("filterSupplierRecordOut", filterSupplier);
|
|
|
+ localStorage.setItem("filterPaymentMethodRecordOut", filterPaymentMethod);
|
|
|
+ localStorage.setItem("filterCausalsRecordOut", filterCausals);
|
|
|
+ localStorage.setItem("filterFromRecordOut", filterFrom);
|
|
|
+ localStorage.setItem("filterToRecordOut", filterTo);
|
|
|
|
|
|
$('#tablesaw-350').DataTable({
|
|
|
//searching: false,
|