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:
parent
7c1e6a0d8a
commit
cda516f827
@ -1081,22 +1081,28 @@ const TString& TCespite::ammini_get(const char* pstar) const
|
|||||||
{
|
{
|
||||||
case tc_materiale:
|
case tc_materiale:
|
||||||
{
|
{
|
||||||
TDate dtfunz = get_date(CESPI_DTFUNZ);
|
if (sospamm)
|
||||||
if (!dtfunz.ok())
|
val = "0.00";
|
||||||
{
|
else
|
||||||
TDate dtdummy;
|
{
|
||||||
dc.esercizio_corrente(dtfunz, dtdummy);
|
TDate dtfunz = get_date(CESPI_DTFUNZ);
|
||||||
}
|
|
||||||
const int anno_funz = dtfunz.year();
|
if (!dtfunz.ok())
|
||||||
if (scelte == 2)
|
{
|
||||||
{
|
TDate dtdummy;
|
||||||
if (anno_funz < 1988)
|
dc.esercizio_corrente(dtfunz, dtdummy);
|
||||||
val = catdi_get(pcatdi, CATDI_PFNORVN, _tipo_sit);
|
}
|
||||||
else
|
const int anno_funz = dtfunz.year();
|
||||||
val = catdi_get(pcatdi, anno_funz < 1989 ? CATDI_PFNORVT : CATDI_PFNORNT, _tipo_sit);
|
if (scelte == 2)
|
||||||
}
|
{
|
||||||
else
|
if (anno_funz < 1988)
|
||||||
val = pcac->get(anno_funz < 1989 ? "R12" : "R11");
|
val = catdi_get(pcatdi, CATDI_PFNORVN, _tipo_sit);
|
||||||
|
else
|
||||||
|
val = catdi_get(pcatdi, anno_funz < 1989 ? CATDI_PFNORVT : CATDI_PFNORNT, _tipo_sit);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
val = pcac->get(anno_funz < 1989 ? "R12" : "R11");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case tc_immateriale:
|
case tc_immateriale:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user