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:
parent
f5f076b2d2
commit
4f4502f981
@ -77,7 +77,7 @@ class FatturaElettronica
|
||||
'data' => $data,
|
||||
])->first();
|
||||
|
||||
if (!empty($fattura)) {
|
||||
if (!empty($fattura) && $fattura->tipo->dir == 'uscita') {
|
||||
throw new UnexpectedValueException();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user