Patch level : 10.0 362
Files correlati : pe0.exe Ricompilazione Demo : [ ] Commento Gestione revisioni (preventivi) git-svn-id: svn://10.65.10.50/trunk@19089 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
dcf02f7184
commit
a1b323ce4c
@ -385,17 +385,24 @@ void TGenEsecutivo_app::main_loop()
|
||||
doc_out.destroy(-1);
|
||||
o.elabora(doc_in, doc_out, data);
|
||||
TDocumento & doc_dest = doc_out[0];
|
||||
int last_found = rows + 1;
|
||||
|
||||
for (int r = doc_dest.physical_rows(); r > 0; r--)
|
||||
{
|
||||
TRiga_documento & row = (TRiga_documento &) doc_dest[r];
|
||||
const TRiga_documento * r0 = (const TRiga_documento *)row.find_original_rdoc();
|
||||
|
||||
if (r0 != NULL)
|
||||
for (int j = last_found - 1; j >= 1; j--)
|
||||
if (esecutivo[j].get_int(RDOC_LEVEL) == 0)
|
||||
{
|
||||
last_found = j;
|
||||
break;
|
||||
}
|
||||
if (last_found >= 1)
|
||||
{
|
||||
const TRiga_documento * r1 = (const TRiga_documento *)r0->find_original_rdoc();
|
||||
const TRiga_documento * r0 = (const TRiga_documento *)esecutivo[last_found].find_original_rdoc();
|
||||
|
||||
if (r1 != NULL)
|
||||
row.set_original_rdoc_key(*r1);
|
||||
if (r0 != NULL)
|
||||
row.set_original_rdoc_key(*r0);
|
||||
}
|
||||
}
|
||||
doc_out.write();
|
||||
|
Loading…
x
Reference in New Issue
Block a user