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:
parent
1605715001
commit
3ec89dfa54
@ -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);
|
||||
|
@ -2039,6 +2039,7 @@ bool TListaMov_application::set_print(int m)
|
||||
_tipo_lista = movimenti_sezionale;
|
||||
break;
|
||||
default:
|
||||
CHECK(0, "Bad _tipoc");
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user