From a0507cd385356a380d4e0e62cf044afe18affa63 Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 10 Jul 2007 03:44:55 +0000 Subject: [PATCH] Annotate Payment feature 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 | 4 ++++ Open-ILS/xul/staff_client/server/patron/bills_overlay.xul | 1 + 2 files changed, 5 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/patron/bills.js b/Open-ILS/xul/staff_client/server/patron/bills.js index 3e65411c05..33b7b1fb37 100644 --- a/Open-ILS/xul/staff_client/server/patron/bills.js +++ b/Open-ILS/xul/staff_client/server/patron/bills.js @@ -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, diff --git a/Open-ILS/xul/staff_client/server/patron/bills_overlay.xul b/Open-ILS/xul/staff_client/server/patron/bills_overlay.xul index b69c1efd90..0b9bccec2d 100644 --- a/Open-ILS/xul/staff_client/server/patron/bills_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/bills_overlay.xul @@ -107,6 +107,7 @@