We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d841dc9 commit 79ae168Copy full SHA for 79ae168
1 file changed
modules/interventi/src/Intervento.php
@@ -69,7 +69,7 @@ public static function build(Anagrafica $anagrafica, TipoSessione $tipo_sessione
69
$model->data_richiesta = $data_richiesta;
70
$model->id_segment = $id_segment;
71
$model->idagente = $anagrafica->idagente;
72
- $model->idpagamento = setting('Tipo di pagamento predefinito');
+ $model->idpagamento = $anagrafica->idpagamento_vendite ?: setting('Tipo di pagamento predefinito');
73
74
// Set idclientefinale to the same as idanagrafica by default to avoid foreign key constraint violation
75
$model->idclientefinale = $anagrafica->idanagrafica;
0 commit comments