Patch level :4.0 654
Files correlati :ca3.exe Ricompilazione Demo : [ ] Commento :stampa bilancio di commessa: deve tener conto della data proroga, qualora sia presente, al posto della data fine git-svn-id: svn://10.65.10.50/trunk@15052 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
b8a2a76dfe
commit
2735f3c0d8
@ -523,7 +523,11 @@ real TPrint_saldana_recordset::calcola_avanzamento_tempo() const
|
||||
const TRectype& rec_commesse = cache().get(LF_COMMESSE, codcms);
|
||||
|
||||
dataini = rec_commesse.get(COMMESSE_DATAINIZIO);
|
||||
datafine = rec_commesse.get(COMMESSE_DATAFINE);
|
||||
//attenzione alle commesse prorogate di nascosto..
|
||||
if (rec_commesse.get_bool(COMMESSE_PROROGA) && rec_commesse.get_date(COMMESSE_DATAPROR).ok())
|
||||
datafine = rec_commesse.get(COMMESSE_DATAPROR);
|
||||
else
|
||||
datafine = rec_commesse.get(COMMESSE_DATAFINE);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -642,7 +646,12 @@ void TPrint_saldana_recordset::requery()
|
||||
const TRectype& rec_commesse = cache().get(LF_COMMESSE, codcms);
|
||||
|
||||
const TDate dataini = rec_commesse.get(COMMESSE_DATAINIZIO);
|
||||
const TDate datafine = rec_commesse.get(COMMESSE_DATAFINE);
|
||||
//per la data fine deve tener conto di eventuali proroghe..
|
||||
TDate datafine;
|
||||
if (rec_commesse.get_bool(COMMESSE_PROROGA) && rec_commesse.get(COMMESSE_DATAPROR).ok())
|
||||
datafine = rec_commesse.get(COMMESSE_DATAPROR);
|
||||
else
|
||||
datafine = rec_commesse.get(COMMESSE_DATAFINE);
|
||||
//e' inutile considerare le commesse terminate prima dell'esercizio selezionato..
|
||||
//..cioe' nel passato oppure che iniziano nel futuro!
|
||||
if (datafine >= datainiesc && dataini <= datafinesc)
|
||||
|
Loading…
x
Reference in New Issue
Block a user