Skip to content

Commit e17453d

Browse files
committed
fix: nascoste info di ricevute scadute se prima della data da impostazioni
1 parent 65930bf commit e17453d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

plugins/receiptFE/edit.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@
4040
}
4141

4242
// Messaggio informativo su fatture con stato di errore
43+
$data_setting = Carbon::createFromFormat('d/m/Y', setting('Data inizio controlli su stati FE'))->format('Y-m-d');
44+
4345
$fatture_generate_errore = Fattura::vendita()
4446
->whereIn('codice_stato_fe', ['NS', 'ERR', 'EC02'])
4547
->where('data_stato_fe', '>=', $_SESSION['period_start'])
48+
->where('data', '>=', $data_setting)
4649
->orderBy('data_stato_fe')
4750
->get();
4851

@@ -90,6 +93,7 @@
9093
->where('codice_stato_fe', 'WAIT')
9194
->where('data_stato_fe', '>=', $_SESSION['period_start'])
9295
->where('data_stato_fe', '<', $data_limite)
96+
->where('data', '>=', $data_setting)
9397
->orderBy('data_stato_fe')
9498
->get();
9599

0 commit comments

Comments
 (0)