Fix minore

This commit is contained in:
Pek5892 2024-05-03 15:34:38 +02:00
parent d2bdd6cc19
commit 158d463232
1 changed files with 1 additions and 1 deletions

View File

@ -799,7 +799,7 @@ class Fattura extends Document
$pagamento = $this->pagamento;
if ($pagamento->isRiBa()) {
$banca = Banca::find($this->id_banca_controparte);
$banca = Banca::find($this->id_banca_controparte) ?: Banca::where('id_anagrafica', $this->idanagrafica)->where('predefined', 1)->first();;
} else {
$banca = Banca::find($this->id_banca_azienda);
}