Modifiche dalla versione Linux sulla 2.1
git-svn-id: svn://10.65.10.50/trunk@12020 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									524ee0a1d6
								
							
						
					
					
						commit
						70004fd53f
					
				| @ -69,7 +69,8 @@ void TEsercizi_contabili::check() | ||||
| int TEsercizi_contabili::date2index(const TDate& d) const | ||||
| { | ||||
|   check();     | ||||
|   for (int i = items()-1; i >= 0; i--) | ||||
|   int i; | ||||
|   for (i = items()-1; i >= 0; i--) | ||||
|   {      | ||||
|     const TEsercizio& e = esc(i); | ||||
|     if (d >= e.inizio() && d <= e.fine()) | ||||
| @ -81,7 +82,9 @@ int TEsercizi_contabili::date2index(const TDate& d) const | ||||
| int TEsercizi_contabili::esc2index(int codice) const | ||||
| { | ||||
|   check();     | ||||
|   for (int i = items()-1; i >= 0; i--) | ||||
|   int i; | ||||
|    | ||||
|   for (i = items()-1; i >= 0; i--) | ||||
|   {      | ||||
|     const TEsercizio& e = esc(i); | ||||
|     if (codice == e.codice()) | ||||
| @ -130,7 +133,9 @@ int TEsercizi_contabili::last_mag() const | ||||
|   es++; | ||||
| */         | ||||
|   check();             | ||||
|   for (int i = items()-1; i >= 0; i--) | ||||
|   int i; | ||||
|    | ||||
|   for (i = items()-1; i >= 0; i--) | ||||
|   { | ||||
|     const TEsercizio& e = esc(i); | ||||
|     if (e.chiusura_mag().ok()) | ||||
| @ -929,4 +934,4 @@ bool TBill::default_cdc(TString& cdc, TString& fas) const | ||||
|     } | ||||
|   } | ||||
|   return ok && cdc.not_empty(); | ||||
| } | ||||
| } | ||||
|  | ||||
| @ -169,8 +169,8 @@ class TBill : public TSortable | ||||
|   long _sottoconto;        // Sottoconto, codice cliente o fornitore
 | ||||
|   TString* _descrizione;   // Vuota fino alla chiamata di describe
 | ||||
|   int _tipo_cr;            // Tipo costo/ricavo
 | ||||
|   bool _sospeso; | ||||
|   char _sezione; | ||||
|   bool _sospeso; | ||||
|    | ||||
| protected:            | ||||
|   void set_description(const char* d); | ||||
|  | ||||
| @ -961,7 +961,9 @@ bool TBalance::find(const TBill& b, int esercizio, | ||||
|   TString key(30); | ||||
| 	key.format("%d||%d|%d|%ld", esercizio, b.gruppo(), b.conto(), b.sottoconto()); | ||||
|   const TRectype & saldi = cache().get(LF_SALDI, key); | ||||
|   if (!saldi.empty()) | ||||
|   const bool ok = !saldi.empty(); | ||||
|    | ||||
|   if (ok) | ||||
|   { | ||||
|     si.set(saldi.get_char(SLD_FLAGSALINI), saldi.get_real(SLD_SALDO)); | ||||
|     da.set('D', saldi.get_real(SLD_PDARE)); | ||||
|  | ||||
							
								
								
									
										20
									
								
								cg/cglib02.h
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								cg/cglib02.h
									
									
									
									
									
								
							| @ -8,7 +8,7 @@ | ||||
| #endif | ||||
| 
 | ||||
| #ifndef __CGLIB01_H | ||||
| #include "cglib01.h" | ||||
| #include "../cg/cglib01.h" | ||||
| #endif        | ||||
| 
 | ||||
| #ifndef __CG2103_H                 | ||||
| @ -66,23 +66,27 @@ class TSaldo : public TObject | ||||
| { | ||||
|   TLocalisamfile _saldi; | ||||
| 
 | ||||
|   real      _saldo, _saldo_iniziale, _saldoiniziale;  // oh my GOSH
 | ||||
|   real      _prg_dare, _prg_avere, _saldofin; | ||||
|   char      _sezsf; | ||||
|   int       _indbil; | ||||
|   real		  _saldoiniziale;  // oh my GOSH
 | ||||
|   real			_saldo_iniziale; | ||||
|   real      _prg_dare; | ||||
|   real		  _prg_avere; | ||||
|   real		  _saldofin; | ||||
|   real      _saldo; | ||||
|   int       _annoes; | ||||
|   int       _indbil; | ||||
|   TDate     _inizioEs, _fineEs; | ||||
|   TString16 _codcaus; | ||||
|   TDate     _datareg; | ||||
|   TDate     _datacomp; | ||||
|   TString   _provv; | ||||
| 
 | ||||
|   bool      _prec; | ||||
|   bool      _movimentato; | ||||
|   bool      _significativo; | ||||
|   bool      _rec_presente_ec; | ||||
|   bool      _rec_presente_ep; | ||||
|   bool      _prec; | ||||
|    | ||||
| 
 | ||||
|   TDecoder      _causali_apertura; | ||||
|    | ||||
| protected: | ||||
| @ -151,11 +155,11 @@ public: | ||||
| class TSaldo_agg : public TObject | ||||
| { | ||||
|   TTab_conti _tab_conti; | ||||
|   tiposal    _movap;       // se e' mov. d'apertura (aggiorno SALDO e FLAGSALINI in saldi)
 | ||||
|   bool       _provv;       | ||||
|   int        _anno_es;     // anno esercizio
 | ||||
|   TDate      _data_ulmov;  // data ultimo movimento
 | ||||
|   long       _num_ulmov;   // numero ultimo movimento 
 | ||||
|   tiposal    _movap;       // se e' mov. d'apertura (aggiorno SALDO e FLAGSALINI in saldi)
 | ||||
|   bool       _provv;       | ||||
|   TRectype*  _rec;         // record corrente sui saldi
 | ||||
|   bool       _movimentato; // di default e' FALSE; viene usato a TRUE solo quando voglio
 | ||||
|                            // che un conto sia movimentato sui saldi anche se progressivi
 | ||||
|  | ||||
| @ -17,7 +17,7 @@ bool classify_pim(const TRectype& pimr, real& imp, real& iva, tiporec& t, bool t | ||||
|   const int corrisp = (int)pimr.get_long("I0"); // netto = 1, lordo = 2
 | ||||
|   const int tipomov = (int)pimr.get_long("I1"); // 1 = vendita, 2 = acquisto
 | ||||
|    | ||||
|   const bool vola = pimr.get_bool("B2"); | ||||
| //  const bool vola = pimr.get_bool("B2");
 | ||||
|   const bool rimb = pimr.get_bool("B3"); | ||||
|   const bool ricl = pimr.get_bool("B4"); | ||||
|    | ||||
|  | ||||
| @ -142,7 +142,7 @@ void TValuta::adjust() | ||||
| int TValuta::compare(const TSortable& s) const | ||||
| { | ||||
|   const TValuta& v = (const TValuta&)s; | ||||
|   return stricmp(_cod, v._cod); | ||||
|   return _cod.compare(v._cod, -1, TRUE); // qui verificare
 | ||||
| } | ||||
| 
 | ||||
| void TValuta::get(const TRectype& rec) | ||||
| @ -619,7 +619,9 @@ void TRiga_partite::elimina_rata(int r) | ||||
| // Certified 100%
 | ||||
| int TRiga_partite::ultima_ratapagata() const | ||||
| { | ||||
|   for (int r = rate(); r > 0; r--) | ||||
| 	int r; | ||||
| 	 | ||||
|   for (r = rate(); r > 0; r--) | ||||
|     if (rata(r).chiusa()) break; | ||||
|   return r; | ||||
| } | ||||
| @ -721,8 +723,10 @@ bool TRiga_partite::update(const TImporto& vec, const TImporto& nuo, | ||||
| // Cerca una rata con abbuoni o differenze cambio
 | ||||
| // Certified 99%
 | ||||
| int TRiga_partite::ultima_rata_con_abbuoni_diffcam() const | ||||
| {          | ||||
|   for (int s = rate(); s > 0; s--) | ||||
| {   | ||||
| 	int s; | ||||
| 	        | ||||
|   for (s = rate(); s > 0; s--) | ||||
|   { | ||||
|     const TRiga_scadenze& scad = rata(s); | ||||
|     if (scad.esistono_abbuoni_diffcam()) | ||||
| @ -837,7 +841,7 @@ TImporto TRiga_partite::esposto(bool valuta, const TDate & data_scad, const TDat | ||||
|               const int tp = prow.get_int(PART_TIPOPAG); | ||||
|               if (tp >= 2 && tp <= 7) | ||||
|               { | ||||
|                 const TDate dataprow = prow.get(PART_DATAPAG); | ||||
|                 const TDate dataprow(prow.get(PART_DATAPAG)); | ||||
|                 if (dataprow < datapag) | ||||
|                 { | ||||
|                   data = datapag; | ||||
|  | ||||
| @ -10,7 +10,7 @@ | ||||
| #endif                                          | ||||
| 
 | ||||
| #ifndef __CGLIB01_H | ||||
| #include "cglib01.h" | ||||
| #include "../cg/cglib01.h" | ||||
| #endif                                          | ||||
| 
 | ||||
| #ifndef __PARTITE_H | ||||
| @ -215,10 +215,10 @@ class TPartita : public TSortable | ||||
|   TBill _conto; | ||||
|   int _anno; | ||||
|   TString16 _num; | ||||
|   char _align;        // current _num alignment
 | ||||
|    | ||||
|   TRecord_array _part; | ||||
|   TRecord_array _unassigned; | ||||
|   char _align;        // current _num alignment
 | ||||
|    | ||||
|   static char _cli_align, _for_align;  // default _num alignment
 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user