Patch level : 2.0 564
Files correlati : ef0.exe Ricompilazione Demo : [ ] Commento : GF20077 Una volta che si contabilizza una distinta questa erratamente rimane ancora disponibile per essere ricontabilizzata, bisogna fare in modo invece che no lo sia più. git-svn-id: svn://10.65.10.50/trunk@11409 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
1692642be0
commit
32573943f9
@ -846,20 +846,20 @@ bool TVariazione_distinte::imp_notify(TSheet_field& s, int r, KEY key)
|
||||
// riga allo sheet degli effetti della distinta
|
||||
void TVariazione_distinte::aggiungi()
|
||||
{
|
||||
TMask* m = app()._msk;
|
||||
TMask* m2 = app()._m2;
|
||||
int tipopag = m->get_int(F_TIPOPAG);
|
||||
if (tipopag != 0)
|
||||
{
|
||||
TWait_cursor hourglass;
|
||||
carica_riba(tipopag);
|
||||
}
|
||||
m2->reset(F_TOTIMPDIST);
|
||||
m2->reset(F_IMPSEL);
|
||||
const TString16 codval = m->get(F_CODVAL);
|
||||
m2->set(F_CODVALS, codval);
|
||||
m2->run();
|
||||
calcola_totale();
|
||||
TMask* m = app()._msk;
|
||||
TMask* m2 = app()._m2;
|
||||
int tipopag = m->get_int(F_TIPOPAG);
|
||||
if (tipopag != 0)
|
||||
{
|
||||
TWait_cursor hourglass;
|
||||
carica_riba(tipopag);
|
||||
}
|
||||
m2->reset(F_TOTIMPDIST);
|
||||
m2->reset(F_IMPSEL);
|
||||
const TString16 codval = m->get(F_CODVAL);
|
||||
m2->set(F_CODVALS, codval);
|
||||
m2->run();
|
||||
calcola_totale();
|
||||
}
|
||||
|
||||
// Notify per il calcolo dei totali relativi alla distinta
|
||||
|
@ -240,7 +240,7 @@ void TContabilizzazione_effetti_app::build_dist_sheet()
|
||||
|
||||
TString16 codabi, codcab, codval;
|
||||
char tipocf;
|
||||
bool enabled = TRUE;
|
||||
bool enabled = true;
|
||||
int num_eff = 0;
|
||||
|
||||
for (long i = 0; i < items; i++)
|
||||
@ -274,7 +274,8 @@ void TContabilizzazione_effetti_app::build_dist_sheet()
|
||||
tipocf = rec.get_char(EFF_TIPOCF);
|
||||
}
|
||||
num_eff++; // numero di effetti che compongono la distinta
|
||||
//enabled &= !rec.get_bool(EFF_EFFCONT);
|
||||
if (rec.get_bool(EFF_EFFCONT)) // Disabilito le distinte contabilizzate
|
||||
enabled = false;
|
||||
}
|
||||
|
||||
TToken_string * t = new TToken_string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user