Modificato RIGA_SPESE in RIGA_SPESEDOC, per non entrare in conflitto

con lo stesso simbolo definito in cg2103.h


git-svn-id: svn://10.65.10.50/trunk@4210 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
angelo 1997-03-17 09:26:01 +00:00
parent 88457a24db
commit 1395cc15e3
2 changed files with 7 additions and 7 deletions

View File

@ -57,7 +57,7 @@
TSpesa_prest::TSpesa_prest(const char* codice, char tipo)
: TRectype(LF_TAB)
{
settab(tipo == RIGA_SPESE ? "SPP" : "PRS");
settab(tipo == RIGA_SPESEDOC ? "SPP" : "PRS");
if (codice && *codice)
read(codice);
}
@ -1326,7 +1326,7 @@ TVariable_mask * TTipo_riga_documento::mask()
_mask->set_handler( FR_QTA, qta_handler );
}
else
if (tipo_r == RIGA_SPESE || tipo_r == RIGA_PRESTAZIONI)
if (tipo_r == RIGA_SPESEDOC || tipo_r == RIGA_PRESTAZIONI)
_mask->set_handler( FR_CODART, sppr_handler );
}
}
@ -1393,7 +1393,7 @@ const TSpesa_prest & TRiga_documento::spesa() const
{
const char tipor = tipo().tipo();
CHECK(tipor == RIGA_SPESE || tipor == RIGA_PRESTAZIONI, "Tipo riga incompatibile con le spese");
CHECK(tipor == RIGA_SPESEDOC || tipor == RIGA_PRESTAZIONI, "Tipo riga incompatibile con le spese");
static long firm = -1;
long new_firm = main_app().get_firm();
@ -1553,7 +1553,7 @@ real TRiga_documento::importo(bool scontato, bool lordo, int ndec) const
c = _qtaprezzo;
break;
case RIGA_PRESTAZIONI:
case RIGA_SPESE:
case RIGA_SPESEDOC:
{
const TSpesa_prest & s = spesa();
@ -1652,7 +1652,7 @@ bool TRiga_documento::doc_dependent() const
{
const char tipor = tipo().tipo();
if (tipor == RIGA_SPESE)
if (tipor == RIGA_SPESEDOC)
return spesa().tipo() == 'P';
else
if (tipor == RIGA_SCONTI)
@ -2391,7 +2391,7 @@ void TDocumento::update_spese_aut(TString_array & spese_aut, bool preserve_old,
{
TRiga_documento & r = row(i);
if (r.tipo().tipo() == RIGA_SPESE && r.generata())
if (r.tipo().tipo() == RIGA_SPESEDOC && r.generata())
{
if (preserve_old)
return;

View File

@ -22,7 +22,7 @@
#endif
#define RIGA_MERCE 'M'
#define RIGA_SPESE 'S'
#define RIGA_SPESEDOC 'S'
#define RIGA_PRESTAZIONI 'P'
#define RIGA_SCONTI 'C'
#define RIGA_OMAGGI 'O'