From: Dan Briem Date: Fri, 24 Jan 2020 23:03:07 +0000 (-0500) Subject: LP1849370 Mark items as damaged - changing fee usability issues X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=950c6153163022ea7da92ceb15f6a4f722e4d3ed;p=Evergreen.git LP1849370 Mark items as damaged - changing fee usability issues The prop that conditionally renders the fee interface is bound to the fee input so it removes itself from the DOM when cleared. The patch uses a separate prop. The fee input's by the edge so you may mistakenly close the modal if you try to click & drag to highlight the fee. The patch sets the prop backdrop to static. A $0 item price will cause the modal to keep reloading on submit. If you set a $0 fee manually without clicking No Charge it charges the full item price. The patch sets the apply_fines param for the Perl API dynamically on submission. To test: 1. Make sure the OU setting "Charge item price when marked damaged" is true 2. Check out an item with a price to a user 3. Mark it damaged (from Item Status or Checkin screen) 4. Note if you clear the fee input it removes itself, if you drag the mouse off the modal & release it closes, & if you charge $0 without using "No Charge" it charges the user the full item price 5. Apply patch and repeat steps 1-3 6. Note the input stays when cleared, the modal doesn't close if you release the mouse on the backdrop, & charging $0 doesn't charge the user Signed-off-by: Dan Briem Signed-off-by: Terran McCanna Signed-off-by: Chris Sharp --- diff --git a/Open-ILS/src/templates/staff/circ/share/t_mark_damaged.tt2 b/Open-ILS/src/templates/staff/circ/share/t_mark_damaged.tt2 index 467fa13f32..52d1c8a784 100644 --- a/Open-ILS/src/templates/staff/circ/share/t_mark_damaged.tt2 +++ b/Open-ILS/src/templates/staff/circ/share/t_mark_damaged.tt2 @@ -9,45 +9,45 @@
[% l("Item [_1] will be marked damaged. ", "{{barcode}}") %] - [% l("Was returned ") %] + [% l("Was returned ") %] [% l("on [_1] ","{{circ_checkin_time | date:'MM/dd/yy H:mm a'}}") %] [% l("for [_1] : [_2]. ", "{{circ_patron_name}}", "{{circ.usr().usrname()}}") %] [% l("Confirmation required to charge this patron [_1] for the damage.", "{{billArgs.charge | currency}}") %]
-
+
-
+