Patch level :4.0 442
Files correlati :ce3.exe Ricompilazione Demo : [ ] Commento :riportata modifica dalla 2.1 sulla scheda cespite che dava date non congruenti nel caso la data di acquisto fosse registrata in data successiva (roba paranoica da CRPA) git-svn-id: svn://10.65.10.50/trunk@14130 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
0f88b5e265
commit
a04c11c59e
@ -159,9 +159,9 @@ void TStampa_storico::print_footer()
|
||||
|
||||
void TStampa_storico::stampa_rigauno( bool errore)
|
||||
{
|
||||
TRectype& recsalce = _form->cursor()->curr(LF_SALCE);
|
||||
const TRectype& recsalce = _form->cursor()->curr(LF_SALCE);
|
||||
TDate datasaldo = _form->cursor()->curr(-102).get_date("D0");
|
||||
real numele = recsalce.get_real("NUMELE");
|
||||
int numele = recsalce.get_int("NUMELE");
|
||||
|
||||
TPrint_section& section1 = _form->get_rigauno(); //preparazione stampa riga dettaglio 1
|
||||
TDate dtcomp = _form->cursor()->curr(LF_CESPI).get_date("DTCOMP");
|
||||
@ -189,7 +189,7 @@ void TStampa_storico::stampa_rigauno( bool errore)
|
||||
}
|
||||
else // se datasaldo < data acquisto sono sbagliate le date
|
||||
{
|
||||
section1.find_field(FF_DESCRUNO).set(TR("Date non congruenti sui saldi iniziali"));
|
||||
section1.find_field(FF_DESCRUNO).set(TR("Data acquisto incongruente"));
|
||||
errore = TRUE;
|
||||
}
|
||||
|
||||
@ -240,18 +240,6 @@ void TStampa_storico::print_percespite( const int tipo)
|
||||
TEsercizi_contabili esc;
|
||||
const TDate& inies = esc[esercizio].inizio();
|
||||
|
||||
if (dtmov < inies)
|
||||
{
|
||||
|
||||
if (dtmov != dtcomp) //la riga tipo 1 va scritta solo se dtmov != dtcomp (in caso contrario é una tipo 2)
|
||||
{
|
||||
stampa_rigauno( errore );
|
||||
ho_stampato_qualcosa = TRUE;
|
||||
errore = !rel.next_match(LF_MOVCE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!errore) do //se non c'é incongruenza di date procede alla stampa righe 2
|
||||
{
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user