ERROR PROCESSING TEMPLATE: undef error - Exception 'Koha::Exceptions::Account::IsNotCredit' thrown 'Account line 321 is not a credit' at /kohadevbox/koha/pos/printreceipt.pl line 54. at /usr/lib/x86_64-linux-gnu/perl-base/Carp.pm line 289 1. Make a purchase through Point of Sale. 2. Go to the transaction history for the register you used. 3. Issue a refund for the purchase. 4. Click the "Print receipt" button for that refund.
We need to be able to print a receipt for refunds to be placed in the cash drawer because this is the best way to notify the cash office a refund has happened. We've found a workaround by printing the receipt for the transaction again, which will have (Refunded) on the receipt. But having the button to print a receipt on the refund confuses staff, who click there first and then get a 500 error. If this cannot be fixed, it would be helpful to remove the button, or have it print the receipt from the refunded transaction.