From: Moritz Bunkus Date: Tue, 9 Nov 2010 07:51:55 +0000 (+0100) Subject: Doku-Update X-Git-Tag: release-2.6.3~61^2~7^2~1^2~2^2~83 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=47a963f4da66588e72124424e0e5e58577894eb5;p=kivitendo-erp.git Doku-Update --- diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index 4c3f4633a..c4597a101 100644 --- a/SL/DB/Part.pm +++ b/SL/DB/Part.pm @@ -124,6 +124,8 @@ __END__ =pod +=encoding utf-8 + =head1 NAME SL::DB::Part: Model for the 'parts' table @@ -155,24 +157,30 @@ method for it, but you can construct them explicitly with C, C, and C. A Buchungsgruppe should be supplied in this case, but it will use the default Buchungsgruppe if you don't. -Matching these there are assorted helper methods dealing with type: +Matching these there are assorted helper methods dealing with types, +e.g. L, L, L, L, +L and others. + +=head1 FUNCTIONS + +=over 4 -=head2 new_part PARAMS +=item C -=head2 new_service PARAMS +=item C -=head2 new_assembly PARAMS +=item C Will set the appropriate data fields so that the resulting instance will be of tthe requested type. Since part of the distinction are accounting targets, providing a C is recommended. If none is given the constructor will load a default one and set the accounting targets from it. -=head2 type +=item C Returns the type as a string. Can be one of C, C, C. -=head2 is_type TYPE +=item C Tests if the current object is a part, a service or an assembly. C<$type> must be one of the words 'part', 'service' or @@ -181,17 +189,15 @@ assembly. C<$type> must be one of the words 'part', 'service' or Returns 1 if the requested type matches, 0 if it doesn't and Ces if an unknown C<$type> parameter is encountered. -=head2 is_part +=item C -=head2 is_service +=item C -=head2 is_assembly +=item C -Shorthand for is_type('part') etc. +Shorthand for C etc. -=head1 FUNCTIONS - -=head2 get_sellprice_info %params +=item C Retrieves the C and C for a part under different conditions and returns a hash reference with those two keys. @@ -205,24 +211,27 @@ entry without a country set will be used. If none of the above conditions is met then the information from C<$self> is used. -=head2 get_ordered_qty %params +=item C Retrieves the quantity that has been ordered from a vendor but that has not been delivered yet. Only open purchase orders are considered. -=head2 orphaned +=item C Checks if this articke is used in orders, invoices, delivery orders or assemblies. -=head2 buchungsgruppe BUCHUNGSGRUPPE +=item C Used to set the accounting informations from a L object. Please note, that this is a write only accessor, the original Buchungsgruppe can not be retrieved from an article once set. -=head1 AUTHOR +=back + +=head1 AUTHORS -Moritz Bunkus Em.bunkus@linet-services.deE +Moritz Bunkus Em.bunkus@linet-services.deE, +Sven Schöling Es.schoeling@linet-services.deE =cut