<link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
<link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
<link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
- <link field="workstation" reltype="might_have" key="id" map="" class="aws"/>
- <link field="checkin_workstation" reltype="might_have" key="id" map="" class="aws"/>
+ <link field="workstation" reltype="has_a" key="id" map="" class="aws"/>
+ <link field="checkin_workstation" reltype="has_a" key="id" map="" class="aws"/>
</links>
</class>
<class id="combcirc" controller="open-ils.cstore" oils_obj:fieldmapper="action::all_circulation" oils_persist:tablename="action.all_circulation" reporter:core="true" reporter:label="Combined Aged and Active Circulations" oils_persist:readonly="true">
my $circ = $e->search_action_circulation(
[
{ target_copy => $copy_id },
- { order_by => { circ => 'xact_start desc' }, limit => 1 }
+ {
+ flesh => 1,
+ flesh_fields => {circ => ['checkin_workstation']},
+ order_by => { circ => 'xact_start desc' },
+ limit => 1
+ }
]
)->[0];