From 139b83b9838fa8a8405f37a37bd223ac86a16aaa Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 7 Feb 2019 19:24:36 +0100 Subject: [PATCH] Update edit.php --- plugins/exportFE/edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/exportFE/edit.php b/plugins/exportFE/edit.php index de2a235a7..e57477b80 100644 --- a/plugins/exportFE/edit.php +++ b/plugins/exportFE/edit.php @@ -22,7 +22,7 @@ if (!empty($fattura_pa)) { // Natura obbligatoria per iva con esenzione -$iva = $database->fetchOne('SELECT * FROM `co_iva` WHERE `id` IN (SELECT idiva FROM co_righe_documenti WHERE iddocumento = '.prepare($record['id_record']).') AND esente = 1' ); +$iva = $database->fetchOne('SELECT * FROM `co_iva` WHERE `id` IN (SELECT idiva FROM co_righe_documenti WHERE iddocumento = '.prepare($id_record).') AND esente = 1' ); $fields = [ 'codice_natura_fe' => 'Natura IVA', ];