From: Jan Büren Date: Tue, 22 Jul 2014 16:30:03 +0000 (+0200) Subject: Standardmässiges Ein- und Auslagern von Dienstleistungen per Mandantenkonfiguration... X-Git-Tag: release-3.2.0beta~389 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d98812a8f430bfd298d01b8c47bcad2276e4f051;p=kivitendo-erp.git Standardmässiges Ein- und Auslagern von Dienstleistungen per Mandantenkonfiguration eingestellt --- diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index c16f772d1..55e6cf2fa 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -1591,6 +1591,9 @@ sub transfer_in_out_default { next unless ($form->{"id_$i"}); my $base_unit_factor = $units->{ $part_info_map{$form->{"id_$i"}}->{unit} }->{factor} || 1; my $qty = $form->parse_amount(\%myconfig, $form->{"qty_$i"}) * $units->{$form->{"unit_$i"}}->{factor} / $base_unit_factor; + + # if we do not want to transfer services and this part is a service, set qty to zero + $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;