0372 - acq.edi_message.vendacct
authoratz <atz@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 16 Aug 2010 16:23:41 +0000 (16:23 +0000)
committeratz <atz@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 16 Aug 2010 16:23:41 +0000 (16:23 +0000)
Needed for some but not all vendors (separate from SAN).

git-svn-id: svn://svn.open-ils.org/ILS/trunk@17227 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/fm_IDL.xml
Open-ILS/src/edi_translator/data/brodart_001_edi.tst [new file with mode: 0644]
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/200.schema.acq.sql
Open-ILS/src/sql/Pg/upgrade/0372.schema.acq_edi_message.sql [new file with mode: 0644]
Open-ILS/web/templates/default/conify/global/acq/edi_account.tt2

index 180d168..d491ec9 100644 (file)
@@ -6336,6 +6336,7 @@ SELECT  usr,
                        <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>
diff --git a/Open-ILS/src/edi_translator/data/brodart_001_edi.tst b/Open-ILS/src/edi_translator/data/brodart_001_edi.tst
new file mode 100644 (file)
index 0000000..16d93fe
--- /dev/null
@@ -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'
index 251d118..9a21c27 100644 (file)
@@ -68,7 +68,7 @@ CREATE TABLE config.upgrade_log (
     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,
index 18c0b65..5144ca5 100644 (file)
@@ -755,7 +755,8 @@ CREATE TABLE acq.fiscal_year (
 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
diff --git a/Open-ILS/src/sql/Pg/upgrade/0372.schema.acq_edi_message.sql b/Open-ILS/src/sql/Pg/upgrade/0372.schema.acq_edi_message.sql
new file mode 100644 (file)
index 0000000..714e717
--- /dev/null
@@ -0,0 +1,7 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0372');  -- atz
+
+ALTER TABLE acq.edi_account ADD COLUMN vendacct TEXT;
+
+COMMIT;
index f851a7a..af76e3b 100644 (file)
@@ -48,7 +48,7 @@ function formatProvider(value) {
     <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'