From: G. Richardson Date: Sun, 7 Aug 2016 21:10:07 +0000 (+0200) Subject: Part Methode last_modification für mtime Check X-Git-Tag: release-3.5.4~1894 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=3c28eab67faddeb0500ab74f307bbbdf50f9d1d3;p=kivitendo-erp.git Part Methode last_modification für mtime Check --- diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index 7fd35d80e..d19ec26e4 100644 --- a/SL/DB/Part.pm +++ b/SL/DB/Part.pm @@ -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;