]> git.koha-community.org Git - koha.git/commit
Bug 6059: Don't permit to change the quantity when items are created on ordering
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 8 Apr 2015 08:04:40 +0000 (10:04 +0200)
committerChris Cormack <chris@bigballofwax.co.nz>
Sun, 17 May 2015 04:38:28 +0000 (16:38 +1200)
commitd363552bf9d59b8cc29b2e55b42bf8812abf9995
tree3dc8a625eedb8e0bba97b377a8a37e790e00c35f
parent259b2b1468e007bec3176437d2f1cfc855b91b9f
Bug 6059: Don't permit to change the quantity when items are created on ordering

If items are created on ordering, the quantity for uncertain prices
should not be editable.

Test plan:
0/ Set AcqCreateItem to "on ordering"
1/ Create a basket and add an order with 1+ items
2/ Mark it as uncertain prices
3/ Go on the uncertain prices page for this vendor
(acqui/uncertainprice.pl?booksellerid=X)
4/ Confirm you are not allowed to update the quantity
5/ Change the price and save
6/ Confirm the quantity is still correct

Set the pref to another value and confirm the behavior has not changed.

NOTE: Tested with 'on placing order' and 'on receiving order'.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit bbb374e76494ae2bad87fbc703e396cebcf8b9f5)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt