Patch level : 12.0 546
Files correlati : lv Commento : - Aggiornati files nuovo compilatore - Risolto crash in chiusura fatturazione git-svn-id: svn://10.65.10.50/branches/R_10_00@24408 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
9605a3323c
commit
acf48eb463
@ -1476,7 +1476,7 @@ void TFatturazione_lavanderie::add_rows(TRiga_documento & rout, TRiga_documento
|
||||
//CAMPI_RAGGRUPPAMENTO_RIGHE: ridefinisco il metodo campi_raggruppamento_righe della TFatturazione_bolle
|
||||
void TFatturazione_lavanderie::campi_raggruppamento_righe(TToken_string& campi_riga) const
|
||||
{
|
||||
campi_riga = RDOC_CODART"|"RDOC_UMQTA; // Uguali sempre
|
||||
campi_riga = RDOC_CODART "|" RDOC_UMQTA; // Uguali sempre
|
||||
const bool ragg_rig = raggruppa_righe();
|
||||
if (ragg_rig)
|
||||
{
|
||||
@ -1496,7 +1496,7 @@ void TFatturazione_lavanderie::campi_raggruppamento_righe(TToken_string& campi_r
|
||||
if (tipoprezzo == 0)
|
||||
campi_riga.add(RDOC_SCONTO);
|
||||
else
|
||||
campi_riga.add(RDOC_PREZZO"|"RDOC_SCONTO);
|
||||
campi_riga.add(RDOC_PREZZO "|" RDOC_SCONTO);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2219,7 +2219,8 @@ void TFatturazione_lav_app::main_loop()
|
||||
TISAM_recordset recset(query);
|
||||
recset.set_var("#DAL", dal);
|
||||
recset.set_var("#AL", al);
|
||||
TProgress_monitor pi(recset.items(), TR("Fatturazione"), true);
|
||||
// In alcuni casi questo oggetto non viene distrutto correttamente, lo creo come puntatore così da eliminarlo successivamente con una delete
|
||||
TProgress_monitor* pi = new TProgress_monitor(recset.items(), TR("Fatturazione"), true);
|
||||
long last_clifo = 0;
|
||||
int numdocgen = 0;
|
||||
int numdocscart = 0;
|
||||
@ -2242,11 +2243,11 @@ void TFatturazione_lav_app::main_loop()
|
||||
key.format("C|%ld", clifo);
|
||||
TString str;
|
||||
str << TR("Cliente") << ' ' << clifo << ' ' << cache().get(LF_CLIFO, key, CLI_RAGSOC);
|
||||
pi.set_text(str);
|
||||
pi->set_text(str);
|
||||
last_clifo=clifo;
|
||||
}
|
||||
|
||||
if (!pi.add_status())
|
||||
if (!pi->add_status())
|
||||
break;
|
||||
|
||||
//se non è l'ultimo cliente, allora:
|
||||
@ -2508,6 +2509,10 @@ void TFatturazione_lav_app::main_loop()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Forzo l'eliminazione
|
||||
if(pi != NULL)
|
||||
delete pi;
|
||||
|
||||
//se ho dei documenti in lista li elaboro e poi svuoto le TList_file
|
||||
if (docsin.items() != 0)
|
||||
|
@ -171,9 +171,9 @@ void TAggiornamento_prezzi::main_loop()
|
||||
break;
|
||||
file.curr() = curr;
|
||||
if (mode & 1)
|
||||
file.put(LVRCONDV_PREZZO, pr->get("NEW"LVRCONDV_PREZZO).as_real());
|
||||
file.put(LVRCONDV_PREZZO, pr->get("NEW" LVRCONDV_PREZZO).as_real());
|
||||
if (mode & 2)
|
||||
file.put(LVRCONDV_PREZNOL, pr->get("NEW"LVRCONDV_PREZNOL).as_real());
|
||||
file.put(LVRCONDV_PREZNOL, pr->get("NEW" LVRCONDV_PREZNOL).as_real());
|
||||
const int err = file.rewrite();
|
||||
if (err != NOERR)
|
||||
{
|
||||
|
@ -541,7 +541,7 @@ const real TRecmag_lavanderie::consmese(const TDate& dadata, const TDate& adata)
|
||||
{
|
||||
const real qta = ((TArticolo &)artrec).convert_to_um(recrmag.get(RMOVMAG_QUANT).as_real(), NULL, recrmag.get(RMOVMAG_UM).as_string());
|
||||
|
||||
consmese += real(qta * sgn_consmese);
|
||||
consmese += qta * (real)sgn_consmese;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user