X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fam.pl;h=4a7840281095360464e89bf2afb73817cd186553;hb=0e6197ea79295e1a1232617ee4ed4ae99d8a0640;hp=3cb5ac3d819a28b752c940ff6fa1abc0ce51f4fe;hpb=b65a230d60e86d2c18a3ab7222379905aea5ecd7;p=kivitendo-erp.git diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 3cb5ac3d8..4a7840281 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -1107,6 +1107,7 @@ sub list_business { $form->{title} = $locale->text('Type of Business'); my @column_index = qw(description discount customernumberinit); + push @column_index, 'salesman' if $::vertreter; my %column_header; $column_header{description} = qq|| @@ -1120,6 +1121,10 @@ sub list_business { qq|| . $locale->text('Customernumberinit') . qq||; + $column_header{salesman} = + qq|| + . $locale->text('Representative') + . qq||; $form->header; @@ -1159,6 +1164,7 @@ sub list_business { $column_data{discount} = qq|$discount|; $column_data{customernumberinit} = qq|$ref->{customernumberinit}|; + $column_data{salesman} = '' . ($ref->{salesman} ? $::locale->text('Yes') : $::locale->text('No')) . ''; map { print "$column_data{$_}\n" } @column_index; @@ -1213,6 +1219,18 @@ sub business_header { $form->{discount} = $form->format_amount(\%myconfig, $form->{discount} * 100); + my $salesman_code; + if ($::vertreter) { + $salesman_code = qq| + + | . $locale->text('Representative') . qq| + | . $::cgi->checkbox(-name => "salesman", -value => 1, -label => '', 'checked' => $form->{salesman} ? 1 : 0) . qq| + +|; + } else { + $salesman_code = $::cgi->hidden(-name => 'salesman', -value => $form->{salesman} ? 1 : 0); + } + $form->header; print qq| @@ -1240,6 +1258,7 @@ sub business_header { | . $locale->text('Customernumberinit') . qq| {customernumberinit}> +$salesman_code
@@ -2512,6 +2531,8 @@ sub payment_header { "with discount") . qq|
  • | . $locale->text("<%skonto_amount%> -- The deductible amount") +. qq|
  • +
  • | . $locale->text("<%skonto_in_percent%> -- The discount in percent") . qq|
  • | . $locale->text("<%total%> -- Amount payable") . qq|
  • @@ -2724,7 +2745,7 @@ sub config { } $form->{STYLESHEETS} = []; - foreach my $item (qw(lx-office-erp.css Win2000.css)) { + foreach my $item (qw(lx-office-erp.css Win2000.css Mobile.css)) { push @{ $form->{STYLESHEETS} }, { 'name' => $item, 'value' => $item, @@ -3524,7 +3545,7 @@ sub delete_warehouse { $form->header(); print $form->parse_html_template('am/confirm_delete_warehouse'); - exit 0; + ::end_of_request(); } if (AM->delete_warehouse(\%myconfig, $form)) {