Corrette stampe quadri D e D1
git-svn-id: svn://10.65.10.50/trunk@3376 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
edd6008924
commit
0bf0fca649
@ -81,7 +81,7 @@ HIDDEN const int QD_PAGINE = 4;
|
|||||||
HIDDEN const int QD_RIGHE_PRIMA = 4;
|
HIDDEN const int QD_RIGHE_PRIMA = 4;
|
||||||
HIDDEN const int QD_RIGHE_SECONDA = 7;
|
HIDDEN const int QD_RIGHE_SECONDA = 7;
|
||||||
HIDDEN const int QD_RIGHE_TERZA = 7;
|
HIDDEN const int QD_RIGHE_TERZA = 7;
|
||||||
HIDDEN const int QD_RIGHE_QUARTA = 6;
|
HIDDEN const int QD_RIGHE_QUARTA = 7;
|
||||||
HIDDEN const int QD1_RIGHE_PRIMA = 6;
|
HIDDEN const int QD1_RIGHE_PRIMA = 6;
|
||||||
HIDDEN const int QD1_RIGHE_SECONDA = 9;
|
HIDDEN const int QD1_RIGHE_SECONDA = 9;
|
||||||
HIDDEN const int QD1_RIGHE_TERZA = 9;
|
HIDDEN const int QD1_RIGHE_TERZA = 9;
|
||||||
@ -1894,31 +1894,34 @@ bool TQuadroD::controlla_percentuale(TCursor* cur, const real& perc_p)
|
|||||||
{
|
{
|
||||||
bool stampa = TRUE;
|
bool stampa = TRUE;
|
||||||
|
|
||||||
if (perc_p == ZERO)
|
long ditta_p = cur->curr().get_long(QUD_CODDITTA);
|
||||||
{
|
char tipo_p = cur->curr().get_char(QUD_TIPOA);
|
||||||
long ditta_p = cur->curr().get_long(QUD_CODDITTA);
|
long codana_p = cur->curr().get_long(QUD_CODANAGR);
|
||||||
char tipo_p = cur->curr().get_char(QUD_TIPOA);
|
TString codcaus_p = cur->curr().get (QUD_CODCAUS);
|
||||||
long codana_p = cur->curr().get_long(QUD_CODANAGR);
|
if (quadro()[0] == 'D')
|
||||||
TString codcaus_p = cur->curr().get (QUD_CODCAUS);
|
codcaus_p = cur->curr(-14).get(quadro() == "D" ? "S2" : "S3");
|
||||||
|
|
||||||
|
++(*cur);
|
||||||
|
long ditta = cur->curr().get_long(QUD_CODDITTA);
|
||||||
|
char tipo = cur->curr().get_char(QUD_TIPOA);
|
||||||
|
long codana = cur->curr().get_long(QUD_CODANAGR);
|
||||||
|
real perc = cur->curr().get_real(QUD_PERC);
|
||||||
|
|
||||||
|
TString codcaus = cur->curr().get (QUD_CODCAUS);
|
||||||
|
if (quadro()[0] == 'D')
|
||||||
|
codcaus = cur->curr(-14).get(quadro() == "D" ? "S2" : "S3");
|
||||||
|
|
||||||
++(*cur);
|
if (ditta == ditta_p && tipo == tipo_p &&
|
||||||
long ditta = cur->curr().get_long(QUD_CODDITTA);
|
codana == codana_p && codcaus == codcaus_p)
|
||||||
char tipo = cur->curr().get_char(QUD_TIPOA);
|
{
|
||||||
long codana = cur->curr().get_long(QUD_CODANAGR);
|
if (perc == perc_p || (perc_p == ZERO && perc != ZERO))
|
||||||
TString codcaus = cur->curr().get (QUD_CODCAUS);
|
|
||||||
real perc = cur->curr().get_real(QUD_PERC);
|
|
||||||
|
|
||||||
if (ditta == ditta_p && tipo == tipo_p &&
|
|
||||||
codana == codana_p && codcaus == codcaus_p)
|
|
||||||
{
|
{
|
||||||
if (perc != ZERO)
|
stampa = FALSE;
|
||||||
{
|
_devo_sommare = TRUE;
|
||||||
stampa = FALSE;
|
}
|
||||||
_devo_sommare = TRUE;
|
}
|
||||||
}
|
--(*cur);
|
||||||
}
|
|
||||||
--(*cur);
|
|
||||||
}
|
|
||||||
return stampa;
|
return stampa;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user