[open-ils-commits] r17227 - in trunk/Open-ILS: examples src/edi_translator src/edi_translator/data src/sql/Pg src/sql/Pg/upgrade web/templates/default/conify/global/acq (atz)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Aug 16 12:23:45 EDT 2010
Author: atz
Date: 2010-08-16 12:23:41 -0400 (Mon, 16 Aug 2010)
New Revision: 17227
Added:
trunk/Open-ILS/src/edi_translator/data/
trunk/Open-ILS/src/edi_translator/data/brodart_001_edi.tst
trunk/Open-ILS/src/sql/Pg/upgrade/0372.schema.acq_edi_message.sql
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql
trunk/Open-ILS/web/templates/default/conify/global/acq/edi_account.tt2
Log:
0372 - acq.edi_message.vendacct
Needed for some but not all vendors (separate from SAN).
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2010-08-16 13:53:09 UTC (rev 17226)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2010-08-16 16:23:41 UTC (rev 17227)
@@ -6336,6 +6336,7 @@
<field name="last_activity" reporter:datatype="timestamp" reporter:label="Last Activity"/>
<field name="provider" reporter:datatype="link" reporter:label="Provider"/>
<field name="in_dir" reporter:datatype="text" reporter:label="Incoming Directory"/>
+ <field name="vendacct" reporter:datatype="text" reporter:label="Vendor Account Number"/>
<field name="vendcode" reporter:datatype="text" reporter:label="Vendor Assigned Code"/>
</fields>
<links>
Added: trunk/Open-ILS/src/edi_translator/data/brodart_001_edi.tst
===================================================================
--- trunk/Open-ILS/src/edi_translator/data/brodart_001_edi.tst (rev 0)
+++ trunk/Open-ILS/src/edi_translator/data/brodart_001_edi.tst 2010-08-16 16:23:41 UTC (rev 17227)
@@ -0,0 +1 @@
+UNA:+.? 'UNB+UNOB:3+9999867:31B+1697684:31B+100811:1927+1'UNH+1+ORDERS:D:96A:UN'BGM+220+15+9'DTM+137:20100811:102'NAD+BY+9999867::91'NAD+SU+1697684::31B'NAD+SU+7::92'CUX+2:USD:9'LIN+81++0743294394:IB'PIA+5+0743294394:IB+81:SA'IMD+F+BTI+:::206 BONES'IMD+F+BPU+:::Scribner'IMD+F+BPD+:::2009-08-01'QTY+21:4'PRI+AAB:0'RFF+LI:15/81'LIN+80++1598883275:IB'PIA+5+1598883275:IB+80:SA'IMD+F+BTI+:::COUNTY AND CITY EXTRA'IMD+F+BPU+:::Bernan Press'IMD+F+BPD+:::2009-07-01'QTY+21:4'PRI+AAB:0'RFF+LI:15/80'LIN+79++1590203097:IB'PIA+5+1590203097:IB+79:SA'IMD+F+BTI+:::2017'IMD+F+BPU+:::Overlook Pr'IMD+F+BPD+:::2010-03-01'QTY+21:4'PRI+AAB:0'RFF+LI:15/79'LIN+78++1598884093:IB'PIA+5+1598884093:IB+78:SA'IMD+F+BTI+:::COUNTY AND CITY EXTRA'IMD+F+BPU+:::Bernan Press'IMD+F+BPD+:::2010-07-01'QTY+21:4'PRI+AAB:0'RFF+LI:15/78'UNS+S'CNT+2:4'UNT+42+1'UNZ+1+1'
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-08-16 13:53:09 UTC (rev 17226)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-08-16 16:23:41 UTC (rev 17227)
@@ -68,7 +68,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0371'); -- senator
+INSERT INTO config.upgrade_log (version) VALUES ('0372'); -- atz
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Modified: trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-08-16 13:53:09 UTC (rev 17226)
+++ trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-08-16 16:23:41 UTC (rev 17227)
@@ -755,7 +755,8 @@
CREATE TABLE acq.edi_account ( -- similar tables can extend remote_account for other parts of EG
provider INT NOT NULL REFERENCES acq.provider (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
in_dir TEXT, -- incoming messages dir (probably different than config.remote_account.path, the outgoing dir)
- vendcode TEXT
+ vendcode TEXT,
+ vendacct TEXT
) INHERITS (config.remote_account);
-- We need a UNIQUE constraint here also, to support the FK from acq.provider.edi_default
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0372.schema.acq_edi_message.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0372.schema.acq_edi_message.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0372.schema.acq_edi_message.sql 2010-08-16 16:23:41 UTC (rev 17227)
@@ -0,0 +1,7 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0372'); -- atz
+
+ALTER TABLE acq.edi_account ADD COLUMN vendacct TEXT;
+
+COMMIT;
Modified: trunk/Open-ILS/web/templates/default/conify/global/acq/edi_account.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/acq/edi_account.tt2 2010-08-16 13:53:09 UTC (rev 17226)
+++ trunk/Open-ILS/web/templates/default/conify/global/acq/edi_account.tt2 2010-08-16 16:23:41 UTC (rev 17227)
@@ -48,7 +48,7 @@
<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
<table jsId="pListGrid"
dojoType="openils.widget.AutoGrid"
- fieldOrder="['id', 'label', 'host', 'username', 'password', 'account', 'owner', 'last_activity', 'provider', 'path', 'in_dir', 'vendcode']"
+ fieldOrder="['id', 'label', 'host', 'username', 'password', 'account', 'owner', 'last_activity', 'provider', 'path', 'in_dir', 'vendacct', 'vendcode']"
query="{id: '*'}"
defaultCellWidth='"auto"'
fmClass='acqedi'
More information about the open-ils-commits
mailing list