Multiple validation rules

Example

This example shows how multiple rules supplement each other.

RuleLineRule TypeFrom Ledger AccountToLedger AccountFrom Cost CenterTo Cost CenterFrom ProjectTo ProjectFrom RegionTo Region
A1IncludeZZZZZZZZZP01P10EMEAEMEA
A2IncludeZZZZZZZZZP11P20APACAPAC
B1Include4500046000100110ZZZZZZZZ

 

If ledger account 45000 and cost center 200 are specified, LN will display an error message because rule B is violated. Specifying ledger account 45000 and cost center 100 will not correct this error.

If ledger account 46000, cost center 110 and project P33 are specified, LN will display an error message because there is no applicable line in rule A. Ledger account 46000, cost center 110, project P11 and region APAC, would be valid input.

Override general rule – I

For ledger account range 45000 - 46000, users must be able to specify any project and region combination. To achieve this, add the following line to rule A:

RuleLineRule TypeFrom Ledger AccountToLedger AccountFrom Cost CenterTo Cost CenterFrom ProjectTo ProjectFrom RegionTo Region
A3Include4500046000ZZZZZZZZZZZZ

 

Override general rule – II

For ledger account range 45000 - 46000, users must be able to specify only project P05 and region EMEA. To achieve this, modify line 1 of rule B:

RuleLineRule TypeFrom Ledger AccountToLedger AccountFrom Cost CenterTo Cost CenterFrom ProjectTo ProjectFrom RegionTo Region
B1Include4500046000100110P05P05EMEAEMEA

 

To achieve the same result by using rule A, define the following lines:

RuleLineRule TypeFrom Ledger AccountToLedger AccountFrom Cost CenterTo Cost CenterFrom ProjectTo ProjectFrom RegionTo Region
A1IncludeZZZZZZZZZP01P10EMEAEMEA
A2IncludeZZZZZZZZZP11P20APACAPAC
A3Exclude4500046000ZZZZP01P04ZZZZ
A4Exclude4500046000ZZZZP06ZZZZ*ZZZZ
B1Include4500046000100110ZZZZZZZZ

 

* Can also be P20.

Override general rule – III

For ledger account range 45000 - 46000, users must be able to specify only project P05 and region APAC. To achieve this, modify both rules A and B:

RuleLineRule TypeFrom Ledger AccountToLedger AccountFrom Cost CenterTo Cost CenterFrom ProjectTo ProjectFrom RegionTo Region
A1IncludeZZZZZZZZZP01P10EMEAEMEA
A2IncludeZZZZZZZZZP11P20APACAPAC
A3Include4500046000ZZZZP05P05APACAPAC
B1Include4500046000100110P05P05APACAPAC

 

If you prefer to not modify rule B, define the following lines:

RuleLineRule TypeFrom Ledger AccountToLedger AccountFrom Cost CenterTo Cost CenterFrom ProjectTo ProjectFrom RegionTo Region
A1IncludeZZZZZZZZZP01P10EMEAEMEA
A2IncludeZZZZZZZZZP11P20APACAPAC
A3Include4500046000ZZZZP05P05APACAPAC
A4Exclude4500046000ZZZZP01P04ZZZZ
A5Exclude4500046000ZZZZP06ZZZZ*ZZZZ
B1Include4500046000100110ZZZZZZZZ

 

* Can also be P20.