Patch level : 2.2 214
Files correlati : ve0.exe ve6.exe Ricompilazione Demo : [ ] Commento Aggiorana ricerca conto analitico per le righe di spese /prestazione git-svn-id: svn://10.65.10.50/trunk@13481 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
6569293e02
commit
f05ee1dc72
@ -240,6 +240,28 @@ bool TContabilizzazione_analitica::search_costo_ricavo(const TRiga_documento& r,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static int __searching = false;
|
||||
|
||||
if (!conto.ok() && t == RIGA_SPESEDOC && !__searching)
|
||||
{
|
||||
const int rows = r.doc().physical_rows();
|
||||
int row = -1;
|
||||
|
||||
for (int i = 1; row <0 && i <= rows; i++)
|
||||
{
|
||||
const char tipo = r.doc()[i].tipo().tipo();
|
||||
|
||||
if (tipo != RIGA_DESCRIZIONI && tipo != RIGA_SCONTI && tipo != RIGA_OMAGGI)
|
||||
row = i;
|
||||
}
|
||||
if (row > 0)
|
||||
{
|
||||
__searching = true;
|
||||
search_costo_ricavo(r.doc()[row], conto);
|
||||
__searching = false;
|
||||
}
|
||||
}
|
||||
break; // case 'P','S'
|
||||
}
|
||||
case 'C': // righe sconti
|
||||
|
Loading…
x
Reference in New Issue
Block a user