@@ -, +, @@ spelling --- admin/edi_accounts.pl | 42 +++++++++++----------- .../prog/en/modules/admin/edi_accounts.tt | 19 ++++++---- 2 files changed, 34 insertions(+), 27 deletions(-) --- a/admin/edi_accounts.pl +++ a/admin/edi_accounts.pl @@ -51,27 +51,6 @@ if ( $op eq 'acct_form' ) { } ); $template->param( vendors => \@vendors ); - $template->param( - code_qualifiers => [ - { - code => '14', - description => 'EAN International', - }, - { - code => '31B', - description => 'US SAN Agency', - }, - { - code => '91', - description => 'Assigned by supplier', - }, - { - code => '92', - description => 'Assigned by buyer', - }, - ] - ); - } elsif ( $op eq 'delete_confirm' ) { show_account(); @@ -129,6 +108,27 @@ else { $template->param( ediaccounts => \@ediaccounts ); } +$template->param( + code_qualifiers => [ + { + code => '14', + description => 'EAN International', + }, + { + code => '31B', + description => 'US SAN Agency', + }, + { + code => '91', + description => 'Assigned by supplier', + }, + { + code => '92', + description => 'Assigned by buyer', + }, + ] +); + output_html_with_http_headers( $input, $cookie, $template->output ); sub get_account { --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt @@ -127,11 +127,11 @@ [% FOREACH qualifier IN code_qualifiers %] [% IF qualifier.code == account.id_code_qualifier %] [% ELSE %] [% END %] [% END %] @@ -174,7 +174,7 @@ [% END %]
  • - + [% IF account.auto_orders %] [% ELSE %] @@ -233,8 +233,8 @@ Password Download Directory Upload Directory - id_code_type - id_code + Qualifier + SAN Quotes Orders Invoices @@ -255,7 +255,14 @@ [% IF account.password %]xxxxx[% END %] [% account.download_directory %] [% account.upload_directory %] - [% account.id_code_qualifier %] + + [% FOREACH qualifier IN code_qualifiers %] + [% IF qualifier.code == account.id_code_qualifier %] + [% qualifier.description %] + [% END %] + [% END %] + ([% account.id_code_qualifier %]) + [% account.san %] [% IF account.quotes_enabled %] Y --