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:
parent
e78a0d2de5
commit
15c3866820
@ -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) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user