DeliveryOrder: is_type Methode
authorSven Schöling <s.schoeling@googlemail.com>
Fri, 10 Dec 2021 12:38:21 +0000 (13:38 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 14 Feb 2022 14:02:19 +0000 (15:02 +0100)
SL/DB/DeliveryOrder.pm

index 5f6056d..1633b1c 100644 (file)
@@ -82,6 +82,10 @@ sub type {
   goto &order_type;
 }
 
+sub is_type {
+  return shift->type eq shift;
+}
+
 sub displayable_type {
   my $type = shift->type;