Patch level :10.0
Files correlati : Ricompilazione Demo : [ ] Commento : git-svn-id: svn://10.65.10.50/trunk@18312 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
7b3f50d2b9
commit
91dde34dcf
@ -447,15 +447,15 @@ bool TMovanal_msk::on_field_event(TOperable_field& o, TField_event e, long jolly
|
||||
}
|
||||
if (e == se_notify_modify)
|
||||
{
|
||||
const int r = int(jolly);
|
||||
TSheet_field & s = sfield(F_RIGHE);
|
||||
TMask & m = s.sheet_mask();
|
||||
if (_cms_start > 0)
|
||||
if (_cms_start > 0 && _cdc_start > 0)
|
||||
{
|
||||
const int r = int(jolly);
|
||||
TSheet_field & s = sfield(F_RIGHE);
|
||||
TMask & m = s.sheet_mask();
|
||||
const TRectype & curr = ((TEdit_field &) m.field(_cms_start)).browse()->cursor()->curr();
|
||||
const TString & codcms = curr.get(COMMESSE_CODCMS);
|
||||
|
||||
if ((_cdc_start > 0)&&(__codcms != codcms))
|
||||
if (__codcms != codcms)
|
||||
{
|
||||
const TString codcosto = curr.get(COMMESSE_CODCOSTO);
|
||||
for (short i = _cdc_start; i <= _cdc_end; i++)
|
||||
|
@ -1265,25 +1265,21 @@ void TAnal_mov::saldo_set_reset(const TRectype& row, bool reset)
|
||||
annies.add(esc_iniziale);
|
||||
|
||||
const char tipomov = get_char(MOVANA_TIPOMOV);
|
||||
// se e' un movimento di tipo preventivo potrebbe avere una data di scadenza come la mozzarella
|
||||
// ora tutti
|
||||
// if (tipomov == 'P' || tipomov == 'V')
|
||||
// {
|
||||
const TDate datacomp = get_date(MOVANA_DATACOMP);
|
||||
const TDate datafcomp = get_date(MOVANA_DATAFCOMP);
|
||||
if (datafcomp.ok() && datafcomp > datacomp)
|
||||
// i movimenti analitici possono avere una data di scadenza come la mozzarella
|
||||
const TDate datacomp = get_date(MOVANA_DATACOMP);
|
||||
const TDate datafcomp = get_date(MOVANA_DATAFCOMP);
|
||||
if (datafcomp.ok() && datafcomp > datacomp)
|
||||
{
|
||||
TEsercizi_contabili esc;
|
||||
esc_finale = esc.date2esc(datafcomp);
|
||||
if (esc_finale < esc_iniziale) //se l'esercizio di scadenza non esiste ancora perche' troppo futuro...
|
||||
esc_finale = esc_iniziale + datafcomp.year() - datacomp.year(); //...se lo genera
|
||||
if (esc_finale > esc_iniziale)
|
||||
{
|
||||
TEsercizi_contabili esc;
|
||||
esc_finale = esc.date2esc(datafcomp);
|
||||
if (esc_finale < esc_iniziale) //se l'esercizio di scadenza non esiste ancora perche' troppo futuro...
|
||||
esc_finale = esc_iniziale + datafcomp.year() - datacomp.year(); //...se lo genera
|
||||
if (esc_finale > esc_iniziale)
|
||||
{
|
||||
for (int a = esc_iniziale + 1; a <= esc_finale; a++)
|
||||
annies.add(a);
|
||||
}
|
||||
for (int a = esc_iniziale + 1; a <= esc_finale; a++)
|
||||
annies.add(a);
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
TToken_string key;
|
||||
key.add(tipomov);
|
||||
|
Loading…
x
Reference in New Issue
Block a user