]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/Bin.pm
Reapply "Form: round_amount precision support"
[kivitendo-erp.git] / SL / DB / Bin.pm
index e5397ef7366b85c81f58e89f6fd1a7dd95586a91..5d184ae9e0be233c162399f67c361931ff9962aa 100644 (file)
@@ -4,6 +4,16 @@ use strict;
 
 use SL::DB::MetaSetup::Bin;
 
+__PACKAGE__->meta->initialize;
+
 __PACKAGE__->meta->make_manager_class;
 
+sub full_description {
+  my ($self) = @_;
+
+  $self->warehouse
+    ? $self->warehouse->description . "/" . $self->description
+    : $self->description
+}
+
 1;