From 4c75f61fe090435bf0ed0c3c9603e6bdb48da781 Mon Sep 17 00:00:00 2001 From: luca Date: Thu, 20 Oct 2005 12:42:13 +0000 Subject: [PATCH] Patch level :2.2 200 Files correlati :ca3.exe ca3700a.rep Ricompilazione Demo : [ ] Commento :sistemate richieste adolfiche sulle descrizioni di testata della stampa rendiconto git-svn-id: svn://10.65.10.50/trunk@13437 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ca/ca3700.cpp | 13 +++++++++++-- ca/ca3700a.rep | 2 ++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ca/ca3700.cpp b/ca/ca3700.cpp index 9fa5219f2..947dc4b18 100755 --- a/ca/ca3700.cpp +++ b/ca/ca3700.cpp @@ -425,7 +425,7 @@ const TVariant& TPrint_rendiconto_ca_recordset::get(const char* column_name) con return TISAM_recordset::get(column_name); } -//compila i campi da stampare +//compila i campi del file temporaneo che sra' poi stampato void TPrint_rendiconto_ca_recordset::scrive_riga(const TRectype& rmovana, const TRectype& movana, const TDocumento* doc) { @@ -503,7 +503,7 @@ void TPrint_rendiconto_ca_recordset::scrive_riga(const TRectype& rmovana, const //in ogni caso riempio il campo conto_cg tmpcurr.put("CONTOCG", rmovana.get(RMOVANA_CODCONTO)); //conto_cg - //tipo movimento CONSUNTIVO + //tipo movimento CONSUNTIVO (o TEMPORANEO) const char tipomov = movana.get_char(MOVANA_TIPOMOV); if (tipomov <= ' ' || tipomov == 'T') { @@ -879,12 +879,21 @@ void TPrint_rendiconto_ca_recordset::crea_righe_da_rdoc(const TPrint_rendiconto_ TDocumento doc(curr_doc); TAnal_mov mov; cont_anal.elabora(doc, 0, NULL, false, mov); + + //estrae il tipo ed il codice clifo dal documento per metterlo nel movana che ha generato + //con la elabora (richiesta puramente adolfica!) + TString16 key; + key << doc.get(DOC_TIPOCF) << '|' << doc.get(DOC_CODCF); + const TString clifo = cache().get(LF_CLIFO, key, CLI_RAGSOC); + mov.put(MOVANA_DESCR, clifo); + for (int j = 1; j <= mov.rows(); j++) { //controlla che la riga in esame abbia realmente la cms/cdc/fas indicata nel filtro; //procedimento necessario per evitare la stampa di righe appartenenti a docs elaborati //perchè contenenti 1 riga con cms corretta ed altre righe con cms sbagliate const TRectype& rmov = mov.body()[j]; + if (_codcms.not_empty() && rmov.get(RMOVANA_CODCMS) != _codcms) continue; if (_codcosto.not_empty() && rmov.get(RMOVANA_CODCCOSTO) != _codcosto) diff --git a/ca/ca3700a.rep b/ca/ca3700a.rep index 9d11ac147..4cb69b5b5 100755 --- a/ca/ca3700a.rep +++ b/ca/ca3700a.rep @@ -202,12 +202,14 @@ MESSAGE RESET,F2.103 DATADOCRIF + DESC NRIGA + DESCRIGA