POD-Dokumentation
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 15 Jan 2013 10:03:13 +0000 (11:03 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 15 Jan 2013 13:29:27 +0000 (14:29 +0100)
SL/DB/Helper/TransNumberGenerator.pm
SL/DB/Manager/Part.pm

index f7c7793..4b4fe12 100644 (file)
@@ -156,7 +156,7 @@ and return a value. If it fails then it is due to exceptions.
 
 =item C<create_trans_number %params>
 
-Calls and returns </get_next_trans_number> with the parameters
+Calls and returns L</get_next_trans_number> with the parameters
 C<update_defaults = 1> and C<update_record = 1>. C<%params> is passed
 to it as well.
 
index 50219cb..6c781a9 100644 (file)
@@ -65,3 +65,47 @@ SQL
 }
 
 1;
+__END__
+
+=pod
+
+=encoding utf8
+
+=head1 NAME
+
+SL::DB::Manager::Part - RDBO manager for the C<parts> table
+
+=head1 FUNCTIONS
+
+=over 4
+
+=item C<get_ordered_qty @part_ids>
+
+For each of the given part IDs the ordered quantity is
+calculated. This is done by summing over all open purchase orders.
+
+Returns a hash with the part IDs being the keys and the ordered
+quantities being the values.
+
+=item C<type_filter @types>
+
+Constructs a partial filter for matching any of the article types
+given with C<@types>. The returned partial filter is suitable for a
+Rose manager query.
+
+Each type can be either 'C<part>', 'C<service>' or 'C<assembly>'
+(their plurals are recognized as well). If multiple types are given
+then they're combined with C<OR>.
+
+=back
+
+=head1 BUGS
+
+Nothing here yet.
+
+=head1 AUTHOR
+
+Sven Schöling E<lt>s.schoeling@linet-services.deE<gt>,
+Moritz Bunkus E<lt>m.bunkus@linet-services.deE<gt>
+
+=cut