Patch level : 910
Files correlati : sc1.exe Ricompilazione Demo : [ ] Commento : 0001618: 002458 - pharmatex - generazione abbuoni Descrizione richiedono una generazione automatica di abbuoni sul saldaconto, con massimale di abbuono da generare. Dovrà essere generata anche la registrazione contabile. git-svn-id: svn://10.65.10.50/branches/R_10_00@21529 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
c414948ced
commit
cb25cd552c
@ -1000,7 +1000,8 @@ const TString& TBill::descrizione() const
|
||||
{
|
||||
TBill& myself = (TBill&)*this;
|
||||
// Se il conto e' valido (c'e' almeno il gruppo) cerca la sua descrizione su file
|
||||
if ((_descrizione == NULL || _descrizione->blank()) && gruppo() != 0)
|
||||
if ((_descrizione == NULL || _descrizione->blank()) &&
|
||||
(gruppo() != 0 || (tipo() > ' ' && codclifo()>0)))
|
||||
{
|
||||
if (!myself.find())
|
||||
myself.set_description(TR("Sconosciuto"));
|
||||
|
@ -160,21 +160,21 @@ void TValuta::get(const TRectype& rec)
|
||||
|
||||
void TValuta::put(TRectype& rec) const
|
||||
{
|
||||
if (in_lire())
|
||||
if (in_valuta())
|
||||
{
|
||||
rec.zero("CODVAL");
|
||||
rec.zero("DATACAM");
|
||||
rec.zero("CAMBIO");
|
||||
if (rec.exist("CONTROEURO"))
|
||||
rec.zero("CONTROEURO");
|
||||
}
|
||||
else
|
||||
{
|
||||
rec.put("CODVAL", _cod);
|
||||
rec.put("DATACAM", _dat);
|
||||
rec.put("CAMBIO", _cam);
|
||||
if (rec.exist("CONTROEURO"))
|
||||
rec.put("CONTROEURO", _et == _exchange_contro ? "X" : "");
|
||||
}
|
||||
else
|
||||
{
|
||||
rec.zero("CODVAL");
|
||||
rec.zero("DATACAM");
|
||||
rec.zero("CAMBIO");
|
||||
if (rec.exist("CONTROEURO"))
|
||||
rec.zero("CONTROEURO");
|
||||
}
|
||||
}
|
||||
|
||||
@ -1066,7 +1066,7 @@ TPartita::TPartita(const TRectype& r)
|
||||
: _part(LF_PARTITE, PART_NRIGA), _unassigned(LF_PAGSCA, PAGSCA_NRIGP), _align(' ')
|
||||
{
|
||||
TBill clifo; clifo.get(r);
|
||||
if (clifo.gruppo() == 0)
|
||||
if (clifo.gruppo() == 0 && r.num() == LF_PARTITE)
|
||||
clifo.set(r.get_int(PART_GRUPPOCL), r.get_int(PART_CONTOCL), clifo.sottoconto(), clifo.tipo());
|
||||
const int anno = r.get_int(PART_ANNO);
|
||||
const TString8 num(r.get(PART_NUMPART));
|
||||
|
Loading…
x
Reference in New Issue
Block a user