mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 19:40:44 +01:00
Fix creazione banca in fase di importFE
This commit is contained in:
parent
b23315f2b2
commit
b56416712f
@ -350,7 +350,11 @@ class FatturaElettronica
|
|||||||
if (empty($banca_fornitore)) {
|
if (empty($banca_fornitore)) {
|
||||||
$anagrafica = $fattura->anagrafica;
|
$anagrafica = $fattura->anagrafica;
|
||||||
$nome = $info_pagamento['IstitutoFinanziario'] ?: 'Banca di '.$anagrafica->ragione_sociale;
|
$nome = $info_pagamento['IstitutoFinanziario'] ?: 'Banca di '.$anagrafica->ragione_sociale;
|
||||||
$banca_fornitore = Banca::build($anagrafica, $nome, $info_pagamento['IBAN'], $info_pagamento['BIC'] ?: '');
|
try {
|
||||||
|
$banca_fornitore = Banca::build($anagrafica, $nome, $info_pagamento['IBAN'], $info_pagamento['BIC'] ?: '');
|
||||||
|
} catch (\UnexpectedValueException $e) {
|
||||||
|
flash()->error(tr("Errore durante la creazione della banca: verificare la correttezza dei dati").'.');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user