notify staff if no payments applied or no patron credit added, and do not print recei...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 8 Mar 2008 03:47:41 +0000 (03:47 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 8 Mar 2008 03:47:41 +0000 (03:47 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8917 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index b4da00a..32b22ee 100644 (file)
@@ -509,6 +509,10 @@ patron.bills.prototype = {
                                                );
                                        }
                                }
+                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');