X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b720e272f739767ad33afffcf8c282c98f97dba1..d4557a8bfab9f122ae19e91a8735e22a4b0c275b:/SL/DB/Part.pm?ds=sidebyside diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index 2a74b74c6..a83e9bd75 100644 --- a/SL/DB/Part.pm +++ b/SL/DB/Part.pm @@ -70,7 +70,7 @@ sub type { if (@_ > 1) { die 'invalid type' unless $type =~ /^(?:part|service|assembly)$/; $self->assembly( $type eq 'assembly' ? 1 : 0); - $self->inventory_accno_id($type ne 'service' ? 1 : undef); + $self->inventory_accno_id($type eq 'part' ? 1 : undef); } return 'assembly' if $self->assembly; @@ -243,7 +243,7 @@ flavours called: These types are sadly represented by data inside the class and cannot be migrated into a flag. To work around this, each C object knows what type -it currently is. Since the type ist data driven, there ist no explicit setting +it currently is. Since the type is data driven, there ist no explicit setting 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. @@ -263,7 +263,7 @@ L and others. =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, +the requested type. Since accounting targets are part of the distinction, providing a C is recommended. If none is given the constructor will load a default one and set the accounting targets from it. @@ -336,12 +336,12 @@ The information retrieved by the function is cached. =item C -Checks if this articke is used in orders, invoices, delivery orders or +Checks if this article is used in orders, invoices, delivery orders or assemblies. =item C -Used to set the accounting informations from a L object. +Used to set the accounting information 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.