From c5a8ad0a4dc32ccbdf0e9d0f5d0afb4cc297ff04 Mon Sep 17 00:00:00 2001 From: senator Date: Wed, 16 Jun 2010 20:39:00 +0000 Subject: [PATCH] Acq: Fix display failure in fund tag interface. Add admin interfaces for invoice_payment_method and invoice_item_type. git-svn-id: svn://svn.open-ils.org/ILS/trunk@16736 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../js/ui/default/conify/global/acq/fund_tag.js | 6 ++++- Open-ILS/web/opac/locale/en-US/lang.dtd | 4 ++++ .../conify/global/acq/invoice_item_type.tt2 | 26 ++++++++++++++++++++++ .../conify/global/acq/invoice_payment_method.tt2 | 26 ++++++++++++++++++++++ .../xul/staff_client/chrome/content/main/menu.js | 8 +++++++ .../chrome/content/main/menu_frame_menus.xul | 5 +++++ 6 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/web/templates/default/conify/global/acq/invoice_item_type.tt2 create mode 100644 Open-ILS/web/templates/default/conify/global/acq/invoice_payment_method.tt2 diff --git a/Open-ILS/web/js/ui/default/conify/global/acq/fund_tag.js b/Open-ILS/web/js/ui/default/conify/global/acq/fund_tag.js index f451ea7ac..d23be7866 100644 --- a/Open-ILS/web/js/ui/default/conify/global/acq/fund_tag.js +++ b/Open-ILS/web/js/ui/default/conify/global/acq/fund_tag.js @@ -29,6 +29,7 @@ function ftInit() { buildFtGrid(); } ); + buildFtGrid(); } ); } @@ -42,7 +43,7 @@ function buildFtGrid() { {"owner": fieldmapper.aou.orgNodeTrail(ftOwner, true /* asId */)}, { "async": true, - "oncomplete": function(r) { + "onresponse": function(r) { if ((ftList = openils.Util.readResponse(r))) { ftList = openils.Util.objectSort(ftList); ftList.forEach( @@ -51,6 +52,9 @@ function buildFtGrid() { } ); } + }, + "oncomplete": function() { + ftGrid.hideLoadProgressIndicator(); } } ); diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 117100f1a..3d5da38c0 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -697,6 +697,10 @@ + + + + diff --git a/Open-ILS/web/templates/default/conify/global/acq/invoice_item_type.tt2 b/Open-ILS/web/templates/default/conify/global/acq/invoice_item_type.tt2 new file mode 100644 index 000000000..f87a0f4eb --- /dev/null +++ b/Open-ILS/web/templates/default/conify/global/acq/invoice_item_type.tt2 @@ -0,0 +1,26 @@ +[% WRAPPER default/base.tt2 %] + +
+
Invoice Item Types
+
+ + +
+
+
+ +
+
+[% END %] diff --git a/Open-ILS/web/templates/default/conify/global/acq/invoice_payment_method.tt2 b/Open-ILS/web/templates/default/conify/global/acq/invoice_payment_method.tt2 new file mode 100644 index 000000000..437cc5764 --- /dev/null +++ b/Open-ILS/web/templates/default/conify/global/acq/invoice_payment_method.tt2 @@ -0,0 +1,26 @@ +[% WRAPPER default/base.tt2 %] + +
+
Invoice Payment Methods
+
+ + +
+
+
+ +
+
+[% END %] diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js index d850372fc..18ed6ce27 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -672,6 +672,14 @@ main.menu.prototype = { ['oncommand'], function() { open_eg_web_page('conify/global/config/billing_type'); } ], + 'cmd_server_admin_acq_invoice_item_type' : [ + ['oncommand'], + function() { open_eg_web_page('conify/global/acq/invoice_item_type'); } + ], + 'cmd_server_admin_acq_invoice_payment_method' : [ + ['oncommand'], + function() { open_eg_web_page('conify/global/acq/invoice_payment_method'); } + ], 'cmd_server_admin_acq_lineitem_alert' : [ ['oncommand'], function() { open_eg_web_page('conify/global/acq/lineitem_alert'); } diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul index d5a9be499..dfa0b5678 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul @@ -129,6 +129,8 @@ + + @@ -382,6 +384,9 @@ + + + -- 2.11.0