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

(-)a/acqui/booksellers.pl (-6 lines)
Lines 56-62 use C4::Biblio; Link Here
56
use C4::Output;
56
use C4::Output;
57
use CGI;
57
use CGI;
58
58
59
use C4::Dates qw/format_date/;
60
use C4::Bookseller qw/ GetBookSellerFromId GetBookSeller /;
59
use C4::Bookseller qw/ GetBookSellerFromId GetBookSeller /;
61
use C4::Members qw/GetMember/;
60
use C4::Members qw/GetMember/;
62
use C4::Context;
61
use C4::Context;
Lines 120-130 for my $vendor (@suppliers) { Link Here
120
                   ) 
119
                   ) 
121
                ) 
120
                ) 
122
           ) { 
121
           ) { 
123
            for my $date_field (qw( creationdate closedate)) {
124
                if ( $basket->{$date_field} ) {
125
                    $basket->{$date_field} = format_date( $basket->{$date_field} );
126
                }
127
            }
128
            push @{$loop_basket}, $basket; 
122
            push @{$loop_basket}, $basket; 
129
        }
123
        }
130
    }
124
    }
(-)a/acqui/supplier.pl (-6 lines)
Lines 46-52 use C4::Auth; Link Here
46
use C4::Contract qw/GetContract/;
46
use C4::Contract qw/GetContract/;
47
use C4::Biblio;
47
use C4::Biblio;
48
use C4::Output;
48
use C4::Output;
49
use C4::Dates qw/format_date /;
50
use CGI;
49
use CGI;
51
50
52
use C4::Bookseller qw( GetBookSellerFromId DelBookseller );
51
use C4::Bookseller qw( GetBookSellerFromId DelBookseller );
Lines 79-89 if ( $op eq 'display' ) { Link Here
79
78
80
    my $contracts = GetContract( { booksellerid => $booksellerid } );
79
    my $contracts = GetContract( { booksellerid => $booksellerid } );
81
80
82
    for ( @{$contracts} ) {
83
        $_->{contractstartdate} = format_date( $_->{contractstartdate} );
84
        $_->{contractenddate}   = format_date( $_->{contractenddate} );
85
    }
86
87
    $template->param(
81
    $template->param(
88
        booksellerid  => $booksellerid,
82
        booksellerid  => $booksellerid,
89
        name          => $supplier->{'name'},
83
        name          => $supplier->{'name'},
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt (-2 / +3 lines)
Lines 1-3 Link Here
1
[% USE KohaDates %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Search for vendor [% supplier %]</title>
3
<title>Koha &rsaquo; Search for vendor [% supplier %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
Lines 97-105 Link Here
97
                                    <td>						[% loop_baske.firstname %]
98
                                    <td>						[% loop_baske.firstname %]
98
                                            [% loop_baske.surname %]
99
                                            [% loop_baske.surname %]
99
                                    </td>
100
                                    </td>
100
                                    <td>[% loop_baske.creationdate %]</td>
101
                                    <td>[% loop_baske.creationdate | $KohaDates %]</td>
101
                                    <td>						[% IF ( loop_baske.closedate ) %]
102
                                    <td>						[% IF ( loop_baske.closedate ) %]
102
                                            closed on [% loop_baske.closedate %]
103
                                            closed on [% loop_baske.closedate | $KohaDates %]
103
                                            <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loop_baske.basketno %]">View</a>
104
                                            <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% loop_baske.basketno %]">View</a>
104
                                        [% ELSE %]
105
                                        [% ELSE %]
105
                                            [% IF ( loop_baske.active ) %]
106
                                            [% IF ( loop_baske.active ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt (-3 / +3 lines)
Lines 1-3 Link Here
1
[% USE KohaDates %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Vendor [% bookselname %]</title>
3
<title>Koha &rsaquo; Vendor [% bookselname %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
Lines 217-224 if (f.company.value == "") { Link Here
217
                            <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;contractnumber=[% contract.contractnumber %]&amp;booksellerid=[% contract.booksellerid %]">[% contract.contractname %]</a>
218
                            <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;contractnumber=[% contract.contractnumber %]&amp;booksellerid=[% contract.booksellerid %]">[% contract.contractname %]</a>
218
                        </td>
219
                        </td>
219
                        <td>[% contract.contractdescription %]</td>
220
                        <td>[% contract.contractdescription %]</td>
220
                        <td>[% contract.contractstartdate %]</td>
221
                        <td>[% contract.contractstartdate | $KohaDates %]</td>
221
                        <td>[% contract.contractenddate %]</td>
222
                        <td>[% contract.contractenddate | $KohaDates %]</td>
222
                        <td><a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;contractnumber=[% contract.contractnumber %]&amp;booksellerid=[% contract.booksellerid %]">Edit</a></td>
223
                        <td><a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;contractnumber=[% contract.contractnumber %]&amp;booksellerid=[% contract.booksellerid %]">Edit</a></td>
223
                        <td><a href="/cgi-bin/koha/admin/aqcontract.pl?op=delete_confirm&amp;contractnumber=[% contract.contractnumber %]&amp;booksellerid=[% contract.booksellerid %]">Delete</a></td>
224
                        <td><a href="/cgi-bin/koha/admin/aqcontract.pl?op=delete_confirm&amp;contractnumber=[% contract.contractnumber %]&amp;booksellerid=[% contract.booksellerid %]">Delete</a></td>
224
                        </tr>
225
                        </tr>
225
- 

Return to bug 7737