X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fam.pl;h=5dfb72f00050e05016fb242d485de8afb1e6bb5f;hb=1df2efffbb760f0c7ad5e32e40807beadc227b80;hp=bcf934ed1ac1fc624df7dd9553d559caa94eb122;hpb=a99b261f6a4a4b1988ce2e0ad4c27ed579378cb9;p=kivitendo-erp.git
diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl
index bcf934ed1..5dfb72f00 100644
--- a/bin/mozilla/am.pl
+++ b/bin/mozilla/am.pl
@@ -1111,7 +1111,7 @@ sub list_business {
$form->{title} = $locale->text('Type of Business');
my @column_index = qw(description discount customernumberinit);
- push @column_index, 'salesman' if $::lx_office_conf{system}->{vertreter};
+ push @column_index, 'salesman' if $::lx_office_conf{features}->{vertreter};
my %column_header;
$column_header{description} =
qq|
|
@@ -1224,7 +1224,7 @@ sub business_header {
$form->format_amount(\%myconfig, $form->{discount} * 100);
my $salesman_code;
- if ($::lx_office_conf{system}->{vertreter}) {
+ if ($::lx_office_conf{features}->{vertreter}) {
$salesman_code = qq|
|
| . $locale->text('Representative') . qq| |
@@ -2018,369 +2018,6 @@ sub swap_buchungsgruppen {
$main::lxdebug->leave_sub();
}
-sub add_payment {
- $main::lxdebug->enter_sub();
-
- my $form = $main::form;
- my %myconfig = %main::myconfig;
-
- $main::auth->assert('config');
-
- $form->{title} = "Add";
-
- $form->{callback} = "am.pl?action=add_payment" unless $form->{callback};
-
- $form->{terms_netto} = 0;
- $form->{terms_skonto} = 0;
- $form->{percent_skonto} = 0;
- my @languages = AM->language(\%myconfig, $form, 1);
- map({ $_->{"language"} = $_->{"description"};
- $_->{"language_id"} = $_->{"id"}; } @languages);
- $form->{"TRANSLATION"} = \@languages;
- &payment_header;
- &form_footer;
-
- $main::lxdebug->leave_sub();
-}
-
-sub edit_payment {
- $main::lxdebug->enter_sub();
-
- my $form = $main::form;
- my %myconfig = %main::myconfig;
-
- $main::auth->assert('config');
-
- $form->{title} = "Edit";
-
- AM->get_payment(\%myconfig, $form);
- $form->{percent_skonto} =
- $form->format_amount(\%myconfig, $form->{percent_skonto} * 100);
-
- &payment_header;
-
- $form->{orphaned} = 1;
- &form_footer;
-
- $main::lxdebug->leave_sub();
-}
-
-sub list_payment {
- $main::lxdebug->enter_sub();
-
- my $form = $main::form;
- my %myconfig = %main::myconfig;
- my $locale = $main::locale;
-
- $main::auth->assert('config');
-
- AM->payment(\%myconfig, \%$form);
-
- $form->{callback} = build_std_url("action=list_payment");
-
- my $callback = $form->escape($form->{callback});
-
- $form->{title} = $locale->text('Payment Terms');
-
- my @column_index = qw(up down description description_long terms_netto
- terms_skonto percent_skonto);
- my %column_header;
- $column_header{up} =
- qq||
- . qq||
- . qq| | |;
- $column_header{down} =
- qq||
- . qq||
- . qq| | |;
- $column_header{description} =
- qq||
- . $locale->text('Description')
- . qq| | |;
- $column_header{description_long} =
- qq||
- . $locale->text('Long Description')
- . qq| | |;
- $column_header{terms_netto} =
- qq||
- . $locale->text('Netto Terms')
- . qq| | |;
- $column_header{terms_skonto} =
- qq||
- . $locale->text('Skonto Terms')
- . qq| | |;
- $column_header{percent_skonto} =
- qq||
- . $locale->text('Skonto')
- . qq| % | |;
-
- $form->header;
-
- print qq|
-
-
-
-
- $form->{title} |
-
-
-
-
-
-
-|;
-
- map { print "$column_header{$_}\n" } @column_index;
-
- print qq|
-
-|;
-
- my $swap_link = build_std_url("action=swap_payment_terms");
-
- my $row = 0;
- my ($i, %column_data);
- foreach my $ref (@{ $form->{ALL} }) {
-
- $i++;
- $i %= 2;
-
- print qq|
-
-|;
-
- if ($row) {
- my $pref = $form->{ALL}->[$row - 1];
- $column_data{up} =
- qq|| .
- qq|| .
- qq|| .
- qq| | |;
- } else {
- $column_data{up} = qq| | |;
- }
-
- if ($row == (scalar(@{ $form->{ALL} }) - 1)) {
- $column_data{down} = qq| | |;
- } else {
- my $nref = $form->{ALL}->[$row + 1];
- $column_data{down} =
- qq|| .
- qq|| .
- qq|| .
- qq| | |;
- }
-
- $column_data{description} =
- qq|{id}", "callback=$callback") .
- qq|">| . H($ref->{description}) . qq| | |;
- $column_data{description_long} =
- qq|| . H($ref->{description_long}) . qq| | |;
- $column_data{terms_netto} =
- qq|$ref->{terms_netto} | |;
- $column_data{terms_skonto} =
- qq|$ref->{terms_skonto} | |;
- $column_data{percent_skonto} =
- qq|| .
- $form->format_amount(\%myconfig, $ref->{percent_skonto} * 100) .
- qq|% | |;
- map { print "$column_data{$_}\n" } @column_index;
-
- print qq|
-
-|;
- $row++;
- }
-
- print qq|
-
- |
-
-
-
|
-
-
-
-
-
-
-
-