From 97c26fade91f0a8bc82f19321c85cbba66e6e5cc Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Tue, 28 Sep 2021 14:44:20 +0200 Subject: [PATCH] Selezione automatica del conto di acquisto articolo in fase di import --- plugins/importFE/generate.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/importFE/generate.php b/plugins/importFE/generate.php index 0302b585c..1aabc7dd7 100755 --- a/plugins/importFE/generate.php +++ b/plugins/importFE/generate.php @@ -357,6 +357,8 @@ if (!empty($righe)) { $id_articolo = $database->fetchOne('SELECT id FROM mg_articoli WHERE REPLACE(codice, " ", "") = '.prepare($codice_principale))['id']; } } + + $idconto_acquisto = $database->fetchOne('SELECT idconto_acquisto FROM mg_articoli WHERE id = '.prepare($id_articolo))['idconto_acquisto']; } $qta = $riga['Quantita'];