]> git.koha-community.org Git - koha.git/commit
Bug 6740: can add items at ordering/receiving but not remove
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Mon, 5 Dec 2011 06:18:21 +0000 (07:18 +0100)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Tue, 6 Dec 2011 19:10:08 +0000 (14:10 -0500)
commit8cf169316728ba0113e08c6f85930a0961d75528
tree6585ca647a08f9a5658a2d61839e96f66b26c26e
parent49e38381f3694fc2fe47241e49092cb0ea8c920f
Bug 6740: can add items at ordering/receiving but not remove

The problem was, that the script was looking for the first
and second <a> tag in the code. When using plugins in the framework
this can't work. The patch changes the script to select the correct
<a> tags by using a class.

Also changes + and - to 'Add' and 'Delete' to make the meaning clearer
and clicking on them a bit easier.

To test:
1) AcqCreateItem = order
- Create a basket
- Create an order line
- Create more than one item
- Delete items
- Check quantity is calculated correctly
- Check items are created correctly

2) AcqCreateItem = receive
- Create basket
- Create 2 order lines, order >1 items
- Do a partial item by removing items from the receive form
- Receive all missing items
- Receive more items than ordered

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit d0ef505fc4423f597402445a1a12b8b2bd512894)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/js/additem.js
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt