<!ENTITY staff.main.menu.admin.server_admin.acq.provider.accesskey "P">
<!ENTITY staff.main.menu.admin.server_admin.acq.edi_account.label "EDI Accounts">
<!ENTITY staff.main.menu.admin.server_admin.acq.edi_account.accesskey "U">
+<!ENTITY staff.main.menu.admin.server_admin.acq.edi_message.label "EDI Messages">
+<!ENTITY staff.main.menu.admin.server_admin.acq.edi_message.accesskey "M">
<!ENTITY staff.main.menu.admin.server_admin.acq.distrib_formula.label "Distribution Formulas">
<!ENTITY staff.main.menu.admin.server_admin.acq.distrib_formula.accesskey "D">
<!ENTITY staff.main.menu.admin.server_admin.acq.currency_type.label "Currency Types">
[% WRAPPER "default/base.tt2" %]
-[% ctx.page_title = "PO History" %]
+[% ctx.page_title = "EDI Messages" %]
<script type="text/javascript">
dojo.require('openils.Util');
dojo.require('openils.widget.AutoGrid');
var poId = "[% ctx.page_args.0 %]";
openils.Util.addOnLoad(
function() {
- edimGrid.loadAll({order_by : {acqedim : 'create_time DESC'}}, {purchase_order : poId});
+ if (poId) {
+ edimGrid.loadAll({order_by : {acqedim : 'create_time DESC'}}, {purchase_order : poId});
+ } else {
+ edimGrid.loadAll({order_by : {acqedim : 'create_time DESC'}});
+ }
}
);
</script>
-<h1>Purchase Order EDI</h1>
+[% IF ctx.page_args.0 %]
+<h1>EDI Messages (Purchase Order [% ctx.page_args.0 %])</h1>
+[% ELSE %]
+<h1>EDI Messages</h1>
+[% END %]
<br/>
<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
<table jsId="edimGrid"
autoHeight='true'
dojoType="openils.widget.AutoGrid"
defaultCellWidth="'auto'"
- fieldOrder="['message_type', 'status', 'create_time', 'translate_time', 'process_time', 'error_time', 'error', 'account', 'remote_file']"
query="{id: '*'}"
+ [% IF ctx.page_args.0 %]
+ fieldOrder="['message_type', 'status', 'create_time', 'translate_time', 'process_time', 'error_time', 'error', 'account', 'remote_file']"
suppressFields="['id', 'edi', 'jedi', 'purchase_order']"
+ [% ELSE %]
+ fieldOrder="['purchase_order', 'message_type', 'status', 'create_time', 'translate_time', 'process_time', 'error_time', 'error', 'account', 'remote_file']"
+ suppressFields="['id', 'edi', 'jedi']"
+ [% END %]
editStyle='pane'
fmClass='acqedim'
editOnEnter='true'
<command id="cmd_server_admin_acq_funding_source" />
<command id="cmd_server_admin_acq_provider" />
<command id="cmd_server_admin_acq_edi_account" />
+ <command id="cmd_server_admin_acq_edi_message" />
<command id="cmd_server_admin_acq_currency_type" />
<command id="cmd_server_admin_acq_exchange_rate" />
<command id="cmd_server_admin_acq_distrib_formula" />
<menuitem label="&staff.main.menu.admin.server_admin.acq.exchange_rate.label;" accesskey="&staff.main.menu.admin.server_admin.acq.exchange_rate.accesskey;" command="cmd_server_admin_acq_exchange_rate" />
<menuitem label="&staff.main.menu.admin.server_admin.acq.provider.label;" accesskey="&staff.main.menu.admin.server_admin.acq.provider.accesskey;" command="cmd_server_admin_acq_provider" />
<menuitem label="&staff.main.menu.admin.server_admin.acq.edi_account.label;" accesskey="&staff.main.menu.admin.server_admin.acq.edi_account.accesskey;" command="cmd_server_admin_acq_edi_account" />
+ <menuitem label="&staff.main.menu.admin.server_admin.acq.edi_message.label;" accesskey="&staff.main.menu.admin.server_admin.acq.edi_message.accesskey;" command="cmd_server_admin_acq_edi_message" />
<menuseparator />
<menuitem label="&staff.main.menu.admin.server_admin.acq.claim_type.label;" accesskey="&staff.main.menu.admin.server_admin.acq.claim_type.accesskey;" command="cmd_server_admin_acq_claim_type"/>
<menuitem label="&staff.main.menu.admin.server_admin.acq.claim_event_type.label;" accesskey="&staff.main.menu.admin.server_admin.acq.claim_event_type.accesskey;" command="cmd_server_admin_acq_claim_event_type"/>