Patch level : 10.0 nopatch
Files correlati : Ricompilazione Demo : [ ] Commento : Dalla versione 3.2 git-svn-id: svn://10.65.10.50/trunk@20601 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
566481462f
commit
a7ffa55dc1
@ -48,7 +48,7 @@ int TLista_documenti::read(char provv, char tipocf, long clifo, int anno,
|
||||
CHECK(provv == 'D' || provv == 'P', "Provvisorio o Definitivo?");
|
||||
CHECK(tipocf == 'C' || tipocf == 'F', "Il tipo deve essere Cliente o Fornitore");
|
||||
CHECKD(clifo > 0L, "Codice cliente non valido", clifo);
|
||||
CHECKD(anno > 1900, "Anno non valido: ", anno);
|
||||
CHECKD(anno > 2000, "Anno non valido: ", anno);
|
||||
CHECK(!tipidoc.empty_items(), "Lista dei tipi documento vuota");
|
||||
CHECK(!statidoc.empty_items(), "Lista degli stati documento vuota");
|
||||
|
||||
@ -114,20 +114,20 @@ int TLista_documenti::read(char provv, char tipocf, long clifo, int anno,
|
||||
TString filter(16);
|
||||
if (codnum && *codnum)
|
||||
{
|
||||
bool numfilter = FALSE;
|
||||
bool numfilter = false;
|
||||
|
||||
if (start.get(DOC_DATADOC).empty())
|
||||
numfilter = TRUE;
|
||||
numfilter = true;
|
||||
else
|
||||
start.put(DOC_CODNUM, codnum);
|
||||
|
||||
if (stop.get(DOC_DATADOC).empty())
|
||||
numfilter = TRUE;
|
||||
numfilter = true;
|
||||
else
|
||||
stop.put(DOC_CODNUM, codnum);
|
||||
|
||||
if (numfilter)
|
||||
filter << "CODNUM=\"" << codnum << '"';
|
||||
filter << DOC_CODNUM << "=\"" << codnum << '"';
|
||||
}
|
||||
|
||||
TCursor cur(&doc, filter, 2, &start, &stop);
|
||||
|
Loading…
x
Reference in New Issue
Block a user