diff --git a/cg/cg2101.cpp b/cg/cg2101.cpp index 52d70b12b..3f387135c 100755 --- a/cg/cg2101.cpp +++ b/cg/cg2101.cpp @@ -45,6 +45,14 @@ void TMovimentoPN::destroy_cg_row(int i) _cg.destroy_row(i+1, TRUE); } +void TMovimentoPN::destroy_iva_row(int i) +{ + if (i < 0) + _iva.destroy_rows(); + else + _iva.destroy_row(i+1, TRUE); +} + int TMovimentoPN::read_mov_rows() { const TRectype& mov = curr(); diff --git a/cg/cg2101.h b/cg/cg2101.h index 1a1260112..af20b5953 100755 --- a/cg/cg2101.h +++ b/cg/cg2101.h @@ -69,6 +69,7 @@ public: int iva_items() const { return _iva.rows(); } void destroy_rows(long numreg); void destroy_cg_row(int i); + void destroy_iva_row(int i); int date2liq(const TDate& data) const; // Estrae dalla data il mese di liquidazione char frequenza_versamenti(int year) const; // Ritorna 'M'ensile o 'T'rimestrale