]> git.koha-community.org Git - koha.git/commit
Bug 28181: Filter out archived debit types in point of sale
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 22 Apr 2021 12:11:59 +0000 (13:11 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 10 May 2021 13:46:54 +0000 (15:46 +0200)
commit5b26e5575049738e6ce18eb7a259c64db1ff1334
treeb06b9d83265073f4f572ff82de580ff1b549f9b6
parenta197a09febd996176c841fa64080a663a4122e60
Bug 28181: Filter out archived debit types in point of sale

The filter for only displaying un-archived debit types on the point of
sale page had been missed.

NOTE: It would be beneficial to move this to a default filter in the
Koha:: objects search method for both debit_types and credit_types.. but
I opted for the quick fix here to resolve the bug and will impliment
default filtering in a subsequent enhancement bug.

Test plan
1/ Archive a debit type that is marked as 'Can be sold'
2/ Go to the point of sale page and confirm the above debit type appears
3/ Apply the patch
4/ Confirm the debit type no longer appears in the point of sale page.

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
pos/pay.pl