From 41cea9933a72ec25d4068486de4965c0650bc562 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 17 Jan 2011 15:16:06 +0000 Subject: [PATCH] Patch level : 10.0 886 Files correlati : cg2.exe Ricompilazione Demo : [ ] Commento : Nella maschera nuovo pag/incasso inpostato il mese come numero partita se il Parametro RifMonth e impostrato X nel parametri ditta (CHIMA) git-svn-id: svn://10.65.10.50/branches/R_10_00@21447 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg2105.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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);