Patch level : 10.0
Files correlati : cg3400b.msk Ricompilazione Demo : [ ] Commento : 0001542: 000000 - stampa giornale bollato Dopo il caricamento delle patch attualmente in test100, la stampa definitiva del giornale bollato, la videata che mostra i parametri del mese precedente non mostra più i bottoni sulla videata 'old style' sono visibili solo se il video è impostato a 1024 x 768. git-svn-id: svn://10.65.10.50/trunk@19997 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
77a9cb0b47
commit
a971e2ea4a
@ -1,7 +1,7 @@
|
||||
|
||||
#include "cg3400b.h"
|
||||
|
||||
PAGE "Stampa giornale - progressivi precedenti" -1 -1 58 12
|
||||
PAGE "Stampa giornale - progressivi precedenti" -1 -1 58 9
|
||||
|
||||
NUMBER N_RIGA_STAMPATO 6
|
||||
BEGIN
|
||||
@ -24,19 +24,24 @@ BEGIN
|
||||
HELP "Numero di pagina da cui iniziare la stampa"
|
||||
END
|
||||
|
||||
BUTTON DLG_OK 9 2
|
||||
ENDPAGE
|
||||
|
||||
TOOLBAR "" 0 0 0 2
|
||||
|
||||
BUTTON DLG_OK 2 2
|
||||
BEGIN
|
||||
PROMPT -13 10 ""
|
||||
PROMPT 1 1 ""
|
||||
END
|
||||
|
||||
BUTTON DLG_CANCEL 9 2
|
||||
BUTTON DLG_CANCEL 2 2
|
||||
BEGIN
|
||||
PROMPT -23 10 ""
|
||||
PROMPT 1 2 ""
|
||||
END
|
||||
|
||||
BUTTON DLG_RIPRISTINA 10 2
|
||||
BUTTON DLG_RIPRISTINA 2 2
|
||||
BEGIN
|
||||
PROMPT -33 10 "~Ripristina"
|
||||
PROMPT 1 3 "~Ripristina"
|
||||
PICTURE TOOL_CONVERT
|
||||
END
|
||||
|
||||
ENDPAGE
|
||||
|
@ -6,7 +6,7 @@ ENDPAGE
|
||||
|
||||
PAGE "Calcolo Liquidazioni" 0 2 0 0
|
||||
|
||||
RADIOBUTTON CG43_RDB_VERS 16
|
||||
RADIOBUTTON CG43_RDB_VERS 1 18
|
||||
BEGIN
|
||||
PROMPT 4 1 "Versamenti"
|
||||
ITEM "1|Tutti" MESSAGE HIDE,CG43_LST_TRIM|SHOW,CG43_LST_MESE
|
||||
|
@ -136,10 +136,12 @@ public:
|
||||
|
||||
class TCodiceIVA : public TRectype
|
||||
{
|
||||
protected:
|
||||
void copy(const TRectype & iva) { TRectype::operator =(iva); }
|
||||
|
||||
public: // TObject
|
||||
virtual bool ok() const { return !empty(); }
|
||||
TCodiceIVA & operator =(const TCodiceIVA & iva) { copy(iva) ; return *this;}
|
||||
TCodiceIVA& operator =(const TCodiceIVA & iva) { copy(iva) ; return *this;}
|
||||
TObject* dup() const { return new TCodiceIVA(*this); }
|
||||
bool read(const char* codice);
|
||||
const TString& codice() const { return get("CODTAB"); }
|
||||
|
@ -60,7 +60,7 @@ TRectype& TTree_rectype::new_row(int r)
|
||||
if (r <= 0)
|
||||
r = last()+1;
|
||||
CHECKD(!exist(r), "Ue' pirla! Esiste gia' la riga ", r);
|
||||
TRectype& row = rows_array().row(r, TRUE);
|
||||
TRectype& row = rows_array().row(r, true);
|
||||
return row;
|
||||
}
|
||||
|
||||
@ -143,7 +143,7 @@ void TValuta::adjust()
|
||||
int TValuta::compare(const TSortable& s) const
|
||||
{
|
||||
const TValuta& v = (const TValuta&)s;
|
||||
return _cod.compare(v._cod, -1, TRUE); // qui verificare
|
||||
return _cod.compare(v._cod, -1, true); // qui verificare
|
||||
}
|
||||
|
||||
void TValuta::get(const TRectype& rec)
|
||||
@ -304,8 +304,8 @@ bool TRiga_scadenze::chiusa(bool update) const
|
||||
bool chiusa;
|
||||
if (update)
|
||||
{
|
||||
TImporto imp(importo(TRUE));
|
||||
imp += importo_pagato(TRUE);
|
||||
TImporto imp(importo(true));
|
||||
imp += importo_pagato(true);
|
||||
chiusa = imp.is_zero();
|
||||
((TRectype*)this)->put(SCAD_PAGATA, chiusa ? "X" : "");
|
||||
}
|
||||
@ -440,9 +440,9 @@ char TRiga_scadenze::calcola_abbuono(int p, TImporto& abbuono, bool update)
|
||||
{
|
||||
if (pag.get_char(PAGSCA_ACCSAL) == 'S')
|
||||
{
|
||||
abbuono = importo(TRUE);
|
||||
abbuono = importo(true);
|
||||
pag.zero(PAGSCA_ABBUONI);
|
||||
abbuono += importo_pagato(TRUE, 0x0B); // Somma di importi, abbuoni e ritenute
|
||||
abbuono += importo_pagato(true, 0x0B); // Somma di importi, abbuoni e ritenute
|
||||
abbuono.swap_section();
|
||||
|
||||
const int sign = abbuono.valore().sign();
|
||||
@ -613,7 +613,7 @@ bool TRiga_scadenze::modifica_pagamento(const TRectype& new_pag, const TValuta&
|
||||
{
|
||||
const TString4 codval = sum.codice_valuta();
|
||||
exchange_type et = _exchange_undefined;
|
||||
if (((TRectype&)sum).exist(PART_CONTROEURO))
|
||||
if (sum.TRectype::exist(PART_CONTROEURO))
|
||||
et = sum.get_bool(PART_CONTROEURO) ? _exchange_contro : _exchange_base;
|
||||
TCurrency cur(old_abb.valore(), codval, sum.get_real(PART_CAMBIO), et);
|
||||
cur.change_to_firm_val();
|
||||
@ -659,8 +659,8 @@ bool TRiga_scadenze::modifica_pagamento(const TRectype& new_pag, const TValuta&
|
||||
rows_array().destroy_row(nrigp);
|
||||
|
||||
// Aggiorna flags di chiusura
|
||||
chiusa(TRUE);
|
||||
partita().chiusa(TRUE);
|
||||
chiusa(true);
|
||||
partita().chiusa(true);
|
||||
|
||||
return empty;
|
||||
}
|
||||
@ -676,7 +676,7 @@ bool TRiga_scadenze::esistono_abbuoni_diffcam() const
|
||||
if (!pag.get_real(PAGSCA_ABBUONI).is_zero() ||
|
||||
!pag.get_real(PAGSCA_DIFFCAM).is_zero())
|
||||
{
|
||||
ad = TRUE;
|
||||
ad = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -694,7 +694,7 @@ bool TRiga_scadenze::elimina_pagamento(int p)
|
||||
old_pag.zero(PAGSCA_RITENUTE);
|
||||
old_pag.zero(PAGSCA_RITSOC);
|
||||
TValuta val;
|
||||
return partita().modifica_pagamento(old_pag, val, TRUE);
|
||||
return partita().modifica_pagamento(old_pag, val, true);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
@ -982,7 +982,7 @@ TImporto TRiga_partite::esposto(bool valuta, const TDate & data_scad, const TDat
|
||||
TDate data(scad.get(SCAD_DATASCAD));
|
||||
const int lasts = scad.last();
|
||||
|
||||
found_pag = TRUE;
|
||||
found_pag = true;
|
||||
for (int p = scad.first(); p <= lasts; p = scad.succ(p))
|
||||
{
|
||||
if (p != nrigp)
|
||||
@ -1003,7 +1003,7 @@ TImporto TRiga_partite::esposto(bool valuta, const TDate & data_scad, const TDat
|
||||
if (rischio && data > data_rischio && data <= data_scad)
|
||||
{
|
||||
esposto += imp;
|
||||
sbf = TRUE;
|
||||
sbf = true;
|
||||
}
|
||||
else
|
||||
if (data > data_scad)
|
||||
@ -1277,7 +1277,7 @@ int TPartita::write_saldo(bool re, TRectype* rec) const
|
||||
valuta.put(sld);
|
||||
|
||||
// sld.put(PART_CHIUSA, row.get(PART_CHIUSA)); // Copia il flag di chiusura
|
||||
sld.put(PART_CHIUSA, chiusa(TRUE));
|
||||
sld.put(PART_CHIUSA, chiusa(true));
|
||||
|
||||
if (rec != NULL)
|
||||
*rec = sld;
|
||||
@ -1330,7 +1330,7 @@ bool TPartita::write(bool re) const
|
||||
{
|
||||
if (ok())
|
||||
{
|
||||
chiusa(TRUE); // Aggiorna flag di chiusura (non si sa mai)
|
||||
chiusa(true); // Aggiorna flag di chiusura (non si sa mai)
|
||||
|
||||
if (conto().tipo() > ' ' && conto().gruppo() > 0)
|
||||
{
|
||||
@ -1404,7 +1404,7 @@ TRiga_partite& TPartita::new_row(int r)
|
||||
if (r <= 0)
|
||||
for (r = 1; esiste(r); r++);
|
||||
CHECKD(!esiste(r), "Ue' pirla!, esiste gia' la riga ", r);
|
||||
TRiga_partite& nuova = (TRiga_partite&)_part.row(r, TRUE);
|
||||
TRiga_partite& nuova = (TRiga_partite&)_part.row(r, true);
|
||||
nuova.put(PART_GRUPPOCL, conto().gruppo());
|
||||
nuova.put(PART_CONTOCL, conto().conto());
|
||||
return nuova;
|
||||
@ -1480,7 +1480,7 @@ bool TPartita::in_valuta() const
|
||||
TRectype& TPartita::pagamento(int nriga, int nrata, int nrigp)
|
||||
{
|
||||
if (nriga == UNASSIGNED)
|
||||
return _unassigned.row(nrigp, TRUE);
|
||||
return _unassigned.row(nrigp, true);
|
||||
TRiga_scadenze& r = rata(nriga, nrata);
|
||||
return r.row(nrigp);
|
||||
}
|
||||
@ -1519,7 +1519,7 @@ bool TPartita::elimina_pagamento(int nriga, int nrata, int nrigp)
|
||||
old_pag.zero(PAGSCA_RITENUTE);
|
||||
old_pag.zero(PAGSCA_RITSOC);
|
||||
const TValuta val;
|
||||
modifica_pagamento(old_pag, val, TRUE);
|
||||
modifica_pagamento(old_pag, val, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1527,7 +1527,7 @@ bool TPartita::elimina_pagamento(int nriga, int nrata, int nrigp)
|
||||
scad.elimina_pagamento(nrigp);
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Ritorna l'importo in lire speso su di una riga contabile
|
||||
@ -1577,7 +1577,7 @@ void TPartita::update_reg(long nreg, const TRectype& mov, TPartite_array& pa)
|
||||
rig.put(PART_IMPTOTDOC, imptotdoc.valore());
|
||||
if (rig.in_valuta())
|
||||
{
|
||||
const TImporto imptotval = pa.importo_speso(nreg, numrig, TRUE, 0x1);
|
||||
const TImporto imptotval = pa.importo_speso(nreg, numrig, true, 0x1);
|
||||
rig.put(PART_IMPTOTVAL, imptotval.valore());
|
||||
}
|
||||
else
|
||||
@ -1856,7 +1856,7 @@ bool TPartita::utilizzata(int nrigp) const
|
||||
{
|
||||
const TRiga_scadenze& scad = fatt.rata(r);
|
||||
if (scad.rows_array().exist(nrigp))
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return _unassigned.exist(nrigp);
|
||||
@ -1919,11 +1919,11 @@ bool TPartita::modifica_pagamento(const TRectype& new_pag, const TValuta& valuta
|
||||
|
||||
bool TPartita::chiusa(bool update) const
|
||||
{
|
||||
bool chiusa = TRUE;
|
||||
bool chiusa = true;
|
||||
const int ultima = last();
|
||||
if (update)
|
||||
{
|
||||
const TImporto saldo = calcola_saldo(TRUE); // Saldo in valuta
|
||||
const TImporto saldo = calcola_saldo(true); // Saldo in valuta
|
||||
chiusa = saldo.is_zero();
|
||||
for (int p = ultima; p > 0; p = pred(p))
|
||||
{
|
||||
@ -1951,7 +1951,7 @@ void TPartita::rimuovi_riga(int r)
|
||||
else
|
||||
CHECKD(!utilizzata(r), "Can't remove still referenced row ", r);
|
||||
_part.destroy_row(r);
|
||||
chiusa(TRUE);
|
||||
chiusa(true);
|
||||
}
|
||||
|
||||
|
||||
@ -2030,7 +2030,7 @@ void TPartita::sposta_riga(int from_row, TPartita& part, int to_row)
|
||||
else
|
||||
{
|
||||
if (new_sca == UNASSIGNED)
|
||||
npg = part.unassigned().row(nrigp, TRUE);
|
||||
npg = part.unassigned().row(nrigp, true);
|
||||
else
|
||||
npg = nrw.rata(new_sca).new_row(nrigp);
|
||||
for (int n = pag.items()-1; n >= 0; n--) // Copia tutti i campi non chiave
|
||||
@ -2152,14 +2152,14 @@ TPartita* TPartite_array::find(const TRectype& r, bool create)
|
||||
|
||||
TPartita& TPartite_array::partita(const TBill& clifo, int anno, const char* num)
|
||||
{
|
||||
TPartita* game = find(clifo, anno, num, TRUE);
|
||||
TPartita* game = find(clifo, anno, num, true);
|
||||
CHECK(game, "Partita errata");
|
||||
return *game;
|
||||
}
|
||||
|
||||
TPartita& TPartite_array::partita(const TRectype& r)
|
||||
{
|
||||
TPartita* game = find(r, TRUE);
|
||||
TPartita* game = find(r, true);
|
||||
CHECK(game, "Partita errata");
|
||||
return *game;
|
||||
}
|
||||
@ -2187,7 +2187,7 @@ bool TPartite_array::destroy(TPartita& game)
|
||||
|
||||
bool TPartite_array::write(bool re)
|
||||
{
|
||||
bool ok = TRUE;
|
||||
bool ok = true;
|
||||
|
||||
TPartita* game;
|
||||
restart();
|
||||
|
@ -196,7 +196,6 @@ public:
|
||||
TImporto esposto(bool valuta, const TDate & data_scad, const TDate & data_rischio, bool & sbf) const;
|
||||
TImporto calcola_pagato_al(bool valuta,const TDate& al, const TDate & data_scaduto, const TDate& data_rischio, int mode = 0xF) const;
|
||||
|
||||
|
||||
const TString& codice_valuta() const;
|
||||
bool in_valuta() const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user