1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-14 02:20:46 +01:00

Aggiunto controllo su fattura già importata

This commit is contained in:
MatteoPistorello 2022-05-12 15:44:30 +02:00
parent f5f076b2d2
commit 4f4502f981

View File

@ -77,7 +77,7 @@ class FatturaElettronica
'data' => $data,
])->first();
if (!empty($fattura)) {
if (!empty($fattura) && $fattura->tipo->dir == 'uscita') {
throw new UnexpectedValueException();
}
}