From 68fac4c12a39a2ba195aabfce330acf9eb052f95 Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Mon, 25 Mar 2024 11:38:43 +0100 Subject: [PATCH] Fix minore --- modules/ddt/src/DDT.php | 2 -- modules/ordini/src/Ordine.php | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/ddt/src/DDT.php b/modules/ddt/src/DDT.php index 9407463e8..368aa4807 100755 --- a/modules/ddt/src/DDT.php +++ b/modules/ddt/src/DDT.php @@ -85,8 +85,6 @@ class DDT extends Document $model->id_segment = $id_segment; $model->idagente = $anagrafica->idagente; - $model->save(); - // Salvataggio delle informazioni $model->data = $data; diff --git a/modules/ordini/src/Ordine.php b/modules/ordini/src/Ordine.php index bd9f10315..e9e57eaca 100755 --- a/modules/ordini/src/Ordine.php +++ b/modules/ordini/src/Ordine.php @@ -61,8 +61,6 @@ class Ordine extends Document $direzione = $tipo_documento->dir; $id_segment = $id_segment ?: getSegmentPredefined($model->getModule()->id); - $database = database(); - if ($direzione == 'entrata') { $conto = 'vendite'; } else { @@ -82,8 +80,7 @@ class Ordine extends Document $model->stato()->associate($stato_documento); $model->id_segment = $id_segment; $model->idagente = $anagrafica->idagente; - $model->save(); - + // Salvataggio delle informazioni $model->data = $data;