diff --git a/ve/ve0100b.cpp b/ve/ve0100b.cpp index 11ec84da8..9854d63a0 100755 --- a/ve/ve0100b.cpp +++ b/ve/ve0100b.cpp @@ -4,7 +4,7 @@ #include #include -int numerazione_definitiva(TLocalisamfile& doc) +int numerazione_definitiva(TLocalisamfile& doc, const int final_status) { if (doc.curr().get("PROVV") == "D") return NOERR; @@ -38,6 +38,7 @@ int numerazione_definitiva(TLocalisamfile& doc) newrec_doc.put("NDOC", numdoc); // scrive il nuovo numero di documento nel nuovo record newrec_doc.put("PROVV", "D"); // aggiorna il flag di tipo di numerazione + newrec_doc.put("STATO",final_status); // Stato finale del documento while ((err = doc.write(newrec_doc)) == _isreinsert) { numdoc++; diff --git a/ve/ve0100b.h b/ve/ve0100b.h index 2691e56cf..572ce882f 100755 --- a/ve/ve0100b.h +++ b/ve/ve0100b.h @@ -2,6 +2,6 @@ #ifndef __VE0100B_H #define __VE0100B_H -int numerazione_definitiva(TLocalisamfile &); // prototipo della funzione di rinumerazione definitiva dei documenti +int numerazione_definitiva(TLocalisamfile &, const int); // prototipo della funzione di rinumerazione definitiva dei documenti #endif // __VE0100B_H