<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>
{{total_circs}}
</div>
</div>
+ <div class="row">
+ <div class="col-md-2 strong-text">[% l('Owning Library') %]</div>
+ <div class="col-md-2">
+ {{xact.circulation().target_copy().call_number().owning_lib().shortname()}}
+ </div>
+ </div>
</div>
<hr/>
// 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']
+ acn : ['record','owning_lib'],
+ bre : ['simple_record'],
+ mg : ['billing_location']
},
select : {bre : ['id']}}, // avoid MARC
{authoritative : true}