projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83b3eda
)
Warensuche: Menge in Einkaufsrechnungen positiv anzeigen
author
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 10 Jan 2012 12:28:39 +0000
(13:28 +0100)
committer
Wulf
<wulf@coulmann.de>
Tue, 10 Jan 2012 16:09:14 +0000
(17:09 +0100)
Teilfix zu Bug 1549.
SL/IC.pm
patch
|
blob
|
history
diff --git
a/SL/IC.pm
b/SL/IC.pm
index
67fbba0
..
9b224d6
100644
(file)
--- 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;