Revision 6858b66b
Von Moritz Bunkus vor fast 12 Jahren hinzugefügt
SL/DB/Manager/Part.pm | ||
---|---|---|
65 | 65 |
} |
66 | 66 |
|
67 | 67 |
1; |
68 |
__END__ |
|
69 |
|
|
70 |
=pod |
|
71 |
|
|
72 |
=encoding utf8 |
|
73 |
|
|
74 |
=head1 NAME |
|
75 |
|
|
76 |
SL::DB::Manager::Part - RDBO manager for the C<parts> table |
|
77 |
|
|
78 |
=head1 FUNCTIONS |
|
79 |
|
|
80 |
=over 4 |
|
81 |
|
|
82 |
=item C<get_ordered_qty @part_ids> |
|
83 |
|
|
84 |
For each of the given part IDs the ordered quantity is |
|
85 |
calculated. This is done by summing over all open purchase orders. |
|
86 |
|
|
87 |
Returns a hash with the part IDs being the keys and the ordered |
|
88 |
quantities being the values. |
|
89 |
|
|
90 |
=item C<type_filter @types> |
|
91 |
|
|
92 |
Constructs a partial filter for matching any of the article types |
|
93 |
given with C<@types>. The returned partial filter is suitable for a |
|
94 |
Rose manager query. |
|
95 |
|
|
96 |
Each type can be either 'C<part>', 'C<service>' or 'C<assembly>' |
|
97 |
(their plurals are recognized as well). If multiple types are given |
|
98 |
then they're combined with C<OR>. |
|
99 |
|
|
100 |
=back |
|
101 |
|
|
102 |
=head1 BUGS |
|
103 |
|
|
104 |
Nothing here yet. |
|
105 |
|
|
106 |
=head1 AUTHOR |
|
107 |
|
|
108 |
Sven Schöling E<lt>s.schoeling@linet-services.deE<gt>, |
|
109 |
Moritz Bunkus E<lt>m.bunkus@linet-services.deE<gt> |
|
110 |
|
|
111 |
=cut |
Auch abrufbar als: Unified diff
POD-Dokumentation