From: berick Date: Mon, 14 Feb 2011 14:57:37 +0000 (-0500) Subject: to avoid polluting shared code, shove the new payments call direclty into the kcls... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a67ec20c60d37cd94ddb78dfe98b4c8fa669409f;p=evergreen%2Fequinox.git to avoid polluting shared code, shove the new payments call direclty into the kcls version of myopac.js --- diff --git a/Open-ILS/web/opac/common/js/config.js b/Open-ILS/web/opac/common/js/config.js index 2b3546edca..054e56a154 100644 --- a/Open-ILS/web/opac/common/js/config.js +++ b/Open-ILS/web/opac/common/js/config.js @@ -320,7 +320,6 @@ var FETCH_CHECKED_OUT_SUM = "open-ils.actor:open-ils.actor.user.checked_out"; var FETCH_HOLDS = "open-ils.circ:open-ils.circ.holds.retrieve"; var FETCH_FINES_SUMMARY = "open-ils.actor:open-ils.actor.user.fines.summary"; var FETCH_TRANSACTIONS = "open-ils.actor:open-ils.actor.user.transactions.have_charge.fleshed"; -var FETCH_PAYMENTS = "open-ils.actor:open-ils.actor.user.payments.retrieve"; var FETCH_MONEY_BILLING = 'open-ils.circ:open-ils.circ.money.billing.retrieve.all'; var FETCH_CROSSREF = "open-ils.search:open-ils.search.authority.crossref"; var FETCH_CROSSREF_BATCH = "open-ils.search:open-ils.search.authority.crossref.batch"; diff --git a/Open-ILS/web/opac/skin/kcls/js/myopac.js b/Open-ILS/web/opac/skin/kcls/js/myopac.js index 852a36c48a..f796aabad3 100644 --- a/Open-ILS/web/opac/skin/kcls/js/myopac.js +++ b/Open-ILS/web/opac/skin/kcls/js/myopac.js @@ -1413,7 +1413,9 @@ function myopacDrawPayments() { before.setFullYear(before.getFullYear() - 1); // KCLS limits payment history view to 1 year. This will eventually be expanded // out to a history view page, but for now, just fetch what's needed. - var req = new Request(FETCH_PAYMENTS, G.user.session, G.user.id(), + var req = new Request( + 'open-ils.actor:open-ils.actor.user.payments.retrieve', + G.user.session, G.user.id(), {"where":{"payment_ts":{">=":dojo.date.stamp.toISOString(before)}}}); req.callback(_myopacDrawPayments);