Patch level : 01.00 1368
Files correlati : ca3.exe Commento: Corretta la selezione per conto nella stampa mastrini analitica
This commit is contained in:
parent
6a6e92723c
commit
182663090e
@ -186,30 +186,48 @@ bool TPrint_mastrini_ca_recordset::valid_record(const TRelation& rel) const
|
|||||||
//..poi le righe (devono comparire solo le righe con cdc/cms/fsc che appaiono nello sheet)
|
//..poi le righe (devono comparire solo le righe con cdc/cms/fsc che appaiono nello sheet)
|
||||||
const TRectype& rmov = rel.curr(LF_RMOVANA);
|
const TRectype& rmov = rel.curr(LF_RMOVANA);
|
||||||
|
|
||||||
if (_codcosto.not_empty())
|
if (_codcosto.full())
|
||||||
{
|
{
|
||||||
const TString& cos = rmov.get(RMOVANA_CODCCOSTO);
|
const TString& cos = rmov.get(RMOVANA_CODCCOSTO);
|
||||||
|
|
||||||
if (cos != _codcosto)
|
if (cos != _codcosto)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (_codcms.not_empty())
|
if (_codcms.full())
|
||||||
{
|
{
|
||||||
const TString& cms = rmov.get(RMOVANA_CODCMS);
|
const TString& cms = rmov.get(RMOVANA_CODCMS);
|
||||||
|
|
||||||
if (cms != _codcms)
|
if (cms != _codcms)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (_codfas.not_empty())
|
if (_codfas.full())
|
||||||
{
|
{
|
||||||
const TString& fas = rmov.get(RMOVANA_CODFASE);
|
const TString& fas = rmov.get(RMOVANA_CODFASE);
|
||||||
|
|
||||||
if (fas != _codfas)
|
if (fas != _codfas)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (_contsep.not_empty())
|
if (_contsep.full())
|
||||||
{
|
{
|
||||||
const TString& contsep = mov.get(MOVANA_CONTSEP);
|
const TString& contsep = mov.get(MOVANA_CONTSEP);
|
||||||
|
|
||||||
if (contsep != _contsep)
|
if (contsep != _contsep)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (_daconto.full())
|
||||||
|
{
|
||||||
|
const TString & conto = rmov.get(RMOVANA_CODCONTO);
|
||||||
|
|
||||||
|
if (conto < _daconto)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (_aconto.full())
|
||||||
|
{
|
||||||
|
const TString & conto = rmov.get(RMOVANA_CODCONTO);
|
||||||
|
|
||||||
|
if (conto > _aconto)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -249,6 +267,18 @@ void TPrint_mastrini_ca_recordset::set_custom_filter(TCursor& cur) const
|
|||||||
end << 'z';
|
end << 'z';
|
||||||
arec.put(RMOVANA_CODCCOSTO, end);
|
arec.put(RMOVANA_CODCCOSTO, end);
|
||||||
}
|
}
|
||||||
|
if (_codfas.full())
|
||||||
|
{
|
||||||
|
darec.put(RMOVANA_CODFASE, _codfas);
|
||||||
|
arec.put(RMOVANA_CODFASE, _codfas);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
TString end;
|
||||||
|
|
||||||
|
end << 'z';
|
||||||
|
arec.put(RMOVANA_CODFASE, end);
|
||||||
|
}
|
||||||
|
|
||||||
TDate d = _dadata;
|
TDate d = _dadata;
|
||||||
|
|
||||||
|
@ -2014,7 +2014,7 @@ const TVariant& TCSV_rendiconto_ca_recordset::get_var(const char* name) const
|
|||||||
{
|
{
|
||||||
if (strcmp(name, "#CONTSEP") == 0)
|
if (strcmp(name, "#CONTSEP") == 0)
|
||||||
return get_tmp_var() = _contsep;
|
return get_tmp_var() = _contsep;
|
||||||
TCSV_recordset::get_var(name);
|
return TCSV_recordset::get_var(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user