mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 20:10:50 +01:00
Aggiunta verifica contenuto ricevuta FE
This commit is contained in:
parent
004a0bdd42
commit
5832a79ca3
@ -62,6 +62,9 @@ class Ricevuta
|
||||
delete($extraction_dir);
|
||||
}
|
||||
|
||||
if (!file_exists($file)) {
|
||||
throw new \UnexpectedValueException();
|
||||
} else {
|
||||
$this->file = $file;
|
||||
$this->xml = XML::readFile($this->file);
|
||||
|
||||
@ -73,6 +76,7 @@ class Ricevuta
|
||||
$this->fattura = Fattura::where([
|
||||
'progressivo_invio' => $progressivo_invio,
|
||||
])->first();
|
||||
}
|
||||
|
||||
if (empty($this->fattura)) {
|
||||
throw new \UnexpectedValueException();
|
||||
|
Loading…
x
Reference in New Issue
Block a user