Patch level : 10.0 patch 437

Files correlati     : lv3
Ricompilazione Demo : [ ]
Commento            :
Migliorato un controllo sul numero di items di un recordset


git-svn-id: svn://10.65.10.50/trunk@19275 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca83 2009-09-11 08:35:41 +00:00
parent 28e1e5b808
commit 4376a46753

View File

@ -355,8 +355,11 @@ TDate TGestione_bolle_msk::proponi_dataprco() const
query << "TO CODCF=" << get(F_CODCF) << " CODCONT=" << get(F_LVCODCONT) << " DTCONS=" << adata << "\n";
TISAM_recordset consegne(query);
if (consegne.move_to(1))
if (consegne.items() >= 2)
{
consegne.move_to(1);
dataprco = consegne.get(LVRCONSPLAN_DTCONS).as_date();
}
}
return dataprco;
@ -474,7 +477,7 @@ bool TGestione_bolle_msk::lv_contratto_handler(TMask_field& f, KEY k)
if (codcf <= 0)
return true;
long codcont = lv_find_contract(codcf,indsped,datadoc);
long codcont = lv_find_contract(codcf, indsped, datadoc);
if (codcont <= 0)
{
warning_box(TR("Non ci sono contratti in essere alla data indicata"));