Puttanatina arrotondamento iniziale
git-svn-id: svn://10.65.10.50/trunk@2591 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									c695a1724f
								
							
						
					
					
						commit
						8a6ba17ebb
					
				@ -1645,7 +1645,6 @@ void TPagamento::set_rate_auto()
 | 
			
		||||
      {
 | 
			
		||||
        // usa la percentuale per la prima rata
 | 
			
		||||
        r1 = (toslice * perc_rata(first))/real(100.0); 
 | 
			
		||||
        r1.round(v);             
 | 
			
		||||
    
 | 
			
		||||
        const real reminder = toslice - r1;
 | 
			
		||||
        if (!reminder.is_zero()) 
 | 
			
		||||
@ -1656,6 +1655,7 @@ void TPagamento::set_rate_auto()
 | 
			
		||||
      }  
 | 
			
		||||
      else
 | 
			
		||||
        r1 = toslice;  
 | 
			
		||||
      r1.round(round(v));
 | 
			
		||||
    }
 | 
			
		||||
  
 | 
			
		||||
    for (int i = first; i < n_rate(); i++)        
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user