LP 1743783 Billing Location rel_3_2_1_lp1743783_billing_location_display
authorTerran McCanna <tmccanna@georgialibraries.org>
Wed, 12 Dec 2018 20:12:56 +0000 (15:12 -0500)
committerTerran McCanna <tmccanna@georgialibraries.org>
Wed, 12 Dec 2018 20:12:56 +0000 (15:12 -0500)
Fix for missing billing location on full bill details page.
Will also be submitting to Evergreen community as bug fix.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/staff/circ/patron/t_xact_details.tt2
Open-ILS/web/js/ui/default/staff/circ/services/billing.js

index 0be1f7d..fec94e5 100644 (file)
@@ -2,7 +2,7 @@
 
 <div class="row">
   <div class="col-md-2 strong-text">[% l('Billing Location') %]</div>
-  <div class="col-md-2">{{xact.billing_location().shortname()}}</div>
+  <div class="col-md-2">{{xact.grocery().billing_location().shortname()||xact.circulation().circ_lib().shortname()}}</div>
   <div class="col-md-2 strong-text">[% l('Total Billed') %]</div>
   <div class="col-md-2">{{xact.summary().total_owed() | currency}}</div>
   <div class="col-md-2 strong-text">[% l('Title') %]</div>
index 8c1c406..214fc57 100644 (file)
@@ -14,13 +14,14 @@ function($uibModal , $q , egCore) {
     // fetch a fleshed money.billable_xact
     service.fetchXact = function(xact_id) {
         return egCore.pcrud.retrieve('mbt', xact_id, {
-            flesh : 5,
+            flesh : 6,
             flesh_fields : {
                 mbt : ['summary','circulation','grocery','reservation'],
-                circ: ['target_copy'],
+                circ: ['target_copy', 'circ_lib'],
                 acp : ['call_number','location','status','age_protect'],
                 acn : ['record'],
-                bre : ['simple_record']
+                bre : ['simple_record'],
+                mg : ['billing_location']
             },
             select : {bre : ['id']}}, // avoid MARC
             {authoritative : true}