diff --git a/cg/cg2100.cpp b/cg/cg2100.cpp index 76a4697ab..f4f5c57fe 100755 --- a/cg/cg2100.cpp +++ b/cg/cg2100.cpp @@ -2,6 +2,7 @@ #include #include #include +#include #include "pagament.h" @@ -153,6 +154,12 @@ TMask* TPrimanota_application::load_mask(int n) cgm.set_handler(113, suspended_handler); // Contropartita cgm.set_handler(213, sheet_clifo_handler); cgm.set_handler(313, sheet_clifo_handler); + + if (!fexist("batbcdc.msk")) + { + cgm.hide(CG_CDC); + cg.delete_column(CG_CDC); + } } break; case 3: diff --git a/cg/cg2100.h b/cg/cg2100.h index dd2da1f31..14add9eaf 100755 --- a/cg/cg2100.h +++ b/cg/cg2100.h @@ -65,6 +65,7 @@ #define CG_GRUPPO 104 #define CG_CONTO 105 #define CG_SOTTOCONTO 106 +#define CG_CDC 115 #define CG_ROWTYPE 116