5 [% INCLUDE 'doc-head-open.inc' %]
12 [% END %] › [% END %]
13 [% IF delete_confirm %]
14 Confirm deletion of account › [% END %]
15 EDI accounts › Administration › Koha
17 [% INCLUDE 'doc-head-close.inc' %]
19 <body id="admin_edi_acct" class="admin">
20 [% WRAPPER 'header.inc' %]
21 [% INCLUDE 'prefs-admin-search.inc' %]
24 [% WRAPPER 'sub-header.inc' %]
25 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
28 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
31 <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
36 <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a>
40 <a href="#" aria-current="page">
46 <a href="#" aria-current="page">
52 [% ELSIF delete_confirm %]
54 <a href="/cgi-bin/koha/admin/edi_accounts.pl">EDI accounts</a>
57 <a href="#" aria-current="page">
58 Confirm deletion of account
64 <a href="#" aria-current="page">
73 <div class="main container-fluid">
75 <div class="col-sm-10 col-sm-push-2">
79 [% UNLESS Koha.Preference('EDIFACT') %]
80 <div class="dialog message">
81 EDIFACT is currently disabled
86 <div id="toolbar" class="btn-toolbar">
87 <a class="btn btn-default" id="newediacct" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form">
88 <i class="fa fa-plus"></i>
95 <form action="/cgi-bin/koha/admin/edi_accounts.pl" name="Actform" method="post">
96 <input type="hidden" name="op" value="save" />
98 <input type="hidden" name="id" value="[% account.id | html %]" />
100 <fieldset class="rows">
113 <label for="vendor_id">Vendor: </label>
114 <select name="vendor_id" id="vendor_id">
115 [% FOREACH vendor IN vendors %]
116 [% IF account.vendor_id == vendor.id %]
117 <option value="[% vendor.id | html %]" selected="selected">[% vendor.name | html %]</option>
119 <option value="[% vendor.id | html %]">[% vendor.name | html %]</option>
126 <label for="plugin">Plugin: </label>
127 <select name="plugin" id="plugin">
128 <option value="">Do not use plugin</option>
129 [% FOREACH plugin IN plugins %]
130 [% IF account.plugin == plugin.class %]
131 <option value="[% plugin.class | html %]" selected="selected">[% plugin.metadata.name | html %]</option>
133 <option value="[% plugin.class | html %]">[% plugin.metadata.name | html %]</option>
139 <input type="hidden" name="plugin" value="" />
142 <label for="description">Description: </label>
143 <input type="text" name="description" id="description" size="20" value="[% account.description | html %]" />
146 [% transport_types = [ 'FTP', 'SFTP', 'FILE' ] %]
147 <label for="transport">Transport: </label>
148 <select name="transport" title="valid types of transport are FTP and SFTP"
150 [% FOREACH transport_type IN transport_types %]
151 [% IF transport_type == account.transport %]
152 <option value="[% transport_type | html %]" selected="selected">[% transport_type | html %]</option>
154 <option value="[% transport_type | html %]">[% transport_type | html %]</option>
160 <label for="host">Remote host: </label>
161 <input type="text" name="host" id="host" size="20" maxlength="40" value="[% account.host | html %]" />
164 <label for="username">Username: </label>
165 <input type="text" name="username" id="username" size="20" maxlength="40" value="[% account.username | html %]" />
168 <label for="password">Password: </label>
169 <input type="text" name="password" id="password" size="20" maxlength="40" value="[% account.password | html %]" />
172 <label for="download_directory">Download directory: </label>
173 <input type="text" name="download_directory" id="download_directory" size="20" value="[% account.download_directory | html %]" />
174 <div class="hint">The download directory specifies the directory on the ftp site from which quotes and invoices are downloaded.</div>
177 <label for="upload_directory">Upload directory: </label>
178 <input type="text" name="upload_directory" id="upload_directory" size="20" value="[% account.upload_directory | html %]" />
179 <div class="hint">The upload directory specifies the directory on the ftp site to which orders are uploaded.</div>
182 <label for="id_code_qualifier">Qualifier:</label>
183 <select name="id_code_qualifier" id="id_code_qualifier">
184 [% FOREACH qualifier IN code_qualifiers %]
185 [% IF qualifier.code == account.id_code_qualifier %]
186 <option value="[% qualifier.code | html %]" selected="selected">
187 [% qualifier.description | html %] ([% qualifier.code | html %])
190 <option value="[% qualifier.code | html %]">
191 [% qualifier.description | html %] ([% qualifier.code | html %])
198 <label for="san">SAN: </label>
199 <input type="text" name="san" id="san" size="20" maxlength="20" value="[% account.san | html %]" />
202 <label for="standard">Standard:</label>
203 <select name="standard" id="standard">
204 [% FOREACH standard IN standards %]
205 [% IF standard == 'BIC' %]
206 [% SET description = 'BiC' %]
208 [% SET description = 'EDItEUR' %]
210 [% IF standard == account.standard %]
211 <option value="[% standard | html %]" selected="selected">
212 [% description | html %]
215 <option value="[% standard | html %]">
216 [% description | html %]
223 <label for="quotes_enabled">Quotes enabled: </label>
224 [% IF account.quotes_enabled %]
225 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="1" checked="checked" />
227 <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="1" />
231 <label for="orders_enabled">Orders enabled: </label>
232 [% IF account.orders_enabled %]
233 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="1" checked="checked" />
235 <input type="checkbox" name="orders_enabled" id="orders_enabled" value="1" />
239 <label for="invoices_enabled">Invoices enabled: </label>
240 [% IF account.invoices_enabled %]
241 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="1" checked="checked" />
243 <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="1" />
247 <label for="responses_enabled">Responses enabled: </label>
248 [% IF account.responses_enabled %]
249 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="1" checked="checked" />
251 <input type="checkbox" name="responses_enabled" id="responses_enabled" value="1" />
255 <label for="auto_orders">Automatic ordering: </label>
256 [% IF account.auto_orders %]
257 <input type="checkbox" name="auto_orders" id="auto_orders" value="1" checked="checked" />
259 <input type="checkbox" name="auto_orders" id="auto_orders" value="1" />
262 With automatic ordering quotes generate orders without staff intervention.
268 <fieldset class="action">
269 <input type="submit" class="btn btn-primary" value="Submit" />
270 <a href="/cgi-bin/koha/admin/edi_accounts.pl" class="cancel">Cancel</a>
275 [% IF delete_confirm %]
276 <div class="dialog alert">
277 <h1>Delete this account?</h1>
281 <td>[% account.vendor.name | html %]</td>
285 <td>[% account.description | html %]</td>
289 <td>[% account.san | html %]</td>
292 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="post">
295 <input type="hidden" name="op" value="delete_confirmed" />
296 <input type="hidden" name="id" value="[% account.id | html %]" />
297 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button>
299 <form action="/cgi-bin/koha/admin/edi_accounts.pl" method="get">
300 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
305 [% IF ( ediaccounts ) %]
306 <h1>Vendor EDI accounts</h1>
307 <div class="page-section">
317 <th>Download directory</th>
318 <th>Upload directory</th>
326 <th>Auto ordering</th>
327 <th class="noExport">Actions</th>
329 [% FOREACH account IN ediaccounts %]
331 <td>[% account.id | html %]</td>
332 <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% account.vendor_id | uri %]">[% account.vendor.name | html %]</a></td>
333 <td>[% account.description | html %]</td>
334 <td>[% account.transport | html %]</td>
335 <td>[% account.host | html %]</td>
336 <td>[% account.username | html %]</td>
337 <td>[% IF account.password %]*****[% END %]</td>
338 <td>[% account.download_directory | html %]</td>
339 <td>[% account.upload_directory | html %]</td>
341 [% FOREACH qualifier IN code_qualifiers %]
342 [% IF qualifier.code == account.id_code_qualifier %]
343 [% qualifier.description | html %]
346 ([% account.id_code_qualifier | html %])
348 <td>[% account.san | html %]</td>
349 <td>[% IF account.standard == 'BIC' %]BiC[% ELSE %]EDItEUR[% END %]</td>
350 [% IF account.quotes_enabled %]
355 [% IF account.orders_enabled %]
360 [% IF account.invoices_enabled %]
365 [% IF account.responses_enabled %]
370 [% IF account.auto_orders %]
376 <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/edi_accounts.pl?op=acct_form&id=[% account.id | html %]"><i class="fa fa-pencil"></i> Edit</a> <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/edi_accounts.pl?op=delete_confirm&id=[% account.id | html %]"><i class="fa fa-trash"></i> Delete</a>
381 </div> <!-- /.page-section -->
383 <div class="dialog message">
384 There are no EDI accounts.
390 </div> <!-- /.col-sm-10.col-sm-push-2 -->
392 <div class="col-sm-2 col-sm-pull-10">
394 [% INCLUDE 'admin-menu.inc' %]
396 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
397 </div> <!-- /.row -->
399 [% MACRO jsinclude BLOCK %]
400 [% Asset.js("js/admin-menu.js") | $raw %]
402 [% INCLUDE 'intranet-bottom.inc' %]