View | Details | Raw Unified | Return to bug 7736
Collapse All | Expand All

(-)a/admin/edi_accounts.pl (-21 / +21 lines)
Lines 51-77 if ( $op eq 'acct_form' ) { Link Here
51
        }
51
        }
52
    );
52
    );
53
    $template->param( vendors => \@vendors );
53
    $template->param( vendors => \@vendors );
54
    $template->param(
55
        code_qualifiers => [
56
            {
57
                code        => '14',
58
                description => 'EAN International',
59
            },
60
            {
61
                code        => '31B',
62
                description => 'US SAN Agency',
63
            },
64
            {
65
                code        => '91',
66
                description => 'Assigned by supplier',
67
            },
68
            {
69
                code        => '92',
70
                description => 'Assigned by buyer',
71
            },
72
        ]
73
    );
74
75
}
54
}
76
elsif ( $op eq 'delete_confirm' ) {
55
elsif ( $op eq 'delete_confirm' ) {
77
    show_account();
56
    show_account();
Lines 129-134 else { Link Here
129
    $template->param( ediaccounts => \@ediaccounts );
108
    $template->param( ediaccounts => \@ediaccounts );
130
}
109
}
131
110
111
$template->param(
112
    code_qualifiers => [
113
        {
114
            code        => '14',
115
            description => 'EAN International',
116
        },
117
        {
118
            code        => '31B',
119
            description => 'US SAN Agency',
120
        },
121
        {
122
            code        => '91',
123
            description => 'Assigned by supplier',
124
        },
125
        {
126
            code        => '92',
127
            description => 'Assigned by buyer',
128
        },
129
    ]
130
);
131
132
output_html_with_http_headers( $input, $cookie, $template->output );
132
output_html_with_http_headers( $input, $cookie, $template->output );
133
133
134
sub get_account {
134
sub get_account {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt (-7 / +13 lines)
Lines 127-137 Link Here
127
     [% FOREACH qualifier IN code_qualifiers %]
127
     [% FOREACH qualifier IN code_qualifiers %]
128
        [% IF qualifier.code == account.id_code_qualifier %]
128
        [% IF qualifier.code == account.id_code_qualifier %]
129
           <option value="[% qualifier.code %]" selected="selected">
129
           <option value="[% qualifier.code %]" selected="selected">
130
               [% qualifier.description %]
130
               [% qualifier.description %] ([% qualifier.code %])
131
           </option>
131
           </option>
132
        [% ELSE %]
132
        [% ELSE %]
133
           <option value="[% qualifier.code %]">
133
           <option value="[% qualifier.code %]">
134
              [% qualifier.description %]
134
              [% qualifier.description %] ([% qualifier.code %])
135
           </option>
135
           </option>
136
        [% END %]
136
        [% END %]
137
     [% END %]
137
     [% END %]
Lines 174-180 Link Here
174
[% END %]
174
[% END %]
175
  </li>
175
  </li>
176
  <li>
176
  <li>
177
     <label for="auto_orders">Automatic ordring (Quotes generate orders without staff intervention): </label>
177
     <label for="auto_orders">Automatic ordering (Quotes generate orders without staff intervention): </label>
178
[% IF account.auto_orders %]
178
[% IF account.auto_orders %]
179
     <input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" checked />
179
     <input type="checkbox" name="auto_orders" id="auto_orders" value="[% account.auto_orders %]" checked />
180
[% ELSE %]
180
[% ELSE %]
Lines 233-240 Link Here
233
       <th>Password</th>
233
       <th>Password</th>
234
       <th>Download Directory</th>
234
       <th>Download Directory</th>
235
       <th>Upload Directory</th>
235
       <th>Upload Directory</th>
236
       <th>id_code_type</th>
236
       <th>Qualifier</th>
237
       <th>id_code</th>
237
       <th>SAN</th>
238
       <th>Quotes</th>
238
       <th>Quotes</th>
239
       <th>Orders</th>
239
       <th>Orders</th>
240
       <th>Invoices</th>
240
       <th>Invoices</th>
Lines 255-261 Link Here
255
      <td>[% IF account.password %]xxxxx[% END %]</td>
255
      <td>[% IF account.password %]xxxxx[% END %]</td>
256
      <td>[% account.download_directory %]</td>
256
      <td>[% account.download_directory %]</td>
257
      <td>[% account.upload_directory %]</td>
257
      <td>[% account.upload_directory %]</td>
258
      <td>[% account.id_code_qualifier %]</td>
258
      <td>
259
         [% FOREACH qualifier IN code_qualifiers %]
260
            [% IF qualifier.code == account.id_code_qualifier %]
261
                   [% qualifier.description %]
262
            [% END %]
263
         [% END %]
264
         ([% account.id_code_qualifier %])
265
     </td>
259
      <td>[% account.san %]</td>
266
      <td>[% account.san %]</td>
260
      [% IF account.quotes_enabled %]
267
      [% IF account.quotes_enabled %]
261
         <td>Y</td>
268
         <td>Y</td>
262
- 

Return to bug 7736