Patch level : 12.0 1122

Files correlati     : ca3.exe ca3100.msk ca3200.msk ca3300.msk ca3600.msk ca3700.msk ca3700b.rep ca3800.msk  ca3900.msk

Commento :
Ripristinata l'esportazione sintetica del rendiconto
corretta la selezione dei report era possibile selezionare un report non compatibile
Corretti i filtri sui dalsi di analitica nelle stampe considerava anche il saldi con contabilità sepatrata non vuota ma questi sono già compresi nei saldi complessivi (contabilità seprata vuota)
Modificata selezione della contabililtà separata per il bilancio di commessa e la stima ricavi la cercava sulle righe documento, righe di movimento analitico e anche per i saldi di analitica.
This commit is contained in:
Alessandro Bonazzi 2022-03-17 00:17:18 +01:00
parent 3d0be09fb6
commit 7130729320
2 changed files with 7 additions and 3 deletions

View File

@ -596,6 +596,7 @@ const TVariant& TPrint_rendiconto_ca_recordset::get(const char* column_name) con
{
const TString& conto = TISAM_recordset::get("CONTO").as_string();
TAnal_bill zio(conto);
return get_tmp_var() = (long)zio.indicatore_bilancio();
}
else
@ -605,6 +606,7 @@ const TVariant& TPrint_rendiconto_ca_recordset::get(const char* column_name) con
{
//stessa cosa del precedente ma per movimenti di tipo variazione preventivo
const TString& conto = TISAM_recordset::get("CONTO").as_string();
return get_tmp_var() = get_budget_print(conto, 'P');
}
else
@ -612,6 +614,7 @@ const TVariant& TPrint_rendiconto_ca_recordset::get(const char* column_name) con
{
//prende il conto
const TString& conto = TISAM_recordset::get("CONTO").as_string();
return get_tmp_var() = get_budget_print(conto, 'V');
}
}

View File

@ -817,8 +817,8 @@ bool TSaldi_cache::int_saldo_annuale(const TAnal_bill& b, const TString & contse
if (select.full()) select << "&&";
select << "(" << SALDANA_ANNO << "<=" << ad_anno << ")";
}
if (select.full()) select << "&&";
select << "(" << SALDANA_CONTSEP << "=='" << contsep << "')";
if (select.full()) select << "&&";
select << "(" << SALDANA_CONTSEP << "==\"" << contsep << "\")";
query << "USE SALDANA KEY 2";
if (select.full())
query << " SELECT " << select;
@ -1108,8 +1108,9 @@ TObject* TSaldi_cache::key2obj(const char* key)
const TDate dal = tok.get(4); // Le get precedenti avvengono in ordine inverso!
const TDate al = tok.get(5);
const int tipo = tok.get_int(6);
const TString contsep = tok.get(7);
TString contsep = tok.get(7);
contsep.trim();
saldi(bill, contsep, dal, al, tipo, *s);
return s;
}