Patch level : 10.0 patch 252
Files correlati : lv2 Ricompilazione Demo : [ ] Commento : Corretto il salvataggio delle descrizioni estese git-svn-id: svn://10.65.10.50/trunk@19337 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									5ed2688fdd
								
							
						
					
					
						commit
						4c4874cd52
					
				@ -4,6 +4,7 @@
 | 
				
			|||||||
#include <reprint.h>
 | 
					#include <reprint.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "lvlib.h"
 | 
					#include "lvlib.h"
 | 
				
			||||||
 | 
					#include "../mg/anamag.h"
 | 
				
			||||||
#include "../mg/clifogiac.h"
 | 
					#include "../mg/clifogiac.h"
 | 
				
			||||||
#include "../ve/velib.h"
 | 
					#include "../ve/velib.h"
 | 
				
			||||||
#include "../ve/rcondv.h"
 | 
					#include "../ve/rcondv.h"
 | 
				
			||||||
@ -250,6 +251,7 @@ void TGenera_documenti_app::crea_riga(const TString& codart, const char modpas,
 | 
				
			|||||||
  const TRectype& anamag = cache().get(LF_ANAMAG,codart);
 | 
					  const TRectype& anamag = cache().get(LF_ANAMAG,codart);
 | 
				
			||||||
  //recupero i dati di interesse dall'anagrafica di magazzino, ma devo evitare divisioni per 0
 | 
					  //recupero i dati di interesse dall'anagrafica di magazzino, ma devo evitare divisioni per 0
 | 
				
			||||||
  const real ppconf = anamag.get_real(ANAMAG_PPCONF) != 0 ? anamag.get_real(ANAMAG_PPCONF) : 1;
 | 
					  const real ppconf = anamag.get_real(ANAMAG_PPCONF) != 0 ? anamag.get_real(ANAMAG_PPCONF) : 1;
 | 
				
			||||||
 | 
					  const TString80 descrart = anamag.get(ANAMAG_DESCR);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  //recupero i valori delle dotazione temporanea dal magazzino del cliente
 | 
					  //recupero i valori delle dotazione temporanea dal magazzino del cliente
 | 
				
			||||||
  TLocalisamfile magcli(LF_CLIFOGIAC);
 | 
					  TLocalisamfile magcli(LF_CLIFOGIAC);
 | 
				
			||||||
@ -269,6 +271,14 @@ void TGenera_documenti_app::crea_riga(const TString& codart, const char modpas,
 | 
				
			|||||||
  {
 | 
					  {
 | 
				
			||||||
    TRiga_documento& rdoc = doc.new_row(tiporiga);
 | 
					    TRiga_documento& rdoc = doc.new_row(tiporiga);
 | 
				
			||||||
    rdoc.put(RDOC_CODART,codart);
 | 
					    rdoc.put(RDOC_CODART,codart);
 | 
				
			||||||
 | 
					    if (descrart.len() > 50)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      rdoc.put(RDOC_DESCR, descrart.left(50));
 | 
				
			||||||
 | 
					      rdoc.put(RDOC_DESCLUNGA, true);
 | 
				
			||||||
 | 
					      rdoc.put(RDOC_DESCEST, descrart.sub(50));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					      rdoc.put(RDOC_DESCR, descrart);
 | 
				
			||||||
    rdoc.put(RDOC_CODARTMAG,codart);
 | 
					    rdoc.put(RDOC_CODARTMAG,codart);
 | 
				
			||||||
    rdoc.put(RDOC_CHECKED,'X');
 | 
					    rdoc.put(RDOC_CHECKED,'X');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -423,6 +433,14 @@ void TGenera_documenti_app::crea_riga(const TString& codart, const char modpas,
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    rdoc.put(RDOC_CODART,codart);
 | 
					    rdoc.put(RDOC_CODART,codart);
 | 
				
			||||||
 | 
					    if (descrart.len() > 50)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      rdoc.put(RDOC_DESCR, descrart.left(50));
 | 
				
			||||||
 | 
					      rdoc.put(RDOC_DESCLUNGA, true);
 | 
				
			||||||
 | 
					      rdoc.put(RDOC_DESCEST, descrart.sub(50));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					      rdoc.put(RDOC_DESCR, descrart);
 | 
				
			||||||
    rdoc.put(RDOC_CODARTMAG,codart);
 | 
					    rdoc.put(RDOC_CODARTMAG,codart);
 | 
				
			||||||
    rdoc.put(RDOC_CHECKED,'X'); 
 | 
					    rdoc.put(RDOC_CHECKED,'X'); 
 | 
				
			||||||
    if (prinbo) 
 | 
					    if (prinbo) 
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user