X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fic.pl;h=fad711ce8ed26a0c9ee469bd2332c5578b1a463e;hb=c184bce36ecd18049541dccaaa38d212fb6170cf;hp=710d1ec0ca0457d200bb9e14b44bac4cd03f268c;hpb=ec2e4394a02c907ca241fa6d87ee43f9a56e6308;p=kivitendo-erp.git
diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl
index 710d1ec0c..fad711ce8 100644
--- a/bin/mozilla/ic.pl
+++ b/bin/mozilla/ic.pl
@@ -1604,11 +1604,11 @@ sub assembly_row {
. $locale->text('Part Number')
. qq||;
$column_header{description} =
- qq|
| . $locale->text('Part Description') . qq| | |;
+ qq|| . $locale->text('Part Description') . qq| | |;
$column_header{lastcost} =
- qq|| . $locale->text('Purchase Price') . qq| | |;
+ qq|| . $locale->text('Purchase Prices') . qq| | |;
$column_header{total} =
- qq|| . $locale->text('Extended') . qq| | |;
+ qq|| . $locale->text('Sale Prices') . qq| | |;
$column_header{bom} = qq|| . $locale->text('BOM') . qq| | |;
$column_header{partsgroup} = qq|| . $locale->text('Group') . qq| | |;
@@ -1632,9 +1632,9 @@ sub assembly_row {
$form->{"partnumber_$i"} =~ s/\"/"/g;
$linetotal =
- $form->round_amount($form->{"sellprice_$i"} * $form->{"qty_$i"} / ($form->{"price_factor_$i"} || 1), 2);
+ $form->round_amount($form->{"sellprice_$i"} * $form->{"qty_$i"} / ($form->{"price_factor_$i"} || 1), 4);
$line_purchase_price =
- $form->round_amount($form->{"lastcost_$i"} * $form->{"qty_$i"} / ($form->{"price_factor_$i"} || 1), 2); #lastcost == purchase_price | ungenaue datenbankfeld-übersetzung
+ $form->round_amount($form->{"lastcost_$i"} * $form->{"qty_$i"} / ($form->{"price_factor_$i"} || 1), 4); #lastcost == purchase_price | ungenaue datenbankfeld-uebersetzung
$form->{assemblytotal} += $linetotal;
$form->{assembly_purchase_price_total} += $line_purchase_price;
@@ -1725,6 +1725,16 @@ sub assembly_row {
}
print qq|
+
+ |
+ | . $locale->text('Totals') . qq| |
+ | . $form->format_amount(\%myconfig, $form->{assembly_purchase_price_total}, 2) .
+ qq| |
+ | . $form->format_amount(\%myconfig, $form->{assemblytotal}, 2) .
+ qq| |
+
+
@@ -1871,7 +1881,8 @@ sub save {
# change/add values for assembly item
map { $form->{"${_}_$i"} = $newform{$_} } qw(partnumber description bin unit weight listprice sellprice inventory_accno income_accno expense_accno price_factor_id);
- $form->{sellprice} += $form->{"sellprice_$i"} * $form->{"qty_$i"};
+ # das ist __voll__ bekloppt, dass so auszurechnen jb 22.5.09
+ #$form->{sellprice} += $form->{"sellprice_$i"} * $form->{"qty_$i"};
$form->{weight} += $form->{"weight_$i"} * $form->{"qty_$i"};
} else {