Rounding billable time in Generic Inquiry

  • 8 July 2021
  • 2 replies

Userlevel 3

Is there a way in which one can round the billable time from the CRPMTimeActivity table in a generic inquiry? 

In the Case Class the billable time is rounded by 0:05. So if the billable time is 83 min, I would need the GI to show 85 min or where the billable time is 57min, it should show 60min.


Best answer by ChandraM 9 July 2021, 00:22

View original

2 replies

Userlevel 7
Badge +9

Hi @suemackeown13 Please try using the formula - DateAdd(Ceiling(Datediff(0,'m', '15:13') / 5.0) * 5,'m'), and le me if this works.




Userlevel 3

I am trying to round to the nearest half hour.  I tried using this formula as is and it didn’t work.  I assume it is to test and then to substitute 15:13 for the date/time field?  Is “Ceiling” a function formula? 


DateAdd(Ceiling(Datediff(0,'m', '15:13') / 5.0) * 5,'m')


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved