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

(-)a/acqui/receiveshipment.pl (+57 lines)
Line 0 Link Here
1
#!/usr/bin/perl
2
3
# Copyright 2013 Amit Gupta(amitddng135@gmail.com)
4
# This file is part of Koha.
5
#
6
# Koha is free software; you can redistribute it and/or modify it under the
7
# terms of the GNU General Public License as published by the Free Software
8
# Foundation; either version 2 of the License, or (at your option) any later
9
# version.
10
#
11
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
12
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
14
#
15
# You should have received a copy of the GNU General Public License along
16
# with Koha; if not, write to the Free Software Foundation, Inc.,
17
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
19
=head1 NAME
20
21
receiveshipment.pl
22
23
=head1 DESCRIPTION
24
25
this script is the main page for acqui
26
27
=cut
28
29
use strict;
30
use warnings;
31
use CGI;
32
use C4::Auth;
33
use C4::Output;
34
use C4::Members;
35
use C4::Branch;
36
use C4::Debug;
37
use C4::Bookseller qw/ GetBookSeller /;
38
39
my $input = CGI->new();
40
41
my ( $template, $loggedinuser, $cookie, $userflags ) = get_template_and_user(
42
    {   template_name   => 'acqui/receiveshipment.tmpl',
43
        query           => $input,
44
        type            => 'intranet',
45
        authnotrequired => 0,
46
        flagsrequired   => { acquisition => '*' },
47
        debug           => 1,
48
    }
49
);
50
51
my $user = GetMember( 'borrowernumber' => $loggedinuser );
52
my $branchname = GetBranchName($user->{branchcode});
53
54
my @suppliers = GetBookSeller();
55
$template->param( supplier_loop => \@suppliers);
56
57
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-menu.inc (+1 lines)
Lines 2-7 Link Here
2
	<li><a href="/cgi-bin/koha/acqui/lateorders.pl">Late orders</a></li>
2
	<li><a href="/cgi-bin/koha/acqui/lateorders.pl">Late orders</a></li>
3
	[% IF ( suggestion ) %]<li><a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a></li>[% ELSE %][% END %]
3
	[% IF ( suggestion ) %]<li><a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a></li>[% ELSE %][% END %]
4
    <li><a href="/cgi-bin/koha/acqui/invoices.pl">Invoices</a></li>
4
    <li><a href="/cgi-bin/koha/acqui/invoices.pl">Invoices</a></li>
5
    <li><a href="/cgi-bin/koha/acqui/receiveshipment.pl">Receive shipment</a></li>
5
    [% IF ( CAN_user_acquisition_budget_manage ) %]
6
    [% IF ( CAN_user_acquisition_budget_manage ) %]
6
    <li><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a></li>
7
    <li><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a></li>
7
    <li><a href="/cgi-bin/koha/admin/aqbudgets.pl">Funds</a></li>
8
    <li><a href="/cgi-bin/koha/admin/aqbudgets.pl">Funds</a></li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/receiveshipment.tt (-1 / +71 lines)
Line 0 Link Here
0
- 
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Acquisitions &rsaquo; Receive shipment</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
6
[% INCLUDE 'datatables-strings.inc' %]
7
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
8
<script type="text/javascript">
9
//<![CDATA[
10
    $(document).ready(function() {
11
        $("#recshipment").dataTable($.extend(true, {}, dataTablesDefaults, {
12
            "aoColumnDefs": [
13
                { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
14
            ],
15
            "aaSorting": [[ 1, "asc" ]],
16
            "iDisplayLength": 10,
17
            "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
18
        }));
19
    });
20
//]]>
21
</script>
22
</head>
23
24
[% INCLUDE 'header.inc' %]
25
[% INCLUDE 'acquisitions-search.inc' %]
26
27
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; </div>
28
<div id="doc3" class="yui-t2">
29
<div id="bd">
30
<div id="yui-main">
31
<div class="yui-b">
32
<div class="yui-g">
33
<div id="acqui_recshipment">
34
[% IF (supplier_loop) %]
35
<h1>Receive shipment</h1>
36
<div id="acqui_recshipment">
37
        <table id="recshipment">
38
            <thead>
39
                <tr>
40
                  <th>Vendor</th>
41
                <th>Status</th>
42
                <th>&nbsp;</th>
43
                    <th>&nbsp;</th>
44
                </tr>
45
            </thead>
46
<tbody>
47
[% FOREACH suppliers IN supplier_loop %]
48
    <tr>
49
        <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% suppliers.id %]">[% suppliers.name %]</td>
50
        [% IF(suppliers.active == 1)%]
51
            <td>Active</td>
52
        [% ELSE %]
53
            <td>Inactive</td>
54
        [% END %]
55
        <td><a href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% suppliers.id %]">Receive shipment</a></td>
56
        <td><a href="/cgi-bin/koha/acqui/basketheader.pl?booksellerid=[% suppliers.id %]&amp;op=add_form">New basket</a></td>
57
    </tr>
58
[% END %]
59
</tbody>
60
</table>
61
</div>
62
[% END %]
63
</div>
64
</div>
65
</div>
66
</div>
67
<div class="yui-b">
68
[% INCLUDE 'acquisitions-menu.inc' %]
69
</div>
70
</div>
71
[% INCLUDE 'intranet-bottom.inc' %]

Return to bug 10393