I had the object vs id handling commented out
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Sep 2006 06:54:33 +0000 (06:54 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Sep 2006 06:54:33 +0000 (06:54 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5991 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index d19c0da..50e9c33 100644 (file)
@@ -36,19 +36,15 @@ patron.bills.prototype = {
                                //alert('obj.bills = ' + js2JSON(obj.bills));
 
                                for (var i = 0; i < obj.bills.length; i++) {
-                                       /*
                                        if (instanceOf(obj.bills[i],mobts)) {
                                                obj.bills[i] = { 'transaction' : obj.bills[i] }
                                        } else if (instanceOf(obj.bills[i],mbts)) {
                                                obj.bills[i] = { 'transaction' : obj.bills[i] }
                                        } else {
-                                       */
                                                var robj = obj.network.simple_request('FM_MBTS_RETRIEVE',[ses(),obj.bills[i]]);
                                                //alert('refresh robj = ' + js2JSON(robj));
                                                obj.bills[i] = { 'transaction' : robj }
-                                       /*
                                        }
-                                       */
                                }
 
                                if (!dont_show_me_the_money) {
@@ -643,17 +639,15 @@ patron.bills.prototype = {
                                                [ ses(), obj.patron_id ]
                                        );
                                        for (var i = 0; i < obj.bills.length; i++) {
-                                               /*
                                                if (instanceOf(obj.bills[i],mobts)) {
                                                        obj.bills[i] = { 'transaction' : obj.bills[i] }
+                                               } else if (instanceOf(obj.bills[i],mbts)) {
+                                                       obj.bills[i] = { 'transaction' : obj.bills[i] }
                                                } else {
-                                               */
                                                        var robj = obj.network.simple_request('FM_MBTS_RETRIEVE',[ses(),obj.bills[i]]);
                                                        //alert('robj = ' + js2JSON(robj));
                                                        obj.bills[i] = { 'transaction' : robj }
-                                               /*
                                                }
-                                               */
                                        }
                                }
                } catch(E) {