From 7ef11b7bbf4093462b5a91ef84ad984e50019223 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 12 Mar 2008 16:57:07 +0000 Subject: [PATCH] Patch level : 4.0 906 Files correlati : Ricompilazione Demo : [ ] Commento : Aggiunta sulle comesses e documenti la gestione delle commesse promiscue con tipo indetraibilita' git-svn-id: svn://10.65.10.50/trunk@16309 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 d8c6f84b6..f75ca8ce4 100755 --- a/ve/velib02.cpp +++ b/ve/velib02.cpp @@ -1054,9 +1054,11 @@ void TRiga_documento::autosave(TSheet_field& f) if (regiva.full()) { - put( RDOC_TIPODET, 9 ); - row.add(9, f.cid2index(FR_TIPODET)); - m.set(FR_TIPODET, 9); + const TString4 tipod = regiva == "PR" ? rec_cms.get(COMMESSE_INDETR) : "9"; + + put( RDOC_TIPODET, tipod ); + row.add(tipod, f.cid2index(FR_TIPODET)); + m.set(FR_TIPODET, tipod); } } } //if(tipodet!=9)