|
@@ -100,6 +100,20 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="col-md-2">
|
|
|
|
|
+ <div class="row">
|
|
|
|
|
+ <div class="col-md-12" style="margin-bottom:10px;">
|
|
|
|
|
+ <b>Destinazioni</b>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="col-12">
|
|
|
|
|
+ <select name="search_destination_id" class="form-select filterDestinations" multiple="multiple">
|
|
|
|
|
+ @foreach($banks as $bank)
|
|
|
|
|
+ <option value="{{$bank["id"]}}">{!!$bank["name"]!!}
|
|
|
|
|
+ @endforeach
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
<div class="col-md-2">
|
|
<div class="col-md-2">
|
|
|
<div class="row">
|
|
<div class="row">
|
|
|
<div class="col-md-12" style="margin-bottom:10px;">
|
|
<div class="col-md-12" style="margin-bottom:10px;">
|
|
@@ -138,6 +152,7 @@
|
|
|
<th scope="col">Commerciale</th>
|
|
<th scope="col">Commerciale</th>
|
|
|
<th scope="col">Causale</th>
|
|
<th scope="col">Causale</th>
|
|
|
<th scope="col">Pagamento</th>
|
|
<th scope="col">Pagamento</th>
|
|
|
|
|
+ <th scope="col">Destinazione</th>
|
|
|
|
|
|
|
|
<th scope="col">Stato</th>
|
|
<th scope="col">Stato</th>
|
|
|
<th scope="col">...</th>
|
|
<th scope="col">...</th>
|
|
@@ -957,6 +972,17 @@
|
|
|
}, 100);
|
|
}, 100);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ $(document).on("keypress", $('.filterDestinations'), function (e) {
|
|
|
|
|
+
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ $(".select2-results__option").each(function(){
|
|
|
|
|
+ var txt = $(this).html();
|
|
|
|
|
+ var count = (txt.match(/-/g) || []).length;
|
|
|
|
|
+ $(this).addClass('paddingLeftSelect' + count);
|
|
|
|
|
+ });
|
|
|
|
|
+ }, 100);
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
Livewire.on('load-select', () => {
|
|
Livewire.on('load-select', () => {
|
|
@@ -1014,6 +1040,11 @@
|
|
|
//var data = $('.filterCausals').select2("val");
|
|
//var data = $('.filterCausals').select2("val");
|
|
|
//@this.set('filterCausals', data);
|
|
//@this.set('filterCausals', data);
|
|
|
});
|
|
});
|
|
|
|
|
+ $('.filterDestinations').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
|
|
|
+ $('.filterDestinations').on('change', function (e) {
|
|
|
|
|
+ //var data = $('.filterDestinations').select2("val");
|
|
|
|
|
+ //@this.set('filterDestinations', data);
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1033,6 +1064,11 @@
|
|
|
//var data = $('.filterCausals').select2("val");
|
|
//var data = $('.filterCausals').select2("val");
|
|
|
//@this.set('filterCausals', data);
|
|
//@this.set('filterCausals', data);
|
|
|
});
|
|
});
|
|
|
|
|
+ $('.filterDestinations').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
|
|
|
+ $('.filterDestinations').on('change', function (e) {
|
|
|
|
|
+ //var data = $('.filterDestinations').select2("val");
|
|
|
|
|
+ //@this.set('filterDestinations', data);
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
window.livewire.on('saved', () => {
|
|
window.livewire.on('saved', () => {
|
|
|
$('#userModal').modal('hide');
|
|
$('#userModal').modal('hide');
|
|
@@ -1105,6 +1141,12 @@
|
|
|
$('.filterCausals').val(filterCausals);
|
|
$('.filterCausals').val(filterCausals);
|
|
|
$('.filterCausals').trigger('change');
|
|
$('.filterCausals').trigger('change');
|
|
|
}
|
|
}
|
|
|
|
|
+ var filterDestinations = localStorage.getItem("filterDestinations");
|
|
|
|
|
+ if (filterDestinations)
|
|
|
|
|
+ {
|
|
|
|
|
+ $('.filterDestinations').val(filterDestinations);
|
|
|
|
|
+ $('.filterDestinations').trigger('change');
|
|
|
|
|
+ }
|
|
|
var filterFrom = localStorage.getItem("filterFrom");
|
|
var filterFrom = localStorage.getItem("filterFrom");
|
|
|
if (filterFrom)
|
|
if (filterFrom)
|
|
|
{
|
|
{
|
|
@@ -1152,6 +1194,12 @@
|
|
|
$('.filterCausals').val(filterCausals);
|
|
$('.filterCausals').val(filterCausals);
|
|
|
$('.filterCausals').trigger('change');
|
|
$('.filterCausals').trigger('change');
|
|
|
}
|
|
}
|
|
|
|
|
+ var filterDestinations = localStorage.getItem("filterDestinationsRecordIn");
|
|
|
|
|
+ if (filterDestinations && filterDestinations != "null" && filterDestinations != "undefined")
|
|
|
|
|
+ {
|
|
|
|
|
+ $('.filterDestinations').val(filterDestinations);
|
|
|
|
|
+ $('.filterDestinations').trigger('change');
|
|
|
|
|
+ }
|
|
|
var filterFrom = localStorage.getItem("filterFromRecordIn");
|
|
var filterFrom = localStorage.getItem("filterFromRecordIn");
|
|
|
if (filterFrom && filterFrom != "null" && filterFrom != "undefined")
|
|
if (filterFrom && filterFrom != "null" && filterFrom != "undefined")
|
|
|
{
|
|
{
|
|
@@ -1189,6 +1237,16 @@
|
|
|
});
|
|
});
|
|
|
}, 100);
|
|
}, 100);
|
|
|
});
|
|
});
|
|
|
|
|
+ $(document).on("select2:open",".filterDestinations",function() {
|
|
|
|
|
+ //$('.filterDestinations').on('select2:open', function (e) {
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ $(".select2-results__option").each(function(){
|
|
|
|
|
+ var txt = $(this).html();
|
|
|
|
|
+ var count = (txt.match(/-/g) || []).length;
|
|
|
|
|
+ $(this).addClass('paddingLeftSelect' + count);
|
|
|
|
|
+ });
|
|
|
|
|
+ }, 100);
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
@@ -1233,6 +1291,8 @@
|
|
|
$('.filterPaymentMethod').trigger('change');
|
|
$('.filterPaymentMethod').trigger('change');
|
|
|
$('.filterCausals').val('');
|
|
$('.filterCausals').val('');
|
|
|
$('.filterCausals').trigger('change');
|
|
$('.filterCausals').trigger('change');
|
|
|
|
|
+ $('.filterDestinations').val('');
|
|
|
|
|
+ $('.filterDestinations').trigger('change');
|
|
|
$('.filterFrom').val('');
|
|
$('.filterFrom').val('');
|
|
|
$('.filterTo').val('');
|
|
$('.filterTo').val('');
|
|
|
//localStorage.clear();
|
|
//localStorage.clear();
|
|
@@ -1251,6 +1311,7 @@
|
|
|
var filterMember = $('.filterMember').val();
|
|
var filterMember = $('.filterMember').val();
|
|
|
var filterPaymentMethod = $('.filterPaymentMethod').val();
|
|
var filterPaymentMethod = $('.filterPaymentMethod').val();
|
|
|
var filterCausals = $('.filterCausals').val();
|
|
var filterCausals = $('.filterCausals').val();
|
|
|
|
|
+ var filterDestinations = $('.filterDestinations').val();
|
|
|
var filterFrom = $('.filterFrom').val();
|
|
var filterFrom = $('.filterFrom').val();
|
|
|
var filterTo = $('.filterTo').val();
|
|
var filterTo = $('.filterTo').val();
|
|
|
|
|
|
|
@@ -1259,6 +1320,7 @@
|
|
|
localStorage.setItem("filterMemberRecordIn", filterMember);
|
|
localStorage.setItem("filterMemberRecordIn", filterMember);
|
|
|
localStorage.setItem("filterPaymentMethodRecordIn", filterPaymentMethod);
|
|
localStorage.setItem("filterPaymentMethodRecordIn", filterPaymentMethod);
|
|
|
localStorage.setItem("filterCausalsRecordIn", filterCausals);
|
|
localStorage.setItem("filterCausalsRecordIn", filterCausals);
|
|
|
|
|
+ localStorage.setItem("filterDestinationsRecordIn", filterDestinations);
|
|
|
localStorage.setItem("filterFromRecordIn", filterFrom);
|
|
localStorage.setItem("filterFromRecordIn", filterFrom);
|
|
|
localStorage.setItem("filterToRecordIn", filterTo);
|
|
localStorage.setItem("filterToRecordIn", filterTo);
|
|
|
|
|
|
|
@@ -1275,7 +1337,7 @@
|
|
|
scrollY: 800,*/
|
|
scrollY: 800,*/
|
|
|
serverSide: true,
|
|
serverSide: true,
|
|
|
ajax: {
|
|
ajax: {
|
|
|
- url : '/get_record_in?filterCommercial=' + filterCommercial + "&filterMember=" + filterMember + "&filterPaymentMethod=" + filterPaymentMethod + "&filterCausals=" + filterCausals + "&filterFrom=" + filterFrom + "&filterTo=" + filterTo,
|
|
|
|
|
|
|
+ url : '/get_record_in?filterCommercial=' + filterCommercial + "&filterMember=" + filterMember + "&filterPaymentMethod=" + filterPaymentMethod + "&filterDestinations=" + filterDestinations + "&filterCausals=" + filterCausals + "&filterFrom=" + filterFrom + "&filterTo=" + filterTo,
|
|
|
dataSrc: function (json){
|
|
dataSrc: function (json){
|
|
|
if(json.totals){
|
|
if(json.totals){
|
|
|
|
|
|
|
@@ -1314,6 +1376,7 @@
|
|
|
{ data: 'commercial' },
|
|
{ data: 'commercial' },
|
|
|
{ data: 'causals', "orderable": false, },
|
|
{ data: 'causals', "orderable": false, },
|
|
|
{ data: 'payment', "orderable": false, },
|
|
{ data: 'payment', "orderable": false, },
|
|
|
|
|
+ { data: 'destination', "orderable": false, },
|
|
|
//{ data: 'payment_date', "orderable": false, },
|
|
//{ data: 'payment_date', "orderable": false, },
|
|
|
{ data: 'status', "orderable": false, },
|
|
{ data: 'status', "orderable": false, },
|
|
|
{
|
|
{
|