Forráskód Böngészése

prima nota - aggiunta visibilità 'ALL' a origini e destinazioni

ferrari 1 hónapja
szülő
commit
470844b539
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      app/Http/Livewire/Record.php

+ 2 - 2
app/Http/Livewire/Record.php

@@ -95,8 +95,8 @@ class Record extends Component
             })->orderBy('last_name')->orderBy('first_name')->get();
 
         $this->payments = \App\Models\PaymentMethod::select('id', 'name', 'type')->where('enabled', true)->where('money', false)->get();
-        $this->origins = \App\Models\Bank::select('id', 'name')->where('enabled', true)->where('visibility', 'OUT')->get();
-        $this->destinations = \App\Models\Bank::select('id', 'name')->where('enabled', true)->where('visibility', 'IN')->get();
+        $this->origins = \App\Models\Bank::select('id', 'name')->where('enabled', true)->whereIn('visibility', ['OUT', 'ALL'])->get();
+        $this->destinations = \App\Models\Bank::select('id', 'name')->where('enabled', true)->whereIn('visibility', ['IN', 'ALL'])->get();
 
         $this->selectedMonth = date('Y-m');
         $this->selectedDay = date('Y-m-d');