Skip to content

Commit 79ae168

Browse files
committed
fix: imposta pagamento predefinito anagrafica in aggiunta nuova attività
1 parent d841dc9 commit 79ae168

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/interventi/src/Intervento.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static function build(Anagrafica $anagrafica, TipoSessione $tipo_sessione
6969
$model->data_richiesta = $data_richiesta;
7070
$model->id_segment = $id_segment;
7171
$model->idagente = $anagrafica->idagente;
72-
$model->idpagamento = setting('Tipo di pagamento predefinito');
72+
$model->idpagamento = $anagrafica->idpagamento_vendite ?: setting('Tipo di pagamento predefinito');
7373

7474
// Set idclientefinale to the same as idanagrafica by default to avoid foreign key constraint violation
7575
$model->idclientefinale = $anagrafica->idanagrafica;

0 commit comments

Comments
 (0)