Patch level : 10.0
Files correlati : fe0 Ricompilazione Demo : [ ] Commento : Migliorato riconoscimento note di variazione git-svn-id: svn://10.65.10.50/branches/R_10_00@22609 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
e00e125041
commit
a3f4671cc3
25
fe/felib.cpp
25
fe/felib.cpp
@ -39,22 +39,35 @@ bool fe_is_nota_variazione(const TRectype& mov)
|
|||||||
|
|
||||||
const int tipomov = mov.get_int(MOV_TIPOMOV);
|
const int tipomov = mov.get_int(MOV_TIPOMOV);
|
||||||
if (tipomov == 2) // Nota di credito/debito per saldaconto
|
if (tipomov == 2) // Nota di credito/debito per saldaconto
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
const TString& tipodoc = mov.get(MOV_TIPODOC);
|
if (tipomov <= 1)
|
||||||
if (tipodoc == "NC" || tipodoc == "ND") // Nota di credito/debito senza saldaconto
|
{
|
||||||
return true;
|
const TString& tipodoc = mov.get(MOV_TIPODOC);
|
||||||
|
if (tipodoc == "NC" || tipodoc == "ND") // Nota di credito/debito senza saldaconto
|
||||||
|
return true;
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
if (logicnum == LF_ALLEG)
|
if (logicnum == LF_ALLEG)
|
||||||
{
|
{
|
||||||
const TString& numrett = mov.get(ALL_NUMRETT);
|
if (mov.get_int(ALL_MODPAG) > 1)
|
||||||
if (numrett.full())
|
return false;
|
||||||
|
|
||||||
|
if (mov.get(ALL_NUMRETT).full() || mov.get(ALL_DATARETT).full())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
const real importo = mov.get_real(ALL_IMPORTO);
|
const real importo = mov.get_real(ALL_IMPORTO);
|
||||||
const real imposta = mov.get_real(ALL_IMPOSTA);
|
const real imposta = mov.get_real(ALL_IMPOSTA);
|
||||||
if (importo < ZERO || imposta < ZERO)
|
if (importo < ZERO || imposta < ZERO)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
const long numreg = mov.get_long(ALL_PROGR);
|
||||||
|
if (numreg < 900000L)
|
||||||
|
{
|
||||||
|
const TRectype& pn = cache().get(LF_MOV, numreg);
|
||||||
|
if (!pn.empty())
|
||||||
|
return fe_is_nota_variazione(pn);
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
if (logicnum == LF_DOC)
|
if (logicnum == LF_DOC)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user