MOdificata write del movimento di prima nota

git-svn-id: svn://10.65.10.50/trunk@1574 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1995-07-07 14:40:18 +00:00
parent 1605715001
commit 3ec89dfa54
2 changed files with 9 additions and 4 deletions

View File

@ -160,12 +160,16 @@ bool TMovimentoPN::controlla_liquidazione(const TDate& data, bool reset) const
int TMovimentoPN::registra(bool re, bool force)
{
int err = re ? TRelation::rewrite(force) : TRelation::write(force);
if (err != NOERR)
return err;
const TRectype& m = lfile().curr();
const long numreg = m.get_long("NUMREG");
int err = re ? TRelation::rewrite(force) : TRelation::write(force);
if (err != NOERR)
{
CHECKD(!m.empty(), "Record empty after error ", err);
return err;
}
if (!re)
_cg.renum_key("NUMREG", numreg);

View File

@ -2039,6 +2039,7 @@ bool TListaMov_application::set_print(int m)
_tipo_lista = movimenti_sezionale;
break;
default:
CHECK(0, "Bad _tipoc");
break;
}