[open-ils-commits] r19235 - branches/rel_2_0/Open-ILS/xul/staff_client/server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 20 14:54:41 EST 2011
Author: phasefx
Date: 2011-01-20 14:54:36 -0500 (Thu, 20 Jan 2011)
New Revision: 19235
Modified:
branches/rel_2_0/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: branches/rel_2_0/Open-ILS/xul/staff_client/server/patron/holds.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/server/patron/holds.js 2011-01-20 19:53:53 UTC (rev 19234)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/server/patron/holds.js 2011-01-20 19:54:36 UTC (rev 19235)
@@ -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