Patch level : 2.1 102

Files correlati     : ve0.exe ve6.exe
Ricompilazione Demo : [ ]
Commento            :
La contabilizzazione non raggruppa correttamente le bolle nel caso sia spuntato il raggruppamento per banca e la banca non sia compilata


git-svn-id: svn://10.65.10.50/trunk@12282 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2004-09-03 13:41:34 +00:00
parent 2f54cc7611
commit 35edd36139

View File

@ -1463,11 +1463,19 @@ bool TDocumento::raggruppabile(const TDocumento& doc, TToken_string& campi) cons
{ {
TString campo; TString campo;
for (const char* c = campi.get(0); c && ok; c = campi.get()) for (const char* c = campi.get(0); c && ok; c = campi.get())
{
if (strncmp(c, "CODABI", 6) == 0 || strncmp(c, "CODCAB", 6) == 0)
{
long cod = get_long(c);
ok &= (cod == doc.get_long(c));
}
else
{ {
campo = get(c); campo = get(c);
ok &= campo == doc.get(c); ok &= campo == doc.get(c);
} }
} }
}
return ok; return ok;
} }
@ -1477,7 +1485,6 @@ void TDocumento::set_fields(TAuto_variable_rectype & rec)
{ {
TTipo_documento & tipo_doc = (TTipo_documento &) tipo(); TTipo_documento & tipo_doc = (TTipo_documento &) tipo();
const TString& tot_doc = tipo_doc.totale_doc(); const TString& tot_doc = tipo_doc.totale_doc();
// const TString& tot_provv = tipo_doc.totprovv();
for (const TFormula_documento* f = tipo_doc.first_formula(); f; f = tipo_doc.succ_formula()) for (const TFormula_documento* f = tipo_doc.first_formula(); f; f = tipo_doc.succ_formula())
{ {