Patch level : 12.0 462
Files correlati : cg0500a.msk cg0.exe cg4.exe Ora é possibile creare una causale anche senza aprire l'ultimo esercizio iva In gennaio se attivavo la gestione manuale del credito utilizzato in IVA la liquidazione lo azzerava. git-svn-id: svn://10.65.10.50/branches/R_10_00@24156 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
e1f732979b
commit
b10adf3a96
@ -363,10 +363,16 @@ bool TCaus_app::tipodoc_hndl (TMask_field& f, KEY k)
|
||||
if (codreg.full())
|
||||
{
|
||||
TRegistro registro(codreg, app().anno_iva());
|
||||
|
||||
if (registro.name().empty())
|
||||
{
|
||||
TRegistro registro_prec(codreg, app().anno_iva() - 1);
|
||||
|
||||
if (registro_prec.name().empty())
|
||||
return f.error_box(FR("Non esiste il registro %s per l'anno %d"),
|
||||
(const char*)codreg, app().anno_iva());
|
||||
}
|
||||
}
|
||||
|
||||
app().mostra_campi();
|
||||
app().fill_sheet(m);
|
||||
|
@ -104,7 +104,7 @@ BEGIN
|
||||
OUTPUT F_CORRISP B0
|
||||
OUTPUT F_DES_REG S0
|
||||
WARNING "Registro assente o non compatibile col tipo documento"
|
||||
CHECKTYPE REQUIRED
|
||||
CHECKTYPE SEARCH
|
||||
FLAGS "UZ"
|
||||
END
|
||||
|
||||
|
@ -2211,10 +2211,18 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt, TAssoc_array &
|
||||
} // __end of _agricolo
|
||||
|
||||
if (tipodet == 1) // acquisti indeducibili su ricavi esenti art. 10
|
||||
{
|
||||
if (is_reverse_charge(_mov->curr()))
|
||||
{
|
||||
acquisti += imponibile;
|
||||
acquisti_iva += imposta;
|
||||
}
|
||||
else
|
||||
{
|
||||
acq_ies += imponibile;
|
||||
acq_ies_iva += imposta;
|
||||
}
|
||||
}
|
||||
|
||||
if (tipodet == 3) // passaggi interni (solo per ventilaz)
|
||||
{
|
||||
@ -3989,7 +3997,7 @@ void TLiquidazione_app::write_liq(int month, const char* codatts)
|
||||
{
|
||||
real debiti = res_debt; round_imposta(debiti);
|
||||
real crediti = res_cred; round_imposta(crediti);
|
||||
const real risul = debiti - crediti;
|
||||
real risul = debiti - crediti;
|
||||
TRectype lim = get_lim(month+deltam);
|
||||
const real cred_util_F24 = lim.get_real("R16");
|
||||
|
||||
@ -3997,6 +4005,7 @@ void TLiquidazione_app::write_liq(int month, const char* codatts)
|
||||
((_freqviva == "T") && (month == 3)))
|
||||
{
|
||||
risultato += cred_prec;
|
||||
risul += cred_prec;
|
||||
cred_prec = ZERO;
|
||||
}
|
||||
credito_utilizzabile = credito_utilizzabile_inizio_anno;
|
||||
|
Loading…
x
Reference in New Issue
Block a user