+ my $field = $self->option('field');
+ if ( $field =~ /^orig_(\w+)$/ ) {
+ # then find the package's oldest ancestor and compare to that
+ $field = $1;
+ while ($cust_pkg->change_pkgnum) {
+ $cust_pkg = $cust_pkg->old_cust_pkg;
+ }
+ }
+
+ my $pkg_date = $cust_pkg->get( $field );