From 4b4de39785c046a7d3f2c662522ae3c086a09cc7 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 20 Jan 2011 19:53:53 +0000 Subject: [PATCH] don't offer to cancel related transits that have already completed when canceling holds git-svn-id: svn://svn.open-ils.org/ILS/trunk@19234 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/holds.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index 816cdcf4ef..8846577d09 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.js +++ b/Open-ILS/xul/staff_client/server/patron/holds.js @@ -1044,7 +1044,8 @@ patron.holds.prototype = { 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]); -- 2.11.0