From 1230932ee7208c5a31fa900c9e9d8261bd7338e3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 10 Dec 2021 13:38:21 +0100 Subject: [PATCH] DeliveryOrder: is_type Methode --- SL/DB/DeliveryOrder.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SL/DB/DeliveryOrder.pm b/SL/DB/DeliveryOrder.pm index 5f6056dbc..1633b1c94 100644 --- 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; -- 2.20.1