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

(-)a/admin/columns_settings.yml (+48 lines)
Lines 372-377 modules: Link Here
372
              cannot_be_toggled: 1
372
              cannot_be_toggled: 1
373
              cannot_be_modified: 1
373
              cannot_be_modified: 1
374
374
375
    edi_accounts:
376
      edi_accounts_table:
377
        default_display_length: 20
378
        default_sort_order: 1
379
        columns:
380
            -
381
              columnname: id
382
            -
383
              columnname: vendor
384
            -
385
              columnname: description
386
            -
387
              columnname: transport
388
            -
389
              columnname: remote_host
390
            -
391
              columnname: username
392
            -
393
              columnname: password
394
            -
395
              columnname: upload_port
396
            -
397
              columnname: download_port
398
            -
399
              columnname: download_directory
400
            -
401
              columnname: upload_directory
402
            -
403
              columnname: qualifier
404
            -
405
              columnname: san
406
            -
407
              columnname: standard
408
            -
409
              columnname: quotes
410
            -
411
              columnname: orders
412
            -
413
              columnname: invoices
414
            -
415
              columnname: responses
416
            -
417
              columnname: auto_ordering
418
            -
419
              columnname: actions
420
              cannot_be_toggled: 1
421
              cannot_be_modified: 1
422
375
    itemtypes:
423
    itemtypes:
376
      table_item_type:
424
      table_item_type:
377
        default_display_length: 10
425
        default_display_length: 10
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt (-76 / +108 lines)
Lines 1-6 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE Asset %]
3
[% USE Asset %]
4
[% USE TablesSettings %]
4
[% PROCESS 'i18n.inc' %]
5
[% PROCESS 'i18n.inc' %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
Lines 293-375 Link Here
293
        [% IF ( ediaccounts ) %]
294
        [% IF ( ediaccounts ) %]
294
            <h1>EDI accounts</h1>
295
            <h1>EDI accounts</h1>
295
            <div class="page-section">
296
            <div class="page-section">
296
                <table>
297
                <table id="edi_accounts_table">
297
                    <tr>
298
                    <thead>
298
                        <th>ID</th>
299
                        <th>Vendor</th>
300
                        <th>Description</th>
301
                        <th>Transport</th>
302
                        <th>Remote host</th>
303
                        <th>Username</th>
304
                        <th>Password</th>
305
                        <th>Upload port</th>
306
                        <th>Download port</th>
307
                        <th>Download directory</th>
308
                        <th>Upload directory</th>
309
                        <th>Qualifier</th>
310
                        <th>SAN</th>
311
                        <th>Standard</th>
312
                        <th>[% tp('EDIFACT message QUOTE', 'Quotes') | html %]</th>
313
                        <th>Orders</th>
314
                        <th>Invoices</th>
315
                        <th>Responses</th>
316
                        <th>Auto ordering</th>
317
                        <th class="no-export">Actions</th>
318
                    </tr>
319
                    [% FOREACH account IN ediaccounts %]
320
                        <tr>
299
                        <tr>
321
                            <td>[% account.id | html %]</td>
300
                            <th>ID</th>
322
                            <td><a href="/cgi-bin/koha/acquisition/vendors/[% account.vendor_id | uri %]">[% account.vendor.name | html %]</a></td>
301
                            <th>Vendor</th>
323
                            <td>[% account.description | html %]</td>
302
                            <th>Description</th>
324
                            <td>[% account.transport | html %]</td>
303
                            <th>Transport</th>
325
                            <td>[% account.host | html %]</td>
304
                            <th>Remote host</th>
326
                            <td>[% account.username | html %]</td>
305
                            <th>Username</th>
327
                            <td>[% IF account.password %]*****[% END %]</td>
306
                            <th>Password</th>
328
                            <td>[% account.upload_port | html %]</td>
307
                            <th>Upload port</th>
329
                            <td>[% account.download_port | html %]</td>
308
                            <th>Download port</th>
330
                            <td>[% account.download_directory | html %]</td>
309
                            <th>Download directory</th>
331
                            <td>[% account.upload_directory | html %]</td>
310
                            <th>Upload directory</th>
332
                            <td>
311
                            <th>Qualifier</th>
333
                                [% FOREACH qualifier IN code_qualifiers %]
312
                            <th>SAN</th>
334
                                    [% IF qualifier.code == account.id_code_qualifier %]
313
                            <th>Standard</th>
335
                                        [% qualifier.description | html %]
314
                            <th>[% tp('EDIFACT message QUOTE', 'Quotes') | html %]</th>
336
                                    [% END %]
315
                            <th>Orders</th>
337
                                [% END %]
316
                            <th>Invoices</th>
338
                                ([% account.id_code_qualifier | html %])
317
                            <th>Responses</th>
339
                            </td>
318
                            <th>Auto ordering</th>
340
                            <td>[% account.san | html %]</td>
319
                            <th class="no-sort no-export">Actions</th>
341
                            <td>[% IF account.standard == 'BIC' %]BiC[% ELSE %]EDItEUR[% END %]</td>
342
                            [% IF account.quotes_enabled %]
343
                                <td>Yes</td>
344
                            [% ELSE %]
345
                                <td>No</td>
346
                            [% END %]
347
                            [% IF account.orders_enabled %]
348
                                <td>Yes</td>
349
                            [% ELSE %]
350
                                <td>No</td>
351
                            [% END %]
352
                            [% IF account.invoices_enabled %]
353
                                <td>Yes</td>
354
                            [% ELSE %]
355
                                <td>No</td>
356
                            [% END %]
357
                            [% IF account.responses_enabled %]
358
                                <td>Yes</td>
359
                            [% ELSE %]
360
                                <td>No</td>
361
                            [% END %]
362
                            [% IF account.auto_orders %]
363
                                <td>Yes</td>
364
                            [% ELSE %]
365
                                <td>No</td>
366
                            [% END %]
367
                            <td class="actions">
368
                                <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-solid fa-pencil" aria-hidden="true"></i> Edit</a>
369
                                <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-can"></i> Delete</a>
370
                            </td>
371
                        </tr>
320
                        </tr>
372
                    [% END %]
321
                    </thead>
322
                    <tbody>
323
                        [% FOREACH account IN ediaccounts %]
324
                            <tr>
325
                                <td>[% account.id | html %]</td>
326
                                <td><a href="/cgi-bin/koha/acquisition/vendors/[% account.vendor_id | uri %]">[% account.vendor.name | html %]</a></td>
327
                                <td>[% account.description | html %]</td>
328
                                <td>[% account.transport | html %]</td>
329
                                <td>[% account.host | html %]</td>
330
                                <td>[% account.username | html %]</td>
331
                                <td>[% IF account.password %]*****[% END %]</td>
332
                                <td>[% account.upload_port | html %]</td>
333
                                <td>[% account.download_port | html %]</td>
334
                                <td>[% account.download_directory | html %]</td>
335
                                <td>[% account.upload_directory | html %]</td>
336
                                <td>
337
                                    [% FOREACH qualifier IN code_qualifiers %]
338
                                        [% IF qualifier.code == account.id_code_qualifier %]
339
                                            [% qualifier.description | html %]
340
                                        [% END %]
341
                                    [% END %]
342
                                    ([% account.id_code_qualifier | html %])
343
                                </td>
344
                                <td>[% account.san | html %]</td>
345
                                <td>
346
                                    [% IF account.standard == 'BIC' %]
347
                                        BiC
348
                                    [% ELSE %]
349
                                        EDItEUR
350
                                    [% END %]
351
                                </td>
352
                                <td>
353
                                    [% IF account.quotes_enabled %]
354
                                        Yes
355
                                    [% ELSE %]
356
                                        No
357
                                    [% END %]
358
                                </td>
359
                                <td>
360
                                    [% IF account.orders_enabled %]
361
                                        Yes
362
                                    [% ELSE %]
363
                                        No
364
                                    [% END %]
365
                                </td>
366
                                <td>
367
                                    [% IF account.invoices_enabled %]
368
                                        Yes
369
                                    [% ELSE %]
370
                                        No
371
                                    [% END %]
372
                                </td>
373
                                <td>
374
                                    [% IF account.responses_enabled %]
375
                                        Yes
376
                                    [% ELSE %]
377
                                        No
378
                                    [% END %]
379
                                </td>
380
                                <td>
381
                                    [% IF account.auto_orders %]
382
                                        Yes
383
                                    [% ELSE %]
384
                                        No
385
                                    [% END %]
386
                                </td>
387
                                <td class="actions">
388
                                    <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-solid fa-pencil" aria-hidden="true"></i> Edit</a>
389
                                    <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-can"></i> Delete</a>
390
                                </td>
391
                            </tr>
392
                        [% END %]
393
                    </tbody>
373
                </table>
394
                </table>
374
            </div>
395
            </div>
375
            <!-- /.page-section -->
396
            <!-- /.page-section -->
Lines 381-385 Link Here
381
402
382
[% MACRO jsinclude BLOCK %]
403
[% MACRO jsinclude BLOCK %]
383
    [% Asset.js("js/admin-menu.js") | $raw %]
404
    [% Asset.js("js/admin-menu.js") | $raw %]
405
    [% INCLUDE 'datatables.inc' %]
406
    <script>
407
        $(document).ready(function(){
408
            var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'edi_accounts', 'edi_accounts_table', 'json' ) | $raw %];
409
            $("#edi_accounts_table").kohaTable(
410
                {
411
                    pagingType: "full",
412
                },
413
                table_settings
414
            );
415
        });
416
    </script>
384
[% END %]
417
[% END %]
385
[% INCLUDE 'intranet-bottom.inc' %]
418
[% INCLUDE 'intranet-bottom.inc' %]
386
- 

Return to bug 39897