From 36cd1baf37eb2656c7a4bbea405e8506ffea020b Mon Sep 17 00:00:00 2001 From: Alessandro Bonazzi Date: Sun, 26 Jun 2022 02:39:58 +0200 Subject: [PATCH] Patch level : 12.0 1174 Files correlati : sc2.exe Commento: I dati di analitica negli estratti conto e nei solleciti non venivano stampati se l'utente non aveva l'autorizzazione all'analitica. --- src/sc/sc2100.cpp | 4 ++-- src/sc/sc2401.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sc/sc2100.cpp b/src/sc/sc2100.cpp index 77333d1b8..b0b3e30f1 100755 --- a/src/sc/sc2100.cpp +++ b/src/sc/sc2100.cpp @@ -659,7 +659,7 @@ void TEC_array::add_row(const TRiga_partite& row) { TString codanal; - if (main_app().has_module(CAAUT)) + if (main_app().has_module(CAAUT, CHK_DONGLE)) { const TString& numregcg = row.get(PART_NREG); const long numreg = atol(_anal.decode(numregcg)); @@ -1456,7 +1456,7 @@ TEC_form::TEC_form(const TEC_mask& m, bool gesval, bool excel) const int oem = ini_get_int(CONFIG_OEM, "MAIN", "OEM", -1); - if (oem == 0 && main_app().has_module(CAAUT)) + if (oem == 0 && main_app().has_module(CAAUT, CHK_DONGLE)) { TForm_item& codanal = _form->find_field('B', odd_page, PEC_ANALITICA); codanal.show(); diff --git a/src/sc/sc2401.cpp b/src/sc/sc2401.cpp index 71cf6aa3d..2bcfcbd67 100755 --- a/src/sc/sc2401.cpp +++ b/src/sc/sc2401.cpp @@ -448,7 +448,7 @@ void TESSL_array::add_row(const TRiga_partite& row) { TString codanal; - if (main_app().has_module(CAAUT)) + if (main_app().has_module(CAAUT, CHK_DONGLE)) { const TString& numregcg = row.get(PART_NREG); const long numreg = atol(_anal.decode(numregcg));