projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1663057
)
Part Methode last_modification für mtime Check
author
G. Richardson
<information@kivitendo-premium.de>
Sun, 7 Aug 2016 21:10:07 +0000
(23:10 +0200)
committer
G. Richardson
<information@kivitendo-premium.de>
Tue, 22 Nov 2016 13:42:49 +0000
(14:42 +0100)
SL/DB/Part.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Part.pm
b/SL/DB/Part.pm
index
7fd35d8
..
d19ec26
100644
(file)
--- 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;