From: Dan Briem Date: Fri, 1 Nov 2019 00:21:17 +0000 (-0400) Subject: LP#1849370 Mark items as damaged - changing fee usability issues X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fdbriem%2Flp1849370_mark_damaged_usability_issues;p=working%2FEvergreen.git 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 --- 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}}") %]
-
+
-
+