my $self = shift;
my $default_rule = $self->search(
{
branchcode => '*',
branchcode => undef,
categorycode => undef,
itemtype => undef,
rule_name => 'refund',
-