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:
|
||||
{
|
||||
TDate dtfunz = get_date(CESPI_DTFUNZ);
|
||||
if (!dtfunz.ok())
|
||||
{
|
||||
TDate dtdummy;
|
||||
dc.esercizio_corrente(dtfunz, dtdummy);
|
||||
}
|
||||
const int anno_funz = dtfunz.year();
|
||||
if (scelte == 2)
|
||||
{
|
||||
if (anno_funz < 1988)
|
||||
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");
|
||||
if (sospamm)
|
||||
val = "0.00";
|
||||
else
|
||||
{
|
||||
TDate dtfunz = get_date(CESPI_DTFUNZ);
|
||||
|
||||
if (!dtfunz.ok())
|
||||
{
|
||||
TDate dtdummy;
|
||||
dc.esercizio_corrente(dtfunz, dtdummy);
|
||||
}
|
||||
const int anno_funz = dtfunz.year();
|
||||
if (scelte == 2)
|
||||
{
|
||||
if (anno_funz < 1988)
|
||||
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;
|
||||
case tc_immateriale:
|
||||
|
Loading…
x
Reference in New Issue
Block a user