User defined validation not working while create payment directly.
I want to create the payment(via "Create Payment") only if the selected invoice payment method is "Electronic". Below is my case,
Created a invoice Inv1 with payment method code as "CHECK". Then i created the payment format and PPP. In PPP, i defined the usage rules for payment method to allow to user to select only the "Electronic". Then i defined the user level validation under payment format to select only the payment method as "Electronic".
In user level validation(manage format),
field : Document payment method code
condition :In String Set
Vaidation Text value :Electronic
But when i tried to create the payment(via create payment) , it is still accepting the invoice Inv1 even though i selected all the disbursement account and PPP which is related to Electronic.Inv1 should not be selected and created payment because it's payment method code is "Check"