1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-17 03:51:06 +01:00

Aggiunto controllo se il file xml è presente per la funzione isFE

This commit is contained in:
Luca 2019-06-18 17:48:09 +02:00
parent e78a0d2de5
commit 15c3866820

View File

@ -278,7 +278,8 @@ class Fattura extends Document
public function isFE()
{
return !empty($this->progressivo_invio);
$file = $this->uploads()->where('name', 'Fattura Elettronica')->first();
return (!empty($this->progressivo_invio) and file_exists($file->filepath) );
}
/**