Koha-clms/members
Martin Renvoize 86b3f2f08e
Bug 40305: Fix 'tendered' vs 'collected' variable name inconsistency
"One Ring to rule them all, one Ring to find them, One Ring to bring
them all and in the darkness bind them"

We've been battling against this for years, with a mixed use of
terminology and thus confusion in templates vs controllers and notice
templates.  I've decided to just try and make sure all the terminology
matches throughout, and use the more popular 'tendered' term over the
'collected' term.

This patch standardizes the terminology used throughout the payment
  system to consistently use 'tendered' instead of the mixed usage of
  'collected' and 'tendered' that has caused confusion over the years.

Changes include:
  - Update all payment form templates to use 'tendered' input names
  - Update JavaScript validation and change calculation logic
  - Update controller parameter handling in pos/pay.pl, pos/printreceipt.pl,
    and members/paycollect.pl
  - Update sample notice templates (RECEIPT) to use 'tendered' variable
  - Add null check for $total_tendered to prevent perl warnings

Test plan:
  1. Test Point of Sale payments with tendered amounts and change calculation
  2. Test member account payments with tendered amounts
  3. Test receipt generation (both print and email)
  4. Verify JavaScript validation works correctly
  5. Confirm no perl warnings when tendered amount is undefined

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit f91310306c)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
2025-09-16 14:02:24 +02:00
..
accountline-details.pl Bug 37222: Standardize markup for sidebar menus 2025-02-21 16:41:24 +01:00
alert-subscriptions.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
apikeys.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
boraccount.pl Bug 37211: Make notes in patron transactions table editable 2025-04-14 08:51:12 +02:00
cancel-charge.pl Bug 23674: Add ability to add note to canceled charge 2025-03-10 11:42:36 +01:00
default_messageprefs.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
deletemem.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
discharge.pl Bug 14250: Patron with fines cannot be discharged anymore 2025-04-22 08:46:26 +02:00
discharges.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
files.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
holdshistory.pl Bug 40401: Implement Koha::Patron->is_anonymous 2025-07-24 21:04:38 +02:00
housebound.pl Bug 39325: Manual fixes 2025-04-28 18:51:23 +02:00
ill-requests.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
mancredit.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
maninvoice.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
member-flags.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
member-password.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
member.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
memberentry.pl Bug 40459: Preferred name is lost when editing partial record 2025-08-22 09:47:59 +02:00
members-home.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
members-update-do.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
members-update.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
merge-patrons.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
mod_debarment.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
moremember.pl Bug 40367: Improve display of messages on patron account 2025-08-22 09:48:15 +02:00
notices.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
patronimage.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
pay.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
paycollect.pl Bug 40305: Fix 'tendered' vs 'collected' variable name inconsistency 2025-09-16 14:02:24 +02:00
print_overdues.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
printfeercpt.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
printinvoice.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
printnotice.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
printslip.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
purchase-suggestions.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
readingrec.pl Bug 40401: Implement Koha::Patron->is_anonymous 2025-07-24 21:04:38 +02:00
recallshistory.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
routing-lists.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
setstatus.pl Bug 38847: Fix error when renewing an expired child patron without a guarantor 2025-02-12 15:28:17 +01:00
statistics.pl Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
summary-print.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
two_factor_auth.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
update-child.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00