From 6858b66bb7d401245459f5148c2c1ea28f71bfca Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 15 Jan 2013 11:03:13 +0100 Subject: [PATCH] POD-Dokumentation --- SL/DB/Helper/TransNumberGenerator.pm | 2 +- SL/DB/Manager/Part.pm | 44 ++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/SL/DB/Helper/TransNumberGenerator.pm b/SL/DB/Helper/TransNumberGenerator.pm index f7c779305..4b4fe126d 100644 --- a/SL/DB/Helper/TransNumberGenerator.pm +++ b/SL/DB/Helper/TransNumberGenerator.pm @@ -156,7 +156,7 @@ and return a value. If it fails then it is due to exceptions. =item C -Calls and returns with the parameters +Calls and returns L with the parameters C and C. C<%params> is passed to it as well. diff --git a/SL/DB/Manager/Part.pm b/SL/DB/Manager/Part.pm index 50219cb61..6c781a9fe 100644 --- a/SL/DB/Manager/Part.pm +++ b/SL/DB/Manager/Part.pm @@ -65,3 +65,47 @@ SQL } 1; +__END__ + +=pod + +=encoding utf8 + +=head1 NAME + +SL::DB::Manager::Part - RDBO manager for the C table + +=head1 FUNCTIONS + +=over 4 + +=item C + +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 + +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', 'C' or 'C' +(their plurals are recognized as well). If multiple types are given +then they're combined with C. + +=back + +=head1 BUGS + +Nothing here yet. + +=head1 AUTHOR + +Sven Schöling Es.schoeling@linet-services.deE, +Moritz Bunkus Em.bunkus@linet-services.deE + +=cut -- 2.20.1