From bc8d74ceaf26a085fb95f53096b2f36b263b8dee Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 19 Apr 2005 10:11:25 +0000 Subject: [PATCH] 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 --- ve/velib02.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ve/velib02.cpp b/ve/velib02.cpp index bc216895f..62787fe03 100755 --- a/ve/velib02.cpp +++ b/ve/velib02.cpp @@ -375,13 +375,15 @@ 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 (tipo.not_empty()) - put(RDOC_TIPORIGA, tipo); if (codice.not_empty()) + { + const TString4 tipo(s.tipo()); + if (tipo.not_empty()) + put(RDOC_TIPORIGA, tipo); put(RDOC_TIPORIGA, codice); + } } }