We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a8472a commit 7b6c28fCopy full SHA for 7b6c28f
1 file changed
modules/fatture/edit.php
@@ -210,7 +210,9 @@
210
</div>';
211
}
212
213
- $data_fattura = new DateTime($fattura->data);
+ // Usa la data della ricevuta di scarto SDI se disponibile, altrimenti la data della fattura
214
+ $data_riferimento = !empty($fattura->data_stato_fe) ? $fattura->data_stato_fe : $fattura->data;
215
+ $data_fattura = new DateTime($data_riferimento);
216
$data_odierna = new DateTime();
217
$differenza = $data_odierna->diff($data_fattura)->days;
218
0 commit comments