X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/734b356deb35edabe16cf67517b3064fd32a7740..cf00195c32d005615b00a67568a19be3fec41817:/SL/DB/Part.pm diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index 57f0f31ab..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;