diff --git a/include/campo.aut b/include/campo.aut index 346536a43..518cd1dce 100755 --- a/include/campo.aut +++ b/include/campo.aut @@ -7,7 +7,7 @@ iv Gestione IVA se Contabilita' Semplificata cg Contabilita' Generale ci Contabilita' Industriale -mi Modello IVA 11 +dc Dichiarazione CONAI tp Trasferimento Pack ce Cespiti rs Report di Stampa diff --git a/include/modaut.h b/include/modaut.h index af7739c7e..22916833c 100755 --- a/include/modaut.h +++ b/include/modaut.h @@ -10,7 +10,7 @@ #define SEAUT 6 #define CGAUT 7 #define CIAUT 8 -#define MIAUT 9 +#define DCAUT 9 #define DTAUT 10 #define CEAUT 11 #define RSAUT 12 diff --git a/include/textset.cpp b/include/textset.cpp index 8614066e7..ce8d1997c 100755 --- a/include/textset.cpp +++ b/include/textset.cpp @@ -26,6 +26,18 @@ TRecnotype TText_recordset::new_rec(const char* rec) return _curr; } +TRecnotype TText_recordset::insert_rec(TRecnotype r, const char* buf) +{ + TRecnotype pos = new_rec(buf); + if ((r >= 0) && (r != pos)) + { + TObject* last = _rec.remove(pos); + _rec.insert(last, r); + _curr = pos = r; + } + return pos; +} + TToken_string& TText_recordset::row(TRecnotype n) const { if (n < 0) diff --git a/include/textset.h b/include/textset.h index 632d09f84..5879ce6b0 100755 --- a/include/textset.h +++ b/include/textset.h @@ -46,6 +46,7 @@ public: virtual bool destroy(TRecnotype r = -1); virtual TRecnotype new_rec(const char* buf = NULL); + virtual TRecnotype insert_rec(TRecnotype r, const char* buf = NULL); virtual bool set(unsigned int fld, const TVariant& var); virtual bool set(const char* fld, const TVariant& var); virtual bool exec(const char* query);