Corretta gestione descrizione riga causali non esistente

git-svn-id: svn://10.65.10.50/trunk@2271 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1995-12-11 17:35:40 +00:00
parent 67a82cd002
commit 837b4c0c46
3 changed files with 114 additions and 120 deletions

View File

@ -39,7 +39,7 @@ BEGIN
PROMPT 22 2 "Sezione" PROMPT 22 2 "Sezione"
END END
RADIOBUTTON P_SEZIONE 1 20 RADIOBUTTON P_SEZIONE 1 19
BEGIN BEGIN
PROMPT 31 1 "" PROMPT 31 1 ""
ITEM "D|Dare" ITEM "D|Dare"

View File

@ -338,10 +338,12 @@ TBill& TCausale::bill(int num, TBill& conto) const
const char* TCausale::desc_agg(int num) const const char* TCausale::desc_agg(int num) const
{ {
const TRectype& rec = row(num); const TRectype* rec = (const TRectype*)objptr(num);
TString16 cod(rec.get(RCA_CODDESC)); if (rec == NULL)
return "";
TTable da("%DPN"); TTable da("%DPN");
const char* cod = rec->get(RCA_CODDESC);
da.put("CODTAB", cod); da.put("CODTAB", cod);
if (da.read() != NOERR) if (da.read() != NOERR)
da.zero(); da.zero();

View File

@ -287,14 +287,6 @@ TGame_mask::TGame_mask(const TBill& bill, long numreg, int riga)
<< ' ' << _conto.sottoconto() << ' ' << ((TBill&)_conto).descrizione(); << ' ' << _conto.sottoconto() << ' ' << ((TBill&)_conto).descrizione();
set(P_DESCR, descr); set(P_DESCR, descr);
/*
const char tipocf[2] = { _conto.tipo(), '\0' };
set(P_TIPOC, tipocf);
set(P_GRUPPO, _conto.gruppo());
set(P_CONTO, _conto.conto());
set(P_SOTTOCONTO, _conto.sottoconto());
set(P_DESCR, ((TBill&)_conto).descrizione());
*/
TValuta val; TValuta val;
#ifndef __EXTRA__ #ifndef __EXTRA__
TMask& cm = app().curr_mask(); TMask& cm = app().curr_mask();