From: Sven Schöling Date: Fri, 10 Dec 2021 12:38:21 +0000 (+0100) Subject: DeliveryOrder: is_type Methode X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~216^2~38 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1230932ee7208c5a31fa900c9e9d8261bd7338e3;p=kivitendo-erp.git DeliveryOrder: is_type Methode --- 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;