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

Correzione minore per BIC in FE

This commit is contained in:
Dasc3er 2020-10-30 16:38:37 +01:00
parent d9b523a16b
commit df73714809

View File

@ -1453,11 +1453,14 @@ class FatturaElettronica
if (!empty($banca->nome)) {
$pagamento['IstitutoFinanziario'] = $banca->nome;
}
if (!empty($banca->iban)) {
$pagamento['IBAN'] = clean($banca->iban);
}
// BIC senza parte per filiale (causa errori di validazione)
if (!empty($banca->bic)) {
$pagamento['BIC'] = $banca->bic;
$pagamento['BIC'] = substr($banca->bic, 0, 8);
}
$result[]['DettaglioPagamento'] = $pagamento;