Boolesche Funktionen ("is_...") auch boolesche Werte zurückgeben lassen
[kivitendo-erp.git] / SL / DB / Order.pm
index b23e1da..ae5c504 100644 (file)
@@ -69,7 +69,7 @@ sub displayable_type {
 
 sub is_sales {
   croak 'not an accessor' if @_ > 1;
-  return shift->customer_id;
+  return !!shift->customer_id;
 }
 
 sub invoices {