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

Ricompilato cg3 e le maschere della lista movimenti per il problema Sicart.
aggiuta scelta contabilità separata nei mastini della contabilità separata. Riferimento CRPA.
This commit is contained in:
AlexBonazzi 2018-06-23 22:15:48 +02:00
parent c746341ea5
commit 908b3213d9

View File

@ -42,6 +42,7 @@ class TListaMov_application : public TPrintapp
TString _descr, _descr_doc, _descr_causale;
#ifdef CONT_SEP
TString _descr_cs;
TString _cont_sep;
#endif
TString _tipo_ini, _causale, _app;
TString4 _causale_ini, _causale_fin, _registro,_registro_ini, _registro_fin;
@ -488,6 +489,11 @@ bool TListaMov_application::filter_func_fatture (const TRelation* rel)
{
const TRectype& mov = rel->curr(LF_MOV);
#ifdef CONT_SEP
if (app()._cont_sep.full() && (app()._cont_sep != mov.get(MOV_CONTSEP)))
return false;
#endif
// Altrimenti stampa anche i corrispettivi! Pseudo errore MI2396
const long codcf = mov.get_long(MOV_CODCF);
if (codcf <= 0)
@ -535,6 +541,11 @@ bool TListaMov_application::filter_func (const TRelation * rel)
return false;
}
#ifdef CONT_SEP
if (app()._cont_sep.full() && (app()._cont_sep != mov.get(MOV_CONTSEP)))
return false;
#endif
const TString& causale = mov.get(MOV_CODCAUS);
if (!between(causale, app()._causale_ini, app()._causale_fin))
return false;
@ -1989,6 +2000,9 @@ void TListaMov_application::imposta_parametri_stampa(const TMask& msk)
_data_fin = msk.get(F_DATAFIN);
_provvis = msk.get_int(F_STAMPAMOVP);
_competence_only = msk.get_bool(F_COMPETENZA);
#ifdef CONT_SEP
_cont_sep = msk.get_bool(F_CONTSEP);
#endif
TRectype da (LF_MOV), a(LF_MOV);
if (_decidi == 1)