Patch level : 12.0 1046
Files correlati : cg1.exe Commento : Nel bilancio a sezioni contrapposte per data limite se non si impostava la data finale il bilancio risultava tutto a zero ora viene impostata alla data di fine esercizio.
This commit is contained in:
parent
57ed75573c
commit
b7bacd25f6
@ -25,8 +25,6 @@
|
|||||||
#define AGR_PCON1 201
|
#define AGR_PCON1 201
|
||||||
#define AGR_PCON2 202
|
#define AGR_PCON2 202
|
||||||
|
|
||||||
enum tiporeg { vendita = 1, acquisto = 2 };
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
// TCheck_ivadiff_mask
|
// TCheck_ivadiff_mask
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
@ -191,12 +189,11 @@ void TCheck_ivadiff::check_year(long firm)
|
|||||||
const TString4 freqviva = lia.get("S7");
|
const TString4 freqviva = lia.get("S7");
|
||||||
const TString4 codreg = mov.get("REG");
|
const TString4 codreg = mov.get("REG");
|
||||||
TString16 s; s << year; s << format("%-3s", (const char *) codreg);
|
TString16 s; s << year; s << format("%-3s", (const char *) codreg);
|
||||||
const TRectype & reg = cache().get("REG", s);
|
const TRegistro & reg = cached_registro(codreg, year);
|
||||||
|
const int liqmonth = mov.get_int(MOV_MESELIQ);
|
||||||
const int liqmonth = mov.get_int(MOV_MESELIQ);
|
|
||||||
const TString4 tipodoc = mov.get(MOV_TIPODOC);
|
const TString4 tipodoc = mov.get(MOV_TIPODOC);
|
||||||
const bool corrisp = reg.get_bool("B0");
|
const bool corrisp = reg.corrispettivi();
|
||||||
const tiporeg tipomov = (tiporeg) reg.get_int("I0"); // 1=Vendite; 2=Acquisti
|
const tiporeg tipomov = reg.tipo_registro(); // 1=Vendite; 2=Acquisti
|
||||||
TPartite_array arrpart; // Partite interessate
|
TPartite_array arrpart; // Partite interessate
|
||||||
TPointer_array pagscatt; // Righe di pagsca interessate
|
TPointer_array pagscatt; // Righe di pagsca interessate
|
||||||
const bool iva_diff = is_IVA_diff(mov.curr());
|
const bool iva_diff = is_IVA_diff(mov.curr());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user