From 8b567542b493e39aee09de2272b3d1bdf7efe6fe Mon Sep 17 00:00:00 2001 From: smen Date: Tue, 14 Dec 2021 17:36:41 +0100 Subject: [PATCH] Patch level : 12.0 1100 Files correlati : Commento : Implementazione TD16, TD17, TD18 --- src/cg/cglib07.cpp | 6 +++--- src/fp/fp0700.cpp | 8 ++++---- src/fp/fp0700a.h | 4 ++-- src/fp/fp0700a.uml | 4 ++-- src/fp/fplib.h | 6 +++--- src/fp/fplib01.cpp | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/cg/cglib07.cpp b/src/cg/cglib07.cpp index 68f904510..33735ca4a 100644 --- a/src/cg/cglib07.cpp +++ b/src/cg/cglib07.cpp @@ -887,7 +887,7 @@ TCli_for::TCli_for(char tipo, long codice) : TMultiple_rectype( LF_CLIFO ), _ven add_file(LF_INDSP, IND_CODIND); if (tipo > ' ' && codice > 0L) read(tipo, codice); - _anagr.init(tipo, codice); + _anagr.init(LF_CLIFO, tipo, codice); } @@ -897,14 +897,14 @@ TCli_for::TCli_for(const TRectype & rec) : TMultiple_rectype(rec), _ven_rec(LF_C init(); add_file(LF_INDSP, IND_CODIND); read(rec); - _anagr.init(tipo(), codice()); + _anagr.init(LF_CLIFO, tipo(), codice()); } TCli_for::TCli_for(const TCli_for & c) : TMultiple_rectype(c), _ven_rec(c._ven_rec), _letint(LF_LETINT), _use_lettere(false), _lettera_found(false), _extended(false) { init(); - _anagr.init(tipo(), codice()); + _anagr.init(LF_CLIFO, tipo(), codice()); } TCli_for::~TCli_for() diff --git a/src/fp/fp0700.cpp b/src/fp/fp0700.cpp index 47b2a42f7..da3c48248 100644 --- a/src/fp/fp0700.cpp +++ b/src/fp/fp0700.cpp @@ -126,14 +126,14 @@ void TPAR_mask::fill() TPaf_record paf0100f("PAF0100F"); TSheet_field& regs = sfield(F_REGS); TString query; - const bool provvisorio = get_bool(F_PROVVISORIO); + const bool definitivo = get_bool(F_DEFINITIVO); enable(DLG_OK, filter_selected.empty() || filter_selected == "E"); enable(DLG_SAVEREC, (is_f8() && filter_selected == "X") || filter_selected == "D"); enable(DLG_FINDREC, filter_selected == "D"); enable(DLG_PRINT, _enable_chiave_fixer && filter_selected.empty()); - regs.enable_column(S_ONLYGEN, !provvisorio); // che regola si usa ?? + regs.enable_column(S_ONLYGEN, !definitivo); // che regola si usa ?? /* VECCHIA QUERY @@ -235,7 +235,7 @@ void TPAR_mask::fill() split = is_split_payment(mov); } } - if (provvisorio) + if (!definitivo) regs.set_row_cell(S_ONLYGEN, false, r); } @@ -406,7 +406,7 @@ void TPAR_mask::export_paf() int ndocs = 0; TSheet_field& sht = sfield(F_REGS); const TString &tipo_doc_sdi = get(F_TIPO_SDI); - TReg_fp elab(tipo_doc_sdi, get_bool(F_PROVVISORIO)); + TReg_fp elab(tipo_doc_sdi, get_bool(F_DEFINITIVO)); //elab.set_cache_insert(true); if (!sht.empty()) diff --git a/src/fp/fp0700a.h b/src/fp/fp0700a.h index fe1ba6a4f..aee5ebcb3 100644 --- a/src/fp/fp0700a.h +++ b/src/fp/fp0700a.h @@ -4,9 +4,9 @@ #define F_CAUSALI_TIPO 404 #define F_TIPO_SDI 405 #define F_REGS 406 -#define F_PROVVISORIO 407 +#define F_DEFINITIVO 407 #define START_MASK F_DATAINI -#define END_MASK F_PROVVISORIO +#define END_MASK F_DEFINITIVO #define S_COD_CAUS 101 diff --git a/src/fp/fp0700a.uml b/src/fp/fp0700a.uml index 56b4bfbef..d5d74c6f0 100644 --- a/src/fp/fp0700a.uml +++ b/src/fp/fp0700a.uml @@ -91,9 +91,9 @@ BEGIN ITEM "TD20|TD20 Autofattura" END - BOOLEAN F_PROVVISORIO + BOOLEAN F_DEFINITIVO BEGIN - PROMPT 1 15 "Provvisorio" + PROMPT 1 15 "Definitivo" END STRING DLG_PROFILE 50 diff --git a/src/fp/fplib.h b/src/fp/fplib.h index 855f52b8a..ba537c286 100644 --- a/src/fp/fplib.h +++ b/src/fp/fplib.h @@ -648,7 +648,7 @@ private: TFP_nota_piede_f _riga_npf; bool _has_cust; TString _tipo_doc_sdi; - bool _provvisorio; + bool _definitivo; bool insert(TPaf_record& p); bool remove(TPaf_record& p); @@ -685,7 +685,7 @@ protected: void set_qta_prezzo(TPaf_record& paf1800f, const TMovimento_contabile& mov, int n_row) const; void add_ritenuta(const TMovimento_contabile & mov, int n_row, TPaf_record& paf0700f) const; bool add_riepilogo_iva(const TMovimento_contabile mov, int n_riga); - const char * stato_paf() const { return _provvisorio ? " " : "D"; } + const char * stato_paf() const { return _definitivo ? "D" : " "; } const TFirm& TReg_fp::get_firm(){return prefix().firm();} @@ -703,7 +703,7 @@ public: void set_cache_insert(const bool v) { _cache_insert = v; } - TReg_fp(const char* tipo_doc_sdi, bool provvisorio); + TReg_fp(const char* tipo_doc_sdi, bool definitivo); ~TReg_fp(); }; #endif // __FPLIB_H diff --git a/src/fp/fplib01.cpp b/src/fp/fplib01.cpp index 321963701..d6592e389 100644 --- a/src/fp/fplib01.cpp +++ b/src/fp/fplib01.cpp @@ -3267,7 +3267,7 @@ bool TReg_fp::reg_to_paf(long n_mov) //NON LE CAPISCO -TReg_fp::TReg_fp(const char* tipo_doc_sdi, bool provvisorio) : _cache_insert(false) , _tipo_doc_sdi(tipo_doc_sdi), _provvisorio(provvisorio) +TReg_fp::TReg_fp(const char* tipo_doc_sdi, bool definitivo) : _cache_insert(false) , _tipo_doc_sdi(tipo_doc_sdi), _definitivo(definitivo) { _ditta.init(LF_NDITTE, prefix().get_codditta()); _cofi = get_cofi_tras();