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>
Sat, 19 Nov 2022 19:52:45 +0000 (14:52 -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 52d1c8a..21c5883 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="mode == 'waive'">
           {{type.name()}}