[open-ils-commits] r8917 -
trunk/Open-ILS/xul/staff_client/server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Mar 7 23:20:24 EST 2008
Author: phasefx
Date: 2008-03-07 22:47:41 -0500 (Fri, 07 Mar 2008)
New Revision: 8917
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/bills.js
Log:
notify staff if no payments applied or no patron credit added, and do not print receipt. bug #609
Modified: trunk/Open-ILS/xul/staff_client/server/patron/bills.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/bills.js 2008-03-08 03:47:36 UTC (rev 8916)
+++ trunk/Open-ILS/xul/staff_client/server/patron/bills.js 2008-03-08 03:47:41 UTC (rev 8917)
@@ -509,6 +509,10 @@
);
}
}
+ if ( payment_blob.payments.length == 0 && payment_blob.patron_credit == '0.00' ) {
+ alert('No payments or patron credit applied.');
+ return;
+ }
if ( obj.pay( payment_blob ) ) {
obj.data.voided_billings = []; obj.data.stash('voided_billings');
More information about the open-ils-commits
mailing list