Patch level : 2.2 no patch

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :

Aggiunta la funzione cost2revenue per fatturara le risorse e le attrezzature


git-svn-id: svn://10.65.10.50/trunk@12962 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2005-04-19 10:11:25 +00:00
parent 701c1e8b2b
commit bc8d74ceaf

View File

@ -375,14 +375,16 @@ void TRiga_documento::cost2revenue()
if (is_attrezzatura() || is_risorsa())
{
const TSpesa_prest & s = spesa();
const TString4 tipo(s.tipo());
const TString codice(s.revenue());
if (codice.not_empty())
{
const TString4 tipo(s.tipo());
if (tipo.not_empty())
put(RDOC_TIPORIGA, tipo);
if (codice.not_empty())
put(RDOC_TIPORIGA, codice);
}
}
}
bool TRiga_documento::raggruppabile(const TRiga_documento& r, TToken_string& campi) const