How to check if time period is the last month in a quarter?

OSAdmin
Valued Contributor
Originally posted by Yan Savinsky

How to check if time period is the last month in a quarter in the Business Rule?

 

Thanks in advance.

 

Yan Savinsky

1 REPLY 1

PhilB
New Contributor III

Hello Yan,

There is no direct api to check for this (although there is one to check IsLastPeriodInYear), but the following line of code will work:

If api.Time.GetPeriodNumFromId(optional TimeID) Mod 3 = 0 Then

 

Phil Brosnan
pbrosnan@finit.com | finit.com