Patch level :10.0
Files correlati : Ricompilazione Demo : [ ] Commento : contabilizzazione analitica cespiti: i movana vengono, e sembrano pure corretti! Il programma è pronto per la fase di test sul campo (di battaglia) git-svn-id: svn://10.65.10.50/trunk@20654 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
b1022d68da
commit
ec51188481
@ -1391,9 +1391,6 @@ void TContabilizza_ce::elabora()
|
||||
// Aggiunge una eventuale ripartizione sulla commessa di default (GENSPA) per raggiungere 100
|
||||
if (percutil_tot < CENTO)
|
||||
{
|
||||
if (percutil_tot > ZERO)
|
||||
int cazzone = 1;
|
||||
|
||||
TRectype rec_salcecms_tappo(LF_SALCECMS);
|
||||
fill_salcecms_default(idcespite, codes, rec_salcecms_tappo);
|
||||
rec_salcecms_tappo.put(SALCECMS_NRIGA, righe_salcecms.rows() + 1);
|
||||
@ -1429,10 +1426,16 @@ void TContabilizza_ce::elabora()
|
||||
if (anal_sc == NULL)
|
||||
{
|
||||
anal_sc = new TSaldo_per_codice(gruppo, specie, codcat, idcespite);
|
||||
anal_sc->_conto.set_conto(key.get(0));
|
||||
anal_sc->_conto.set_costo(key.get());
|
||||
anal_sc->_conto.set_commessa(key.get());
|
||||
anal_sc->_conto.set_fase(key.get());
|
||||
|
||||
//ricordiamo la key: gr/sp/cat/(cespite)/cdc/cms/fase
|
||||
int offset = 0;
|
||||
if (movdett > 0) //se il dettaglio richiede il cespite -> offset della key
|
||||
offset++;
|
||||
|
||||
anal_sc->_conto.set_costo(key.get(3 + offset));
|
||||
anal_sc->_conto.set_commessa(key.get(4 + offset));
|
||||
anal_sc->_conto.set_fase(key.get(5 + offset));
|
||||
|
||||
anal_quote_per_codice.add(key, anal_sc);
|
||||
}
|
||||
anal_sc->_qnor += d_qnor.get();
|
||||
|
Loading…
x
Reference in New Issue
Block a user