thinko
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Dec 2005 01:29:01 +0000 (01:29 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Dec 2005 01:29:01 +0000 (01:29 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2487 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 31bcc86..ecc88e1 100644 (file)
 
                                                var c1 = document.createElement('label');
                                                row.appendChild(c1);
-                                               c1.setAttribute('value', mb_list[0].voided() ? 'Yes' : 'No' );
+                                               c1.setAttribute('value', mb_list[i].voided() ? 'Yes' : 'No' );
 
                                                var c2 = document.createElement('label');
                                                row.appendChild(c2);
-                                               c2.setAttribute('value', util.date.formatted_date( mb_list[0].billing_ts(),'%F' ));
+                                               c2.setAttribute('value', util.date.formatted_date( mb_list[i].billing_ts(),'' ));
 
                                                var c3 = document.createElement('label');
                                                row.appendChild(c3);
-                                               c3.setAttribute('value', mb_list[0].billing_type());
+                                               c3.setAttribute('value', mb_list[i].billing_type());
 
                                                var c4 = document.createElement('label');
                                                row.appendChild(c4);
-                                               c4.setAttribute('value', util.money.sanitize( mb_list[0].amount() ) );
+                                               c4.setAttribute('value', util.money.sanitize( mb_list[i].amount() ) );
                                                c4.setAttribute('class','text-right');
 
                                                var c5 = document.createElement('label');
                                                row.appendChild(c5);
-                                               c5.setAttribute('value', mb_list[0].note());
+                                               c5.setAttribute('value', mb_list[i].note());
                                }
 
                                var mp_list = g.network.request(
 
                                                var c1 = document.createElement('label');
                                                row.appendChild(c1);
-                                               //c1.setAttribute('value', mp_list[0].voided() ? 'Yes' : 'No' );
+                                               //c1.setAttribute('value', mp_list[i].voided() ? 'Yes' : 'No' );
                                                c1.setAttribute('value', 'No' );
 
                                                var c2 = document.createElement('label');
                                                row.appendChild(c2);
-                                               c2.setAttribute('value', util.date.formatted_date( mp_list[0].payment_ts(),'%F' ));
+                                               c2.setAttribute('value', util.date.formatted_date( mp_list[i].payment_ts(),'' ));
 
                                                var c3 = document.createElement('label');
                                                row.appendChild(c3);
-                                               c3.setAttribute('value', mp_list[0].payment_type());
+                                               c3.setAttribute('value', mp_list[i].payment_type());
 
                                                var c4 = document.createElement('label');
                                                row.appendChild(c4);
-                                               c4.setAttribute('value', util.money.sanitize( mp_list[0].amount() ) );
+                                               c4.setAttribute('value', util.money.sanitize( mp_list[i].amount() ) );
                                                c4.setAttribute('class','text-right');
 
                                                var c5 = document.createElement('label');
                                                row.appendChild(c5);
-                                               c5.setAttribute('value', mp_list[0].note());
+                                               c5.setAttribute('value', mp_list[i].note());
                                }
 
        
index 007f8b9..8df4d92 100644 (file)
@@ -250,7 +250,9 @@ patron.bills.prototype = {
                                throw robj;
                        }
                } catch(E) {
-                       obj.error.sdump('D_ERROR','patron.bills.pay: ' + E);
+                       var error = 'patron.bills.pay: ' + js2JSON(E);
+                       obj.error.sdump('D_ERROR',error);
+                       alert(error);
                        return false;
                }
        },