From fd9bb94481bd1f52389a54e37079730590b99f6a Mon Sep 17 00:00:00 2001 From: Alessandro Bonazzi Date: Thu, 15 Jul 2021 23:27:53 +0200 Subject: [PATCH] Patch level : 12.0 1066 Files correlati : ce1.exe Commento : Modificate le segnalazioni nella scelta ammortamento per categoria nel caso di sospensione COVID-19 --- src/ce/ce1400.cpp | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/ce/ce1400.cpp b/src/ce/ce1400.cpp index 6e34c3390..c803b260e 100755 --- a/src/ce/ce1400.cpp +++ b/src/ce/ce1400.cpp @@ -97,7 +97,7 @@ bool TSac_mask::on_field_event(TOperable_field& o, TField_event e, long jolly) if (ok && (dlg == F_CATEGORIA || dlg == F_CATEGORIA2)) { set(dlg == F_CATEGORIA ? F_DESC_CAT : F_DESC_CAT2, cac.get("S0")); - const bool sospamm = ini_get_bool(CONFIG_DITTA, "ce", "SOSPAMM", false) && ese == 2020; + const bool sospamm = ini_get_bool(CONFIG_DITTA, "ce", "SOSPAMM", false); if (cac.get_bool("B0")) return error_box(TR("Categoria non ammortizzabile")); @@ -221,9 +221,10 @@ bool TMat_mask::on_field_event(TOperable_field& o, TField_event e, long jolly) case F_NORFIS_87: if (e == fe_modify || e == fe_close) { - if (test_min(F_NORFIS_87, F_MIN_87)) - warning_box(TR("L'ammortamento normale è inferiore al minimo della tabella ministeriale:\n" - "Se non si seleziona l'ammortamento ritardato verrano generate delle quote perse")); + const bool sospamm = ini_get_bool(CONFIG_DITTA, "ce", "SOSPAMM", false); + + if (!sospamm && test_min(F_NORFIS_87, F_MIN_87)) + warning_box(TR("L'ammortamento normale è inferiore al minimo della tabella ministeriale:")); if (test_max(F_NORFIS_87, F_ANTFIS_87, F_ACCFIS)) return error_box(TR("Il totale delle percentuali di ammortamento supera il 100%")); if (test_rit(F_NORFIS_87, F_MIN_87)) @@ -233,9 +234,10 @@ bool TMat_mask::on_field_event(TOperable_field& o, TField_event e, long jolly) case F_NORFIS_88: if (e == fe_modify || e == fe_close) { - if (test_min(F_NORFIS_88, F_MIN_88)) - warning_box(TR("L'ammortamento normale è inferiore al minimo della tabella ministeriale:\n" - "Se non si seleziona l'ammortamento ritardato verrano generate delle quote perse")); + const bool sospamm = ini_get_bool(CONFIG_DITTA, "ce", "SOSPAMM", false); + + if (!sospamm && test_min(F_NORFIS_88, F_MIN_88)) + warning_box(TR("L'ammortamento normale è inferiore al minimo della tabella ministeriale:")); if (test_max(F_NORFIS_88, F_ANTFIS_88, F_ACCFIS)) return error_box(TR("Il totale delle percentuali di ammortamento supera il 100%")); if (test_rit(F_NORFIS_88, F_MIN_88)) @@ -245,9 +247,10 @@ bool TMat_mask::on_field_event(TOperable_field& o, TField_event e, long jolly) case F_NORFIS_89: if (e == fe_modify || e == fe_close) { - if (test_min(F_NORFIS_89, F_MIN_89)) - warning_box(TR("L'ammortamento normale è inferiore al minimo della tabella ministeriale:\n" - "Se non si seleziona l'ammortamento ritardato verrano generate delle quote perse")); + const bool sospamm = ini_get_bool(CONFIG_DITTA, "ce", "SOSPAMM", false); + + if (!sospamm && test_min(F_NORFIS_89, F_MIN_89)) + warning_box(TR("L'ammortamento normale è inferiore al minimo della tabella ministeriale:")); if (test_max(F_NORFIS_89, F_ANTFIS_89, F_ACCFIS)) return error_box(TR("Il totale delle percentuali di ammortamento supera il 100%")); if (test_rit(F_NORFIS_89, F_MIN_89))