Patch level : 10.0
Files correlati : ef0.exe Ricompilazione Demo : [ ] Commento : FALSE -> false TRUE -> true git-svn-id: svn://10.65.10.50/trunk@20185 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
43ce17527b
commit
453efbbae5
@ -491,9 +491,9 @@ TImporto TRiga_scadenze::calcola_differenza_cambio(int p, bool update)
|
||||
|
||||
if (update)
|
||||
{
|
||||
diffcam = importo(FALSE);
|
||||
diffcam = importo(false);
|
||||
pag.zero(PAGSCA_DIFFCAM);
|
||||
diffcam += importo_pagato(FALSE); // Conta anche gli abbuoni e le altre diffcam
|
||||
diffcam += importo_pagato(false); // Conta anche gli abbuoni e le altre diffcam
|
||||
diffcam.swap_section();
|
||||
diffcam.normalize(sez);
|
||||
pag.put(PAGSCA_DIFFCAM, diffcam.valore());
|
||||
@ -607,7 +607,7 @@ bool TRiga_scadenze::modifica_pagamento(const TRectype& new_pag, const TValuta&
|
||||
TRiga_partite& sum = partita().riga(nrigp);
|
||||
|
||||
TImporto old_abbuono;
|
||||
old_ap = calcola_abbuono(nrigp, old_abbuono, FALSE); // Vecchio abbuono in valuta
|
||||
old_ap = calcola_abbuono(nrigp, old_abbuono, false); // Vecchio abbuono in valuta
|
||||
old_abb = old_abbuono; // Vecchio abbuono in lire
|
||||
if (in_val)
|
||||
{
|
||||
@ -620,7 +620,7 @@ bool TRiga_scadenze::modifica_pagamento(const TRectype& new_pag, const TValuta&
|
||||
old_abb.valore() = cur.get_num();
|
||||
}
|
||||
|
||||
old_diffcam = calcola_differenza_cambio(nrigp, FALSE);
|
||||
old_diffcam = calcola_differenza_cambio(nrigp, false);
|
||||
|
||||
if (in_val && !valuta.in_lire())
|
||||
valuta.put(sum);
|
||||
@ -667,7 +667,7 @@ bool TRiga_scadenze::modifica_pagamento(const TRectype& new_pag, const TValuta&
|
||||
|
||||
bool TRiga_scadenze::esistono_abbuoni_diffcam() const
|
||||
{
|
||||
bool ad = FALSE;
|
||||
bool ad = false;
|
||||
for (int p = last(); p > 0; p = pred(p))
|
||||
{
|
||||
const TRectype& pag = row(p);
|
||||
@ -845,7 +845,7 @@ bool TRiga_partite::update(const TRectype& vec, const TRectype& nuo, const char*
|
||||
bool TRiga_partite::update(const TImporto& vec, const TImporto& nuo,
|
||||
const char* sez, const char* val)
|
||||
{
|
||||
bool zero = FALSE;
|
||||
bool zero = false;
|
||||
TImporto growth(nuo); growth -= vec; // Variazione al totale
|
||||
|
||||
if (!growth.is_zero())
|
||||
@ -958,13 +958,13 @@ TImporto TRiga_partite::esposto(bool valuta, const TDate & data_scad, const TDat
|
||||
{
|
||||
TImporto esposto;
|
||||
|
||||
sbf = FALSE;
|
||||
sbf = false;
|
||||
const int nrigp = get_int(PART_NRIGA);
|
||||
const char sez = sezione();
|
||||
const int last = _partita->last();
|
||||
const TDate datapag(get_date(PART_DATAPAG));
|
||||
const bool rischio = data_scad != data_rischio;
|
||||
bool found_pag = FALSE;
|
||||
bool found_pag = false;
|
||||
|
||||
for (int row = last; row > 0; row = _partita->pred(row))
|
||||
{
|
||||
@ -1306,7 +1306,7 @@ int TPartita::read_saldo(TRectype& riga,
|
||||
if (err != NOERR)
|
||||
{
|
||||
const TPartita p(riga);
|
||||
err = p.write_saldo(FALSE, &sld);
|
||||
err = p.write_saldo(false, &sld);
|
||||
}
|
||||
|
||||
if (err == NOERR)
|
||||
@ -1474,7 +1474,7 @@ const TString& TPartita::codice_valuta() const
|
||||
bool TPartita::in_valuta() const
|
||||
{
|
||||
const int ultima = last();
|
||||
return ultima > 0 ? riga(ultima).in_valuta() : FALSE;
|
||||
return ultima > 0 ? riga(ultima).in_valuta() : false;
|
||||
}
|
||||
|
||||
TRectype& TPartita::pagamento(int nriga, int nrata, int nrigp)
|
||||
@ -1573,7 +1573,7 @@ void TPartita::update_reg(long nreg, const TRectype& mov, TPartite_array& pa)
|
||||
const int numrig = rig.get_int(PART_NUMRIG);
|
||||
CHECK(numrig > 0, "Bad NUMRIG");
|
||||
|
||||
const TImporto imptotdoc = pa.importo_speso(nreg, numrig, FALSE, 0x9);
|
||||
const TImporto imptotdoc = pa.importo_speso(nreg, numrig, false, 0x9);
|
||||
rig.put(PART_IMPTOTDOC, imptotdoc.valore());
|
||||
if (rig.in_valuta())
|
||||
{
|
||||
@ -1642,7 +1642,7 @@ void TPartita::calcola_saldo(TImporto& saldo, TImporto& doc, TImporto& pag, TImp
|
||||
for (int r = last(); r > 0; r = pred(r))
|
||||
{
|
||||
const TRiga_partite& row = riga(r);
|
||||
const TImporto i(row.importo(FALSE, 0x9));
|
||||
const TImporto i(row.importo(false, 0x9));
|
||||
|
||||
const tipo_movimento tipo = row.tipo();
|
||||
switch (tipo)
|
||||
@ -1661,10 +1661,10 @@ void TPartita::calcola_saldo(TImporto& saldo, TImporto& doc, TImporto& pag, TImp
|
||||
|
||||
if (tipo >= tm_pagamento)
|
||||
{
|
||||
const TImporto abbuoni(row.importo(FALSE, 0x2));
|
||||
const TImporto abbuoni(row.importo(false, 0x2));
|
||||
imp += abbuoni;
|
||||
|
||||
const TImporto diffcam(row.importo(FALSE, 0x4));
|
||||
const TImporto diffcam(row.importo(false, 0x4));
|
||||
imp += diffcam;
|
||||
}
|
||||
}
|
||||
@ -1736,7 +1736,7 @@ TImporto TPartita::calcola_saldo_al(bool valuta,const TDate& al, const TDate & d
|
||||
|
||||
if (tipopag >= 2 && tipopag <= 7)
|
||||
{
|
||||
bool sbf = FALSE;
|
||||
bool sbf = false;
|
||||
saldo -= row.esposto(valuta, data_scaduto, data_rischio, sbf);
|
||||
}
|
||||
}
|
||||
@ -1871,7 +1871,7 @@ bool TPartita::modifica_pagamento(const TRectype& new_pag, const TValuta& valuta
|
||||
const int nrata = new_pag.get_int(PAGSCA_NRATA);
|
||||
const int nrigp = new_pag.get_int(PAGSCA_NRIGP);
|
||||
|
||||
bool empty = FALSE;
|
||||
bool empty = false;
|
||||
|
||||
if (nriga != UNASSIGNED)
|
||||
{
|
||||
@ -1893,7 +1893,7 @@ bool TPartita::modifica_pagamento(const TRectype& new_pag, const TValuta& valuta
|
||||
if (new_pag.get_real(PAGSCA_IMPORTO).is_zero())
|
||||
_unassigned.destroy_row(nrigp);
|
||||
else
|
||||
_unassigned.row(nrigp, FALSE) = new_pag;
|
||||
_unassigned.row(nrigp, false) = new_pag;
|
||||
|
||||
// Non ci possono essere abbuoni o differenze cambio di sorta!
|
||||
old_ap = new_ap = ' ';
|
||||
@ -2042,7 +2042,7 @@ void TPartita::sposta_riga(int from_row, TPartita& part, int to_row)
|
||||
}
|
||||
|
||||
const TValuta val;
|
||||
part.modifica_pagamento(npg, val, FALSE);
|
||||
part.modifica_pagamento(npg, val, false);
|
||||
scd.elimina_pagamento(j);
|
||||
}
|
||||
}
|
||||
@ -2069,7 +2069,7 @@ void TPartita::scollega_pagamenti(int r, int s)
|
||||
pag.put(PAGSCA_ACCSAL, 'A');
|
||||
if (_unassigned.exist(j))
|
||||
{
|
||||
TRectype& unas = _unassigned.row(j, FALSE);
|
||||
TRectype& unas = _unassigned.row(j, false);
|
||||
somma(pag, unas, PAGSCA_IMPORTO);
|
||||
somma(pag, unas, PAGSCA_IMPORTOVAL);
|
||||
}
|
||||
@ -2233,7 +2233,7 @@ int TPartite_array::add_numreg(long nreg)
|
||||
|
||||
bool TPartite_array::utilizzata(long numreg, int numrig)
|
||||
{
|
||||
bool ok = FALSE;
|
||||
bool ok = false;
|
||||
for (TPartita* game = first(); game; game = next())
|
||||
{
|
||||
ok = game->mov2rig(numreg, numrig) > 0;
|
||||
|
@ -135,7 +135,7 @@ protected: // TRecord_tree
|
||||
virtual TObject* dup() const;
|
||||
|
||||
public:
|
||||
bool chiusa(bool update = FALSE) const;
|
||||
bool chiusa(bool update = false) const;
|
||||
|
||||
const TString& codice_valuta() const;
|
||||
bool in_valuta() const;
|
||||
@ -263,8 +263,8 @@ public:
|
||||
|
||||
bool reread();
|
||||
bool read(const TBill& clifo, int anno, const char* num);
|
||||
bool write(bool re = FALSE) const;
|
||||
bool rewrite() const { return write(TRUE); }
|
||||
bool write(bool re = false) const;
|
||||
bool rewrite() const { return write(true); }
|
||||
bool remove() const;
|
||||
|
||||
bool is_on_file() const;
|
||||
@ -279,7 +279,7 @@ public:
|
||||
bool utilizzata(int r) const; // Controlla se esistono pagamenti sommati alla riga r
|
||||
TRecord_array& unassigned() { return _unassigned; }
|
||||
|
||||
bool chiusa(bool update = FALSE) const;
|
||||
bool chiusa(bool update = false) const;
|
||||
|
||||
const TBill& conto() const { return _conto; }
|
||||
int anno() const { return _anno; }
|
||||
@ -332,21 +332,21 @@ public:
|
||||
TPartita& partita(const TRectype& r);
|
||||
|
||||
TPartita* exist(const TBill& clifo, int anno, const char* numero) const
|
||||
{ return ((TPartite_array*)this)->find(clifo, anno, numero, FALSE); }
|
||||
{ return ((TPartite_array*)this)->find(clifo, anno, numero, false); }
|
||||
|
||||
TPartita* exist(const TRectype& part) const
|
||||
{ return ((TPartite_array*)this)->find(part, FALSE); }
|
||||
{ return ((TPartite_array*)this)->find(part, false); }
|
||||
|
||||
bool insert(TPartita* p);
|
||||
|
||||
bool destroy(const TBill& clifo, int anno, const char* num);
|
||||
bool destroy(TPartita& game);
|
||||
|
||||
bool write(bool re = FALSE);
|
||||
bool rewrite() { return write(TRUE); }
|
||||
bool write(bool re = false);
|
||||
bool rewrite() { return write(true); }
|
||||
|
||||
int add_numreg(long numreg); // Carica tutte le partite relative alla registrazione numreg
|
||||
TImporto importo_speso(long numreg, int numrig, bool valuta = FALSE, int mode = 0xF);
|
||||
TImporto importo_speso(long numreg, int numrig, bool valuta = false, int mode = 0xF);
|
||||
void update_reg(const TRectype& mov, long old_reg = 0);
|
||||
|
||||
// Controlla se esistono righe di pagamento relative alla riga numrig
|
||||
|
Loading…
x
Reference in New Issue
Block a user