have patron summary kludge handle object or id for bill summary
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Sep 2006 03:32:17 +0000 (03:32 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Sep 2006 03:32:17 +0000 (03:32 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5967 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/summary.js

index 0201019..45d24a2 100644 (file)
@@ -138,7 +138,7 @@ patron.summary.prototype = {
                                                                                }
                                                                                var sum = 0;
                                                                                for (var i = 0; i < list.length; i++) {
-                                                                                       var robj = obj.network.simple_request('FM_MBTS_RETRIEVE',[ses(),list[i]]);
+                                                                                       var robj = typeof list[i] == 'object' ? list[i] : obj.network.simple_request('FM_MBTS_RETRIEVE',[ses(),list[i]]);
                                                                                        sum += robj.balance_owed();
                                                                                }
                                                                                JSAN.use('util.money');