X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/db8722a48f574db5bc34b6682a54af7ae6f0181c..b062ede832fa480d74d19290a11deb82ee8de41d:/SL/IC.pm diff --git a/SL/IC.pm b/SL/IC.pm index 67fbba09c..9b224d62e 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -1077,6 +1077,13 @@ sub all_parts { map { $_->{onhand} *= 1 } @{ $form->{parts} }; + # fix qty sign in ap. those are saved negative + if ($bsooqr && $form->{bought}) { + for my $row (@{ $form->{parts} }) { + $row->{qty} *= -1 if $row->{module} eq 'ir'; + } + } + # post processing for assembly parts lists (bom) # for each part get the assembly parts and add them into the partlist. my @assemblies;