This commit is contained in:
Pek5892 2023-01-17 15:07:50 +01:00
parent 5f73f309ff
commit d539d383bc
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,8 @@ foreach ($ddt as $elemento) {
$tipo_ordini = $direzione_richiesta == 'entrata' ? 'cliente' : 'fornitore';
$ordini = Ordine::whereHas('stato', function ($query) {
$query->where('descrizione', '!=', 'Bozza');
})->whereHas('tipo', function ($query) use ($direzione_richiesta) {
$query->where('dir', '=', $direzione_richiesta);
})->get();
foreach ($ordini as $elemento) {
$documenti_disponibili->push([