Patch level : 2.2
Files correlati : Ricompilazione Demo : [ ] Commento : Migliorato riconoscimento documenti gia' contabilizzati in precedenza all'elaborazione git-svn-id: svn://10.65.10.50/trunk@13260 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
84d313ece5
commit
b3cc7469b0
@ -983,8 +983,10 @@ long TContabilizzazione::doc_contabilized(const TDocumento& doc, bool anticipo)
|
|||||||
long nreg = doc.get_long(anticipo ? DOC_NUMANT : DOC_NUMREG);
|
long nreg = doc.get_long(anticipo ? DOC_NUMANT : DOC_NUMREG);
|
||||||
if (nreg > 0)
|
if (nreg > 0)
|
||||||
{
|
{
|
||||||
const TRectype& mov = cache().get(LF_MOV, nreg);
|
// NON usare la cache qui!!!!!!!!!!!!!!!!!!!!!!
|
||||||
if (!mov.empty()) // Il movimento esiste!
|
TLocalisamfile mov(LF_MOV);
|
||||||
|
mov.put(MOV_NUMREG, nreg);
|
||||||
|
if (mov.read() == NOERR) // Il movimento esiste!
|
||||||
{
|
{
|
||||||
// Controlla che il movimento abbia ancora il riferimento esatto al documento
|
// Controlla che il movimento abbia ancora il riferimento esatto al documento
|
||||||
const char* const key[4] = { DOC_PROVV, DOC_ANNO, DOC_CODNUM, DOC_NDOC };
|
const char* const key[4] = { DOC_PROVV, DOC_ANNO, DOC_CODNUM, DOC_NDOC };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user