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:
e73048f
)
DeliveryOrder: is_type Methode
author
Sven Schöling
<s.schoeling@googlemail.com>
Fri, 10 Dec 2021 12:38:21 +0000
(13:38 +0100)
committer
Jan Büren
<jan@kivitendo.de>
Mon, 14 Feb 2022 14:02:19 +0000
(15:02 +0100)
SL/DB/DeliveryOrder.pm
patch
|
blob
|
history
diff --git
a/SL/DB/DeliveryOrder.pm
b/SL/DB/DeliveryOrder.pm
index
5f6056d
..
1633b1c
100644
(file)
--- a/
SL/DB/DeliveryOrder.pm
+++ b/
SL/DB/DeliveryOrder.pm
@@
-82,6
+82,10
@@
sub type {
goto &order_type;
}
+sub is_type {
+ return shift->type eq shift;
+}
+
sub displayable_type {
my $type = shift->type;