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

--- Comment #2 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 204776
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=204776&action=edit
Bug 43402: Offer button to print/email receipt when collecting account payments

Syncs the "Payment received" notification introduced for the Point of
Sale module (bug 41705) to the patron account payment screens.

When FinePaymentAutoPopup is off, taking a payment via
members/paycollect.pl now lands on either members/pay.tt or
members/boraccount.tt (depending on the payment path) with an inline
alert offering to print or email the receipt for the transaction that
was just taken, instead of requiring a trip to the Transactions tab to
find the line and use its row-level receipt actions.

Both pages already received payment_id/change_given via the existing
PRG-style redirects from paycollect.pl, so no controller changes were
required - the email action reuses boraccount.pl's existing
cud-send_receipt handler.

The print/email buttons on all three payment screens (POS, pay,
boraccount) now carry stable ids so they can be targeted with
IntranetUserCSS, as requested in the bug.

Test plan:
1. Set FinePaymentAutoPopup to "Do not show" (off)
2. Go to a patron's account > Make a payment, pay a charge
   individually (pay_individual) -> lands on pay.tt with the
   "Payment received" alert; Print/Email receipt work
3. Select multiple charges and pay together (cud-pay) -> lands on
   boraccount.tt with the same alert
4. Set FinePaymentAutoPopup back on and confirm the alert is not
   shown (receipt pops up automatically instead, as before)
5. Confirm Point of sale payments still behave as before

Sponsored-by: Martin Renvoize <[email protected]>

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
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