We have a requirement in FICA clearing rules to apply the payment against unpaid security deposit irrespective of the due date. I have the below rule configured as the first step in my clearing variant.
Grouping String: 019 (statistical indicator); Grp Rule: 3; Char Value: H (security deposits); AIRI: 4; Group: 019
Sort characteristic: 010 (Due date); Rank: 3; Char value: H; Rank: 1
I have maintained the corresponding clearing variant in all the clearing types (account maintenance, automatic clearing, and incoming payments); Clearing rule is working perfectly during payments, however for account maintenance and automatic clearing it's not applying the credits against security deposits first. I still see that the items are cleared only based on due date;
Am I missing something here? Please share your suggestions.