From: erickson Date: Mon, 17 May 2010 20:50:52 +0000 (+0000) Subject: added selector column for edi_account; added edi messages page for POs; allow editpan... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fb65b92888ae8e46dacefc457edb05307654f4b2;p=evergreen%2Fbjwebb.git added selector column for edi_account; added edi messages page for POs; allow editpane cancel button to show when in readOnly mode git-svn-id: svn://svn.open-ils.org/ILS/trunk@16445 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 1267d84b1..bf93f13d9 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -5801,7 +5801,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - + diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js index 08384b690..0ff2d8777 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js @@ -377,7 +377,8 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { var pane = new openils.widget.EditPane({ fmObject:fmObject, - hideActionButtons : this.editReadOnly, + hideSaveButton : this.editReadOnly, + readOnly : this.editReadOnly, overrideWidgets : this.overrideEditWidgets, overrideWidgetClass : this.overrideEditWidgetClass, overrideWidgetArgs : this.overrideWidgetArgs, diff --git a/Open-ILS/web/js/dojo/openils/widget/EditPane.js b/Open-ILS/web/js/dojo/openils/widget/EditPane.js index c499615ac..760eca80d 100644 --- a/Open-ILS/web/js/dojo/openils/widget/EditPane.js +++ b/Open-ILS/web/js/dojo/openils/widget/EditPane.js @@ -36,7 +36,7 @@ if(!dojo._hasResource['openils.widget.EditPane']) { this.inherited(arguments); this.initAutoEnv(); if(this.readOnly) - this.hideActionButtons = true; + this.hideSaveButton = true; // grab any field-level docs /* @@ -174,6 +174,8 @@ if(!dojo._hasResource['openils.widget.EditPane']) { onClick : this.onCancel }, cancelSpan); + if(this.hideSaveButton) return; + new dijit.form.Button({ label:'Save', // XXX onClick: function() {self.performAutoEditAction();} diff --git a/Open-ILS/web/js/ui/default/acq/po/view_po.js b/Open-ILS/web/js/ui/default/acq/po/view_po.js index cc3c2a746..6043bf0e2 100644 --- a/Open-ILS/web/js/ui/default/acq/po/view_po.js +++ b/Open-ILS/web/js/ui/default/acq/po/view_po.js @@ -390,6 +390,25 @@ params: [openils.User.authtoken, {purchase_order:poId}, {flesh_attrs:true, flesh } } ); + + pcrud.search( + 'acqedim', + {purchase_order : poId}, + { + order_by : {acqedim : 'create_time'}, + oncomplete : function(r) { + var resp = openils.Util.readResponse(r); + // TODO: I18n + if(resp) { + dojo.byId('acq-po-view-edi-messages').innerHTML = '(' + resp.length + ')'; + dojo.byId('acq-po-view-edi-messages').setAttribute('href', oilsBasePath + '/acq/po/edi_messages/' + poId); + } else { + dojo.byId('acq-po-view-edi-messages').innerHTML = '0'; + dojo.byId('acq-po-view-edi-messages').setAttribute('href', ''); + } + } + } + ); } function checkCouldActivatePo() { diff --git a/Open-ILS/web/templates/default/acq/po/edi_messages.tt2 b/Open-ILS/web/templates/default/acq/po/edi_messages.tt2 new file mode 100644 index 000000000..48c770b7d --- /dev/null +++ b/Open-ILS/web/templates/default/acq/po/edi_messages.tt2 @@ -0,0 +1,32 @@ +[% WRAPPER "default/base.tt2" %] +[% ctx.page_title = "PO History" %] + +

Purchase Order EDI

+
+
+ +
+
+[% END %] diff --git a/Open-ILS/web/templates/default/acq/po/view.tt2 b/Open-ILS/web/templates/default/acq/po/view.tt2 index 5e1c56dd4..f9fbb832d 100644 --- a/Open-ILS/web/templates/default/acq/po/view.tt2 +++ b/Open-ILS/web/templates/default/acq/po/view.tt2 @@ -45,6 +45,13 @@ id="acq-po-view-notes"> + + EDI Messages + + + + Activatable?