From e39813d2bfe3b84fc37430bb09b955597e76aff6 Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Fri, 21 Jul 2023 09:58:20 +0200 Subject: [PATCH] Fix minori confronta prezzi --- modules/contratti/modals/confronta_righe.php | 1 - modules/contratti/row-list.php | 2 +- modules/ddt/row-list.php | 2 +- modules/fatture/row-list.php | 2 +- modules/interventi/row-list.php | 2 +- modules/ordini/row-list.php | 2 +- modules/preventivi/modals/confronta_righe.php | 1 - modules/preventivi/row-list.php | 2 +- 8 files changed, 6 insertions(+), 8 deletions(-) diff --git a/modules/contratti/modals/confronta_righe.php b/modules/contratti/modals/confronta_righe.php index 9435846e3..bc70d905f 100644 --- a/modules/contratti/modals/confronta_righe.php +++ b/modules/contratti/modals/confronta_righe.php @@ -25,7 +25,6 @@ use Modules\Contratti\Contratto; $contratto = Contratto::find($id_record); $id_anagrafica = $contratto->idanagrafica; -$direzione = $contratto->direzione; $righe = $_GET['righe']; $righe = $dbo->fetchArray( diff --git a/modules/contratti/row-list.php b/modules/contratti/row-list.php index ccd630ecb..79c0532e7 100755 --- a/modules/contratti/row-list.php +++ b/modules/contratti/row-list.php @@ -378,7 +378,7 @@ function getSelectData() { } function confrontaRighe(id) { - openModal("'.tr('Confronta prezzi').'", "'.$module->fileurl('modals/confronta_righe.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&righe=" + id + "&id_anagrafica='.$ordine->idanagrafica.'&direzione='.$dir.'"); + openModal("'.tr('Confronta prezzi').'", "'.$module->fileurl('modals/confronta_righe.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&righe=" + id); } diff --git a/modules/ddt/row-list.php b/modules/ddt/row-list.php index be84be9f5..a97663764 100755 --- a/modules/ddt/row-list.php +++ b/modules/ddt/row-list.php @@ -427,7 +427,7 @@ function getSelectData() { } function confrontaRighe(id) { - openModal("'.tr('Confronta prezzi').'", "'.$module->fileurl('modals/confronta_righe.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&righe=" + id + "&id_anagrafica='.$ordine->idanagrafica.'&direzione='.$dir.'"); + openModal("'.tr('Confronta prezzi').'", "'.$module->fileurl('modals/confronta_righe.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&righe=" + id); } function rimuoviRiga(id) { diff --git a/modules/fatture/row-list.php b/modules/fatture/row-list.php index 7cc8fb6ea..1fa9e381c 100755 --- a/modules/fatture/row-list.php +++ b/modules/fatture/row-list.php @@ -548,7 +548,7 @@ function getSelectData() { } function confrontaRighe(id) { - openModal("'.tr('Confronta prezzi').'", "'.$module->fileurl('modals/confronta_righe.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&righe=" + id + "&id_anagrafica='.$ordine->idanagrafica.'&direzione='.$dir.'"); + openModal("'.tr('Confronta prezzi').'", "'.$module->fileurl('modals/confronta_righe.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&righe=" + id); } function rimuoviRiga(id) { diff --git a/modules/interventi/row-list.php b/modules/interventi/row-list.php index 780dd4de3..ddbd86314 100755 --- a/modules/interventi/row-list.php +++ b/modules/interventi/row-list.php @@ -322,7 +322,7 @@ function getSelectData() { } function confrontaRighe(id) { - openModal("'.tr('Confronta prezzi').'", "'.$module->fileurl('modals/confronta_righe.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&righe=" + id + "&id_anagrafica='.$ordine->idanagrafica.'&direzione='.$dir.'"); + openModal("'.tr('Confronta prezzi').'", "'.$module->fileurl('modals/confronta_righe.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&righe=" + id); } function rimuoviRiga(id) { diff --git a/modules/ordini/row-list.php b/modules/ordini/row-list.php index e25fc30ff..ac2e9c1d4 100755 --- a/modules/ordini/row-list.php +++ b/modules/ordini/row-list.php @@ -472,7 +472,7 @@ function getSelectData() { } function confrontaRighe(id) { - openModal("'.tr('Confronta prezzi').'", "'.$module->fileurl('modals/confronta_righe.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&righe=" + id + "&id_anagrafica='.$ordine->idanagrafica.'&direzione='.$dir.'"); + openModal("'.tr('Confronta prezzi').'", "'.$module->fileurl('modals/confronta_righe.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&righe=" + id); } function rimuoviRiga(id) { diff --git a/modules/preventivi/modals/confronta_righe.php b/modules/preventivi/modals/confronta_righe.php index 93dd90aaf..46c33d66c 100644 --- a/modules/preventivi/modals/confronta_righe.php +++ b/modules/preventivi/modals/confronta_righe.php @@ -25,7 +25,6 @@ use Modules\Preventivi\Preventivo; $preventivo = Preventivo::find($id_record); $id_anagrafica = $preventivo->idanagrafica; -$direzione = $preventivo->direzione; $righe = $_GET['righe']; $righe = $dbo->fetchArray( diff --git a/modules/preventivi/row-list.php b/modules/preventivi/row-list.php index fc0006a04..8cffde343 100755 --- a/modules/preventivi/row-list.php +++ b/modules/preventivi/row-list.php @@ -437,7 +437,7 @@ function getSelectData() { } function confrontaRighe(id) { - openModal("'.tr('Confronta prezzi').'", "'.$module->fileurl('modals/confronta_righe.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&righe=" + id + "&id_anagrafica='.$ordine->idanagrafica.'&direzione='.$dir.'"); + openModal("'.tr('Confronta prezzi').'", "'.$module->fileurl('modals/confronta_righe.php').'?id_module=" + globals.id_module + "&id_record=" + globals.id_record + "&righe=" + id); } function rimuoviRiga(id) {