Patch level :4.0 567
Files correlati : Ricompilazione Demo : [ ] Commento :corretti errori di riporto git-svn-id: svn://10.65.10.50/trunk@14637 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f40c4d4002
commit
96074eca0f
@ -1478,7 +1478,7 @@ bool TPrimanota_application::iva_notify(TSheet_field& iva, int r, KEY k)
|
||||
if (oldpos[d] < 0)
|
||||
{
|
||||
const TString desc(cau.desc_agg(2));
|
||||
oldpos[d] = a.set_cgs_row(-1, a.real2imp(ZERO, 'I'), oldconto, desc, 'I', oldconto.commessa(), oldconto.fase());
|
||||
oldpos[d] = a.set_cgs_row(-1, a.real2imp(ZERO, 'I'), oldconto, desc, 'I');
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -1544,7 +1544,7 @@ bool TPrimanota_application::iva_notify(TSheet_field& iva, int r, KEY k)
|
||||
{ // crea una nuova riga contabile
|
||||
if (saved_descr.blank())
|
||||
saved_descr = cau.desc_agg(2);
|
||||
newpos = a.set_cgs_row(-1, newimp, conto, saved_descr, 'I', conto.commessa(), conto.fase());
|
||||
newpos = a.set_cgs_row(-1, newimp, conto, saved_descr, 'I');
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -1960,7 +1960,7 @@ bool TPrimanota_application::caus_modify_handler(TMask_field& f, KEY key)
|
||||
return false;
|
||||
|
||||
|
||||
const TMask& m = f.mask();
|
||||
TMask& m = f.mask();
|
||||
|
||||
const int ann = m.get_int(F_ANNOIVA);
|
||||
const TString& cau = f.get();
|
||||
@ -1969,7 +1969,7 @@ bool TPrimanota_application::caus_modify_handler(TMask_field& f, KEY key)
|
||||
if (!c.ok())
|
||||
return false;
|
||||
|
||||
const TCausale& k = app().causale();
|
||||
const TCausale& k = app().causale();
|
||||
const TString& msg = c.compatible(k);
|
||||
if (msg.not_empty()) // La causale non e' compatibile
|
||||
{
|
||||
@ -1981,9 +1981,9 @@ bool TPrimanota_application::caus_modify_handler(TMask_field& f, KEY key)
|
||||
TString4 provv;
|
||||
|
||||
provv << c.provvisorio();
|
||||
f.mask().set(F_PROVVISORIO, provv);
|
||||
m.set(F_PROVVISORIO, provv);
|
||||
if (c.iva() != nessuna_iva)
|
||||
f.mask().set(F_SOLAIVA, c.soloiva() ? "X" : " ");
|
||||
m.set(F_SOLAIVA, c.soloiva() ? "X" : " ");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -14,11 +14,11 @@
|
||||
TCausale::TCausale(const char* cod, int year)
|
||||
: TArray(12), _rec(LF_CAUSALI),
|
||||
_iva(iva_errata), _corrisp(false),
|
||||
_sezione_clifo(' '), _sezione_ritsoc(' '), _sezione_ritfis(' ')
|
||||
_sezione_clifo(' '), _sezione_ritsoc(' '), _sezione_ritfis(' '),
|
||||
_provvisorio(' ')
|
||||
|
||||
{
|
||||
if (*cod)
|
||||
if (cod && *cod)
|
||||
read(cod, year);
|
||||
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ class TCausale : public TArray
|
||||
|
||||
TipoIVA _iva;
|
||||
bool _corrisp;
|
||||
char _sezione_clifo, _sezione_ritsoc, _provvisorio;
|
||||
char _sezione_clifo, _sezione_ritsoc, _sezione_ritfis, _provvisorio;
|
||||
|
||||
protected:
|
||||
const TRectype* row(int num) const { return (const TRectype*)objptr(num); }
|
||||
|
@ -325,7 +325,7 @@ bool TSolder_tree::get_description(TString& desc) const
|
||||
if (level == 0) // Il prossimo clifo non esiste mai per progetto
|
||||
{
|
||||
desc = _cache.bill().descrizione();
|
||||
desc.strip_d_spaces();
|
||||
desc.strip_double_spaces();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -36,6 +36,7 @@
|
||||
#define F_STAMPATOTIVA 114
|
||||
#define F_SELEZ_STAMPA 115
|
||||
#define F_STAMPAMOVPROV 116
|
||||
#define F_NOT_STAMPA_CONT 117
|
||||
|
||||
#define F_SEPARATOR 150
|
||||
#define F_SORTDESC 151
|
||||
|
Loading…
x
Reference in New Issue
Block a user