From 2a31569eb7fda63da556b4b22d92f24cc64f6231 Mon Sep 17 00:00:00 2001 From: luca Date: Fri, 18 Feb 2005 11:21:20 +0000 Subject: [PATCH] Patch level :2.2 23 Files correlati :cg2.exe Ricompilazione Demo : [ ] Commento :aggiunto metodo void TMovimentoPN::destroy_iva_row(int i) git-svn-id: svn://10.65.10.50/trunk@12715 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg2101.cpp | 8 ++++++++ cg/cg2101.h | 1 + 2 files changed, 9 insertions(+) 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