Corretto errore sulla descrizione riga
git-svn-id: svn://10.65.10.50/trunk@3914 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									b441dfdb87
								
							
						
					
					
						commit
						e3e8e89c59
					
				@ -125,7 +125,7 @@ void TMotore_application::user_set_handler( int fieldid, int index, TMask* m )
 | 
			
		||||
bool TMotore_application::ss_handler( TSheet_field& ss, int r, KEY key )
 | 
			
		||||
 | 
			
		||||
{ 
 | 
			
		||||
  if ( key == K_ENTER ) // Cancellazione
 | 
			
		||||
  if ( key == K_ENTER ) // modifica
 | 
			
		||||
  {
 | 
			
		||||
    TRiga_documento & riga = (*(app()._doc))[r + 1];
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
@ -1621,12 +1621,15 @@ void TRiga_documento::autosave(TSheet_field & f)
 | 
			
		||||
    put( "CODART", row.get( f.cid2index(FR_CODART )) );
 | 
			
		||||
    TString s(row.get(f.cid2index(FR_DESCR))); 
 | 
			
		||||
    int split_pos = s.find('\n');
 | 
			
		||||
                                         
 | 
			
		||||
    const int descr_len = length("DESCR");
 | 
			
		||||
    if (split_pos < 0 && s.len() > descr_len)
 | 
			
		||||
      split_pos = descr_len;
 | 
			
		||||
    if (split_pos > 0)
 | 
			
		||||
    {
 | 
			
		||||
      put( "DESCR", s.left(split_pos));
 | 
			
		||||
      put("DESCLUNGA", "X");  
 | 
			
		||||
      s.ltrim(split_pos);
 | 
			
		||||
      put("DESCEST", s);
 | 
			
		||||
      put("DESCEST", s.mid(split_pos));
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user