Exclude/Include if ledger account has fewer dimensions

Example- Scenario 1

Rule uses four dimensions, whereas the ledger account uses only two.

Rule Rule Type Dim 1 From Dim 1 To Dim 2 From Dim 2 To Dim 3 From Dim 3 To Dim 4 From Dim 4 To
01 Exclude 001 001 002 002   003   004
02 Include AAA AAA 002 002   003   004

Ledger account 10001 has only dimensions 1 and 2 optional. Dimensions 3 and 4 are unused.

Acc. Dim 1 Dim 2 Dim 3 Dim 4 Rule Combination allowed?
10001 001 002     01 No (Excluded)
10001 AAA 002     02 Yes

Example- Scenario 2

Rule uses four dimensions, whereas the ledger account uses only two.

Rule Rule Type Dim 1 From Dim 1 To Dim 2 From Dim 2 To Dim 3 From Dim 3 To Dim 4 From Dim 4 To
01 Exclude 001 001 002 002   003 004 004
02 Include AAA AAA 002 002   003 004 004

Ledger account 10001 has only optional dimensions 1 and 2. Dimensions 3 and 4 are unused.

Acc. Dim 1 Dim 2 Dim 3 Dim 4 Rule Combination allowed?
10001 001 002     01 Yes (Not excluded). Rule 01 prescribes that if dimension 4 is 004, the transaction is not allowed. However, dimension 4 is always zero, and therefore allowed.
10001 AAA 002     02 Yes. Rule 02 applies to specific dimension 4 values (not including an empty value) and ledger account 10001 does not have a dimension 4.