Personalizzazione stampa listino carrelli Sailog
git-svn-id: svn://10.65.10.50/branches/R_10_00@22695 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
59d2c2c657
commit
f9ce0db0d8
@ -247,15 +247,15 @@ void TCarrelli_app::elabora(const TMask& mask)const
|
||||
}
|
||||
}
|
||||
|
||||
if(search)
|
||||
if (search)
|
||||
{
|
||||
TISAM_recordset riep(get_query(0,venduto));
|
||||
|
||||
//inserire parametri filtri
|
||||
riep.set_var("#FROM",TVariant(mask.get(F_COD_CMS)));//
|
||||
riep.set_var("#TO",TVariant(mask.get(F_COD_CMS_TO)));//
|
||||
riep.set_var("#F_VEN",TVariant(mask.get(F_VENDUTO)));//
|
||||
riep.set_var("#F_CAR",TVariant(mask.get(F_CARICO)));//
|
||||
riep.set_var("#FROM", mask.get(F_COD_CMS));
|
||||
riep.set_var("#TO", mask.get(F_COD_CMS_TO));
|
||||
riep.set_var("#F_VEN", mask.get(F_VENDUTO));
|
||||
riep.set_var("#F_CAR", mask.get(F_CARICO));
|
||||
|
||||
TRiepCarrelli riepilogo;
|
||||
|
||||
@ -290,30 +290,24 @@ void TCarrelli_app::elabora(const TMask& mask)const
|
||||
|
||||
commessa = riep.get("SALDANA.COMMESSA").as_string();
|
||||
articolo = riep.get("ANAMAG.CODART").as_string();//A
|
||||
search = true;
|
||||
if(commessa==commessaOld || commessa.empty() || articolo.empty())
|
||||
continue;
|
||||
|
||||
if(!venduto)
|
||||
commessaOld=commessa;
|
||||
|
||||
if (!venduto)
|
||||
{
|
||||
TISAM_recordset carico(get_query(0,true));
|
||||
|
||||
//inserire parametri filtri
|
||||
carico.set_var("#FROM",TVariant(mask.get(F_COD_CMS)));//
|
||||
carico.set_var("#TO",TVariant(mask.get(F_COD_CMS_TO)));//
|
||||
carico.set_var("#FROM",commessa);//
|
||||
carico.set_var("#TO",commessa);//
|
||||
carico.set_var("#F_VEN",TVariant(mask.get(F_VENDUTO)));//
|
||||
carico.set_var("#F_CAR",TVariant(mask.get(F_CARICO)));//
|
||||
for(bool ok = carico.move_first();ok;ok=carico.move_next()){
|
||||
search = false;
|
||||
break;
|
||||
}
|
||||
if (carico.move_first())
|
||||
continue;
|
||||
}
|
||||
|
||||
if(!search){
|
||||
continue;
|
||||
}
|
||||
|
||||
if(commessa==commessaOld || commessa.empty() || articolo.empty())
|
||||
continue;
|
||||
commessaOld=commessa;
|
||||
|
||||
//if(articolo.not_empty())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user