Patch level : 3.2 1410
Files correlati : ba3.exe Ricompilazione Demo : [ ] Commento Bug 1425 in fase di richiamo di un cambio inserito con dei decimali vengono visualizzati il corretto numero di decimali ma a 0. Per es. inserisco 1,1240 e rivedo 1,0000. git-svn-id: svn://10.65.10.50/trunk@19229 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									1ceb9c0708
								
							
						
					
					
						commit
						99bbb955c0
					
				@ -757,6 +757,30 @@ int TGeneric_table_app::read(TMask& m)
 | 
				
			|||||||
			if (get_relation()->lfile().get_real("R10") == ZERO)
 | 
								if (get_relation()->lfile().get_real("R10") == ZERO)
 | 
				
			||||||
				m.set(F_PREZZO, get_relation()->lfile().get("R0"));
 | 
									m.set(F_PREZZO, get_relation()->lfile().get("R0"));
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
							else
 | 
				
			||||||
 | 
								if (table_name == TAB_VALUTE)
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									const int dec = m.get_int(VAL_DECIMALS_CHANGE);
 | 
				
			||||||
 | 
									TReal_field& exc = (TReal_field&)m.efield(VAL_CHANGE);
 | 
				
			||||||
 | 
									if (dec != exc.decimals())
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										exc.set_decimals(dec);
 | 
				
			||||||
 | 
							      exc.set(get_relation()->lfile().get("S4"));
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								else
 | 
				
			||||||
 | 
									if (table_name == TAB_CAMBI)
 | 
				
			||||||
 | 
									{
 | 
				
			||||||
 | 
										const int dec = m.get_int(FLD_TABCAM_I2);
 | 
				
			||||||
 | 
										TReal_field& exc = (TReal_field&)m.efield(FLD_TABCAM_S4);
 | 
				
			||||||
 | 
										if (dec != exc.decimals())
 | 
				
			||||||
 | 
										{
 | 
				
			||||||
 | 
											exc.set_decimals(dec);
 | 
				
			||||||
 | 
											exc.set(get_relation()->lfile().get("S4"));
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
  return err;
 | 
					  return err;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user