Adam R. Schobelock
-
2012-04-25
This add the ability to do the following types of dependency checking.
dependencies
dependencies => {
# If cc_no is entered, make cc_type and cc_exp required
"cc_no" => [ qw( cc_type cc_exp ) ],
+
+ # if pay_type eq 'check', require check_no
+ "pay_type" => {
+ check => [ qw( check_no ) ],
+ }
},
This means that when a field is set to a particular value it will require that other fields be out.