Patch level : 10.0 patch 226
Files correlati : lv2 Ricompilazione Demo : [ ] Commento : 0001144: Anomalia creazione consegne planning Descrizione: vedere allegati. (problema di righe doppie nei giri) git-svn-id: svn://10.65.10.50/trunk@18183 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
7f7e99821d
commit
c82f636f6c
@ -259,6 +259,9 @@ const TDate TGenera_planning_app::str2date(const TString& data, int year) const
|
||||
void TGenera_planning_app::elabora_passaggio(const TDate& dadata, const TDate& adata, const TISAM_recordset& pplan)
|
||||
{
|
||||
//dati recuperati dalla tabella dei passaggi per contratto:
|
||||
if (pplan.get(LVPASPLAN_NRIGA).as_int() <= 0)
|
||||
return;
|
||||
|
||||
const long codcf = pplan.get(LVPASPLAN_CODCF).as_int(); //codice cliente
|
||||
const long coditi = pplan.get(LVPASPLAN_CODITI).as_int(); //codice itinerario
|
||||
const long codcont = pplan.get(LVPASPLAN_CODCONT).as_int(); //codice contratto
|
||||
@ -379,12 +382,12 @@ void TGenera_planning_app::elabora_passaggio(const TDate& dadata, const TDate& a
|
||||
|
||||
//scrivi la chiave
|
||||
const long codplan = d.date2ansi(); //setta il codplan
|
||||
|
||||
int codriga = prossimo_codriga(d);
|
||||
|
||||
rplan.zero();
|
||||
rplan.put(LVRCONSPLAN_CODPLAN, codplan);
|
||||
|
||||
int tmp = prossimo_codriga(d);
|
||||
rplan.put(LVRCONSPLAN_CODRIGA, tmp);
|
||||
|
||||
rplan.put(LVRCONSPLAN_CODPLAN, codplan); //setta il codplan
|
||||
rplan.put(LVRCONSPLAN_CODRIGA, codriga); //setta il codriga
|
||||
rplan.put(LVRCONSPLAN_DTCONS,d); //setta la data di consegna
|
||||
rplan.put(LVRCONSPLAN_CODITI,coditi); //setta il codice itinerario
|
||||
rplan.put(LVRCONSPLAN_ORDFER,ordfer); //setta l'ordine di fermata
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
#define LVPASPLAN_CODCF "CODCF"
|
||||
#define LVPASPLAN_CODCONT "CODCONT"
|
||||
#define LVPASPLAN_NRIGA "NRIGA"
|
||||
#define LVPASPLAN_CODITI "CODITI"
|
||||
#define LVPASPLAN_GGCONS "GGCONS"
|
||||
#define LVPASPLAN_ORDFERM "ORDFERM"
|
||||
|
Loading…
x
Reference in New Issue
Block a user