X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fio.pl;h=25427f71d83c8db03f50463fe1d642eec5758dce;hb=f20785168580f2d3587ebb2d06ade189246fd5f3;hp=7d24943241a9ef4661fd2359360effa23951aa6c;hpb=32394d82da684f8fc440ed64b63ab3e50b29509b;p=kivitendo-erp.git diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 7d2494324..25427f71d 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -262,7 +262,7 @@ sub display_row { if ($form->{"id_$i"}) { my $ship_qty = $form->{"ship_$i"} * 1; $ship_qty *= $all_units->{$form->{"partunit_$i"}}->{factor}; - $ship_qty /= $all_units->{$form->{"unit_$i"}}->{factor}; + $ship_qty /= ( $all_units->{$form->{"unit_$i"}}->{factor} || 1 ); $column_data{ship} = $form->format_amount(\%myconfig, $form->round_amount($ship_qty, 2) * 1) . ' ' . $form->{"unit_$i"}; }