Bug 37671

Summary: Can't print receipt for refund from cash register transaction history
Product: Koha Reporter: Owen Leonard <oleonard>
Component: Point of SaleAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: jheltibridle, lisette, martin.renvoize
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Owen Leonard 2024-08-19 11:44:32 UTC
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.
Comment 1 Juliet Heltibridle 2026-01-30 16:10:33 UTC
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.