Patch level : 12.0 1072
Files correlati : batbtpe.msk f154.dir f154.trr li0400a.msk li0.exe Commento : Aggiunta la possibilità di definire diversi tipi di esenzione da esportare nelle fatture elettroniche con le modificehe consguenti sull fatturazione e la fatturazione elettronica Interno : aggiunta una nuov tabella da indicare nella letera di intento con tipo dato, descrizione per l'invio fatture e flag di stampa sulle fatture della dicitura di esenzione.
This commit is contained in:
parent
2a9d663c09
commit
b749a7b6bf
@ -82,7 +82,7 @@ bool TLetint_mask::on_field_event(TOperable_field& o, TField_event e, long jolly
|
|||||||
{
|
{
|
||||||
const TDate& old_data = letint.get_date(LETINT_DATAREG);
|
const TDate& old_data = letint.get_date(LETINT_DATAREG);
|
||||||
if (get_date(F_DATAREG) < old_data)
|
if (get_date(F_DATAREG) < old_data)
|
||||||
return error_box(TR("La data di registrazione non puo' essere antecedente a %s"), (const char*) old_data.string());
|
return error_box(TR("La data di registrazione non puo' essere antecedente a %s"), (const char*)old_data.string());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -97,43 +97,31 @@ bool TLetint_mask::on_field_event(TOperable_field& o, TField_event e, long jolly
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case F_DAL:
|
|
||||||
if(e != fe_modify)
|
|
||||||
break;
|
|
||||||
case F_TIPOOP:
|
case F_TIPOOP:
|
||||||
// Controlli
|
// Controlli
|
||||||
/* if(!keyforced && insert_mode() && get_int(F_TIPOOP) == 3 && get_date(F_DAL) > TDate(01,03,2017))
|
if (e == fe_close)
|
||||||
{
|
{
|
||||||
error_box(TR("Non può esistere una dichiarazione di intento di tipo \"A Periodo\"\ncon data posteriore al 01/03/2017!"));
|
const int tipo_op = get_int(F_TIPOOP);
|
||||||
disable(DLG_SAVEREC);
|
const TDate data = get_date(F_DAL);
|
||||||
|
|
||||||
|
if (!keyforced && tipo_op == 3 && data > TDate(01, 03, 2017) && get(F_TIPOES).blank())
|
||||||
|
return error_box(TR("Non può esistere una dichiarazione di intento di tipo \"Nel Periodo\"\ncon data posteriore al 01/03/2017!"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
if (e == fe_init || e == fe_modify) // Abilitazione date
|
||||||
{
|
{
|
||||||
enable(DLG_SAVEREC);
|
const int tipo_op = get_int(F_TIPOOP);
|
||||||
} */
|
|
||||||
// Abilitazione date
|
enable(F_DAL, tipo_op != 1);
|
||||||
switch (get_int(F_TIPOOP))
|
enable(F_AL, tipo_op == 3);
|
||||||
|
if (e == fe_modify)
|
||||||
{
|
{
|
||||||
case 1:
|
if (tipo_op == 1)
|
||||||
disable(F_DAL);
|
reset(F_DAL);
|
||||||
disable(F_AL);
|
if (tipo_op != 3)
|
||||||
set(F_DAL, "");
|
reset(F_DAL);
|
||||||
set(F_AL, "");
|
}
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
enable(F_DAL);
|
|
||||||
disable(F_AL);
|
|
||||||
set(F_AL, "");
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
enable(F_DAL);
|
|
||||||
enable(F_AL);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user