Fix esportazioni bancarie
This commit is contained in:
parent
4f632cc15f
commit
7704505f66
|
@ -321,7 +321,13 @@ class Gestore
|
||||||
{
|
{
|
||||||
$documento = $scadenza->documento;
|
$documento = $scadenza->documento;
|
||||||
|
|
||||||
return $documento->id_banca_azienda ? Banca::find($documento->id_banca_azienda) : self::getBancaPredefinitaAzienda();
|
$banca = $documento->id_banca_azienda ? Banca::find($documento->id_banca_azienda) : '';
|
||||||
|
|
||||||
|
if (empty($banca)) {
|
||||||
|
$banca = self::getBancaPredefinitaAzienda();
|
||||||
|
}
|
||||||
|
|
||||||
|
return $banca;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getBancaPredefinitaAzienda(): Banca
|
public static function getBancaPredefinitaAzienda(): Banca
|
||||||
|
|
Loading…
Reference in New Issue