Patch level : 12.0 1222

Files correlati     : ce2.exe

Commento:
Il calcolo ammortamenti ora esclude per covid anche i cespiti materiali
This commit is contained in:
Alessandro Bonazzi 2022-12-01 14:59:12 +01:00
parent 7c1e6a0d8a
commit cda516f827

View File

@ -1080,8 +1080,13 @@ const TString& TCespite::ammini_get(const char* pstar) const
switch (tc) switch (tc)
{ {
case tc_materiale: case tc_materiale:
{
if (sospamm)
val = "0.00";
else
{ {
TDate dtfunz = get_date(CESPI_DTFUNZ); TDate dtfunz = get_date(CESPI_DTFUNZ);
if (!dtfunz.ok()) if (!dtfunz.ok())
{ {
TDate dtdummy; TDate dtdummy;
@ -1098,6 +1103,7 @@ const TString& TCespite::ammini_get(const char* pstar) const
else else
val = pcac->get(anno_funz < 1989 ? "R12" : "R11"); val = pcac->get(anno_funz < 1989 ? "R12" : "R11");
} }
}
break; break;
case tc_immateriale: case tc_immateriale:
if (sospamm) if (sospamm)