https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43955

--- Comment #3 from David Nind <[email protected]> ---
Created attachment 210039
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210039&action=edit
Bug 43955: POS receipt links open an intermediate page instead of printing
directly

Since Bug 41705, pos/printreceipt.tt only prints on load when the URL
has autoprint=1, and otherwise shows the receipt with Print and Close
buttons. Only the automatic flow (FinePaymentAutoPopup on, redirect from
pos/pay.pl) passed autoprint=1. The links that explicitly ask for a
receipt did not, so they needed a second click before the browser print
dialogue appeared.

Add autoprint=1 to the three links that open pos/printreceipt.pl:
- the "Print receipt" button in the "Payment received" alert on pos/pay.tt
- the receipt action in the cash register transaction history
  (pos/register.tt)
- the Print action for payout rows in the patron's Accounting table
  (members/boraccount.tt). Ordinary payment receipts there use
  members/printfeercpt.pl, which already prints directly.

The manual Print and Close buttons on the receipt page are kept for
anyone opening it without autoprint.

To test:
1. Enable EnablePointOfSale and UseCashRegisters, create a cash register
   and set FinePaymentAutoPopup to "Don't show".
2. In Point of Sale complete a sale and click "Print receipt" in the
   "Payment received" alert.
   => The print dialogue appears straight away. (Before the patch: a
   page with a Print button.)
3. In the cash register's transaction history click the print receipt
   action for a transaction. Same expectation.
4. Pay out an account credit (cash register refund), then in the
   patron's Accounting > Transactions click Print on the payout line.
   Same expectation.
5. Set FinePaymentAutoPopup to "Do" and complete a POS sale: the
   receipt still prints automatically.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: David Nind <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the QA Contact for the bug.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to