X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/ffd3148f9aed8cd1d8bd0f3854bded3d28fe2a21..82a9544a39aba6a691653c379c92b390c0733edb:/bin/mozilla/io.pl
diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl
index 19f8113be..2c44d60c1 100644
--- a/bin/mozilla/io.pl
+++ b/bin/mozilla/io.pl
@@ -91,6 +91,11 @@ sub display_row {
$lxdebug->enter_sub();
my $numrows = shift;
+ my $is_sales =
+ (substr($form->{type}, 0, 6) eq "sales_")
+ || (($form->{type} eq "invoice") && ($form->{script} eq "is.pl"))
+ || ($form->{type} eq 'credit_note');
+
if ($lizenzen && $form->{vc} eq "customer") {
if ($form->{type} =~ /sales_order/) {
@column_index = (runningnumber, partnumber, description, ship, qty);
@@ -525,10 +530,14 @@ sub display_row {
|.$locale->text('Subtotal').qq|
|;
+ if ($form->{"id_$i"} && $is_sales) {
+ print qq|
+ ${marge_font_start}| . $locale->text('Ertrag') . qq| $form->{"marge_absolut_$i"} $form->{"marge_percent_$i"} % ${marge_font_end}
+ | . $locale->text('LP') . qq| | . $form->format_amount(\%myconfig, $form->{"listprice_$i"}, 2) . qq|
+ | . $locale->text('EK') . qq| | . $form->format_amount(\%myconfig, $form->{"lastcost_$i"}, 2);
+ }
+
print qq|
- ${marge_font_start}|.$locale->text('Ertrag').qq| $form->{"marge_absolut_$i"} $form->{"marge_percent_$i"} % ${marge_font_end}
- |.$locale->text('LP').qq| |.$form->format_amount(\%myconfig,$form->{"listprice_$i"},2).qq|
- |.$locale->text('EK').qq| |.$form->format_amount(\%myconfig,$form->{"lastcost_$i"},2).qq|
|;