]> git.koha-community.org Git - koha.git/commit
Bug 13380: Fill order cancellation reasons from AV
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 3 Dec 2014 12:07:16 +0000 (13:07 +0100)
committerChris Cormack <chris@bigballofwax.co.nz>
Tue, 17 Mar 2015 07:31:35 +0000 (20:31 +1300)
commit8ecb0ef544216a712715ea4e4166e30b204ee5fe
tree7558445bf6a79538f9fd11b873fd72b134c84a41
parent7a17ca5833d07ecf10f705bc90f7a127c7bda4b6
Bug 13380: Fill order cancellation reasons from AV

Since bug 7162, it's possible to give a cancellation reason on deleting
an order.
This would be better to fill an authorised values category with the
different possible values.
Like that we will avoid to have duplicate or similar reasons.

Also, it will be easier to filter or create reports.

Test plan:
0/ Don't apply the patch
1/ Cancel some orders and give a cancelletion reason
2/ Apply the patch and execute the updatedb entry
3/ Cancel an order and verify the you have a list with the reason you
previously filled + 3 new ones ('No reason', 'Sold out' and
'Restocking');
4/ Choose one and verify the value is correctly displayed on the basket
page
5/ You can also try to add other values from the admin module.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit b475728a50477aaff34ff16ed9194b39c46d66ea)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Conflicts:
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/cancelorder.tt