Patch level : 4.0
Files correlati : crpa0 Ricompilazione Demo : [ ] Commento : Corretta generazione chiave UNICARCH in modo da usare il numero di registrazione contabile se presente git-svn-id: svn://10.65.10.50/trunk@14243 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
d18c00e667
commit
b1728505ea
@ -536,7 +536,14 @@ void TIni2Sql::validate(const TString& elabfield, TString& str)
|
||||
str.format("%02ld%s", _firm, (const char*) tmpstr);
|
||||
}
|
||||
else if (code == "_UNICMOV") // campo UNICARCH nel caso di movimenti
|
||||
str.format("%s-%s-%ld", (const char*) _inputfile->get("CODCAUS","107"), (const char*) _inputfile->get("ANNOES", "107"), _inputfile->get_long("NUMREG", "107"));
|
||||
{
|
||||
const char* codcaus = _inputfile->get("CODCAUS","107");
|
||||
const char* annoes = _inputfile->get("ANNOES", "107");
|
||||
long numreg = _inputfile->get_long(MOVANA_NUMREGCG, "107");
|
||||
if (numreg <= 0)
|
||||
numreg = _inputfile->get_long(MOVANA_NUMREG, "107");
|
||||
str.format("%s-%s-%ld", codcaus, annoes, numreg);
|
||||
}
|
||||
else if (code == "_UNICDOC") // campo UNICARCH nel caso di documenti
|
||||
str.format("%s-%s-%s", (const char*) _inputfile->get("CODNUM", "33"), (const char*) _inputfile->get("ANNO", "33"), (const char*) _inputfile->get("NDOC", "33"));
|
||||
else if (code == "_CODVAL") // campo codice valuta
|
||||
|
Loading…
x
Reference in New Issue
Block a user