X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fwh.pl;h=3cb1243ca7414898a4ca1deb7042f89ae6dc09fc;hb=b293ff8ad52fc76ba0c44783e3982418114d6b08;hp=8cf3226dba5e41b93093ba6ca96c637f5df55ed7;hpb=db791046bcff820895321c617d66843f4c28aeae;p=kivitendo-erp.git diff --git a/bin/mozilla/wh.pl b/bin/mozilla/wh.pl index 8cf3226db..3cb1243ca 100644 --- a/bin/mozilla/wh.pl +++ b/bin/mozilla/wh.pl @@ -198,9 +198,8 @@ sub transfer_or_removal_prepare_contents { my $all_units = AM->retrieve_units(\%myconfig, $form); foreach (@contents) { - $_->{qty} = $form->format_amount_units('amount' => $_->{qty}, - 'part_unit' => $_->{partunit}, - 'conv_units' => 'convertible'); + $_->{qty} = $form->format_amount(\%myconfig, $_->{qty}) . ' ' . $_->{partunit}; + my $this_unit = $_->{partunit}; if ($all_units->{$_->{partunit}} && ($all_units->{g}->{base_unit} eq $all_units->{$_->{partunit}}->{base_unit})) { @@ -1001,9 +1000,6 @@ sub generate_report { map { $subtotals{$_} += $entry->{$_} } @subtotals_columns; $total_stock_value += $entry->{stock_value} * 1; $entry->{qty} = $form->format_amount(\%myconfig, $entry->{qty}); -# $entry->{qty} = $form->format_amount_units('amount' => $entry->{qty}, -# 'part_unit' => $entry->{partunit}, -# 'conv_units' => 'convertible'); $entry->{stock_value} = $form->format_amount(\%myconfig, $entry->{stock_value} * 1, 2); $entry->{purchase_price} = $form->format_amount(\%myconfig, $entry->{purchase_price} * 1, 2); $entry->{list_price} = $form->format_amount(\%myconfig, $entry->{list_price} * 1, 2); @@ -1016,9 +1012,6 @@ sub generate_report { my $row = { map { $_ => { 'data' => '', 'class' => 'listsubtotal', 'align' => $column_alignment{$_}, } } @columns }; $row->{qty}->{data} = $form->format_amount(\%myconfig, $subtotals{qty}); -# $row->{qty}->{data} = $form->format_amount_units('amount' => $subtotals{qty} * 1, -# 'part_unit' => $entry->{partunit}, -# 'conv_units' => 'convertible'); $row->{stock_value}->{data} = $form->format_amount(\%myconfig, $subtotals{stock_value} * 1, 2); $row->{purchase_price}->{data} = $form->format_amount(\%myconfig, $subtotals{purchase_price} * 1, 2); $row->{list_price}->{data} = $form->format_amount(\%myconfig, $subtotals{list_price} * 1, 2);