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

(-)a/acqui/addorder.pl (+2 lines)
Lines 261-266 my $basketno=$$orderinfo{basketno}; Link Here
261
my $booksellerid=$$orderinfo{booksellerid};
261
my $booksellerid=$$orderinfo{booksellerid};
262
if (my $import_batch_id=$$orderinfo{import_batch_id}) {
262
if (my $import_batch_id=$$orderinfo{import_batch_id}) {
263
    print $input->redirect("/cgi-bin/koha/acqui/addorderiso2709.pl?import_batch_id=$import_batch_id&basketno=$basketno&booksellerid=$booksellerid");
263
    print $input->redirect("/cgi-bin/koha/acqui/addorderiso2709.pl?import_batch_id=$import_batch_id&basketno=$basketno&booksellerid=$booksellerid");
264
} elsif ( defined $orderinfo->{invoiceid} ) {
265
    print $input->redirect("/cgi-bin/koha/acqui/parcel.pl?invoiceid=" . $orderinfo->{invoiceid});
264
} else {
266
} else {
265
    print $input->redirect("/cgi-bin/koha/acqui/basket.pl?basketno=$basketno");
267
    print $input->redirect("/cgi-bin/koha/acqui/basket.pl?basketno=$basketno");
266
}
268
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt (-3 / +2 lines)
Lines 80-93 Link Here
80
            function confirm_delete_item(ordernumber, basketno, biblionumber) {
80
            function confirm_delete_item(ordernumber, basketno, biblionumber) {
81
                var is_confirmed = confirm(_('Are you sure you want to delete this order ?'));
81
                var is_confirmed = confirm(_('Are you sure you want to delete this order ?'));
82
                if (is_confirmed) {
82
                if (is_confirmed) {
83
                    window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber;
83
                    window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&invoiceid=[% invoiceid %]";
84
                }
84
                }
85
            }
85
            }
86
            
86
            
87
            function confirm_delete_biblio(ordernumber, basketno, biblionumber) {
87
            function confirm_delete_biblio(ordernumber, basketno, biblionumber) {
88
                var is_confirmed = confirm(_('Are you sure you want to delete this catalog record and order ?'));
88
                var is_confirmed = confirm(_('Are you sure you want to delete this catalog record and order ?'));
89
                if (is_confirmed) {
89
                if (is_confirmed) {
90
                    window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&delbiblio=1";
90
                    window.location = "addorder.pl?ordernumber="+ordernumber+"&basketno="+basketno+"&quantity=0&biblionumber="+biblionumber+"&delbiblio=1&invoiceid=[% invoiceid %]";
91
                    }
91
                    }
92
            }
92
            }
93
//]]>
93
//]]>
94
- 

Return to bug 9236