Web Client: Apply Payment button on patron Bills screen should be inactive if Payment Received is blank

Bug #1749994 reported by Michele Morgan
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
High
Unassigned
3.0
Fix Released
Undecided
Unassigned

Bug Description

Evergreen 3.0.3

In the xul client patron bills screen, if no billings are selected OR no amount is entered in the "Payment Received" box, the "Apply Payment" button is not greyed out, but clicking it produces a pop-up message:

No payments or patron credit applied.

In the web client, the "Apply Payment" button appears greyed out if no billings are selected. With billings selected, the button is active whether or not an amount is entered in "Payment Received"

If "Apply Payment" is clicked without an amount entered, there is no pop up warning that no payment has been made. This could lead to payments not being credited to a patron's account.

For feature parity with the xul client, a pop-up warning is needed that no payment has been applied. But my preference would be for the "Apply Payment" button to remain inactive unless billings are selected and an amount is entered in "Payment Received"

Changed in evergreen:
status: New → Confirmed
Garry Collum (gcollum)
Changed in evergreen:
assignee: nobody → Garry Collum (gcollum)
Revision history for this message
Garry Collum (gcollum) wrote :

Attached is a patch that provides a solution based on Terran's second option. After applying the patch the Apply Payment button doesn't activate unless both a billing or billings are checked and a numerical value is entered into the Payment Received text box.

tags: added: pullrequest
Garry Collum (gcollum)
Changed in evergreen:
status: Confirmed → In Progress
Revision history for this message
Garry Collum (gcollum) wrote :
Garry Collum (gcollum)
Changed in evergreen:
assignee: Garry Collum (gcollum) → nobody
Revision history for this message
Cesar V (cesardv) wrote :
tags: added: signedoff
Dawn Dale (ddale)
Changed in evergreen:
assignee: nobody → Dawn Dale (ddale)
Revision history for this message
Dawn Dale (ddale) wrote :

I have confirmed this is fixed. The payment button remains grayed out until a payment amount is entered.

Revision history for this message
Dawn Dale (ddale) wrote :

I have tested this code and consent to signing off on it with my name,
Dawn Dale and my email address, <email address hidden>

Changed in evergreen:
assignee: Dawn Dale (ddale) → nobody
Bill Erickson (berick)
Changed in evergreen:
assignee: nobody → Bill Erickson (berick)
milestone: none → 3.1.2
Revision history for this message
Bill Erickson (berick) wrote :

Added Dawn's sign-off. Did some minor commit message reformatting. Merged to master, 3.1, and 3.0. Thanks, all.

Changed in evergreen:
status: In Progress → Fix Committed
assignee: Bill Erickson (berick) → nobody
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.