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

(-)a/acqui/transferorder.pl (-4 / +1 lines)
Lines 77-85 if( $basketno && $ordernumber) { Link Here
77
77
78
    TransferOrder($ordernumber, $basketno);
78
    TransferOrder($ordernumber, $basketno);
79
79
80
    my $referrer = $input->param('referrer');
80
    $template->param(transferred => 1)
81
    print $input->redirect($referrer);
82
    exit;
83
} elsif ( $bookselleridto && $ordernumber) {
81
} elsif ( $bookselleridto && $ordernumber) {
84
    # Show open baskets for this bookseller
82
    # Show open baskets for this bookseller
85
    my $order = GetOrder( $ordernumber );
83
    my $order = GetOrder( $ordernumber );
Lines 138-144 $template->param( Link Here
138
    booksellertoname    => $booksellertoname,
136
    booksellertoname    => $booksellertoname,
139
    ordernumber         => $ordernumber,
137
    ordernumber         => $ordernumber,
140
    basketno            => $basketno,
138
    basketno            => $basketno,
141
    referrer            => $input->param('referrer')
142
);
139
);
143
140
144
output_html_with_http_headers $input, $cookie, $template->output;
141
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt (-2 / +8 lines)
Lines 27-33 Link Here
27
                    window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber;
27
                    window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber;
28
                }
28
                }
29
            }
29
            }
30
            
30
31
            function confirm_delete_biblio(ordernumber, biblionumber) {
31
            function confirm_delete_biblio(ordernumber, biblionumber) {
32
                var is_confirmed = confirm(_('Are you sure you want to delete this catalog record and order ?'));
32
                var is_confirmed = confirm(_('Are you sure you want to delete this catalog record and order ?'));
33
                if (is_confirmed) {
33
                if (is_confirmed) {
Lines 35-40 Link Here
35
                    }
35
                    }
36
            }
36
            }
37
37
38
            function transfer_order_popup(ordernumber) {
39
                var url = "/cgi-bin/koha/acqui/transferorder.pl?"
40
                    + "ordernumber=" + ordernumber
41
                window.open(url, 'TransferOrder');
42
            }
43
38
//]]>
44
//]]>
39
</script>
45
</script>
40
[% ELSE %]
46
[% ELSE %]
Lines 325-331 Link Here
325
                                <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&amp;booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]">Modify</a>
331
                                <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&amp;booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]">Modify</a>
326
                                [% UNLESS (books_loo.order_received) %]
332
                                [% UNLESS (books_loo.order_received) %]
327
                                    <br />
333
                                    <br />
328
                                    <a href="/cgi-bin/koha/acqui/transferorder.pl?ordernumber=[% books_loo.ordernumber %]&referrer=[% "/cgi-bin/koha/acqui/basket.pl?basketno=$basketno" | uri %]">Transfer</a>
334
                                    <a href="#" onclick="transfer_order_popup([% books_loo.ordernumber %]); return false;">Transfer</a>
329
                                [% END %]
335
                                [% END %]
330
                            </td>
336
                            </td>
331
                            <td>
337
                            <td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt (-1 / +8 lines)
Lines 118-123 Link Here
118
                    window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&delbiblio=1";
118
                    window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&delbiblio=1";
119
                    }
119
                    }
120
            }
120
            }
121
122
            function transfer_order_popup(ordernumber) {
123
                var url = "/cgi-bin/koha/acqui/transferorder.pl?"
124
                    + "ordernumber=" + ordernumber
125
                window.open(url, 'TransferOrder');
126
            }
127
121
//]]>
128
//]]>
122
</script>
129
</script>
123
</head>
130
</head>
Lines 242-248 Link Here
242
				<td>
249
				<td>
243
                              <a href="orderreceive.pl?ordernumber=[% loop_order.ordernumber %]&amp;datereceived=[% invoicedatereceived %]&amp;invoice=[% invoice %]&amp;gst=[% loop_order.gst %]&amp;freight=[% loop_order.freight %]&amp;booksellerid=[% loop_order.booksellerid %]">Receive</a>
250
                              <a href="orderreceive.pl?ordernumber=[% loop_order.ordernumber %]&amp;datereceived=[% invoicedatereceived %]&amp;invoice=[% invoice %]&amp;gst=[% loop_order.gst %]&amp;freight=[% loop_order.freight %]&amp;booksellerid=[% loop_order.booksellerid %]">Receive</a>
244
                    <br />
251
                    <br />
245
                    <a href="/cgi-bin/koha/acqui/transferorder.pl?ordernumber=[% loop_order.ordernumber %]&amp;referrer=[% "/cgi-bin/koha/acqui/parcel.pl?booksellerid=$booksellerid&datereceived=$invoicedatereceived&invoice=$invoice" | uri %]">Transfer</a>
252
                    <a href="#" onclick="transfer_order_popup([% loop_order.ordernumber %]); return false;">Transfer</a>
246
				    
253
				    
247
				</td>
254
				</td>
248
				<td>
255
				<td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt (-16 / +11 lines)
Lines 1-16 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Acquisitions &rsaquo; Transfer order</title>
2
<title>Koha &rsaquo; Acquisitions &rsaquo; Transfer order</title>
3
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% IF transferred %]
5
    <script type="text/javascript">
6
    //<![CDATA[
7
        opener.location.reload();
8
        window.close();
9
    //]]>
10
    </script>
11
[% END %]
4
</head>
12
</head>
5
<body>
13
<body>
6
[% INCLUDE 'header.inc' %]
7
[% INCLUDE 'acquisitions-search.inc' %]
8
9
<div id="breadcrumbs">
10
    <a href="/cgi-bin/koha/mainpage.pl">Home</a>
11
    &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
12
    &rsaquo; Transfer order
13
</div>
14
14
15
<div id="doc3" class="yui-t2">
15
<div id="doc3" class="yui-t2">
16
<div id="bd">
16
<div id="bd">
Lines 32-38 Link Here
32
                            <td>[% basket.basketname %] (#[% basket.basketno %])</td>
32
                            <td>[% basket.basketname %] (#[% basket.basketno %])</td>
33
                            <td>[% basket.createdby %]</td>
33
                            <td>[% basket.createdby %]</td>
34
                            <td>[% basket.creationdate %]</td>
34
                            <td>[% basket.creationdate %]</td>
35
                            <td><a href="transferorder.pl?basketno=[% basket.basketno %]&ordernumber=[% ordernumber %][% IF (referrer) %]&referrer=[% referrer | uri %][% END %]" onclick="return confirm('Do you want to transfer order [% ordernumber %] from basket [% basketfromname %] ([% booksellerfromname %]) to basket [% basket.basketname %] ([% booksellertoname %]) ?');">Choose</a>
35
                            <td><a href="transferorder.pl?basketno=[% basket.basketno %]&ordernumber=[% ordernumber %]" onclick="return confirm('Do you want to transfer order [% ordernumber %] from basket [% basketfromname %] ([% booksellerfromname %]) to basket [% basket.basketname %] ([% booksellertoname %]) ?');">Choose</a>
36
                          </tr>
36
                          </tr>
37
                        [% END %]
37
                        [% END %]
38
                    </tbody>
38
                    </tbody>
Lines 59-65 Link Here
59
                            [% IF ( ordersloo.isbn ) %] &ndash; [% ordersloo.isbn %][% END %]
59
                            [% IF ( ordersloo.isbn ) %] &ndash; [% ordersloo.isbn %][% END %]
60
                            [% IF ( ordersloo.publishercode ) %]<br />Publisher :[% ordersloo.publishercode %][% END %]
60
                            [% IF ( ordersloo.publishercode ) %]<br />Publisher :[% ordersloo.publishercode %][% END %]
61
                        </td>
61
                        </td>
62
                        <td><a href="transferorder.pl?bookselleridfrom=[% ordersloo.bookselleridfrom %]&ordernumber=[% ordersloo.ordernumber %][% IF (referrer) %]&referrer=[% referrer | uri %][% END %]">Transfer</a></td>
62
                        <td><a href="transferorder.pl?bookselleridfrom=[% ordersloo.bookselleridfrom %]&ordernumber=[% ordersloo.ordernumber %]">Transfer</a></td>
63
                      </tr>
63
                      </tr>
64
                    [% END %]
64
                    [% END %]
65
                </tbody>
65
                </tbody>
Lines 81-87 Link Here
81
                        [% FOREACH bookseller IN booksellersloop %]
81
                        [% FOREACH bookseller IN booksellersloop %]
82
                          <tr>
82
                          <tr>
83
                            <td>[% bookseller.name %]</td>
83
                            <td>[% bookseller.name %]</td>
84
                            <td><a href="transferorder.pl?[% IF (bookselleridfrom) %]bookselleridto[% ELSE %]bookselleridfrom[% END %]=[% bookseller.id %][% IF (ordernumber) %]&ordernumber=[% ordernumber %][% END %][% IF (referrer) %]&referrer=[% referrer | uri %][% END %]">Choose</a></td>
84
                            <td><a href="transferorder.pl?[% IF (bookselleridfrom) %]bookselleridto[% ELSE %]bookselleridfrom[% END %]=[% bookseller.id %][% IF (ordernumber) %]&ordernumber=[% ordernumber %][% END %]">Choose</a></td>
85
                          </tr>
85
                          </tr>
86
                        [% END %]
86
                        [% END %]
87
                    </tbody>
87
                    </tbody>
Lines 98-104 Link Here
98
            [% END %]
98
            [% END %]
99
            <form method="get" action="transferorder.pl">
99
            <form method="get" action="transferorder.pl">
100
                <input type="hidden" name="op" value="do_search" />
100
                <input type="hidden" name="op" value="do_search" />
101
                <input type="hidden" name="referrer" value="[% referrer %]" />
102
                [% IF ( ordernumber ) %]
101
                [% IF ( ordernumber ) %]
103
                    <input type="hidden" name="ordernumber" value="[% ordernumber %]" />
102
                    <input type="hidden" name="ordernumber" value="[% ordernumber %]" />
104
                [% END %]
103
                [% END %]
Lines 113-121 Link Here
113
    </div>
112
    </div>
114
</div>
113
</div>
115
114
116
<div class="yui-b">
117
    [% INCLUDE 'acquisitions-menu.inc' %]
118
</div>
119
</div>
115
</div>
120
</div>
116
</div>
121
[% INCLUDE 'intranet-bottom.inc' %]
117
[% INCLUDE 'intranet-bottom.inc' %]
122
- 

Return to bug 5349