# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
-# You should have received a copy of the GNU General Public License along with
-# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
-# Suite 330, Boston, MA 02111-1307 USA
+# You should have received a copy of the GNU General Public License along
+# with Koha; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
=head1 NAME
=over 4
-=item supplierid
+=item booksellerid
-C<$supplierid> is the id of the supplier we add the basket to.
+C<$booksellerid> is the id of the supplier we add the basket to.
=item basketid
#End Edit
} elsif ( $op eq 'add_validate' ) {
#we are confirming the changes, save the basket
- $template->param(add_validate => 1);
+ my $basketno;
if ( $is_an_edit ) {
+ $basketno = $input->param('basketno');
ModBasketHeader($input->param('basketno'),$input->param('basketname'),$input->param('basketnote'),$input->param('basketbooksellernote'),$input->param('basketcontractnumber'));
- $template->param( basketno => $basketno );
} else { #New basket
- my $basketno = NewBasket($booksellerid, $loggedinuser, $input->param('basketname'), $input->param('basketnote'), $input->param('basketbooksellernote'), $input->param('basketcontractnumber'));
- $template->param( basketno => $basketno );
+ $basketno = NewBasket($booksellerid, $loggedinuser, $input->param('basketname'), $input->param('basketnote'), $input->param('basketbooksellernote'), $input->param('basketcontractnumber'));
}
+ print $input->redirect('basket.pl?basketno='.$basketno);
+ exit 0;
}
output_html_with_http_headers $input, $cookie, $template->output;