From eb633c4c51b009ca4111cb2a93277ae908b23e17 Mon Sep 17 00:00:00 2001 From: Dan Briem Date: Thu, 31 Oct 2019 20:21:17 -0400 Subject: [PATCH] LP#1849370 Mark items as damaged - changing fee usability issues On the mark copy damaged modal the null condition of the fee is used to toggle the fee interface. But, an empty number input with ng-model binds as null, so if it's cleared it removes itself from the DOM. Also, open-ils.circ.mark_item_damaged charges full copy price if the fee param is falsy and the submit button is only disabled if the fee is null (allows $0). This branch removes the billing interface only if the previous circ info is present (no reason to bill) and won't submit the fee if falsy. To test: 1. Set the org unit setting "charge item price when damaged" to true 2. Checkout an item to a patron 3. Go the item status screen and scan the item 4. Select the item and, under actions, select mark damaged 5. Click confirm, clear the fee input, & note the billing interface disappears 6. Apply patch 7. Repeat steps, note clearing the fee doesn't hide the billing interface Signed-off-by: Dan Briem --- Open-ILS/src/templates/staff/circ/share/t_mark_damaged.tt2 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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..4623daa923 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,14 +9,14 @@
[% 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}}") %]
-
+
-
+