Annotate Payment feature
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 10 Jul 2007 03:44:55 +0000 (03:44 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 10 Jul 2007 03:44:55 +0000 (03:44 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@7537 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 3e65411..33b7b1f 100644 (file)
@@ -545,6 +545,10 @@ patron.bills.prototype = {
        'pay' : function(payment_blob) {
                var obj = this;
                try {
+            var x = document.getElementById('annotate_payment');
+            if (x && x.checked && (! payment_blob.note)) {
+                payment_blob.note = window.prompt('Please annotate this payment:','','Annotate Payment');
+            }
                        obj.previous_summary = {
                                original_balance : obj.controller.view.bill_total_owed.value,
                                voided_balance : obj.controller.view.voided_balance.value,
index b69c1ef..0b9bcce 100644 (file)
                <button id="bill_wizard" label="Bill Patron" accesskey="B" command="cmd_bill_wizard"/>
                <button id="bill_history" label="History" accesskey="H" command="cmd_bill_history"/>
                <spacer flex="2"/>
+               <checkbox id="annotate_payment" label="Annotate Payment" persist="checked" checked="false" />
                <checkbox id="auto_print" label="Auto-Print" persist="checked" checked="true" />
                <button class="hide_patron_credit" hidden="true" disabled="true" id="change_to_credit" label="Convert Change to Patron Credit" command="cmd_change_to_credit"/>
                <button id="bill_apply_payment" label="Apply Payment!" accesskey="P" command="cmd_bill_apply_payment"/>