diff --git a/cg/cg2105.cpp b/cg/cg2105.cpp index 87322b3ba..92afd7499 100755 --- a/cg/cg2105.cpp +++ b/cg/cg2105.cpp @@ -14,6 +14,7 @@ #include // Serve per DLG_DELREC #include #include +#include #include // Archivio causali @@ -615,6 +616,13 @@ void TNew_mask::init(char tipocf, bool fatt, bool edit) reset(P_NUMERO); #else tipomov.disable(); + TMask& cm = app().curr_mask(); + if (ini_get_bool(CONFIG_DITTA, "cg", "RifMonth")) + { + const TDate datareg = cm.get_date(F_DATAREG); + + set(P_NUMERO, format("%02d", datareg.month())); + } #endif enable(P_ANNO, edit);