From 3b73abde846ef27bfaba5716d1182779018befc3 Mon Sep 17 00:00:00 2001 From: angelo Date: Tue, 10 Jun 1997 15:59:33 +0000 Subject: [PATCH] Aggiunto parametro per cambiare stato in caso di numerazione definitiva git-svn-id: svn://10.65.10.50/trunk@4581 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ve/ve0100b.cpp | 3 ++- ve/ve0100b.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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