1
0
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:
FabioL 2024-09-17 17:19:05 +02:00
parent 004a0bdd42
commit 5832a79ca3

View File

@ -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();