mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-23 06:47:40 +01:00
Fix esportazioni bancarie
This commit is contained in:
parent
4f632cc15f
commit
7704505f66
@ -321,7 +321,13 @@ class Gestore
|
||||
{
|
||||
$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
|
||||
|
Loading…
x
Reference in New Issue
Block a user