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:
79fe86a
)
Doppelte if-Abfrage entfernt
author
Jan Büren
<jan@kivitendo-premium.de>
Tue, 4 Nov 2014 15:28:41 +0000
(16:28 +0100)
committer
Jan Büren
<jan@kivitendo-premium.de>
Tue, 4 Nov 2014 15:28:41 +0000
(16:28 +0100)
zum Commit von gerade: unnötig zweimal auf $qty zu prüfen
bin/mozilla/do.pl
patch
|
blob
|
history
diff --git
a/bin/mozilla/do.pl
b/bin/mozilla/do.pl
index
d33baa3
..
8f0ea4c
100644
(file)
--- a/
bin/mozilla/do.pl
+++ b/
bin/mozilla/do.pl
@@
-1599,7
+1599,7
@@
sub transfer_in_out_default {
$qty = 0 if (!$::instance_conf->get_transfer_default_services && !defined($part_info_map{$form->{"id_$i"}}->{inventory_accno_id}) && !$part_info_map{$form->{"id_$i"}}->{assembly});
$qty_parts{$form->{"id_$i"}} += $qty;
if ($qty == 0) {
- delete $qty_parts{$form->{"id_$i"}}
if $qty == 0
;
+ delete $qty_parts{$form->{"id_$i"}};
undef $form->{"stock_in_$i"};
}