Customized Data Validation with Smart Rules

Did you know that the new ‘Disallow Direct Posting’ checkbox on GL Accounts is only designed to eliminate direct posting in the General Ledger application? This is great, however, when coding AR invoices and AP bills the GL account lists don’t filter to just your revenue and expense accounts, leading to accidental data entry errors. Today we’ll look at a simple smart rule, custom system data validation, you can set up to prevent these mistakes.

So, let’s walk through a hypothetical situation. Your accounts payable clerk was able to create an AP bill and post it directly to one of your intercompany GL accounts. Yikes! Last year when you were in the office it was easy to catch these mistakes quickly and make the correction before the transaction was submitted for approval. With everyone working in different locations, it’s hard to catch these mistakes until after the fact. Now that this situation has come to pass let’s use the system to disable the ability to post directly to these accounts in an Accounts Payable transaction with a little help from Smart Rules and custom fields.

Smart Rules can be used to generate a warning or error message when a user saves data that does not meet the custom data validation requirements. Take it a step further and you can control the condition’s trigger using a simple custom field.

How does this work exactly?

First, we’ll set up a custom field on the GL account to provide us with the trigger point for the condition. Once we have the custom field we can then set up the rule to determine what accounts the AP clerk cannot use during her data entry.

Controlling Smart Rules with a Custom Field

To avoid having to constantly edit smart rule logic every time a new intercompany GL account is added, we’ll set up a custom field on our GL Account record. This custom field allows us to easily control which accounts the rule applies to.

Custom Field Setup

Step 1 – Navigation: Platform Services > Custom Fields > Add

Navigation for Adding Custom Field via Platform Services Menu

Step 2 – Choose the Object: Select the object to add the custom field to. In our example, this is the GL Account.

Screenshot of Step 1 in creating custom field where object is selected

Step 3 – Field Type: For the Field Data Type leave the default, checkbox, and click next.

Screenshot of Step 2 in creating custom field where data type is selected

Step 4 – Field Characteristics: Give the custom field a label and default setting value for the record. The field ID will auto-populate based on the label entered. (Helpful Tip: Make sure the ID has no spaces).

Screenshot of Step 3 in creating custom field where field characteristics are set

Update GL Accounts

Once you’ve saved the custom field, we’ll need to edit the GL accounts you want to eliminate posting to via the AP subledger. Navigate to General Ledger > General Ledger Accounts and edit the account. Check the new No Subledger Posting custom checkbox.

Navigation for Editing GL Account via General Ledger Menu

Adding the Smart Rule

Now that we’ve set up the custom field and enabled it on our GL accounts, it’s time to set up the Smart Rule. Navigate back to Platform Services, where we created the custom field. This time click the Add button next to Smart Rules.

Navigation for Adding Smart Rule via Platform Services Menu

Step 1 – Object: Select the AP Bill Detail as your object.

Screenshot of Step 1 in creating smart rule where object is selected

Step 2 – Properties: Select the following rule properties.

  • Type: Error
  • Events: Add and Set (the rule will be triggered both when a new bill is added and when an existing bill is edited).

Screenshot of Step 2 in creating smart rule where properties (type and events) are selected

  • Condition: from your field lookup (top right) search for the custom field in the GL account section, click ok once found.

Screenshot of Step 2 in creating smart rule where insert merge fields option is available

  • Our example condition will state that the “No Subledger Posting” checkbox must not be checked on the GL account in order to proceed with entering the bill. If the “No Subledger Posting” checkbox is checked on the account we coded the bill to, the condition is violated and our smart rule error is triggered.

  • Error: Enter an error message to display when the data validation is triggered. (Helpful hint: you can also use merge fields here to specify for example which line of the AP bill needs to be changed).

Screenshot of Step 2 in creating smart rule where error message is specified

The properties step of your Smart Rule should look like this when complete:

Step 3 – Deployment: Set up a Smart Rule ID (again, no spaces allowed).

Screenshot of Step 3 in creating smart rule where smart rule ID is specified

Testing the Smart Rule

Now, let’s test the workflow. Navigate to accounts payable and add a new bill. Post the bill directly to the intercompany account we checked the “No Subledger Posting” checkbox on.

Screenshot of AP Bill entry with intercompany account being selected

Click post and review the error message:

Test Smart Rule Error Screenshot

Ta-da now that you have this smart rule built no one will be able to post an AP bill again to your intercompany accounts. Unless someone disables the custom field on the GL accounts, in which case the smart rule won’t work and you may have to send out the flying monkeys to track down the culprit. Want another example? Check out some of our previous posts Smart Rules and even Smart Events.

What’s Next?

Join us for our complimentary webinar on April 27th at 10am (PT)/1pm (ET) to learn the answers to the following questions:

  • How do I set up Smart Rules and Smart Events?
  • What are common scenarios that Smart Rules or Smart Events are used in?
  • See live demonstrations

Reading this post after the webinar? Reach out to your CLA Sage Intacct team for more information.

  • 612-397-3349

Ashley Klapperick is a Consulting Director with CLA’s Intacct team. Ashley brings several years of team building, company collaboration and software experience in a variety of industries. She has a passion for leveraging technology to lead finance teams through strategic software implementations with a mission of increasing internal efficiency through business process improvements.

Comments

Great idea, and easy to follow steps!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*