]> git.koha-community.org Git - koha.git/commit
Bug 28368: Add fallback language for anonymous payment receipts
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 18 May 2021 14:57:29 +0000 (15:57 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 27 May 2021 12:12:24 +0000 (14:12 +0200)
commit120a95cdb6bdb244a11b705466077a5f7e6792d8
treed8d6133b5095f8bfe685cf2e08fda25e21b3b525
parent235370092158d8cc5845e9f4b2c16e2201f10d39
Bug 28368: Add fallback language for anonymous payment receipts

This adds a fallback for when a payment is made anonymously to allow
printing a receipt in the staff members current session language.

Test plan
1. Set `EnablePointOfSale` and `UseCashRegisters`
2. Add new cash register`
3. New debit type that 'can be sold'
4. Make a sale (via Point of Sale) using the above debit type.
5. Attempt to 'print receipt' from the subsequent prompt
6. Not the ISE: Can't call method "lang"
7. Apply patch
8. Attempt to 'print receipt' again, this time it should work.

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
pos/printreceipt.pl