[open-ils-commits] r19234 - trunk/Open-ILS/xul/staff_client/server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 20 14:53:57 EST 2011
Author: phasefx
Date: 2011-01-20 14:53:53 -0500 (Thu, 20 Jan 2011)
New Revision: 19234
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/holds.js
Log:
don't offer to cancel related transits that have already completed when canceling holds
Modified: trunk/Open-ILS/xul/staff_client/server/patron/holds.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/holds.js 2011-01-20 19:44:32 UTC (rev 19233)
+++ trunk/Open-ILS/xul/staff_client/server/patron/holds.js 2011-01-20 19:53:53 UTC (rev 19234)
@@ -1044,7 +1044,8 @@
if (my_xulG.proceed) {
var transits = [];
for (var i = 0; i < obj.retrieve_ids.length; i++) {
- if (obj.holds_map[ obj.retrieve_ids[i].id ].hold.transit()) {
+ var transit = obj.holds_map[ obj.retrieve_ids[i].id ].hold.transit();
+ if (transit && ! transit.dest_recv_time() ) {
transits.push( obj.retrieve_ids[i].barcode );
}
var robj = obj.network.simple_request('FM_AHR_CANCEL',[ ses(), obj.retrieve_ids[i].id, my_xulG.cancel_reason, my_xulG.note]);
More information about the open-ils-commits
mailing list