X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fic.pl;h=ec287aa61219f7a58d69c2f42a4b6b99e4f236a0;hb=dbd0ae115bd9a6ba0ede24f9655a29df6bf7dc3b;hp=ebdaba52f894cb45900ae10184a63d5e951aac00;hpb=2e8ce008611246347f9682d81e8fabf015765bf5;p=kivitendo-erp.git diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index ebdaba52f..ec287aa61 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -1145,12 +1145,10 @@ sub generate_report { # special case for lastcost if ($form->{ledgerchecks}){ - # zumindestens für den haken 'gekauft' muss das verhalten - # so sein, das der Verkaufspreis nicht angezeigt - # wird. In der Backend-Funktion all_parts wird nur mit - # price gearbeitet + # ledgerchecks don't know about sellprice or lastcost. they just return a + # price. so rename sellprice to price, and drop lastcost. $column_defs{sellprice}{text} = $locale->text('Price'); - $form->{l_lastcost} = "" + $form->{l_lastcost} = "" } if ($form->{description}) { @@ -1873,7 +1871,7 @@ sub save { $form->{creditremaining} -= $amount; # redo number formatting, because invoice parse them! - map { $form->{"${_}_$i"} = $form->format_amount(\%myconfig, $form->{"${_}_$i"}) } qw(weight listprice sellprice rop); + map { $form->{"${_}_$i"} = $form->format_amount(\%myconfig, $form->{"${_}_$i"}) } qw(weight listprice sellprice lastcost rop); } $form->{"id_$i"} = $parts_id;