Part Methode last_modification für mtime Check
authorG. Richardson <information@kivitendo-premium.de>
Sun, 7 Aug 2016 21:10:07 +0000 (23:10 +0200)
committerG. Richardson <information@kivitendo-premium.de>
Tue, 22 Nov 2016 13:42:49 +0000 (14:42 +0100)
SL/DB/Part.pm

index 7fd35d8..d19ec26 100644 (file)
@@ -130,6 +130,11 @@ sub new_assortment {
   $class->new(%params, part_type => 'assortment');
 }
 
+sub last_modification {
+  my ($self) = @_;
+  return $self->mtime or $self->itime;
+};
+
 sub orphaned {
   my ($self) = @_;
   die 'not an accessor' if @_ > 1;