X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/f5abed8644dc069876b3e1cca970cb842fd50ffa..6e0fe1dc46a643b80c36b21c4cb62c2f09227f45:/SL/IC.pm diff --git a/SL/IC.pm b/SL/IC.pm index 84e913eb3..2cf7996fb 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -44,6 +44,7 @@ use SL::HTML::Restrict; use SL::TransNumber; use SL::Util qw(trim); use SL::DB; +use Carp; use strict; @@ -1562,7 +1563,7 @@ sub retrieve_accounts { my %accno_by_part = map { $_->{id} => $_ } selectall_hashref_query($form, $dbh, < $part_id) = each %args) { my $ref = $accno_by_part{$part_id} or next; - $ref->{"inventory_accno_id"} = undef unless $ref->{"is_part"}; + $ref->{"inventory_accno_id"} = undef unless $ref->{"part_type"} eq 'part'; my %accounts; for my $type (qw(inventory income expense)) {