--- /dev/null
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+INSERT INTO config.workstation_setting_type (name,label,grp,datatype) VALUES ('eg.circ.bills.annotatepayment','Bills: Annotate Payment', 'circ', 'bool');
+
+COMMIT;
+
<div class="form-group">
<label for="annotate-payment" class="control-label col-md-5">[% l('Annotate') %]</label>
<div class="col-md-1">
- <input id="annotate-payment" type="checkbox" ng-model="annotate_payment"/>
+ <input id="annotate-payment" type="checkbox" ng-model="annotate_payment" ng-change="onAnnotatePaymentChanged()"/>
</div>
<div class="col-md-6">
<button
$scope.amount_verified = false;
$scope.disable_auto_print = false;
- // check receipt_on_pay setting default persisted
+ // Load persistant settings
egCore.hatch.getItem('circ.bills.receiptonpay')
.then(function(rcptOnPay){
if (rcptOnPay) $scope.receipt_on_pay.isChecked = rcptOnPay;
});
+ egCore.hatch.getItem('circ.bills.annotatepayment')
+ .then(function(annoPay){
+ if (annoPay) $scope.annotate_payment = annoPay;
+ });
+
// pre-define list-returning funcs in case we access them
// before the grid instantiates
$scope.gridControls = {
egCore.hatch.setItem('circ.bills.receiptonpay', $scope.receipt_on_pay.isChecked);
}
+ $scope.onAnnotatePaymentChanged = function(){
+ egCore.hatch.setItem('circ.bills.annotatepayment', $scope.annotate_payment);
+ }
+
function printReceipt(type, payment_ids, payments_made, note) {
var payment_blobs = [];
var cusr = patronSvc.current;