PINES Customization: Set default damaged billing type
authorMcCanna <tmccanna@georgialibraries.org>
Wed, 20 Dec 2017 22:35:40 +0000 (17:35 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 3 Jan 2018 19:28:45 +0000 (14:28 -0500)
This sets the default billing type when marking an item damaged to
'Damaged Materials' which is ID 106 in our database.

Signed-off-by: McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/staff/circ/share/t_mark_damaged.tt2

index 40565af..c5c11aa 100644 (file)
@@ -24,7 +24,8 @@
     </div>
     <div class="col-md-6">
       <label>[% l("Type") %]
-      <select class="form-control" ng-model="billArgs.type">
+      <!-- PINES Customization: Set default billing type to Damaged (106 is the PINES-specific ID for damaged materials) -->
+      <select class="form-control" ng-model="billArgs.type" ng-init="billArgs.type='106'">
         <option ng-repeat="type in billingTypes | orderBy:'name()'" value="{{type.id()}}" 
           ng-disabled="applyFine == 'noapply'">
           {{type.name()}}