Patch level : OMASA

Files correlati     : cgp4.exe
Ricompilazione Demo : [ ]
Commento            : lettura del campo INDBIL dal conto e non dal sottoconto, per decidere se mettere o meno la commessa


git-svn-id: svn://10.65.10.50/trunk@12135 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
cris 2004-06-03 10:00:49 +00:00
parent 4cfa606fe3
commit 6f88b57991

View File

@ -412,7 +412,9 @@ bool TOmasa::transfer()
movpn->set("SEZIONE", "A");
importos.strip("-");
movpn->set("IMPORTO", importos);
const char indbil = cache().get(LF_PCON, conto, PCN_INDBIL)[0];
TString16 contoindbil;
contoindbil.format("%s|%s", conto.get(0), conto.get(1));
const char indbil = cache().get(LF_PCON, contoindbil, PCN_INDBIL)[0];
if ((indbil != '1') && (indbil != '2'))
movpn->set("CODCMS", _configfile->get(codcms, "COMMESSE"));
movpn->set("GRUPPO", conto.get(0));