AdvoLogix Help

Rounding Hours Via Code

Updated on

When enabled, the hours entry can be rounded in accordance with your organizations global setting. The following global Apex method can be used to round the Time's hours to the global rounding setting.




The time to be rounded (in hours).


The function will return time in hours rounded according to your organization's global settings.


Decimal  timeResult  = AdvologixUtilities.getTimeByTimeRounding(5.67);


Example Result:

Time (in hours) rounded according to global settings.

Previous Article Billing Preview⚡(legacy)
Next Article Retrieving the Default Rate via Code
Still need help? Click here!
AdvoLogix® is a registered trademark of LLC a Texas Limited Liability Company. All references to other trademarks belonging to third parties that appear on this website, documentation, or other materials shall be understood to refer to those registered trademarks owned by others, and not to any trademark belonging to AdvoLogix. Otherwise, all material herein is the copyright of LLC. All Rights Reserved.