epic-s6g
[kivitendo-erp.git] / SL / DB / Bin.pm
index d9d29b4..5d184ae 100644 (file)
@@ -1,13 +1,19 @@
-# This file has been auto-generated only because it didn't exist.
-# Feel free to modify it at will; it will not be overwritten automatically.
-
 package SL::DB::Bin;
 
 use strict;
 
 use SL::DB::MetaSetup::Bin;
 
-# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
+__PACKAGE__->meta->initialize;
+
 __PACKAGE__->meta->make_manager_class;
 
+sub full_description {
+  my ($self) = @_;
+
+  $self->warehouse
+    ? $self->warehouse->description . "/" . $self->description
+    : $self->description
+}
+
 1;