mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Aggiunto controllo su fattura già importata
This commit is contained in:
@@ -77,7 +77,7 @@ class FatturaElettronica
|
||||
'data' => $data,
|
||||
])->first();
|
||||
|
||||
if (!empty($fattura)) {
|
||||
if (!empty($fattura) && $fattura->tipo->dir == 'uscita') {
|
||||
throw new UnexpectedValueException();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user