current_location.name - Current location's name
current_location.shortname - Current location's shortname
* patron - the patron who was billed, which contains:
- patron.prefix - Prefix of the patron
- patron.first_given_name - First given name of the patron
- patron.second_given_name - Second given name of the patron
- patron.family_name - Family name of the patron
- patron.suffix - Suffix of the patron
+ patron.prefix - Prefix of the patron
+ patron.first_given_name - First given name of the patron
+ patron.second_given_name - Second given name of the patron
+ patron.family_name - Family name of the patron
+ patron.suffix - Suffix of the patron
patron.card - The patron's barcode number
patron.expire_date - The patron's expiration date
patron.alias - The patron's alias
xact.summary.last_billing_note - Last billing note
xact.summary.last_billing_type - Last billing type
xact.summary.last_payment_note - Last payment note
- xact.summary.last_payment_ts - Last payment date and time
+ xact.summary.last_payment_ts - Last payment date and time
xact.summary.last_payment_type - Last payment type
- xact.summary.total_owed - Total billed
+ xact.summary.total_owed - Total billed
xact.summary.total_paid - Total paid
- xact.summary.xact_type - Billing type
+ xact.summary.xact_type - Billing type
xact.call_number - Information about the copy
xact.call_number.label - Copy call number
xact.call_number.prefix - Copy call number prefix
<div ng-repeat="xact in transactions">
<dt><b>Bill #{{xact.id}}</b></dt>
<dd>
- <table>
+ <table>
<tr valign="top">
<td>[% l('Date:') %]</td>
<td>{{xact.xact_start | date:$root.egDateAndTimeFormat}}</td>
- </tr>
+ </tr>
<tr valign="top">
<td>[% l('Type') %]:</td>
<td>{{xact.summary.xact_type}}</td>
- </tr>
+ </tr>
<tr valign="top">
<td>[% l('Last Billing') %]:</td>
<td>{{xact.summary.last_billing_type}}<br/>
{{xact.summary.last_billing_note}}
</td>
- </tr>
+ </tr>
<tr valign="top">
<td>[% l('Total Billed') %]:</td>
<td>{{xact.summary.total_owed | currency}}</td>
- </tr>
+ </tr>
<tr valign="top">
<td>[% l('Last Payment') %]:</td>
<td>{{xact.summary.last_payment_type}}<br/>
{{xact.summary.last_payment_note}}
</td>
- </tr>
+ </tr>
<tr valign="top">
<td>[% l('Total Paid') %]:</td>
<td>{{xact.summary.total_paid | currency}}</td>
- </tr>
+ </tr>
<tr valign="top">
<td><b>[% l('Balance') %]:</b></td>
<td><b>{{xact.summary.balance_owed | currency}}</b></td>
- </tr>
+ </tr>
</table>
</dd>
<br/>
id : 1,
xact_start : new Date().toISOString(),
xact_finish : new Date().toISOString(),
- call_number : {
- label : "spindler",
- prefix : "biography",
- suffix : "Closed Stacks",
- owning_lib : {
- name : "Mineola Public Library",
- shortname : "Mineola"
- }
- },
+ call_number : {
+ label : "spindler",
+ prefix : "biography",
+ suffix : "Closed Stacks",
+ owning_lib : {
+ name : "Mineola Public Library",
+ shortname : "Mineola"
+ }
+ },
summary : {
xact_type : 'circulation',
last_billing_type : 'Overdue materials',
xact_start : xact.xact_start(),
}
if (xact.circulation()) {
- newXact.copy_barcode = xact.circulation().target_copy().barcode(),
+ newXact.copy_barcode = xact.circulation().target_copy().barcode();
newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title();
newXact.call_number = {
label : xact.circulation().target_copy().call_number().label(),
- prefix : xact.circulation().target_copy().call_number().prefix().label(),
- suffix : xact.circulation().target_copy().call_number().suffix().label(),
+ prefix : xact.circulation().target_copy().call_number().prefix().label(),
+ suffix : xact.circulation().target_copy().call_number().suffix().label(),
owning_lib : {
- name : xact.circulation().target_copy().call_number().owning_lib().name(),
- shortname : xact.circulation().target_copy().call_number().owning_lib().shortname()
+ name : xact.circulation().target_copy().call_number().owning_lib().name(),
+ shortname : xact.circulation().target_copy().call_number().owning_lib().shortname()
}
}
}
-
xacts.push(newXact);
}
);
xact_start : xact.xact_start(),
}
if (xact.circulation()) {
- newXact.copy_barcode = xact.circulation().target_copy().barcode(),
- newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title()
+ newXact.copy_barcode = xact.circulation().target_copy().barcode();
+ newXact.title = xact.circulation().target_copy().call_number().record().simple_record().title();
newXact.call_number = {
label : xact.circulation().target_copy().call_number().label(),
- prefix : xact.circulation().target_copy().call_number().prefix().label(),
- suffix : xact.circulation().target_copy().call_number().suffix().label(),
+ prefix : xact.circulation().target_copy().call_number().prefix().label(),
+ suffix : xact.circulation().target_copy().call_number().suffix().label(),
owning_lib : {
- name : xact.circulation().target_copy().call_number().owning_lib().name(),
- shortname : xact.circulation().target_copy().call_number().owning_lib().shortname()
+ name : xact.circulation().target_copy().call_number().owning_lib().name(),
+ shortname : xact.circulation().target_copy().call_number().owning_lib().shortname()
}
}
}
print_data.circulations.push({
circ : egCore.idl.toHash(co.circ),
copy : egCore.idl.toHash(co.acp),
+ call_number : egCore.idl.toHash(co.acn), // Wrong?
+ owning_lib : egCore.idl.toHash(co.aou), // Wrong?
title : co.title,
author : co.author
});
- // Flesh selected fields of this circulation
- print_data.circulations[0].copy.call_number =
- egCore.idl.toHash(co.acn);
- print_data.circulations[0].copy.owning_lib =
- egCore.ils.toHash(co.aou);
};
});
return egCore.pcrud.retrieveAll('ccs', {}, {atomic : true}).then(
function(list) {
egCore.env.absorbList(list, 'ccs');
+ copy.status(egCore.env.ccs.map[copy.status()]);
}
);
}