From: Jason Boyer Date: Thu, 4 Jan 2018 18:38:00 +0000 (-0500) Subject: LP1712646: Require a Billing Type to Bill User X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3b596a0ac12e5edbe9fa1d508d8ba4116a230f63;p=working%2FEvergreen.git LP1712646: Require a Billing Type to Bill User Previously billing a user without choosing a billing type would either fail silently or default to misc. This patch requires staff to choose a billing type before the new bill window can be dismissed. Signed-off-by: Jason Boyer Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/staff/circ/share/t_bill_patron_dialog.tt2 b/Open-ILS/src/templates/staff/circ/share/t_bill_patron_dialog.tt2 index f6d55aaaa0..dd10c8b80f 100644 --- a/Open-ILS/src/templates/staff/circ/share/t_bill_patron_dialog.tt2 +++ b/Open-ILS/src/templates/staff/circ/share/t_bill_patron_dialog.tt2 @@ -59,11 +59,10 @@ [% l('Billing Type:') %]
- +
@@ -71,7 +70,7 @@
diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/billing.js b/Open-ILS/web/js/ui/default/staff/circ/services/billing.js index 08acd99509..3abd6da57d 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/billing.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/billing.js @@ -64,8 +64,9 @@ function($uibModal , $q , egCore) { // fetch the org-focused billing types // Cache on egEnv service.fetchBillingTypes = function() { - if (egCore.env.cbt) + if (egCore.env.cbt) { return $q.when(egCore.env.cbt.list); + } return egCore.pcrud.search('cbt', { // first 100 are reserved for system-generated bills @@ -171,6 +172,3 @@ function($uibModal , $q , egCore) { return service; }]); - - -