diff options
author | ivan <ivan> | 2007-12-01 01:32:07 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-12-01 01:32:07 +0000 |
commit | c30c90514da7746fc2ead8452390a72d5ff14d74 (patch) | |
tree | 942a881e04330a68969a801d9f572fd485cae39f | |
parent | 9c05e27304d8d1ed9036bfcf0d6a6708706b7f5b (diff) |
add h_date method too
-rw-r--r-- | FS/FS/Record.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 7468cca07..5a23e4484 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -2074,6 +2074,19 @@ sub h_search { } +=item h_date ACTION + +Given an ACTION, either "insert", or "delete", returns the timestamp of the +appropriate history record corresponding to this record, if any. + +=cut + +sub h_date { + my($self, $action) = @_; + my $h = $self->h_search($action); + $h ? $h->history_date : ''; +} + =back =head1 SUBROUTINES |