Fix stampa Preventivi

This commit is contained in:
MatteoPistorello 2022-01-19 11:21:49 +01:00
parent 4a9163a9c3
commit bce745f06f
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ try {
}
// Ri.Ba: Banca predefinita *del Cliente* piuttosto che dell'Azienda
if ($pagamento->isRiBa()) {
if ($pagamento && $pagamento->isRiBa()) {
$banca = Banca::where('id_anagrafica', $anagrafica->id)
->where('predefined', 1)
->first();