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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt (-6 / +5 lines)
Lines 135-151 Link Here
135
</script>
135
</script>
136
<script type="text/javascript">
136
<script type="text/javascript">
137
//<![CDATA[
137
//<![CDATA[
138
            function confirm_delete_item(ordernumber, biblionumber) {
138
            function confirm_delete_item(ordernumber, basketno, biblionumber) {
139
                var is_confirmed = confirm(_('Are you sure you want to delete this order ?'));
139
                var is_confirmed = confirm(_('Are you sure you want to delete this order ?'));
140
                if (is_confirmed) {
140
                if (is_confirmed) {
141
                    window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber;
141
                    window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber;
142
                }
142
                }
143
            }
143
            }
144
            
144
            
145
            function confirm_delete_biblio(ordernumber, biblionumber) {
145
            function confirm_delete_biblio(ordernumber, biblionumber) {
146
                var is_confirmed = confirm(_('Are you sure you want to delete this catalog record and order ?'));
146
                var is_confirmed = confirm(_('Are you sure you want to delete this catalog record and order ?'));
147
                if (is_confirmed) {
147
                if (is_confirmed) {
148
                    window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno=[% basketno %]&quantity=0&biblionumber="+biblionumber+"&delbiblio=1";
148
                    window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&delbiblio=1";
149
                    }
149
                    }
150
            }
150
            }
151
151
Lines 254-263 Link Here
254
				    [% IF ( loop_order.left_holds_on_order ) %]
254
				    [% IF ( loop_order.left_holds_on_order ) %]
255
                    <span class="button" title="Can't delete order, ([% loop_order.holds_on_order %]) holds are linked with this order cancel holds first">Can't delete order</span><br>
255
                    <span class="button" title="Can't delete order, ([% loop_order.holds_on_order %]) holds are linked with this order cancel holds first">Can't delete order</span><br>
256
                    [% ELSE %]
256
                    [% ELSE %]
257
                    <a href="javascript:confirm_delete_item([% loop_order.ordernumber %],[% loop_order.biblionumber %])" class="button">Delete order</a><br>
257
                    <a href="javascript:confirm_delete_item([% loop_order.ordernumber %],[% loop_order.basketno %],[% loop_order.biblionumber %])" class="button">Delete order</a><br>
258
                    [% END %]
258
                    [% END %]
259
                    [% IF ( loop_order.can_del_bib ) %]
259
                    [% IF ( loop_order.can_del_bib ) %]
260
                    <a href="javascript:confirm_delete_biblio([% loop_order.ordernumber %],[% loop_order.biblionumber %])" class="button">Delete order and catalog record</a><br>
260
                    <a href="javascript:confirm_delete_biblio([% loop_order.ordernumber %],[% loop_order.basketno %],[% loop_order.biblionumber %])" class="button">Delete order and catalog record</a><br>
261
                    [% ELSE %]
261
                    [% ELSE %]
262
                    <span class="button" title="Can't delete catalog record, see constraints below">Can't delete order and catalog record</span><br>
262
                    <span class="button" title="Can't delete catalog record, see constraints below">Can't delete order and catalog record</span><br>
263
                    [% END %]
263
                    [% END %]
264
- 

Return to bug 7120