- $check_re->($invoice_recipient_data, 'address_type', qr{^[KS]$});
- $check_re->($invoice_recipient_data, 'name', qr{^.{1,70}$});
- $check_re->($invoice_recipient_data, 'address_row1', qr{^.{0,70}$});
- $check_re->($invoice_recipient_data, 'address_row2', qr{^.{0,70}$});
- $check_re->($invoice_recipient_data, 'countrycode', qr{^[A-Z]{2}$});
+ $group = 'invoice recipient data';
+ $check_re->($group, $invoice_recipient_data, 'address_type', qr{^[KS]$});
+ $check_re->($group, $invoice_recipient_data, 'name', qr{^.{1,70}$});
+ $check_re->($group, $invoice_recipient_data, 'address_row1', qr{^.{0,70}$});
+ $check_re->($group, $invoice_recipient_data, 'address_row2', qr{^.{0,70}$});
+ $check_re->($group, $invoice_recipient_data, 'countrycode', qr{^[A-Z]{2}$});