Allargamento riferimenti ddt-ordini

This commit is contained in:
loviuz 2021-06-16 11:27:21 +02:00
parent ad2b724452
commit fa610ba7bd
1 changed files with 0 additions and 2 deletions

View File

@ -68,8 +68,6 @@ 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([