'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,
<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"/>