mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 19:40:44 +01:00
Fix banca controparte
This commit is contained in:
parent
432d781ce2
commit
d2bdd6cc19
@ -799,9 +799,7 @@ class Fattura extends Document
|
||||
$pagamento = $this->pagamento;
|
||||
|
||||
if ($pagamento->isRiBa()) {
|
||||
$banca = Banca::where('id_anagrafica', $this->idanagrafica)
|
||||
->where('predefined', 1)
|
||||
->first();
|
||||
$banca = Banca::find($this->id_banca_controparte);
|
||||
} else {
|
||||
$banca = Banca::find($this->id_banca_azienda);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user