[open-ils-commits] r7537 - branches/rel_1_2/Open-ILS/xul/staff_client/server/patron

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Jul 9 23:49:25 EDT 2007


Author: phasefx
Date: 2007-07-09 23:44:55 -0400 (Mon, 09 Jul 2007)
New Revision: 7537

Modified:
   branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/bills.js
   branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/bills_overlay.xul
Log:
Annotate Payment feature

Modified: branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/bills.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/bills.js	2007-07-10 03:43:28 UTC (rev 7536)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/bills.js	2007-07-10 03:44:55 UTC (rev 7537)
@@ -545,6 +545,10 @@
 	'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,

Modified: branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/bills_overlay.xul
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/bills_overlay.xul	2007-07-10 03:43:28 UTC (rev 7536)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/bills_overlay.xul	2007-07-10 03:44:55 UTC (rev 7537)
@@ -107,6 +107,7 @@
 		<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"/>



More information about the open-ils-commits mailing list