Corretto spezzamento su più files e tolti ??? da note di variazione

git-svn-id: svn://10.65.10.50/branches/R_10_00@22637 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2012-04-13 15:05:13 +00:00
parent f3f5c279f2
commit 9326843c87
2 changed files with 16 additions and 5 deletions

View File

@ -859,10 +859,20 @@ bool TDati_rilevanti_msk::send_nota_variazione(const TRectype& alleg, TDati_rile
segno_imponibile = segno_imponibile == 'D' ? 'C' : 'D';
else
imponibile = -imponibile;
if (imposta >= ZERO)
segno_imposta = segno_imposta == 'D' ? 'C' : 'D';
{
if (imposta > ZERO)
segno_imposta = segno_imposta == 'D' ? 'C' : 'D';
else
segno_imposta = segno_imponibile;
}
else
imposta = -imposta;
TString16 numrett = alleg.get(ALL_NUMRETT);
if (numrett == INVALID_NUMDOC)
numrett.cut(0);
if (anag.estero())
{
@ -888,7 +898,7 @@ bool TDati_rilevanti_msk::send_nota_variazione(const TRectype& alleg, TDati_rile
operaz.set(14, imponibile);
operaz.set(15, imposta);
operaz.set(16, alleg.get(ALL_DATARETT));
operaz.set(17, alleg.get(ALL_NUMRETT));
operaz.set(17, numrett);
operaz.set(18, segno_imponibile);
operaz.set(19, segno_imposta);
}
@ -905,7 +915,7 @@ bool TDati_rilevanti_msk::send_nota_variazione(const TRectype& alleg, TDati_rile
operaz.set(6, imponibile);
operaz.set(7, imposta);
operaz.set(8, alleg.get(ALL_DATARETT));
operaz.set(9, alleg.get(ALL_NUMRETT));
operaz.set(9, numrett);
operaz.set(10, segno_imponibile);
operaz.set(11, segno_imposta);
}

View File

@ -751,6 +751,7 @@ bool TDati_rilevanti_set::set_field(const TAS400_column_info& fi, const TVariant
TString256 str = var.as_string();
str.upper();
str.replace('ä', 'A');
str.replace('ñ', 'N');
str.replace('ö', 'O');
str.replace('ü', 'U');
row().overwrite(str, fi._pos, fi._width);
@ -881,7 +882,7 @@ bool TDati_rilevanti_set::split(const TFilename& name, const TRecnotype maxalleg
}
}
if (f > 1)
warning_box(FR("Sono stati generati %d file nella cartella %s"), name.path());
message_box(FR("Sono stati generati %d file nella cartella %s"), f, name.path());
}
return done;
}
@ -896,7 +897,7 @@ void TDati_rilevanti_set::init()
}
TDati_rilevanti_set::TDati_rilevanti_set(const TFilename& file)
: TAS400_recordset("AS400(1800,1)"), _anno(2010)
: TAS400_recordset("AS400(1800,1)"), _anno(2011)
{
init();
if (load_file(file) && move_first())