Static GL Account Validation

If you want to validate the GL account while creating or editing a distribution code, you need to select the Validate GL Account check box in the Distribution Code screen. If the GL account is valid, the following string appears below the check box while saving the distribution code:

"GL Account is validated on YYYY-MM-DD"

And, if the GL account is invalid, the following string appears below the check box while saving the distribution code:

"GL Account is invalid"

If you want to enable the static GL account validation feature on the Distribution Code screen, you need to define an algorithm of the C1-GLVAL or C1-GLVAL-COB algorithm type and attach the algorithm to the GL Account Validation system event in the Algorithms tab of the Installation Options - Framework screen. Both these algorithm types have one parameter named GL Account Length. You need to set the value of this parameter while creating the algorithm using the C1-GLVAL or C1-GLVAL-COB algorithm type. If you attach an algorithm of the C1-GLVAL algorithm type, the system checks whether the length of GL account is greater than or equal to the value defined in the GL Account Length parameter. If the length is greater than or equal to the specified length, the GL account is considered as valid. And, if the length is less than the specified length, the GL account is considered as invalid.

And, if you attach an algorithm of the C1-GLVAL-COB algorithm type, the system checks whether the length of GL account is equal to the value defined in the GL Account Length parameter. If the length is equal to the specified length, the GL account is considered as valid. And, if the length is less than or greater than the specified length, the GL account is considered as invalid.