Patch level : 12.0 1066
Files correlati : ce1.exe Commento : Modificate le segnalazioni nella scelta ammortamento per categoria nel caso di sospensione COVID-19
This commit is contained in:
parent
1b9284967a
commit
fd9bb94481
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user