diff --git a/cg/cg4303.cpp b/cg/cg4303.cpp index 02970608f..99a6a0fd1 100755 --- a/cg/cg4303.cpp +++ b/cg/cg4303.cpp @@ -186,10 +186,15 @@ void TLiquidazione_app::recalc_ventilation(int month, const char* codatt) for (int i = 0; i < vend_items; i++) { _VendItem* vi = (_VendItem*)&_vend_arr[i]; - totven += vi->_totale; + totven += vi->_totale; + } + + { + _VendItem* vi = (_VendItem*)&_vend_arr[0]; + //totven += vi->_totale; // 3.2) calcola percentuali di ripartizione e prepara l'affettatrice - TDistrib dst(vi->_totale, ROUND_LIRA); + TDistrib dst(/*vi->_totale*/totven, ROUND_LIRA); for (j = 0; j < vent_items; j++) { _VentItem* vv = (_VentItem*)&_vent_arr[j];