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:
guy 2011-01-27 14:50:46 +00:00
parent c414948ced
commit cb25cd552c
2 changed files with 12 additions and 11 deletions

View File

@ -1000,7 +1000,8 @@ const TString& TBill::descrizione() const
{ {
TBill& myself = (TBill&)*this; TBill& myself = (TBill&)*this;
// Se il conto e' valido (c'e' almeno il gruppo) cerca la sua descrizione su file // 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()) if (!myself.find())
myself.set_description(TR("Sconosciuto")); myself.set_description(TR("Sconosciuto"));

View File

@ -160,15 +160,7 @@ void TValuta::get(const TRectype& rec)
void TValuta::put(TRectype& rec) const 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("CODVAL", _cod);
rec.put("DATACAM", _dat); rec.put("DATACAM", _dat);
@ -176,6 +168,14 @@ void TValuta::put(TRectype& rec) const
if (rec.exist("CONTROEURO")) if (rec.exist("CONTROEURO"))
rec.put("CONTROEURO", _et == _exchange_contro ? "X" : ""); rec.put("CONTROEURO", _et == _exchange_contro ? "X" : "");
} }
else
{
rec.zero("CODVAL");
rec.zero("DATACAM");
rec.zero("CAMBIO");
if (rec.exist("CONTROEURO"))
rec.zero("CONTROEURO");
}
} }
void TValuta::set(TMask& m, short v, short d, short c, short e) const void TValuta::set(TMask& m, short v, short d, short c, short e) const
@ -1066,7 +1066,7 @@ TPartita::TPartita(const TRectype& r)
: _part(LF_PARTITE, PART_NRIGA), _unassigned(LF_PAGSCA, PAGSCA_NRIGP), _align(' ') : _part(LF_PARTITE, PART_NRIGA), _unassigned(LF_PAGSCA, PAGSCA_NRIGP), _align(' ')
{ {
TBill clifo; clifo.get(r); 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()); 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 int anno = r.get_int(PART_ANNO);
const TString8 num(r.get(PART_NUMPART)); const TString8 num(r.get(PART_NUMPART));