From d5e47465ef2d0721e0d4b6ef89ca90b8ef9a9efc Mon Sep 17 00:00:00 2001 From: AlexBonazzi Date: Sat, 23 Jun 2018 22:12:42 +0200 Subject: [PATCH] Patch level : 12.0 594 Files correlati : cg3.exe cg3100a.msk cg3100b.msk np0.exe np0.exe np0300a.msk np0400a.msk np0500a.msk np0500b.msk np0600a.msk np0600b.msk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ricompilato cg3 e le maschere della lista movimenti per il problema Sicart. aggiuta scelta contabilità separata nei mastini della contabilità separata. Riferimento CRPA. --- src/cg/cg3600.cpp | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/cg/cg3600.cpp b/src/cg/cg3600.cpp index 1e40c0f3e..28c37a314 100755 --- a/src/cg/cg3600.cpp +++ b/src/cg/cg3600.cpp @@ -379,7 +379,15 @@ void TMastrino::read(const TBill& conto, TRectype darow(rmov_rec), arow(rmov_rec); darow.put(RMV_DATAREG, inizio_esercizio); arow.put(RMV_DATAREG, max_data_reg); - TCursor cur(&rel(), "", 2, &darow, &arow); + + TString filter; +#ifdef CONT_SEP + TString cont_sep = app().query_mask().get(F_CONTSEP); + + if (cont_sep.full()) + filter << "23->CONTSEP==\"" << cont_sep << "\""; + #endif + TCursor cur(&rel(), filter, 2, &darow, &arow); const TRecnotype totrows = cur.items(); cur.freeze(); @@ -2243,8 +2251,12 @@ TMastrino_set::TMastrino_set(TMastrini_grid& g) add_field(_datefld,-101, 10); // Data comp add_field(_alfafld, 102, 1); // Movimento di competenza? add_field(_alfafld, 103, 25); // Causale - add_field(_alfafld, 104, 50); // Descrizione - add_field(_realfld, 105, 13); // Dare +#ifdef CONT_SEP + add_field(_alfafld, 104, 100); // Descrizione +#else + add_field(_alfafld, 104, 50); // Descrizione +#endif + add_field(_realfld, 105, 13); // Dare add_field(_realfld, 106, 13); // Avere add_field(_alfafld, 107, 7); // Num doc add_field(_longfld,-107, 7); // Num prot @@ -2287,7 +2299,11 @@ public: TGrid_mask::TGrid_mask() : _grid(NULL) { - read_mask("cg3600b", 0, 0); +#ifdef CONT_SEP + read_mask("np0500b", 0, 0); +#else + read_mask("cg3600b", 0, 0); +#endif set_handler(DLG_LINK, link_handler); set_handler(DLG_NEWREC, new_handler); set_handler(DLG_EDIT, edit_handler);