diff --git a/config/modules/adrs.json b/config/modules/adrs.json new file mode 100644 index 0000000..e161ad3 --- /dev/null +++ b/config/modules/adrs.json @@ -0,0 +1,162 @@ +{ + "name": "adrs", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.adrs", + "staging_table": "pipekit_staging.adrs", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Address Master 6.0", + "columns": [ + { + "source_name": "QZADR", + "source_type": "NUMERIC(8,0)", + "dest_name": "qzadr", + "dest_type": "numeric(8,0)", + "description": "Address Number" + }, + { + "source_name": "QZNAME", + "source_type": "CHAR(30)", + "dest_name": "qzname", + "dest_type": "text", + "description": "Name" + }, + { + "source_name": "QZADR1", + "source_type": "CHAR(35)", + "dest_name": "qzadr1", + "dest_type": "text", + "description": "Address 1" + }, + { + "source_name": "QZADR2", + "source_type": "CHAR(35)", + "dest_name": "qzadr2", + "dest_type": "text", + "description": "Address 2" + }, + { + "source_name": "QZADR3", + "source_type": "CHAR(35)", + "dest_name": "qzadr3", + "dest_type": "text", + "description": "Address 3" + }, + { + "source_name": "QZADR4", + "source_type": "CHAR(35)", + "dest_name": "qzadr4", + "dest_type": "text", + "description": "Address 4" + }, + { + "source_name": "QZADR5", + "source_type": "CHAR(35)", + "dest_name": "qzadr5", + "dest_type": "text", + "description": "Address 5" + }, + { + "source_name": "QZADR6", + "source_type": "CHAR(35)", + "dest_name": "qzadr6", + "dest_type": "text", + "description": "Address 6" + }, + { + "source_name": "QZADR7", + "source_type": "CHAR(35)", + "dest_name": "qzadr7", + "dest_type": "text", + "description": "Address 7" + }, + { + "source_name": "QZADR8", + "source_type": "CHAR(35)", + "dest_name": "qzadr8", + "dest_type": "text", + "description": "Address 8" + }, + { + "source_name": "QZADR9", + "source_type": "CHAR(35)", + "dest_name": "qzadr9", + "dest_type": "text", + "description": "Address 9" + }, + { + "source_name": "QZADR10", + "source_type": "CHAR(35)", + "dest_name": "qzadr10", + "dest_type": "text", + "description": "Address 10" + }, + { + "source_name": "QZCITY", + "source_type": "CHAR(30)", + "dest_name": "qzcity", + "dest_type": "text", + "description": "City" + }, + { + "source_name": "QZPROV", + "source_type": "CHAR(3)", + "dest_name": "qzprov", + "dest_type": "text", + "description": "Province /State Code" + }, + { + "source_name": "QZPOST", + "source_type": "CHAR(10)", + "dest_name": "qzpost", + "dest_type": "text", + "description": "Postal Code/ZIP" + }, + { + "source_name": "QZCRYC", + "source_type": "CHAR(3)", + "dest_name": "qzcryc", + "dest_type": "text", + "description": "Country Code" + }, + { + "source_name": "QZCTRY", + "source_type": "CHAR(15)", + "dest_name": "qzctry", + "dest_type": "text", + "description": "Obsoleted" + }, + { + "source_name": "QZPOOL", + "source_type": "CHAR(15)", + "dest_name": "qzpool", + "dest_type": "text", + "description": "Pool Point" + }, + { + "source_name": "QZPHON", + "source_type": "CHAR(15)", + "dest_name": "qzphon", + "dest_type": "text", + "description": "Phone Number" + }, + { + "source_name": "QZFAX", + "source_type": "CHAR(15)", + "dest_name": "qzfax", + "dest_type": "text", + "description": "Fax Number" + }, + { + "source_name": "QZEMAIL", + "source_type": "CHAR(253)", + "dest_name": "qzemail", + "dest_type": "text", + "description": "Email Address" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/adrs.sql b/config/modules/adrs.sql new file mode 100644 index 0000000..8741d78 --- /dev/null +++ b/config/modules/adrs.sql @@ -0,0 +1,23 @@ +SELECT + QZADR AS qzadr, + RTRIM(QZNAME) AS qzname, + RTRIM(QZADR1) AS qzadr1, + RTRIM(QZADR2) AS qzadr2, + RTRIM(QZADR3) AS qzadr3, + RTRIM(QZADR4) AS qzadr4, + RTRIM(QZADR5) AS qzadr5, + RTRIM(QZADR6) AS qzadr6, + RTRIM(QZADR7) AS qzadr7, + RTRIM(QZADR8) AS qzadr8, + RTRIM(QZADR9) AS qzadr9, + RTRIM(QZADR10) AS qzadr10, + RTRIM(QZCITY) AS qzcity, + RTRIM(QZPROV) AS qzprov, + RTRIM(QZPOST) AS qzpost, + RTRIM(QZCRYC) AS qzcryc, + RTRIM(QZCTRY) AS qzctry, + RTRIM(QZPOOL) AS qzpool, + RTRIM(QZPHON) AS qzphon, + RTRIM(QZFAX) AS qzfax, + RTRIM(QZEMAIL) AS qzemail +FROM LGDAT.ADRS diff --git a/config/modules/color.json b/config/modules/color.json new file mode 100644 index 0000000..9ead1d1 --- /dev/null +++ b/config/modules/color.json @@ -0,0 +1,92 @@ +{ + "name": "color", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.color", + "staging_table": "pipekit_staging.color", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "color descriptions", + "columns": [ + { + "source_name": "COLCODE", + "source_type": "CHAR(3)", + "dest_name": "colcode", + "dest_type": "text", + "description": "COLCODE" + }, + { + "source_name": "COLDESC", + "source_type": "CHAR(20)", + "dest_name": "coldesc", + "dest_type": "text", + "description": "COLDESC" + }, + { + "source_name": "COLPANT", + "source_type": "CHAR(10)", + "dest_name": "colpant", + "dest_type": "text", + "description": "COLPANT" + }, + { + "source_name": "COLOREF", + "source_type": "CHAR(20)", + "dest_name": "coloref", + "dest_type": "text", + "description": "COLOREF" + }, + { + "source_name": "COLFTRN", + "source_type": "CHAR(15)", + "dest_name": "colftrn", + "dest_type": "text", + "description": "COLFTRN" + }, + { + "source_name": "COLSTAT", + "source_type": "CHAR(1)", + "dest_name": "colstat", + "dest_type": "text", + "description": "COLSTAT" + }, + { + "source_name": "COLTIER", + "source_type": "CHAR(1)", + "dest_name": "coltier", + "dest_type": "text", + "description": "COLTIER" + }, + { + "source_name": "COLGRP", + "source_type": "CHAR(1)", + "dest_name": "colgrp", + "dest_type": "text", + "description": "COLGRP" + }, + { + "source_name": "COLRETL", + "source_type": "CHAR(1)", + "dest_name": "colretl", + "dest_type": "text", + "description": "COLRETL" + }, + { + "source_name": "COLRGB", + "source_type": "CHAR(15)", + "dest_name": "colrgb", + "dest_type": "text", + "description": "COLRGB" + }, + { + "source_name": "COLRHX", + "source_type": "CHAR(15)", + "dest_name": "colrhx", + "dest_type": "text", + "description": "COLRHX" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/color.sql b/config/modules/color.sql new file mode 100644 index 0000000..ab367a2 --- /dev/null +++ b/config/modules/color.sql @@ -0,0 +1,13 @@ +SELECT + RTRIM(COLCODE) AS colcode, + RTRIM(COLDESC) AS coldesc, + RTRIM(COLPANT) AS colpant, + RTRIM(COLOREF) AS coloref, + RTRIM(COLFTRN) AS colftrn, + RTRIM(COLSTAT) AS colstat, + RTRIM(COLTIER) AS coltier, + RTRIM(COLGRP) AS colgrp, + RTRIM(COLRETL) AS colretl, + RTRIM(COLRGB) AS colrgb, + RTRIM(COLRHX) AS colrhx +FROM "CMS.CUSLG".COLOR diff --git a/config/modules/colorb.json b/config/modules/colorb.json new file mode 100644 index 0000000..e1b4c8b --- /dev/null +++ b/config/modules/colorb.json @@ -0,0 +1,50 @@ +{ + "name": "colorb", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.colorb", + "staging_table": "pipekit_staging.colorb", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Used in UPDblendr", + "columns": [ + { + "source_name": "CLPLNT", + "source_type": "CHAR(3)", + "dest_name": "clplnt", + "dest_type": "text", + "description": "CLPLNT" + }, + { + "source_name": "CLCOLOR", + "source_type": "CHAR(3)", + "dest_name": "clcolor", + "dest_type": "text", + "description": "CLCOLOR" + }, + { + "source_name": "CLDEPT", + "source_type": "CHAR(5)", + "dest_name": "cldept", + "dest_type": "text", + "description": "CLDEPT" + }, + { + "source_name": "CLPART", + "source_type": "CHAR(20)", + "dest_name": "clpart", + "dest_type": "text", + "description": "CLPART" + }, + { + "source_name": "CLPERC", + "source_type": "DECIMAL(2,0)", + "dest_name": "clperc", + "dest_type": "numeric(2,0)", + "description": "CLPERC" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/colorb.sql b/config/modules/colorb.sql new file mode 100644 index 0000000..3d4bb68 --- /dev/null +++ b/config/modules/colorb.sql @@ -0,0 +1,7 @@ +SELECT + RTRIM(CLPLNT) AS clplnt, + RTRIM(CLCOLOR) AS clcolor, + RTRIM(CLDEPT) AS cldept, + RTRIM(CLPART) AS clpart, + CLPERC AS clperc +FROM "CMS.CUSLG".COLORB diff --git a/config/modules/colortier.json b/config/modules/colortier.json new file mode 100644 index 0000000..d0123f0 --- /dev/null +++ b/config/modules/colortier.json @@ -0,0 +1,29 @@ +{ + "name": "colortier", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.colortier", + "staging_table": "pipekit_staging.colortier", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Color Tier", + "columns": [ + { + "source_name": "CLTIER", + "source_type": "CHAR(1)", + "dest_name": "cltier", + "dest_type": "text", + "description": "CLTIER" + }, + { + "source_name": "CLDESC", + "source_type": "CHAR(30)", + "dest_name": "cldesc", + "dest_type": "text", + "description": "CLDESC" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/colortier.sql b/config/modules/colortier.sql new file mode 100644 index 0000000..7ebabf7 --- /dev/null +++ b/config/modules/colortier.sql @@ -0,0 +1,4 @@ +SELECT + RTRIM(CLTIER) AS cltier, + RTRIM(CLDESC) AS cldesc +FROM "CMS.CUSLG".COLORTIER diff --git a/config/modules/cret.json b/config/modules/cret.json new file mode 100644 index 0000000..b86d170 --- /dev/null +++ b/config/modules/cret.json @@ -0,0 +1,211 @@ +{ + "name": "cret", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.cret", + "staging_table": "pipekit_staging.cret", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Currency Exchange Master 6.0", + "columns": [ + { + "source_name": "B86COMN", + "source_type": "NUMERIC(2,0)", + "dest_name": "b86comn", + "dest_type": "numeric(2,0)", + "description": "Company Number" + }, + { + "source_name": "B86CURC", + "source_type": "CHAR(2)", + "dest_name": "b86curc", + "dest_type": "text", + "description": "Currency Code" + }, + { + "source_name": "B86RTTY", + "source_type": "CHAR(1)", + "dest_name": "b86rtty", + "dest_type": "text", + "description": "Rate Type" + }, + { + "source_name": "B86EFYY", + "source_type": "NUMERIC(4,0)", + "dest_name": "b86efyy", + "dest_type": "numeric(4,0)", + "description": "Effective From Fiscal Year" + }, + { + "source_name": "B86EFPP", + "source_type": "NUMERIC(2,0)", + "dest_name": "b86efpp", + "dest_type": "numeric(2,0)", + "description": "Effective From Fiscal Period" + }, + { + "source_name": "B86EDAT", + "source_type": "DATE", + "dest_name": "b86edat", + "dest_type": "date", + "description": "Effective From Calendar Date" + }, + { + "source_name": "B86SRTE", + "source_type": "NUMERIC(11,6)", + "dest_name": "b86srte", + "dest_type": "numeric(11,6)", + "description": "Currency Exchange Rate" + }, + { + "source_name": "B86CUSR", + "source_type": "CHAR(10)", + "dest_name": "b86cusr", + "dest_type": "text", + "description": "Created By User" + }, + { + "source_name": "B86CDAT", + "source_type": "DATE", + "dest_name": "b86cdat", + "dest_type": "date", + "description": "Date Created" + }, + { + "source_name": "B86CTME", + "source_type": "TIME", + "dest_name": "b86ctme", + "dest_type": "time", + "description": "Time Created" + }, + { + "source_name": "B86UUSR", + "source_type": "CHAR(10)", + "dest_name": "b86uusr", + "dest_type": "text", + "description": "Updated By User" + }, + { + "source_name": "B86UDAT", + "source_type": "DATE", + "dest_name": "b86udat", + "dest_type": "date", + "description": "Date Updated" + }, + { + "source_name": "B86UTME", + "source_type": "TIME", + "dest_name": "b86utme", + "dest_type": "time", + "description": "Time Updated" + }, + { + "source_name": "B86FUT1", + "source_type": "CHAR(3)", + "dest_name": "b86fut1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "B86FUT2", + "source_type": "CHAR(3)", + "dest_name": "b86fut2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "B86FUT3", + "source_type": "CHAR(10)", + "dest_name": "b86fut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "B86FUT4", + "source_type": "CHAR(10)", + "dest_name": "b86fut4", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "B86FUT5", + "source_type": "CHAR(20)", + "dest_name": "b86fut5", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "B86FUT6", + "source_type": "CHAR(20)", + "dest_name": "b86fut6", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "B86FUT7", + "source_type": "NUMERIC(15,5)", + "dest_name": "b86fut7", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "B86FUT8", + "source_type": "NUMERIC(15,5)", + "dest_name": "b86fut8", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "B86FUT9", + "source_type": "NUMERIC(11,6)", + "dest_name": "b86fut9", + "dest_type": "numeric(11,6)", + "description": "Future Use" + }, + { + "source_name": "B86FUTA", + "source_type": "NUMERIC(11,6)", + "dest_name": "b86futa", + "dest_type": "numeric(11,6)", + "description": "Future Use" + }, + { + "source_name": "B86FLG1", + "source_type": "CHAR(1)", + "dest_name": "b86flg1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "B86FLG2", + "source_type": "CHAR(1)", + "dest_name": "b86flg2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "B86FLG3", + "source_type": "CHAR(1)", + "dest_name": "b86flg3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "B86FLG4", + "source_type": "CHAR(1)", + "dest_name": "b86flg4", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "B86FLG5", + "source_type": "CHAR(1)", + "dest_name": "b86flg5", + "dest_type": "text", + "description": "Future Use" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/cret.sql b/config/modules/cret.sql new file mode 100644 index 0000000..96d721e --- /dev/null +++ b/config/modules/cret.sql @@ -0,0 +1,30 @@ +SELECT + B86COMN AS b86comn, + RTRIM(B86CURC) AS b86curc, + RTRIM(B86RTTY) AS b86rtty, + B86EFYY AS b86efyy, + B86EFPP AS b86efpp, + CASE WHEN B86EDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE B86EDAT END AS b86edat, + B86SRTE AS b86srte, + RTRIM(B86CUSR) AS b86cusr, + CASE WHEN B86CDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE B86CDAT END AS b86cdat, + B86CTME AS b86ctme, + RTRIM(B86UUSR) AS b86uusr, + CASE WHEN B86UDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE B86UDAT END AS b86udat, + B86UTME AS b86utme, + RTRIM(B86FUT1) AS b86fut1, + RTRIM(B86FUT2) AS b86fut2, + RTRIM(B86FUT3) AS b86fut3, + RTRIM(B86FUT4) AS b86fut4, + RTRIM(B86FUT5) AS b86fut5, + RTRIM(B86FUT6) AS b86fut6, + B86FUT7 AS b86fut7, + B86FUT8 AS b86fut8, + B86FUT9 AS b86fut9, + B86FUTA AS b86futa, + RTRIM(B86FLG1) AS b86flg1, + RTRIM(B86FLG2) AS b86flg2, + RTRIM(B86FLG3) AS b86flg3, + RTRIM(B86FLG4) AS b86flg4, + RTRIM(B86FLG5) AS b86flg5 +FROM LGDAT.CRET diff --git a/config/modules/depts.json b/config/modules/depts.json new file mode 100644 index 0000000..a5c7280 --- /dev/null +++ b/config/modules/depts.json @@ -0,0 +1,309 @@ +{ + "name": "depts", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.depts", + "staging_table": "pipekit_staging.depts", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Department Master File 6.1", + "columns": [ + { + "source_name": "AADEPT", + "source_type": "CHAR(5)", + "dest_name": "aadept", + "dest_type": "text", + "description": "Production Department Code" + }, + { + "source_name": "AABLNK", + "source_type": "CHAR(8)", + "dest_name": "aablnk", + "dest_type": "text", + "description": "AABLNK" + }, + { + "source_name": "AADNME", + "source_type": "CHAR(25)", + "dest_name": "aadnme", + "dest_type": "text", + "description": "Department Name" + }, + { + "source_name": "AASTDR", + "source_type": "NUMERIC(8,2)", + "dest_name": "aastdr", + "dest_type": "numeric(8,2)", + "description": "Default Labour Rate" + }, + { + "source_name": "AABRDR", + "source_type": "NUMERIC(8,2)", + "dest_name": "aabrdr", + "dest_type": "numeric(8,2)", + "description": "Default Fixed Burden Rate" + }, + { + "source_name": "AAMACH", + "source_type": "NUMERIC(2,0)", + "dest_name": "aamach", + "dest_type": "numeric(2,0)", + "description": "Default # of Mach." + }, + { + "source_name": "AABRDP", + "source_type": "NUMERIC(4,0)", + "dest_name": "aabrdp", + "dest_type": "numeric(4,0)", + "description": "Default Fixed Burden %" + }, + { + "source_name": "AADFTC", + "source_type": "NUMERIC(4,2)", + "dest_name": "aadftc", + "dest_type": "numeric(4,2)", + "description": "Default Capacity" + }, + { + "source_name": "AASTIM", + "source_type": "TIME", + "dest_name": "aastim", + "dest_type": "time", + "description": "Starting Time" + }, + { + "source_name": "AAVBRD", + "source_type": "NUMERIC(8,2)", + "dest_name": "aavbrd", + "dest_type": "numeric(8,2)", + "description": "Default Variable Burden Rate" + }, + { + "source_name": "AAFRML", + "source_type": "CHAR(6)", + "dest_name": "aafrml", + "dest_type": "text", + "description": "Draw Loc." + }, + { + "source_name": "AARCVL", + "source_type": "CHAR(6)", + "dest_name": "aarcvl", + "dest_type": "text", + "description": "Receive Loc." + }, + { + "source_name": "AAINSP", + "source_type": "CHAR(5)", + "dest_name": "aainsp", + "dest_type": "text", + "description": "Default Inspector Code" + }, + { + "source_name": "AAPLNT", + "source_type": "CHAR(3)", + "dest_name": "aaplnt", + "dest_type": "text", + "description": "Plant Code" + }, + { + "source_name": "AAOSRV", + "source_type": "CHAR(1)", + "dest_name": "aaosrv", + "dest_type": "text", + "description": "Outside Service" + }, + { + "source_name": "AAVBRP", + "source_type": "NUMERIC(4,0)", + "dest_name": "aavbrp", + "dest_type": "numeric(4,0)", + "description": "Default Variable Burden %" + }, + { + "source_name": "AAWPDR", + "source_type": "CHAR(6)", + "dest_name": "aawpdr", + "dest_type": "text", + "description": "WIP Draw From" + }, + { + "source_name": "AAWPRV", + "source_type": "CHAR(6)", + "dest_name": "aawprv", + "dest_type": "text", + "description": "WIP Receive To" + }, + { + "source_name": "AAMAXH", + "source_type": "NUMERIC(3,0)", + "dest_name": "aamaxh", + "dest_type": "numeric(3,0)", + "description": "Maximum Hours /Day" + }, + { + "source_name": "AAUSLF", + "source_type": "CHAR(1)", + "dest_name": "aauslf", + "dest_type": "text", + "description": "Use Labour Fixed" + }, + { + "source_name": "AAUSLV", + "source_type": "CHAR(1)", + "dest_name": "aauslv", + "dest_type": "text", + "description": "Use Labour Variable" + }, + { + "source_name": "AACUSR", + "source_type": "CHAR(10)", + "dest_name": "aacusr", + "dest_type": "text", + "description": "Created By User" + }, + { + "source_name": "AACDAT", + "source_type": "DATE", + "dest_name": "aacdat", + "dest_type": "date", + "description": "Date Created" + }, + { + "source_name": "AACTIM", + "source_type": "TIME", + "dest_name": "aactim", + "dest_type": "time", + "description": "Time Created" + }, + { + "source_name": "AAUUSR", + "source_type": "CHAR(10)", + "dest_name": "aauusr", + "dest_type": "text", + "description": "Updated By User" + }, + { + "source_name": "AAUDAT", + "source_type": "DATE", + "dest_name": "aaudat", + "dest_type": "date", + "description": "Date Updated" + }, + { + "source_name": "AAUTIM", + "source_type": "TIME", + "dest_name": "aautim", + "dest_type": "time", + "description": "Time Updated" + }, + { + "source_name": "AAFUT1", + "source_type": "CHAR(3)", + "dest_name": "aafut1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AAFUT2", + "source_type": "CHAR(3)", + "dest_name": "aafut2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AAFUT3", + "source_type": "CHAR(10)", + "dest_name": "aafut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AAFUT4", + "source_type": "CHAR(10)", + "dest_name": "aafut4", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AAFUT5", + "source_type": "CHAR(20)", + "dest_name": "aafut5", + "dest_type": "text", + "description": "Mattec Dept code" + }, + { + "source_name": "AAFUT6", + "source_type": "CHAR(20)", + "dest_name": "aafut6", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AAFUT7", + "source_type": "NUMERIC(15,5)", + "dest_name": "aafut7", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "AAFLG1", + "source_type": "CHAR(1)", + "dest_name": "aaflg1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AAFLG2", + "source_type": "CHAR(1)", + "dest_name": "aaflg2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AAFLG3", + "source_type": "CHAR(1)", + "dest_name": "aaflg3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AAFLG4", + "source_type": "CHAR(1)", + "dest_name": "aaflg4", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AAFLG5", + "source_type": "CHAR(1)", + "dest_name": "aaflg5", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AAVCOD", + "source_type": "CHAR(2)", + "dest_name": "aavcod", + "dest_type": "text", + "description": "Visible Dept" + }, + { + "source_name": "AALBPST", + "source_type": "CHAR(1)", + "dest_name": "aalbpst", + "dest_type": "text", + "description": "Auto Post Labour centric Batches" + }, + { + "source_name": "AAVRPR", + "source_type": "CHAR(1)", + "dest_name": "aavrpr", + "dest_type": "text", + "description": "Vendor Reports Prod." + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/depts.sql b/config/modules/depts.sql new file mode 100644 index 0000000..606e75f --- /dev/null +++ b/config/modules/depts.sql @@ -0,0 +1,44 @@ +SELECT + RTRIM(AADEPT) AS aadept, + RTRIM(AABLNK) AS aablnk, + RTRIM(AADNME) AS aadnme, + AASTDR AS aastdr, + AABRDR AS aabrdr, + AAMACH AS aamach, + AABRDP AS aabrdp, + AADFTC AS aadftc, + AASTIM AS aastim, + AAVBRD AS aavbrd, + RTRIM(AAFRML) AS aafrml, + RTRIM(AARCVL) AS aarcvl, + RTRIM(AAINSP) AS aainsp, + RTRIM(AAPLNT) AS aaplnt, + RTRIM(AAOSRV) AS aaosrv, + AAVBRP AS aavbrp, + RTRIM(AAWPDR) AS aawpdr, + RTRIM(AAWPRV) AS aawprv, + AAMAXH AS aamaxh, + RTRIM(AAUSLF) AS aauslf, + RTRIM(AAUSLV) AS aauslv, + RTRIM(AACUSR) AS aacusr, + CASE WHEN AACDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AACDAT END AS aacdat, + AACTIM AS aactim, + RTRIM(AAUUSR) AS aauusr, + CASE WHEN AAUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AAUDAT END AS aaudat, + AAUTIM AS aautim, + RTRIM(AAFUT1) AS aafut1, + RTRIM(AAFUT2) AS aafut2, + RTRIM(AAFUT3) AS aafut3, + RTRIM(AAFUT4) AS aafut4, + RTRIM(AAFUT5) AS aafut5, + RTRIM(AAFUT6) AS aafut6, + AAFUT7 AS aafut7, + RTRIM(AAFLG1) AS aaflg1, + RTRIM(AAFLG2) AS aaflg2, + RTRIM(AAFLG3) AS aaflg3, + RTRIM(AAFLG4) AS aaflg4, + RTRIM(AAFLG5) AS aaflg5, + RTRIM(AAVCOD) AS aavcod, + RTRIM(AALBPST) AS aalbpst, + RTRIM(AAVRPR) AS aavrpr +FROM LGDAT.DEPTS diff --git a/config/modules/ffpdglr1.json b/config/modules/ffpdglr1.json new file mode 100644 index 0000000..ca8d486 --- /dev/null +++ b/config/modules/ffpdglr1.json @@ -0,0 +1,162 @@ +{ + "name": "ffpdglr1", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.ffpdglr1", + "staging_table": "pipekit_staging.ffpdglr1", + "merge_strategy": "incremental", + "merge_key": "btid", + "enabled": 1, + "dest_description": "", + "columns": [ + { + "source_name": "SRCE", + "source_type": "CHAR(4)", + "dest_name": "srce", + "dest_type": "text", + "description": "SRCE" + }, + { + "source_name": "WRKO", + "source_type": "VARCHAR(10)", + "dest_name": "wrko", + "dest_type": "text", + "description": "WRKO" + }, + { + "source_name": "BTID", + "source_type": "INTEGER", + "dest_name": "btid", + "dest_type": "integer", + "description": "BTID" + }, + { + "source_name": "ENT#", + "source_type": "INTEGER", + "dest_name": "ent#", + "dest_type": "integer", + "description": "ENT#" + }, + { + "source_name": "SEQ#", + "source_type": "INTEGER", + "dest_name": "seq#", + "dest_type": "integer", + "description": "SEQ#" + }, + { + "source_name": "PART", + "source_type": "VARCHAR(20)", + "dest_name": "part", + "dest_type": "text", + "description": "PART" + }, + { + "source_name": "RPLN", + "source_type": "CHAR(1)", + "dest_name": "rpln", + "dest_type": "text", + "description": "RPLN" + }, + { + "source_name": "PQTY", + "source_type": "DECIMAL(20,5)", + "dest_name": "pqty", + "dest_type": "numeric(20,5)", + "description": "PQTY" + }, + { + "source_name": "ARSC", + "source_type": "VARCHAR(5)", + "dest_name": "arsc", + "dest_type": "text", + "description": "ARSC" + }, + { + "source_name": "ADEP", + "source_type": "VARCHAR(5)", + "dest_name": "adep", + "dest_type": "text", + "description": "ADEP" + }, + { + "source_name": "ACTN", + "source_type": "VARCHAR(10)", + "dest_name": "actn", + "dest_type": "text", + "description": "ACTN" + }, + { + "source_name": "ACCT", + "source_type": "CHAR(12)", + "dest_name": "acct", + "dest_type": "text", + "description": "ACCT" + }, + { + "source_name": "AMNT", + "source_type": "DECIMAL(20,2)", + "dest_name": "amnt", + "dest_type": "numeric(20,2)", + "description": "AMNT" + }, + { + "source_name": "SRSC", + "source_type": "VARCHAR(5)", + "dest_name": "srsc", + "dest_type": "text", + "description": "SRSC" + }, + { + "source_name": "RHRS", + "source_type": "DECIMAL(20,5)", + "dest_name": "rhrs", + "dest_type": "numeric(20,5)", + "description": "RHRS" + }, + { + "source_name": "RCRW", + "source_type": "DECIMAL(20,5)", + "dest_name": "rcrw", + "dest_type": "numeric(20,5)", + "description": "RCRW" + }, + { + "source_name": "SHRS", + "source_type": "DECIMAL(20,5)", + "dest_name": "shrs", + "dest_type": "numeric(20,5)", + "description": "SHRS" + }, + { + "source_name": "SCRW", + "source_type": "DECIMAL(20,5)", + "dest_name": "scrw", + "dest_type": "numeric(20,5)", + "description": "SCRW" + }, + { + "source_name": "RRAT", + "source_type": "DECIMAL(20,5)", + "dest_name": "rrat", + "dest_type": "numeric(20,5)", + "description": "RRAT" + }, + { + "source_name": "RSIZ", + "source_type": "DECIMAL(20,5)", + "dest_name": "rsiz", + "dest_type": "numeric(20,5)", + "description": "RSIZ" + } + ], + "watermarks": [ + { + "name": "ffpdglr1_wm", + "connection": "usmidsap02", + "resolver_sql": "SELECT COALESCE(format('%L', MAX(to_char(nwfsyy,'00FM')||to_char(nwfspp,'00FM'))), '''1501''') FROM cms.rprh", + "default_value": "'1501'" + } + ], + "hooks": [] +} diff --git a/config/modules/ffpdglr1.sql b/config/modules/ffpdglr1.sql new file mode 100644 index 0000000..9bf23ad --- /dev/null +++ b/config/modules/ffpdglr1.sql @@ -0,0 +1,24 @@ +SELECT + RTRIM(SRCE) AS srce, + RTRIM(WRKO) AS wrko, + BTID AS btid, + "ENT#" AS "ent#", + "SEQ#" AS "seq#", + RTRIM(PART) AS part, + RTRIM(RPLN) AS rpln, + PQTY AS pqty, + RTRIM(ARSC) AS arsc, + RTRIM(ADEP) AS adep, + RTRIM(ACTN) AS actn, + RTRIM(ACCT) AS acct, + AMNT AS amnt, + RTRIM(SRSC) AS srsc, + RHRS AS rhrs, + RCRW AS rcrw, + SHRS AS shrs, + SCRW AS scrw, + RRAT AS rrat, + RSIZ AS rsiz +FROM FANALDEV.FFPDGLR1 +INNER JOIN LGDAT.RPRH ON NWBTID = BTID +WHERE DIGITS(NWFSYY)||DIGITS(NWFSPP) >= {ffpdglr1_wm} diff --git a/config/modules/fresre.json b/config/modules/fresre.json new file mode 100644 index 0000000..864f802 --- /dev/null +++ b/config/modules/fresre.json @@ -0,0 +1,225 @@ +{ + "name": "fresre", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.fresre", + "staging_table": "pipekit_staging.fresre", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Resource equipment Master-Future costs 6.1", + "columns": [ + { + "source_name": "R9DEPT", + "source_type": "CHAR(5)", + "dest_name": "r9dept", + "dest_type": "text", + "description": "Production Department Code" + }, + { + "source_name": "R9RESC", + "source_type": "CHAR(5)", + "dest_name": "r9resc", + "dest_type": "text", + "description": "Resource Code" + }, + { + "source_name": "R9BRDR", + "source_type": "NUMERIC(8,2)", + "dest_name": "r9brdr", + "dest_type": "numeric(8,2)", + "description": "Fixed Burden Rate" + }, + { + "source_name": "R9CREW", + "source_type": "NUMERIC(2,0)", + "dest_name": "r9crew", + "dest_type": "numeric(2,0)", + "description": "Default Crew Size" + }, + { + "source_name": "R9BRDP", + "source_type": "NUMERIC(4,0)", + "dest_name": "r9brdp", + "dest_type": "numeric(4,0)", + "description": "Fixed Burden %" + }, + { + "source_name": "R9LABS", + "source_type": "NUMERIC(8,2)", + "dest_name": "r9labs", + "dest_type": "numeric(8,2)", + "description": "Set-up Labour Rate" + }, + { + "source_name": "R9LABR", + "source_type": "NUMERIC(8,2)", + "dest_name": "r9labr", + "dest_type": "numeric(8,2)", + "description": "Run Labour Rate" + }, + { + "source_name": "R9VBRD", + "source_type": "NUMERIC(8,2)", + "dest_name": "r9vbrd", + "dest_type": "numeric(8,2)", + "description": "Variable Burden Rate" + }, + { + "source_name": "R9BDVP", + "source_type": "NUMERIC(4,0)", + "dest_name": "r9bdvp", + "dest_type": "numeric(4,0)", + "description": "Variable Burden %" + }, + { + "source_name": "R9CDRC", + "source_type": "CHAR(10)", + "dest_name": "r9cdrc", + "dest_type": "text", + "description": "Burden Cost Driver Code" + }, + { + "source_name": "R9CDRF", + "source_type": "NUMERIC(15,5)", + "dest_name": "r9cdrf", + "dest_type": "numeric(15,5)", + "description": "Driver Rate Fixed Burden" + }, + { + "source_name": "R9CDRV", + "source_type": "NUMERIC(15,5)", + "dest_name": "r9cdrv", + "dest_type": "numeric(15,5)", + "description": "Driver Rate Variable Burden" + }, + { + "source_name": "R9CDUM", + "source_type": "CHAR(3)", + "dest_name": "r9cdum", + "dest_type": "text", + "description": "Driver Rate Unit" + }, + { + "source_name": "R9USLF", + "source_type": "CHAR(1)", + "dest_name": "r9uslf", + "dest_type": "text", + "description": "Use Labour Fixed" + }, + { + "source_name": "R9USLV", + "source_type": "CHAR(1)", + "dest_name": "r9uslv", + "dest_type": "text", + "description": "Use Labour Variable" + }, + { + "source_name": "R9PLNT", + "source_type": "CHAR(3)", + "dest_name": "r9plnt", + "dest_type": "text", + "description": "Plant Code" + }, + { + "source_name": "R9FUT1", + "source_type": "CHAR(10)", + "dest_name": "r9fut1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "R9FUT2", + "source_type": "CHAR(10)", + "dest_name": "r9fut2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "R9FUT3", + "source_type": "CHAR(10)", + "dest_name": "r9fut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "R9FUT4", + "source_type": "CHAR(20)", + "dest_name": "r9fut4", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "R9FUT5", + "source_type": "CHAR(30)", + "dest_name": "r9fut5", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "R9FUT6", + "source_type": "NUMERIC(15,5)", + "dest_name": "r9fut6", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "R9FUT7", + "source_type": "CHAR(3)", + "dest_name": "r9fut7", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "R9FUT8", + "source_type": "CHAR(1)", + "dest_name": "r9fut8", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "R9FUT9", + "source_type": "CHAR(1)", + "dest_name": "r9fut9", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "R9FUTA", + "source_type": "CHAR(1)", + "dest_name": "r9futa", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "R9FUTB", + "source_type": "CHAR(1)", + "dest_name": "r9futb", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "R9FUTC", + "source_type": "CHAR(1)", + "dest_name": "r9futc", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "R9VKTR", + "source_type": "CHAR(10)", + "dest_name": "r9vktr", + "dest_type": "text", + "description": "Virtual Kanban Time-On-Hand Range Code" + }, + { + "source_name": "R9VKTY", + "source_type": "CHAR(1)", + "dest_name": "r9vkty", + "dest_type": "text", + "description": "Virtual Kanban Type" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/fresre.sql b/config/modules/fresre.sql new file mode 100644 index 0000000..8b5158a --- /dev/null +++ b/config/modules/fresre.sql @@ -0,0 +1,32 @@ +SELECT + RTRIM(R9DEPT) AS r9dept, + RTRIM(R9RESC) AS r9resc, + R9BRDR AS r9brdr, + R9CREW AS r9crew, + R9BRDP AS r9brdp, + R9LABS AS r9labs, + R9LABR AS r9labr, + R9VBRD AS r9vbrd, + R9BDVP AS r9bdvp, + RTRIM(R9CDRC) AS r9cdrc, + R9CDRF AS r9cdrf, + R9CDRV AS r9cdrv, + RTRIM(R9CDUM) AS r9cdum, + RTRIM(R9USLF) AS r9uslf, + RTRIM(R9USLV) AS r9uslv, + RTRIM(R9PLNT) AS r9plnt, + RTRIM(R9FUT1) AS r9fut1, + RTRIM(R9FUT2) AS r9fut2, + RTRIM(R9FUT3) AS r9fut3, + RTRIM(R9FUT4) AS r9fut4, + RTRIM(R9FUT5) AS r9fut5, + R9FUT6 AS r9fut6, + RTRIM(R9FUT7) AS r9fut7, + RTRIM(R9FUT8) AS r9fut8, + RTRIM(R9FUT9) AS r9fut9, + RTRIM(R9FUTA) AS r9futa, + RTRIM(R9FUTB) AS r9futb, + RTRIM(R9FUTC) AS r9futc, + RTRIM(R9VKTR) AS r9vktr, + RTRIM(R9VKTY) AS r9vkty +FROM LGDAT.FRESRE diff --git a/config/modules/ftcstm.json b/config/modules/ftcstm.json new file mode 100644 index 0000000..35b1e3c --- /dev/null +++ b/config/modules/ftcstm.json @@ -0,0 +1,267 @@ +{ + "name": "ftcstm", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.ftcstm", + "staging_table": "pipekit_staging.ftcstm", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Future Inventory Cost - manufactured 6.0", + "columns": [ + { + "source_name": "CNPART", + "source_type": "CHAR(20)", + "dest_name": "cnpart", + "dest_type": "text", + "description": "Part Number" + }, + { + "source_name": "CNLABS", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnlabs", + "dest_type": "numeric(13,5)", + "description": "Labour Standard" + }, + { + "source_name": "CNMATS", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnmats", + "dest_type": "numeric(13,5)", + "description": "Material Standard" + }, + { + "source_name": "CNBURS", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnburs", + "dest_type": "numeric(13,5)", + "description": "Burden Standard" + }, + { + "source_name": "CNLABA", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnlaba", + "dest_type": "numeric(13,5)", + "description": "Labour Actual" + }, + { + "source_name": "CNMATA", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnmata", + "dest_type": "numeric(13,5)", + "description": "Material Actual" + }, + { + "source_name": "CNBURA", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnbura", + "dest_type": "numeric(13,5)", + "description": "Burden Actual" + }, + { + "source_name": "CNLABV", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnlabv", + "dest_type": "numeric(13,5)", + "description": "Labour Average" + }, + { + "source_name": "CNMATV", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnmatv", + "dest_type": "numeric(13,5)", + "description": "Material Average" + }, + { + "source_name": "CNBURV", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnburv", + "dest_type": "numeric(13,5)", + "description": "Burden Average" + }, + { + "source_name": "CNTPTD", + "source_type": "DECIMAL(11,0)", + "dest_name": "cntptd", + "dest_type": "numeric(11,0)", + "description": "Total Prod. To Date" + }, + { + "source_name": "CNSDAT", + "source_type": "DATE", + "dest_name": "cnsdat", + "dest_type": "date", + "description": "Standard Date" + }, + { + "source_name": "CNSTCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnstcs", + "dest_type": "numeric(13,5)", + "description": "Standard Cost" + }, + { + "source_name": "CNACCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnaccs", + "dest_type": "numeric(13,5)", + "description": "Actual Cost" + }, + { + "source_name": "CNAVCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnavcs", + "dest_type": "numeric(13,5)", + "description": "Average Cost" + }, + { + "source_name": "CNSTOC", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnstoc", + "dest_type": "numeric(13,5)", + "description": "Other Costs (Standard)" + }, + { + "source_name": "CNACOC", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnacoc", + "dest_type": "numeric(13,5)", + "description": "Other Costs (Actual)" + }, + { + "source_name": "CNAVOC", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnavoc", + "dest_type": "numeric(13,5)", + "description": "Other Costs (Average)" + }, + { + "source_name": "CNSQTY", + "source_type": "NUMERIC(8,0)", + "dest_name": "cnsqty", + "dest_type": "numeric(8,0)", + "description": "Standard Quantity" + }, + { + "source_name": "CNAQTY", + "source_type": "NUMERIC(8,0)", + "dest_name": "cnaqty", + "dest_type": "numeric(8,0)", + "description": "Actual Quantity" + }, + { + "source_name": "CNPTYP", + "source_type": "CHAR(1)", + "dest_name": "cnptyp", + "dest_type": "text", + "description": "Part Type M" + }, + { + "source_name": "CNBRFS", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnbrfs", + "dest_type": "numeric(13,5)", + "description": "Burden Standard (Fixed)" + }, + { + "source_name": "CNBRVS", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnbrvs", + "dest_type": "numeric(13,5)", + "description": "Burden Standard (Var)" + }, + { + "source_name": "CNBRFA", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnbrfa", + "dest_type": "numeric(13,5)", + "description": "Burden Actual (Fixed)" + }, + { + "source_name": "CNBRVA", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnbrva", + "dest_type": "numeric(13,5)", + "description": "Burden Actual (Var)" + }, + { + "source_name": "CNBRFV", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnbrfv", + "dest_type": "numeric(13,5)", + "description": "Burden Average (Fixed)" + }, + { + "source_name": "CNBRVV", + "source_type": "NUMERIC(13,5)", + "dest_name": "cnbrvv", + "dest_type": "numeric(13,5)", + "description": "Burden Average (Var)" + }, + { + "source_name": "CNPLNT", + "source_type": "CHAR(3)", + "dest_name": "cnplnt", + "dest_type": "text", + "description": "Plant Code" + }, + { + "source_name": "CNFUT1", + "source_type": "CHAR(3)", + "dest_name": "cnfut1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CNFUT2", + "source_type": "CHAR(10)", + "dest_name": "cnfut2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CNFUT3", + "source_type": "CHAR(20)", + "dest_name": "cnfut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CNFUT4", + "source_type": "NUMERIC(15,0)", + "dest_name": "cnfut4", + "dest_type": "numeric(15,0)", + "description": "Future Use" + }, + { + "source_name": "CNFUT5", + "source_type": "NUMERIC(15,0)", + "dest_name": "cnfut5", + "dest_type": "numeric(15,0)", + "description": "Future Use" + }, + { + "source_name": "CNFLG1", + "source_type": "CHAR(1)", + "dest_name": "cnflg1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CNFLG2", + "source_type": "CHAR(1)", + "dest_name": "cnflg2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CNFLG3", + "source_type": "CHAR(1)", + "dest_name": "cnflg3", + "dest_type": "text", + "description": "Future Use" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/ftcstm.sql b/config/modules/ftcstm.sql new file mode 100644 index 0000000..41a6fd1 --- /dev/null +++ b/config/modules/ftcstm.sql @@ -0,0 +1,38 @@ +SELECT + RTRIM(CNPART) AS cnpart, + CNLABS AS cnlabs, + CNMATS AS cnmats, + CNBURS AS cnburs, + CNLABA AS cnlaba, + CNMATA AS cnmata, + CNBURA AS cnbura, + CNLABV AS cnlabv, + CNMATV AS cnmatv, + CNBURV AS cnburv, + CNTPTD AS cntptd, + CASE WHEN CNSDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE CNSDAT END AS cnsdat, + CNSTCS AS cnstcs, + CNACCS AS cnaccs, + CNAVCS AS cnavcs, + CNSTOC AS cnstoc, + CNACOC AS cnacoc, + CNAVOC AS cnavoc, + CNSQTY AS cnsqty, + CNAQTY AS cnaqty, + RTRIM(CNPTYP) AS cnptyp, + CNBRFS AS cnbrfs, + CNBRVS AS cnbrvs, + CNBRFA AS cnbrfa, + CNBRVA AS cnbrva, + CNBRFV AS cnbrfv, + CNBRVV AS cnbrvv, + RTRIM(CNPLNT) AS cnplnt, + RTRIM(CNFUT1) AS cnfut1, + RTRIM(CNFUT2) AS cnfut2, + RTRIM(CNFUT3) AS cnfut3, + CNFUT4 AS cnfut4, + CNFUT5 AS cnfut5, + RTRIM(CNFLG1) AS cnflg1, + RTRIM(CNFLG2) AS cnflg2, + RTRIM(CNFLG3) AS cnflg3 +FROM LGDAT.FTCSTM diff --git a/config/modules/ftcstp.json b/config/modules/ftcstp.json new file mode 100644 index 0000000..6564cb9 --- /dev/null +++ b/config/modules/ftcstp.json @@ -0,0 +1,358 @@ +{ + "name": "ftcstp", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.ftcstp", + "staging_table": "pipekit_staging.ftcstp", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Future Inventory Cost - Purchased Parts 6.0", + "columns": [ + { + "source_name": "COPART", + "source_type": "CHAR(20)", + "dest_name": "copart", + "dest_type": "text", + "description": "Part Number" + }, + { + "source_name": "COLUC", + "source_type": "NUMERIC(13,5)", + "dest_name": "coluc", + "dest_type": "numeric(13,5)", + "description": "Last Unit Cost" + }, + { + "source_name": "COLCC", + "source_type": "NUMERIC(13,5)", + "dest_name": "colcc", + "dest_type": "numeric(13,5)", + "description": "Last Currency Cost" + }, + { + "source_name": "COLFC", + "source_type": "NUMERIC(13,5)", + "dest_name": "colfc", + "dest_type": "numeric(13,5)", + "description": "Last Freight Cost" + }, + { + "source_name": "COLDC", + "source_type": "NUMERIC(13,5)", + "dest_name": "coldc", + "dest_type": "numeric(13,5)", + "description": "Last Duty Cost" + }, + { + "source_name": "COL1C", + "source_type": "NUMERIC(13,5)", + "dest_name": "col1c", + "dest_type": "numeric(13,5)", + "description": "Last Multiplier-1 Cost" + }, + { + "source_name": "COL2C", + "source_type": "NUMERIC(13,5)", + "dest_name": "col2c", + "dest_type": "numeric(13,5)", + "description": "Last Multiplier-2 Cost" + }, + { + "source_name": "COSUC", + "source_type": "NUMERIC(13,5)", + "dest_name": "cosuc", + "dest_type": "numeric(13,5)", + "description": "Standard Unit Cost" + }, + { + "source_name": "COSCC", + "source_type": "NUMERIC(13,5)", + "dest_name": "coscc", + "dest_type": "numeric(13,5)", + "description": "Standard Currency Cost" + }, + { + "source_name": "COSFC", + "source_type": "NUMERIC(13,5)", + "dest_name": "cosfc", + "dest_type": "numeric(13,5)", + "description": "Standard Freight Cost" + }, + { + "source_name": "COSDC", + "source_type": "NUMERIC(13,5)", + "dest_name": "cosdc", + "dest_type": "numeric(13,5)", + "description": "Standard Duty Cost" + }, + { + "source_name": "COS1C", + "source_type": "NUMERIC(13,5)", + "dest_name": "cos1c", + "dest_type": "numeric(13,5)", + "description": "Standard Multiplier-1 Cost" + }, + { + "source_name": "COS2C", + "source_type": "NUMERIC(13,5)", + "dest_name": "cos2c", + "dest_type": "numeric(13,5)", + "description": "Standard Multiplier-2 Cost" + }, + { + "source_name": "COSCR", + "source_type": "DECIMAL(11,6)", + "dest_name": "coscr", + "dest_type": "numeric(11,6)", + "description": "Standard Currency Rate" + }, + { + "source_name": "COLCR", + "source_type": "DECIMAL(11,6)", + "dest_name": "colcr", + "dest_type": "numeric(11,6)", + "description": "Last Currency Rate" + }, + { + "source_name": "COSDAT", + "source_type": "DATE", + "dest_name": "cosdat", + "dest_type": "date", + "description": "Standard Date" + }, + { + "source_name": "COSTCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "costcs", + "dest_type": "numeric(13,5)", + "description": "Standard Cost" + }, + { + "source_name": "COACCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "coaccs", + "dest_type": "numeric(13,5)", + "description": "Last Actual Cost" + }, + { + "source_name": "COAVCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "coavcs", + "dest_type": "numeric(13,5)", + "description": "Average Cost" + }, + { + "source_name": "COSDR", + "source_type": "NUMERIC(8,4)", + "dest_name": "cosdr", + "dest_type": "numeric(8,4)", + "description": "Standard Duty Rate" + }, + { + "source_name": "COS1R", + "source_type": "NUMERIC(8,4)", + "dest_name": "cos1r", + "dest_type": "numeric(8,4)", + "description": "Standard Multiplier-1 Rate" + }, + { + "source_name": "COS2R", + "source_type": "NUMERIC(8,4)", + "dest_name": "cos2r", + "dest_type": "numeric(8,4)", + "description": "Standard Multiplier-2 Rate" + }, + { + "source_name": "COLDR", + "source_type": "NUMERIC(8,4)", + "dest_name": "coldr", + "dest_type": "numeric(8,4)", + "description": "Last Duty Rate" + }, + { + "source_name": "COL1R", + "source_type": "NUMERIC(8,4)", + "dest_name": "col1r", + "dest_type": "numeric(8,4)", + "description": "Last Multiplier-1 Rate" + }, + { + "source_name": "COL2R", + "source_type": "NUMERIC(8,4)", + "dest_name": "col2r", + "dest_type": "numeric(8,4)", + "description": "Last Multiplier-2 Rate" + }, + { + "source_name": "COSQTY", + "source_type": "NUMERIC(8,0)", + "dest_name": "cosqty", + "dest_type": "numeric(8,0)", + "description": "Standard Quantity" + }, + { + "source_name": "COAQTY", + "source_type": "NUMERIC(8,0)", + "dest_name": "coaqty", + "dest_type": "numeric(8,0)", + "description": "Actual Quantity" + }, + { + "source_name": "COTYPE", + "source_type": "CHAR(1)", + "dest_name": "cotype", + "dest_type": "text", + "description": "Part Type R" + }, + { + "source_name": "COCURR", + "source_type": "CHAR(3)", + "dest_name": "cocurr", + "dest_type": "text", + "description": "Currency Code" + }, + { + "source_name": "COPLNT", + "source_type": "CHAR(3)", + "dest_name": "coplnt", + "dest_type": "text", + "description": "Plant Code" + }, + { + "source_name": "COAVUC", + "source_type": "NUMERIC(13,5)", + "dest_name": "coavuc", + "dest_type": "numeric(13,5)", + "description": "Average Unit cost" + }, + { + "source_name": "COAVXC", + "source_type": "NUMERIC(13,5)", + "dest_name": "coavxc", + "dest_type": "numeric(13,5)", + "description": "Average Xchg cost" + }, + { + "source_name": "COAVDC", + "source_type": "NUMERIC(13,5)", + "dest_name": "coavdc", + "dest_type": "numeric(13,5)", + "description": "Average Duty cost" + }, + { + "source_name": "COAV1C", + "source_type": "NUMERIC(13,5)", + "dest_name": "coav1c", + "dest_type": "numeric(13,5)", + "description": "Average Multiplier-1 Cost" + }, + { + "source_name": "COAV2C", + "source_type": "NUMERIC(13,5)", + "dest_name": "coav2c", + "dest_type": "numeric(13,5)", + "description": "Average Multiplier-2 Cost" + }, + { + "source_name": "COAVFC", + "source_type": "NUMERIC(13,5)", + "dest_name": "coavfc", + "dest_type": "numeric(13,5)", + "description": "Average Freight cost" + }, + { + "source_name": "COFUT1", + "source_type": "CHAR(3)", + "dest_name": "cofut1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "COFUT2", + "source_type": "CHAR(10)", + "dest_name": "cofut2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "COFUT3", + "source_type": "CHAR(20)", + "dest_name": "cofut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "COFUT4", + "source_type": "NUMERIC(15,0)", + "dest_name": "cofut4", + "dest_type": "numeric(15,0)", + "description": "Future Use" + }, + { + "source_name": "COFUT5", + "source_type": "NUMERIC(15,0)", + "dest_name": "cofut5", + "dest_type": "numeric(15,0)", + "description": "Future Use" + }, + { + "source_name": "COFLG1", + "source_type": "CHAR(1)", + "dest_name": "coflg1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "COFLG2", + "source_type": "CHAR(1)", + "dest_name": "coflg2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "COFLG3", + "source_type": "CHAR(1)", + "dest_name": "coflg3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "COFLG4", + "source_type": "CHAR(1)", + "dest_name": "coflg4", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "COFLG5", + "source_type": "CHAR(1)", + "dest_name": "coflg5", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "COFLG6", + "source_type": "CHAR(1)", + "dest_name": "coflg6", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "COFLG7", + "source_type": "CHAR(1)", + "dest_name": "coflg7", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "COCRCD", + "source_type": "CHAR(3)", + "dest_name": "cocrcd", + "dest_type": "text", + "description": "Last Actual Currency" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/ftcstp.sql b/config/modules/ftcstp.sql new file mode 100644 index 0000000..b06d80f --- /dev/null +++ b/config/modules/ftcstp.sql @@ -0,0 +1,51 @@ +SELECT + RTRIM(COPART) AS copart, + COLUC AS coluc, + COLCC AS colcc, + COLFC AS colfc, + COLDC AS coldc, + COL1C AS col1c, + COL2C AS col2c, + COSUC AS cosuc, + COSCC AS coscc, + COSFC AS cosfc, + COSDC AS cosdc, + COS1C AS cos1c, + COS2C AS cos2c, + COSCR AS coscr, + COLCR AS colcr, + CASE WHEN COSDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE COSDAT END AS cosdat, + COSTCS AS costcs, + COACCS AS coaccs, + COAVCS AS coavcs, + COSDR AS cosdr, + COS1R AS cos1r, + COS2R AS cos2r, + COLDR AS coldr, + COL1R AS col1r, + COL2R AS col2r, + COSQTY AS cosqty, + COAQTY AS coaqty, + RTRIM(COTYPE) AS cotype, + RTRIM(COCURR) AS cocurr, + RTRIM(COPLNT) AS coplnt, + COAVUC AS coavuc, + COAVXC AS coavxc, + COAVDC AS coavdc, + COAV1C AS coav1c, + COAV2C AS coav2c, + COAVFC AS coavfc, + RTRIM(COFUT1) AS cofut1, + RTRIM(COFUT2) AS cofut2, + RTRIM(COFUT3) AS cofut3, + COFUT4 AS cofut4, + COFUT5 AS cofut5, + RTRIM(COFLG1) AS coflg1, + RTRIM(COFLG2) AS coflg2, + RTRIM(COFLG3) AS coflg3, + RTRIM(COFLG4) AS coflg4, + RTRIM(COFLG5) AS coflg5, + RTRIM(COFLG6) AS coflg6, + RTRIM(COFLG7) AS coflg7, + RTRIM(COCRCD) AS cocrcd +FROM LGDAT.FTCSTP diff --git a/config/modules/ftcstr.json b/config/modules/ftcstr.json new file mode 100644 index 0000000..e443ccd --- /dev/null +++ b/config/modules/ftcstr.json @@ -0,0 +1,330 @@ +{ + "name": "ftcstr", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.ftcstr", + "staging_table": "pipekit_staging.ftcstr", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Future Cost Master - Transferred Parts 6.0", + "columns": [ + { + "source_name": "Y3PART", + "source_type": "CHAR(20)", + "dest_name": "y3part", + "dest_type": "text", + "description": "Part Number" + }, + { + "source_name": "Y3PLNT", + "source_type": "CHAR(3)", + "dest_name": "y3plnt", + "dest_type": "text", + "description": "Plant Code" + }, + { + "source_name": "Y3STCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3stcs", + "dest_type": "numeric(13,5)", + "description": "Standard Cost" + }, + { + "source_name": "Y3ACCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3accs", + "dest_type": "numeric(13,5)", + "description": "Last Actual Cost" + }, + { + "source_name": "Y3AVCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3avcs", + "dest_type": "numeric(13,5)", + "description": "Average Cost" + }, + { + "source_name": "Y3SUC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3suc", + "dest_type": "numeric(13,5)", + "description": "Standard Unit Cost" + }, + { + "source_name": "Y3SSHR", + "source_type": "DECIMAL(9,5)", + "dest_name": "y3sshr", + "dest_type": "numeric(9,5)", + "description": "Standard S & H Rate" + }, + { + "source_name": "Y3SSHC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3sshc", + "dest_type": "numeric(13,5)", + "description": "Standard S & H Cost" + }, + { + "source_name": "Y3SOC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3soc", + "dest_type": "numeric(13,5)", + "description": "Standard Currency Cost" + }, + { + "source_name": "Y3SDAT", + "source_type": "DATE", + "dest_name": "y3sdat", + "dest_type": "date", + "description": "Standard Date" + }, + { + "source_name": "Y3SQTY", + "source_type": "NUMERIC(8,0)", + "dest_name": "y3sqty", + "dest_type": "numeric(8,0)", + "description": "Standard Quantity" + }, + { + "source_name": "Y3LUC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3luc", + "dest_type": "numeric(13,5)", + "description": "Last Unit Cost" + }, + { + "source_name": "Y3LSHC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3lshc", + "dest_type": "numeric(13,5)", + "description": "Last S & H Cost" + }, + { + "source_name": "Y3LOC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3loc", + "dest_type": "numeric(13,5)", + "description": "Last Currency Cost" + }, + { + "source_name": "Y3AQTY", + "source_type": "NUMERIC(8,0)", + "dest_name": "y3aqty", + "dest_type": "numeric(8,0)", + "description": "Actual Quantity" + }, + { + "source_name": "Y3TYPE", + "source_type": "CHAR(1)", + "dest_name": "y3type", + "dest_type": "text", + "description": "Part Type T" + }, + { + "source_name": "Y3SMAT", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3smat", + "dest_type": "numeric(13,5)", + "description": "Standard Material Cost" + }, + { + "source_name": "Y3SLAB", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3slab", + "dest_type": "numeric(13,5)", + "description": "Standard Labour Cost" + }, + { + "source_name": "Y3SVBR", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3svbr", + "dest_type": "numeric(13,5)", + "description": "Standard Variable Burden Cost" + }, + { + "source_name": "Y3SFBR", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3sfbr", + "dest_type": "numeric(13,5)", + "description": "Standard Fixed Burden Cost" + }, + { + "source_name": "Y3SOTC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3sotc", + "dest_type": "numeric(13,5)", + "description": "Standard Other Cost" + }, + { + "source_name": "Y3LMAT", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3lmat", + "dest_type": "numeric(13,5)", + "description": "Last Actual Material Cost" + }, + { + "source_name": "Y3LLAB", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3llab", + "dest_type": "numeric(13,5)", + "description": "Last Actual Labour Cost" + }, + { + "source_name": "Y3LVBR", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3lvbr", + "dest_type": "numeric(13,5)", + "description": "Last Actual Variable Burden Cost" + }, + { + "source_name": "Y3LFBR", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3lfbr", + "dest_type": "numeric(13,5)", + "description": "Last Actual Fixed Burden Cost" + }, + { + "source_name": "Y3LOTC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3lotc", + "dest_type": "numeric(13,5)", + "description": "Last Actual Other Cost" + }, + { + "source_name": "Y3AMAT", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3amat", + "dest_type": "numeric(13,5)", + "description": "Average Material Cost" + }, + { + "source_name": "Y3ALAB", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3alab", + "dest_type": "numeric(13,5)", + "description": "Average Labour Cost" + }, + { + "source_name": "Y3AVBR", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3avbr", + "dest_type": "numeric(13,5)", + "description": "Average Variable Burden Cost" + }, + { + "source_name": "Y3AFBR", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3afbr", + "dest_type": "numeric(13,5)", + "description": "Average Fixed Burden Cost" + }, + { + "source_name": "Y3AOTC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3aotc", + "dest_type": "numeric(13,5)", + "description": "Average Other Cost" + }, + { + "source_name": "Y3AUNC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3aunc", + "dest_type": "numeric(13,5)", + "description": "Average Unit Cost" + }, + { + "source_name": "Y3ASHC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3ashc", + "dest_type": "numeric(13,5)", + "description": "Average S & H Cost" + }, + { + "source_name": "Y3ACRC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y3acrc", + "dest_type": "numeric(13,5)", + "description": "Average Currency Cost" + }, + { + "source_name": "Y3FUT1", + "source_type": "CHAR(3)", + "dest_name": "y3fut1", + "dest_type": "text", + "description": "Currency Code" + }, + { + "source_name": "Y3FUT2", + "source_type": "CHAR(10)", + "dest_name": "y3fut2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y3FUT3", + "source_type": "CHAR(20)", + "dest_name": "y3fut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y3FUT4", + "source_type": "NUMERIC(11,6)", + "dest_name": "y3fut4", + "dest_type": "numeric(11,6)", + "description": "Standard Currency Rate" + }, + { + "source_name": "Y3FUT5", + "source_type": "NUMERIC(11,6)", + "dest_name": "y3fut5", + "dest_type": "numeric(11,6)", + "description": "Last Currency Rate" + }, + { + "source_name": "Y3FLG1", + "source_type": "CHAR(1)", + "dest_name": "y3flg1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y3FLG2", + "source_type": "CHAR(1)", + "dest_name": "y3flg2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y3FLG3", + "source_type": "CHAR(1)", + "dest_name": "y3flg3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y3CRCD", + "source_type": "CHAR(2)", + "dest_name": "y3crcd", + "dest_type": "text", + "description": "Currency Code" + }, + { + "source_name": "Y3STCR", + "source_type": "NUMERIC(11,6)", + "dest_name": "y3stcr", + "dest_type": "numeric(11,6)", + "description": "Standard Currency Rate" + }, + { + "source_name": "Y3LSCR", + "source_type": "NUMERIC(11,6)", + "dest_name": "y3lscr", + "dest_type": "numeric(11,6)", + "description": "Last Currency Rate" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/ftcstr.sql b/config/modules/ftcstr.sql new file mode 100644 index 0000000..35a9db5 --- /dev/null +++ b/config/modules/ftcstr.sql @@ -0,0 +1,47 @@ +SELECT + RTRIM(Y3PART) AS y3part, + RTRIM(Y3PLNT) AS y3plnt, + Y3STCS AS y3stcs, + Y3ACCS AS y3accs, + Y3AVCS AS y3avcs, + Y3SUC AS y3suc, + Y3SSHR AS y3sshr, + Y3SSHC AS y3sshc, + Y3SOC AS y3soc, + CASE WHEN Y3SDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE Y3SDAT END AS y3sdat, + Y3SQTY AS y3sqty, + Y3LUC AS y3luc, + Y3LSHC AS y3lshc, + Y3LOC AS y3loc, + Y3AQTY AS y3aqty, + RTRIM(Y3TYPE) AS y3type, + Y3SMAT AS y3smat, + Y3SLAB AS y3slab, + Y3SVBR AS y3svbr, + Y3SFBR AS y3sfbr, + Y3SOTC AS y3sotc, + Y3LMAT AS y3lmat, + Y3LLAB AS y3llab, + Y3LVBR AS y3lvbr, + Y3LFBR AS y3lfbr, + Y3LOTC AS y3lotc, + Y3AMAT AS y3amat, + Y3ALAB AS y3alab, + Y3AVBR AS y3avbr, + Y3AFBR AS y3afbr, + Y3AOTC AS y3aotc, + Y3AUNC AS y3aunc, + Y3ASHC AS y3ashc, + Y3ACRC AS y3acrc, + RTRIM(Y3FUT1) AS y3fut1, + RTRIM(Y3FUT2) AS y3fut2, + RTRIM(Y3FUT3) AS y3fut3, + Y3FUT4 AS y3fut4, + Y3FUT5 AS y3fut5, + RTRIM(Y3FLG1) AS y3flg1, + RTRIM(Y3FLG2) AS y3flg2, + RTRIM(Y3FLG3) AS y3flg3, + RTRIM(Y3CRCD) AS y3crcd, + Y3STCR AS y3stcr, + Y3LSCR AS y3lscr +FROM LGDAT.FTCSTR diff --git a/config/modules/glie.json b/config/modules/glie.json new file mode 100644 index 0000000..8a135cc --- /dev/null +++ b/config/modules/glie.json @@ -0,0 +1,281 @@ +{ + "name": "glie", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.glie", + "staging_table": "pipekit_staging.glie", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "G/L Inventory Expense Accounts 6.1", + "columns": [ + { + "source_name": "Y1PLNT", + "source_type": "CHAR(3)", + "dest_name": "y1plnt", + "dest_type": "text", + "description": "Plant Code" + }, + { + "source_name": "Y1GLEC", + "source_type": "CHAR(3)", + "dest_name": "y1glec", + "dest_type": "text", + "description": "G/L Expense Code" + }, + { + "source_name": "Y1INVA", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1inva", + "dest_type": "numeric(10,0)", + "description": "G/L Inventory Account" + }, + { + "source_name": "Y1PRVR", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1prvr", + "dest_type": "numeric(10,0)", + "description": "G/L Price Variance" + }, + { + "source_name": "Y1USVR", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1usvr", + "dest_type": "numeric(10,0)", + "description": "G/L Usage Variance" + }, + { + "source_name": "Y1PADJ", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1padj", + "dest_type": "numeric(10,0)", + "description": "G/L Physical Adjustment" + }, + { + "source_name": "Y1RVAL", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1rval", + "dest_type": "numeric(10,0)", + "description": "G/L Inventory Revaluation" + }, + { + "source_name": "Y1INTP", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1intp", + "dest_type": "numeric(10,0)", + "description": "G/L Interplant Variance" + }, + { + "source_name": "Y1FUT1", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1fut1", + "dest_type": "numeric(10,0)", + "description": "Future Use" + }, + { + "source_name": "Y1FUT2", + "source_type": "CHAR(3)", + "dest_name": "y1fut2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y1FUT3", + "source_type": "CHAR(10)", + "dest_name": "y1fut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y1FUT4", + "source_type": "CHAR(20)", + "dest_name": "y1fut4", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y1FUT5", + "source_type": "NUMERIC(15,5)", + "dest_name": "y1fut5", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "Y1FUT6", + "source_type": "NUMERIC(15,5)", + "dest_name": "y1fut6", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "Y1FLG1", + "source_type": "CHAR(1)", + "dest_name": "y1flg1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y1FLG2", + "source_type": "CHAR(1)", + "dest_name": "y1flg2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y1FLG3", + "source_type": "CHAR(1)", + "dest_name": "y1flg3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y1FREX", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1frex", + "dest_type": "numeric(10,0)", + "description": "BOL Freight Expense Acct#" + }, + { + "source_name": "Y1SREX", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1srex", + "dest_type": "numeric(10,0)", + "description": "BOL Freight Sur- charge Expense Acc#" + }, + { + "source_name": "Y1FRVR", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1frvr", + "dest_type": "numeric(10,0)", + "description": "BOL Freight Variance Acct#" + }, + { + "source_name": "Y1SRVR", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1srvr", + "dest_type": "numeric(10,0)", + "description": "BOL Freight Sur- charge Variance Acc#" + }, + { + "source_name": "Y1NEGA", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1nega", + "dest_type": "numeric(10,0)", + "description": "Negative Inventory Adjustment" + }, + { + "source_name": "Y1RPIR", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1rpir", + "dest_type": "numeric(10,0)", + "description": "Repair GL Account" + }, + { + "source_name": "Y1GLM1", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1glm1", + "dest_type": "numeric(10,0)", + "description": "G/L Clearing Account for Multiplier-1" + }, + { + "source_name": "Y1GLM2", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1glm2", + "dest_type": "numeric(10,0)", + "description": "G/L Clearing Account for Multiplier-2" + }, + { + "source_name": "Y1CLAC", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1clac", + "dest_type": "numeric(10,0)", + "description": "Work Order Option Clearing" + }, + { + "source_name": "Y1FUT7", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1fut7", + "dest_type": "numeric(10,0)", + "description": "Future Use" + }, + { + "source_name": "Y1FUT8", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1fut8", + "dest_type": "numeric(10,0)", + "description": "Future Use" + }, + { + "source_name": "Y1FUT9", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1fut9", + "dest_type": "numeric(10,0)", + "description": "Future Use" + }, + { + "source_name": "Y1FUT10", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1fut10", + "dest_type": "numeric(10,0)", + "description": "Future Use" + }, + { + "source_name": "Y1FUT11", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1fut11", + "dest_type": "numeric(10,0)", + "description": "Future Use" + }, + { + "source_name": "Y1SAAC", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1saac", + "dest_type": "numeric(10,0)", + "description": "Month-End Option Serial Adj" + }, + { + "source_name": "Y1BHCL", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1bhcl", + "dest_type": "numeric(10,0)", + "description": "Bill-And-Hold Clearing" + }, + { + "source_name": "Y1CBMX", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1cbmx", + "dest_type": "numeric(10,0)", + "description": "Container BOM Part Expense" + }, + { + "source_name": "Y1UVLB", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1uvlb", + "dest_type": "numeric(10,0)", + "description": "G/L Usage Variance Labour" + }, + { + "source_name": "Y1UVFB", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1uvfb", + "dest_type": "numeric(10,0)", + "description": "G/L Usage Variance Fix Burden" + }, + { + "source_name": "Y1UVVB", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1uvvb", + "dest_type": "numeric(10,0)", + "description": "G/L Usage Variance Var Burden" + }, + { + "source_name": "Y1UVOTH", + "source_type": "NUMERIC(10,0)", + "dest_name": "y1uvoth", + "dest_type": "numeric(10,0)", + "description": "G/L Usage Variance Other" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/glie.sql b/config/modules/glie.sql new file mode 100644 index 0000000..df3fcc3 --- /dev/null +++ b/config/modules/glie.sql @@ -0,0 +1,40 @@ +SELECT + RTRIM(Y1PLNT) AS y1plnt, + RTRIM(Y1GLEC) AS y1glec, + Y1INVA AS y1inva, + Y1PRVR AS y1prvr, + Y1USVR AS y1usvr, + Y1PADJ AS y1padj, + Y1RVAL AS y1rval, + Y1INTP AS y1intp, + Y1FUT1 AS y1fut1, + RTRIM(Y1FUT2) AS y1fut2, + RTRIM(Y1FUT3) AS y1fut3, + RTRIM(Y1FUT4) AS y1fut4, + Y1FUT5 AS y1fut5, + Y1FUT6 AS y1fut6, + RTRIM(Y1FLG1) AS y1flg1, + RTRIM(Y1FLG2) AS y1flg2, + RTRIM(Y1FLG3) AS y1flg3, + Y1FREX AS y1frex, + Y1SREX AS y1srex, + Y1FRVR AS y1frvr, + Y1SRVR AS y1srvr, + Y1NEGA AS y1nega, + Y1RPIR AS y1rpir, + Y1GLM1 AS y1glm1, + Y1GLM2 AS y1glm2, + Y1CLAC AS y1clac, + Y1FUT7 AS y1fut7, + Y1FUT8 AS y1fut8, + Y1FUT9 AS y1fut9, + Y1FUT10 AS y1fut10, + Y1FUT11 AS y1fut11, + Y1SAAC AS y1saac, + Y1BHCL AS y1bhcl, + Y1CBMX AS y1cbmx, + Y1UVLB AS y1uvlb, + Y1UVFB AS y1uvfb, + Y1UVVB AS y1uvvb, + Y1UVOTH AS y1uvoth +FROM LGDAT.GLIE diff --git a/config/modules/icstm.json b/config/modules/icstm.json new file mode 100644 index 0000000..6edc79b --- /dev/null +++ b/config/modules/icstm.json @@ -0,0 +1,351 @@ +{ + "name": "icstm", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.icstm", + "staging_table": "pipekit_staging.icstm", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Inventory Costs - Manufactured parts 6.1", + "columns": [ + { + "source_name": "CGPART", + "source_type": "CHAR(20)", + "dest_name": "cgpart", + "dest_type": "text", + "description": "Part Number" + }, + { + "source_name": "CGLABS", + "source_type": "NUMERIC(13,5)", + "dest_name": "cglabs", + "dest_type": "numeric(13,5)", + "description": "Labour Standard" + }, + { + "source_name": "CGMATS", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgmats", + "dest_type": "numeric(13,5)", + "description": "Material Standard" + }, + { + "source_name": "CGBURS", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgburs", + "dest_type": "numeric(13,5)", + "description": "Burden Standard" + }, + { + "source_name": "CGLABA", + "source_type": "NUMERIC(13,5)", + "dest_name": "cglaba", + "dest_type": "numeric(13,5)", + "description": "Labour Actual" + }, + { + "source_name": "CGMATA", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgmata", + "dest_type": "numeric(13,5)", + "description": "Material Actual" + }, + { + "source_name": "CGBURA", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgbura", + "dest_type": "numeric(13,5)", + "description": "Burden Actual" + }, + { + "source_name": "CGLABV", + "source_type": "NUMERIC(13,5)", + "dest_name": "cglabv", + "dest_type": "numeric(13,5)", + "description": "Labour Average" + }, + { + "source_name": "CGMATV", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgmatv", + "dest_type": "numeric(13,5)", + "description": "Material Average" + }, + { + "source_name": "CGBURV", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgburv", + "dest_type": "numeric(13,5)", + "description": "Burden Average" + }, + { + "source_name": "CGTPTD", + "source_type": "DECIMAL(11,0)", + "dest_name": "cgtptd", + "dest_type": "numeric(11,0)", + "description": "Total Prod. To Date" + }, + { + "source_name": "CGSDAT", + "source_type": "DATE", + "dest_name": "cgsdat", + "dest_type": "date", + "description": "Standard Date" + }, + { + "source_name": "CGSTCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgstcs", + "dest_type": "numeric(13,5)", + "description": "Standard Cost" + }, + { + "source_name": "CGACCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgaccs", + "dest_type": "numeric(13,5)", + "description": "Actual Cost" + }, + { + "source_name": "CGAVCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgavcs", + "dest_type": "numeric(13,5)", + "description": "Average Cost" + }, + { + "source_name": "CGSTOC", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgstoc", + "dest_type": "numeric(13,5)", + "description": "Other Costs (Standard)" + }, + { + "source_name": "CGACOC", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgacoc", + "dest_type": "numeric(13,5)", + "description": "Other Costs (Actual)" + }, + { + "source_name": "CGAVOC", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgavoc", + "dest_type": "numeric(13,5)", + "description": "Other Costs (Average)" + }, + { + "source_name": "CGSQTY", + "source_type": "NUMERIC(8,0)", + "dest_name": "cgsqty", + "dest_type": "numeric(8,0)", + "description": "Standard Quantity" + }, + { + "source_name": "CGAQTY", + "source_type": "NUMERIC(8,0)", + "dest_name": "cgaqty", + "dest_type": "numeric(8,0)", + "description": "Actual Quantity" + }, + { + "source_name": "CGTYPE", + "source_type": "CHAR(1)", + "dest_name": "cgtype", + "dest_type": "text", + "description": "Part Type M" + }, + { + "source_name": "CGBRFS", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgbrfs", + "dest_type": "numeric(13,5)", + "description": "Burden Standard Fixed" + }, + { + "source_name": "CGBRVS", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgbrvs", + "dest_type": "numeric(13,5)", + "description": "Burden Standard Variable" + }, + { + "source_name": "CGBRFA", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgbrfa", + "dest_type": "numeric(13,5)", + "description": "Burden Actual Fixed" + }, + { + "source_name": "CGBRVA", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgbrva", + "dest_type": "numeric(13,5)", + "description": "Burden Actual Variable" + }, + { + "source_name": "CGBRFV", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgbrfv", + "dest_type": "numeric(13,5)", + "description": "Burden Average Fixed" + }, + { + "source_name": "CGBRVV", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgbrvv", + "dest_type": "numeric(13,5)", + "description": "Burden Average Variable" + }, + { + "source_name": "CGFUTS", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgfuts", + "dest_type": "numeric(13,5)", + "description": "Future Standard" + }, + { + "source_name": "CGFUTA", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgfuta", + "dest_type": "numeric(13,5)", + "description": "Future Actual" + }, + { + "source_name": "CGFUTV", + "source_type": "NUMERIC(13,5)", + "dest_name": "cgfutv", + "dest_type": "numeric(13,5)", + "description": "Future Average" + }, + { + "source_name": "CGPLNT", + "source_type": "CHAR(3)", + "dest_name": "cgplnt", + "dest_type": "text", + "description": "Plant Code" + }, + { + "source_name": "CGFUT1", + "source_type": "CHAR(3)", + "dest_name": "cgfut1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CGFUT2", + "source_type": "CHAR(10)", + "dest_name": "cgfut2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CGFUT3", + "source_type": "CHAR(20)", + "dest_name": "cgfut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CGFUT4", + "source_type": "NUMERIC(15,0)", + "dest_name": "cgfut4", + "dest_type": "numeric(15,0)", + "description": "Future Use" + }, + { + "source_name": "CGFUT5", + "source_type": "NUMERIC(15,0)", + "dest_name": "cgfut5", + "dest_type": "numeric(15,0)", + "description": "Future Use" + }, + { + "source_name": "CGFLG1", + "source_type": "CHAR(1)", + "dest_name": "cgflg1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CGFLG2", + "source_type": "CHAR(1)", + "dest_name": "cgflg2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CGFLG3", + "source_type": "CHAR(1)", + "dest_name": "cgflg3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CGFUT6", + "source_type": "CHAR(10)", + "dest_name": "cgfut6", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CGFUT7", + "source_type": "CHAR(10)", + "dest_name": "cgfut7", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CGFUT8", + "source_type": "CHAR(20)", + "dest_name": "cgfut8", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CGFUT9", + "source_type": "CHAR(20)", + "dest_name": "cgfut9", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CGFUT10", + "source_type": "CHAR(30)", + "dest_name": "cgfut10", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CGFUT11", + "source_type": "CHAR(30)", + "dest_name": "cgfut11", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CGFUT12", + "source_type": "NUMERIC(15,5)", + "dest_name": "cgfut12", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "CGFUT13", + "source_type": "NUMERIC(15,5)", + "dest_name": "cgfut13", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "CGFUT14", + "source_type": "NUMERIC(15,5)", + "dest_name": "cgfut14", + "dest_type": "numeric(15,5)", + "description": "Future Use" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/icstm.sql b/config/modules/icstm.sql new file mode 100644 index 0000000..5bcb4ff --- /dev/null +++ b/config/modules/icstm.sql @@ -0,0 +1,50 @@ +SELECT + RTRIM(CGPART) AS cgpart, + CGLABS AS cglabs, + CGMATS AS cgmats, + CGBURS AS cgburs, + CGLABA AS cglaba, + CGMATA AS cgmata, + CGBURA AS cgbura, + CGLABV AS cglabv, + CGMATV AS cgmatv, + CGBURV AS cgburv, + CGTPTD AS cgtptd, + CASE WHEN CGSDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE CGSDAT END AS cgsdat, + CGSTCS AS cgstcs, + CGACCS AS cgaccs, + CGAVCS AS cgavcs, + CGSTOC AS cgstoc, + CGACOC AS cgacoc, + CGAVOC AS cgavoc, + CGSQTY AS cgsqty, + CGAQTY AS cgaqty, + RTRIM(CGTYPE) AS cgtype, + CGBRFS AS cgbrfs, + CGBRVS AS cgbrvs, + CGBRFA AS cgbrfa, + CGBRVA AS cgbrva, + CGBRFV AS cgbrfv, + CGBRVV AS cgbrvv, + CGFUTS AS cgfuts, + CGFUTA AS cgfuta, + CGFUTV AS cgfutv, + RTRIM(CGPLNT) AS cgplnt, + RTRIM(CGFUT1) AS cgfut1, + RTRIM(CGFUT2) AS cgfut2, + RTRIM(CGFUT3) AS cgfut3, + CGFUT4 AS cgfut4, + CGFUT5 AS cgfut5, + RTRIM(CGFLG1) AS cgflg1, + RTRIM(CGFLG2) AS cgflg2, + RTRIM(CGFLG3) AS cgflg3, + RTRIM(CGFUT6) AS cgfut6, + RTRIM(CGFUT7) AS cgfut7, + RTRIM(CGFUT8) AS cgfut8, + RTRIM(CGFUT9) AS cgfut9, + RTRIM(CGFUT10) AS cgfut10, + RTRIM(CGFUT11) AS cgfut11, + CGFUT12 AS cgfut12, + CGFUT13 AS cgfut13, + CGFUT14 AS cgfut14 +FROM LGDAT.ICSTM diff --git a/config/modules/icstp.json b/config/modules/icstp.json new file mode 100644 index 0000000..089549d --- /dev/null +++ b/config/modules/icstp.json @@ -0,0 +1,435 @@ +{ + "name": "icstp", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.icstp", + "staging_table": "pipekit_staging.icstp", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Inventory Cost Master - Purchased Parts 6.1", + "columns": [ + { + "source_name": "CHPART", + "source_type": "CHAR(20)", + "dest_name": "chpart", + "dest_type": "text", + "description": "Part Number" + }, + { + "source_name": "CHLUC", + "source_type": "NUMERIC(13,5)", + "dest_name": "chluc", + "dest_type": "numeric(13,5)", + "description": "Last Unit Cost" + }, + { + "source_name": "CHLCC", + "source_type": "NUMERIC(13,5)", + "dest_name": "chlcc", + "dest_type": "numeric(13,5)", + "description": "Last Currency Cost" + }, + { + "source_name": "CHLFC", + "source_type": "NUMERIC(13,5)", + "dest_name": "chlfc", + "dest_type": "numeric(13,5)", + "description": "Last Freight Cost" + }, + { + "source_name": "CHLDC", + "source_type": "NUMERIC(13,5)", + "dest_name": "chldc", + "dest_type": "numeric(13,5)", + "description": "Last Duty Cost" + }, + { + "source_name": "CHL1C", + "source_type": "NUMERIC(13,5)", + "dest_name": "chl1c", + "dest_type": "numeric(13,5)", + "description": "Last Multiplier-1 Cost" + }, + { + "source_name": "CHL2C", + "source_type": "NUMERIC(13,5)", + "dest_name": "chl2c", + "dest_type": "numeric(13,5)", + "description": "Last Multiplier-2 Cost" + }, + { + "source_name": "CHSUC", + "source_type": "NUMERIC(13,5)", + "dest_name": "chsuc", + "dest_type": "numeric(13,5)", + "description": "Standard Unit Cost" + }, + { + "source_name": "CHSCC", + "source_type": "NUMERIC(13,5)", + "dest_name": "chscc", + "dest_type": "numeric(13,5)", + "description": "Standard Currency Cost" + }, + { + "source_name": "CHSFC", + "source_type": "NUMERIC(13,5)", + "dest_name": "chsfc", + "dest_type": "numeric(13,5)", + "description": "Standard Freight Cost" + }, + { + "source_name": "CHSDC", + "source_type": "NUMERIC(13,5)", + "dest_name": "chsdc", + "dest_type": "numeric(13,5)", + "description": "Standard Duty Cost" + }, + { + "source_name": "CHS1C", + "source_type": "NUMERIC(13,5)", + "dest_name": "chs1c", + "dest_type": "numeric(13,5)", + "description": "Standard Multiplier-1 Cost" + }, + { + "source_name": "CHS2C", + "source_type": "NUMERIC(13,5)", + "dest_name": "chs2c", + "dest_type": "numeric(13,5)", + "description": "Standard Multiplier-2 Cost" + }, + { + "source_name": "CHSCR", + "source_type": "DECIMAL(11,6)", + "dest_name": "chscr", + "dest_type": "numeric(11,6)", + "description": "Standard Currency Rate" + }, + { + "source_name": "CHLCR", + "source_type": "DECIMAL(11,6)", + "dest_name": "chlcr", + "dest_type": "numeric(11,6)", + "description": "Last Currency Rate" + }, + { + "source_name": "CHSDAT", + "source_type": "DATE", + "dest_name": "chsdat", + "dest_type": "date", + "description": "Standard Date" + }, + { + "source_name": "CHSTCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "chstcs", + "dest_type": "numeric(13,5)", + "description": "Standard Cost" + }, + { + "source_name": "CHACCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "chaccs", + "dest_type": "numeric(13,5)", + "description": "Last Actual Cost" + }, + { + "source_name": "CHAVCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "chavcs", + "dest_type": "numeric(13,5)", + "description": "Average Cost" + }, + { + "source_name": "CHSDR", + "source_type": "NUMERIC(8,4)", + "dest_name": "chsdr", + "dest_type": "numeric(8,4)", + "description": "Standard Duty Rate" + }, + { + "source_name": "CHS1R", + "source_type": "NUMERIC(8,4)", + "dest_name": "chs1r", + "dest_type": "numeric(8,4)", + "description": "Standard Multiplier-1" + }, + { + "source_name": "CHS2R", + "source_type": "NUMERIC(8,4)", + "dest_name": "chs2r", + "dest_type": "numeric(8,4)", + "description": "Standard Multiplier-2" + }, + { + "source_name": "CHLDR", + "source_type": "NUMERIC(8,4)", + "dest_name": "chldr", + "dest_type": "numeric(8,4)", + "description": "Last Duty Rate" + }, + { + "source_name": "CHL1R", + "source_type": "NUMERIC(8,4)", + "dest_name": "chl1r", + "dest_type": "numeric(8,4)", + "description": "Last Multiplier-1" + }, + { + "source_name": "CHL2R", + "source_type": "NUMERIC(8,4)", + "dest_name": "chl2r", + "dest_type": "numeric(8,4)", + "description": "Last Multiplier-2" + }, + { + "source_name": "CHSQTY", + "source_type": "NUMERIC(8,0)", + "dest_name": "chsqty", + "dest_type": "numeric(8,0)", + "description": "Standard Quantity" + }, + { + "source_name": "CHAQTY", + "source_type": "NUMERIC(8,0)", + "dest_name": "chaqty", + "dest_type": "numeric(8,0)", + "description": "Actual Quantity" + }, + { + "source_name": "CHTYPE", + "source_type": "CHAR(1)", + "dest_name": "chtype", + "dest_type": "text", + "description": "Part Type R" + }, + { + "source_name": "CHCURR", + "source_type": "CHAR(3)", + "dest_name": "chcurr", + "dest_type": "text", + "description": "Currency Code" + }, + { + "source_name": "CHSDWC", + "source_type": "NUMERIC(13,5)", + "dest_name": "chsdwc", + "dest_type": "numeric(13,5)", + "description": "Standard Warehouse Cha rge" + }, + { + "source_name": "CHACWC", + "source_type": "NUMERIC(13,5)", + "dest_name": "chacwc", + "dest_type": "numeric(13,5)", + "description": "Last Warehouse Charge" + }, + { + "source_name": "CHPLNT", + "source_type": "CHAR(3)", + "dest_name": "chplnt", + "dest_type": "text", + "description": "Plant Code" + }, + { + "source_name": "CHAVUC", + "source_type": "NUMERIC(13,5)", + "dest_name": "chavuc", + "dest_type": "numeric(13,5)", + "description": "Average Unit cost" + }, + { + "source_name": "CHAVXC", + "source_type": "NUMERIC(13,5)", + "dest_name": "chavxc", + "dest_type": "numeric(13,5)", + "description": "Average Xchg cost" + }, + { + "source_name": "CHAVDC", + "source_type": "NUMERIC(13,5)", + "dest_name": "chavdc", + "dest_type": "numeric(13,5)", + "description": "Average Duty cost" + }, + { + "source_name": "CHAV1C", + "source_type": "NUMERIC(13,5)", + "dest_name": "chav1c", + "dest_type": "numeric(13,5)", + "description": "Average Multiplier-1 Cost" + }, + { + "source_name": "CHAV2C", + "source_type": "NUMERIC(13,5)", + "dest_name": "chav2c", + "dest_type": "numeric(13,5)", + "description": "Average Multiplier-2 Cost" + }, + { + "source_name": "CHAVFC", + "source_type": "NUMERIC(13,5)", + "dest_name": "chavfc", + "dest_type": "numeric(13,5)", + "description": "Average Freight cost" + }, + { + "source_name": "CHFUT1", + "source_type": "CHAR(3)", + "dest_name": "chfut1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CHFUT2", + "source_type": "CHAR(10)", + "dest_name": "chfut2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CHFUT3", + "source_type": "CHAR(20)", + "dest_name": "chfut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CHFUT4", + "source_type": "NUMERIC(15,0)", + "dest_name": "chfut4", + "dest_type": "numeric(15,0)", + "description": "Future Use" + }, + { + "source_name": "CHFUT5", + "source_type": "NUMERIC(15,0)", + "dest_name": "chfut5", + "dest_type": "numeric(15,0)", + "description": "Future Use" + }, + { + "source_name": "CHFLG1", + "source_type": "CHAR(1)", + "dest_name": "chflg1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CHFLG2", + "source_type": "CHAR(1)", + "dest_name": "chflg2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CHFLG3", + "source_type": "CHAR(1)", + "dest_name": "chflg3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CHFLG4", + "source_type": "CHAR(1)", + "dest_name": "chflg4", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CHFLG5", + "source_type": "CHAR(1)", + "dest_name": "chflg5", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CHFLG6", + "source_type": "CHAR(1)", + "dest_name": "chflg6", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CHFLG7", + "source_type": "CHAR(1)", + "dest_name": "chflg7", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CHCRCD", + "source_type": "CHAR(3)", + "dest_name": "chcrcd", + "dest_type": "text", + "description": "Last Actual Currency" + }, + { + "source_name": "CHFUT6", + "source_type": "CHAR(10)", + "dest_name": "chfut6", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CHFUT7", + "source_type": "CHAR(10)", + "dest_name": "chfut7", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CHFUT8", + "source_type": "CHAR(20)", + "dest_name": "chfut8", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CHFUT9", + "source_type": "CHAR(20)", + "dest_name": "chfut9", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CHFUT10", + "source_type": "CHAR(30)", + "dest_name": "chfut10", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CHFUT11", + "source_type": "CHAR(30)", + "dest_name": "chfut11", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "CHFUT12", + "source_type": "NUMERIC(15,5)", + "dest_name": "chfut12", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "CHFUT13", + "source_type": "NUMERIC(15,5)", + "dest_name": "chfut13", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "CHFUT14", + "source_type": "NUMERIC(15,5)", + "dest_name": "chfut14", + "dest_type": "numeric(15,5)", + "description": "Future Use" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/icstp.sql b/config/modules/icstp.sql new file mode 100644 index 0000000..32448e9 --- /dev/null +++ b/config/modules/icstp.sql @@ -0,0 +1,62 @@ +SELECT + RTRIM(CHPART) AS chpart, + CHLUC AS chluc, + CHLCC AS chlcc, + CHLFC AS chlfc, + CHLDC AS chldc, + CHL1C AS chl1c, + CHL2C AS chl2c, + CHSUC AS chsuc, + CHSCC AS chscc, + CHSFC AS chsfc, + CHSDC AS chsdc, + CHS1C AS chs1c, + CHS2C AS chs2c, + CHSCR AS chscr, + CHLCR AS chlcr, + CASE WHEN CHSDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE CHSDAT END AS chsdat, + CHSTCS AS chstcs, + CHACCS AS chaccs, + CHAVCS AS chavcs, + CHSDR AS chsdr, + CHS1R AS chs1r, + CHS2R AS chs2r, + CHLDR AS chldr, + CHL1R AS chl1r, + CHL2R AS chl2r, + CHSQTY AS chsqty, + CHAQTY AS chaqty, + RTRIM(CHTYPE) AS chtype, + RTRIM(CHCURR) AS chcurr, + CHSDWC AS chsdwc, + CHACWC AS chacwc, + RTRIM(CHPLNT) AS chplnt, + CHAVUC AS chavuc, + CHAVXC AS chavxc, + CHAVDC AS chavdc, + CHAV1C AS chav1c, + CHAV2C AS chav2c, + CHAVFC AS chavfc, + RTRIM(CHFUT1) AS chfut1, + RTRIM(CHFUT2) AS chfut2, + RTRIM(CHFUT3) AS chfut3, + CHFUT4 AS chfut4, + CHFUT5 AS chfut5, + RTRIM(CHFLG1) AS chflg1, + RTRIM(CHFLG2) AS chflg2, + RTRIM(CHFLG3) AS chflg3, + RTRIM(CHFLG4) AS chflg4, + RTRIM(CHFLG5) AS chflg5, + RTRIM(CHFLG6) AS chflg6, + RTRIM(CHFLG7) AS chflg7, + RTRIM(CHCRCD) AS chcrcd, + RTRIM(CHFUT6) AS chfut6, + RTRIM(CHFUT7) AS chfut7, + RTRIM(CHFUT8) AS chfut8, + RTRIM(CHFUT9) AS chfut9, + RTRIM(CHFUT10) AS chfut10, + RTRIM(CHFUT11) AS chfut11, + CHFUT12 AS chfut12, + CHFUT13 AS chfut13, + CHFUT14 AS chfut14 +FROM LGDAT.ICSTP diff --git a/config/modules/icstr.json b/config/modules/icstr.json new file mode 100644 index 0000000..256ce60 --- /dev/null +++ b/config/modules/icstr.json @@ -0,0 +1,393 @@ +{ + "name": "icstr", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.icstr", + "staging_table": "pipekit_staging.icstr", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Inventory Cost Master-Transferred Parts6.1", + "columns": [ + { + "source_name": "Y0PART", + "source_type": "CHAR(20)", + "dest_name": "y0part", + "dest_type": "text", + "description": "Part Number" + }, + { + "source_name": "Y0PLNT", + "source_type": "CHAR(3)", + "dest_name": "y0plnt", + "dest_type": "text", + "description": "Plant Code" + }, + { + "source_name": "Y0STCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0stcs", + "dest_type": "numeric(13,5)", + "description": "Standard Cost" + }, + { + "source_name": "Y0ACCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0accs", + "dest_type": "numeric(13,5)", + "description": "Last Actual Cost" + }, + { + "source_name": "Y0AVCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0avcs", + "dest_type": "numeric(13,5)", + "description": "Average Cost" + }, + { + "source_name": "Y0SUC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0suc", + "dest_type": "numeric(13,5)", + "description": "Standard Unit Cost" + }, + { + "source_name": "Y0SSHR", + "source_type": "DECIMAL(9,5)", + "dest_name": "y0sshr", + "dest_type": "numeric(9,5)", + "description": "Standard S & H Rate" + }, + { + "source_name": "Y0SSHC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0sshc", + "dest_type": "numeric(13,5)", + "description": "Standard S & H Cost" + }, + { + "source_name": "Y0SOC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0soc", + "dest_type": "numeric(13,5)", + "description": "Standard Currency Cost" + }, + { + "source_name": "Y0SDAT", + "source_type": "DATE", + "dest_name": "y0sdat", + "dest_type": "date", + "description": "Standard Date" + }, + { + "source_name": "Y0SQTY", + "source_type": "NUMERIC(8,0)", + "dest_name": "y0sqty", + "dest_type": "numeric(8,0)", + "description": "Standard Quantity" + }, + { + "source_name": "Y0LUC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0luc", + "dest_type": "numeric(13,5)", + "description": "Last Unit Cost" + }, + { + "source_name": "Y0LSHC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0lshc", + "dest_type": "numeric(13,5)", + "description": "Last S & H Cost" + }, + { + "source_name": "Y0LOC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0loc", + "dest_type": "numeric(13,5)", + "description": "Last Currency Cost" + }, + { + "source_name": "Y0AQTY", + "source_type": "NUMERIC(8,0)", + "dest_name": "y0aqty", + "dest_type": "numeric(8,0)", + "description": "Actual Quantity" + }, + { + "source_name": "Y0TYPE", + "source_type": "CHAR(1)", + "dest_name": "y0type", + "dest_type": "text", + "description": "Part Type T" + }, + { + "source_name": "Y0SMAT", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0smat", + "dest_type": "numeric(13,5)", + "description": "Standard Material Cost" + }, + { + "source_name": "Y0SLAB", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0slab", + "dest_type": "numeric(13,5)", + "description": "Standard Labour Cost" + }, + { + "source_name": "Y0SVBR", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0svbr", + "dest_type": "numeric(13,5)", + "description": "Standard Variable Burden Cost" + }, + { + "source_name": "Y0SFBR", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0sfbr", + "dest_type": "numeric(13,5)", + "description": "Standard Fixed Burden Cost" + }, + { + "source_name": "Y0SOTC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0sotc", + "dest_type": "numeric(13,5)", + "description": "Standard Other Cost" + }, + { + "source_name": "Y0LMAT", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0lmat", + "dest_type": "numeric(13,5)", + "description": "Last Actual Material Cost" + }, + { + "source_name": "Y0LLAB", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0llab", + "dest_type": "numeric(13,5)", + "description": "Last Actual Labour Cost" + }, + { + "source_name": "Y0LVBR", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0lvbr", + "dest_type": "numeric(13,5)", + "description": "Last Actual Variable Burden Cost" + }, + { + "source_name": "Y0LFBR", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0lfbr", + "dest_type": "numeric(13,5)", + "description": "Last Actual Fixed Burden Cost" + }, + { + "source_name": "Y0LOTC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0lotc", + "dest_type": "numeric(13,5)", + "description": "Last Actual Other Cost" + }, + { + "source_name": "Y0AMAT", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0amat", + "dest_type": "numeric(13,5)", + "description": "Average Material Cost" + }, + { + "source_name": "Y0ALAB", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0alab", + "dest_type": "numeric(13,5)", + "description": "Average Labour Cost" + }, + { + "source_name": "Y0AVBR", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0avbr", + "dest_type": "numeric(13,5)", + "description": "Average Variable Burden Cost" + }, + { + "source_name": "Y0AFBR", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0afbr", + "dest_type": "numeric(13,5)", + "description": "Average Fixed Burden Cost" + }, + { + "source_name": "Y0AOTC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0aotc", + "dest_type": "numeric(13,5)", + "description": "Average Other Cost" + }, + { + "source_name": "Y0AUNC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0aunc", + "dest_type": "numeric(13,5)", + "description": "Average Unit Cost" + }, + { + "source_name": "Y0ASHC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0ashc", + "dest_type": "numeric(13,5)", + "description": "Average S & H Cost" + }, + { + "source_name": "Y0ACRC", + "source_type": "NUMERIC(13,5)", + "dest_name": "y0acrc", + "dest_type": "numeric(13,5)", + "description": "Average Currency Cost" + }, + { + "source_name": "Y0FUT1", + "source_type": "CHAR(3)", + "dest_name": "y0fut1", + "dest_type": "text", + "description": "Currency Code" + }, + { + "source_name": "Y0FUT2", + "source_type": "CHAR(10)", + "dest_name": "y0fut2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y0FUT3", + "source_type": "CHAR(20)", + "dest_name": "y0fut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y0FUT4", + "source_type": "NUMERIC(11,6)", + "dest_name": "y0fut4", + "dest_type": "numeric(11,6)", + "description": "Standard Currency Rate" + }, + { + "source_name": "Y0FUT5", + "source_type": "NUMERIC(11,6)", + "dest_name": "y0fut5", + "dest_type": "numeric(11,6)", + "description": "Last Currency Rate" + }, + { + "source_name": "Y0FLG1", + "source_type": "CHAR(1)", + "dest_name": "y0flg1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y0FLG2", + "source_type": "CHAR(1)", + "dest_name": "y0flg2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y0FLG3", + "source_type": "CHAR(1)", + "dest_name": "y0flg3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y0CRCD", + "source_type": "CHAR(3)", + "dest_name": "y0crcd", + "dest_type": "text", + "description": "Currency Code" + }, + { + "source_name": "Y0STCR", + "source_type": "NUMERIC(11,6)", + "dest_name": "y0stcr", + "dest_type": "numeric(11,6)", + "description": "Standard Currency Rate" + }, + { + "source_name": "Y0LSCR", + "source_type": "NUMERIC(11,6)", + "dest_name": "y0lscr", + "dest_type": "numeric(11,6)", + "description": "Last Currency Rate" + }, + { + "source_name": "Y0FUT6", + "source_type": "CHAR(10)", + "dest_name": "y0fut6", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y0FUT7", + "source_type": "CHAR(10)", + "dest_name": "y0fut7", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y0FUT8", + "source_type": "CHAR(20)", + "dest_name": "y0fut8", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y0FUT9", + "source_type": "CHAR(20)", + "dest_name": "y0fut9", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y0FUT10", + "source_type": "CHAR(30)", + "dest_name": "y0fut10", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y0FUT11", + "source_type": "CHAR(30)", + "dest_name": "y0fut11", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "Y0FUT12", + "source_type": "NUMERIC(15,5)", + "dest_name": "y0fut12", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "Y0FUT13", + "source_type": "NUMERIC(15,5)", + "dest_name": "y0fut13", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "Y0FUT14", + "source_type": "NUMERIC(15,5)", + "dest_name": "y0fut14", + "dest_type": "numeric(15,5)", + "description": "Future Use" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/icstr.sql b/config/modules/icstr.sql new file mode 100644 index 0000000..a9b4106 --- /dev/null +++ b/config/modules/icstr.sql @@ -0,0 +1,56 @@ +SELECT + RTRIM(Y0PART) AS y0part, + RTRIM(Y0PLNT) AS y0plnt, + Y0STCS AS y0stcs, + Y0ACCS AS y0accs, + Y0AVCS AS y0avcs, + Y0SUC AS y0suc, + Y0SSHR AS y0sshr, + Y0SSHC AS y0sshc, + Y0SOC AS y0soc, + CASE WHEN Y0SDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE Y0SDAT END AS y0sdat, + Y0SQTY AS y0sqty, + Y0LUC AS y0luc, + Y0LSHC AS y0lshc, + Y0LOC AS y0loc, + Y0AQTY AS y0aqty, + RTRIM(Y0TYPE) AS y0type, + Y0SMAT AS y0smat, + Y0SLAB AS y0slab, + Y0SVBR AS y0svbr, + Y0SFBR AS y0sfbr, + Y0SOTC AS y0sotc, + Y0LMAT AS y0lmat, + Y0LLAB AS y0llab, + Y0LVBR AS y0lvbr, + Y0LFBR AS y0lfbr, + Y0LOTC AS y0lotc, + Y0AMAT AS y0amat, + Y0ALAB AS y0alab, + Y0AVBR AS y0avbr, + Y0AFBR AS y0afbr, + Y0AOTC AS y0aotc, + Y0AUNC AS y0aunc, + Y0ASHC AS y0ashc, + Y0ACRC AS y0acrc, + RTRIM(Y0FUT1) AS y0fut1, + RTRIM(Y0FUT2) AS y0fut2, + RTRIM(Y0FUT3) AS y0fut3, + Y0FUT4 AS y0fut4, + Y0FUT5 AS y0fut5, + RTRIM(Y0FLG1) AS y0flg1, + RTRIM(Y0FLG2) AS y0flg2, + RTRIM(Y0FLG3) AS y0flg3, + RTRIM(Y0CRCD) AS y0crcd, + Y0STCR AS y0stcr, + Y0LSCR AS y0lscr, + RTRIM(Y0FUT6) AS y0fut6, + RTRIM(Y0FUT7) AS y0fut7, + RTRIM(Y0FUT8) AS y0fut8, + RTRIM(Y0FUT9) AS y0fut9, + RTRIM(Y0FUT10) AS y0fut10, + RTRIM(Y0FUT11) AS y0fut11, + Y0FUT12 AS y0fut12, + Y0FUT13 AS y0fut13, + Y0FUT14 AS y0fut14 +FROM LGDAT.ICSTR diff --git a/config/modules/iprca.json b/config/modules/iprca.json new file mode 100644 index 0000000..89c5b1c --- /dev/null +++ b/config/modules/iprca.json @@ -0,0 +1,183 @@ +{ + "name": "iprca", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.iprca", + "staging_table": "pipekit_staging.iprca", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Pricing - Price List Code Description 6.1", + "columns": [ + { + "source_name": "JAPLCD", + "source_type": "CHAR(5)", + "dest_name": "japlcd", + "dest_type": "text", + "description": "Price List" + }, + { + "source_name": "JAPLDS", + "source_type": "CHAR(30)", + "dest_name": "japlds", + "dest_type": "text", + "description": "Price List Description" + }, + { + "source_name": "JAPLD1", + "source_type": "CHAR(30)", + "dest_name": "japld1", + "dest_type": "text", + "description": "Price List Description" + }, + { + "source_name": "JAPLD2", + "source_type": "CHAR(30)", + "dest_name": "japld2", + "dest_type": "text", + "description": "Price List Description" + }, + { + "source_name": "JABQTP", + "source_type": "CHAR(1)", + "dest_name": "jabqtp", + "dest_type": "text", + "description": "Best Quantity Pricing" + }, + { + "source_name": "JABQGN", + "source_type": "CHAR(1)", + "dest_name": "jabqgn", + "dest_type": "text", + "description": "Allow Global Re-Price" + }, + { + "source_name": "JABQUN", + "source_type": "NUMERIC(10,0)", + "dest_name": "jabqun", + "dest_type": "numeric(10,0)", + "description": "Last Global Re-Price Run Date" + }, + { + "source_name": "JAPLNT", + "source_type": "CHAR(3)", + "dest_name": "japlnt", + "dest_type": "text", + "description": "Plant Code" + }, + { + "source_name": "JABQUT", + "source_type": "NUMERIC(6,0)", + "dest_name": "jabqut", + "dest_type": "numeric(6,0)", + "description": "Last Global Re-Price Run Time" + }, + { + "source_name": "JALQUN", + "source_type": "NUMERIC(10,0)", + "dest_name": "jalqun", + "dest_type": "numeric(10,0)", + "description": "Last Global Re-Run Run Date" + }, + { + "source_name": "JALQUT", + "source_type": "NUMERIC(6,0)", + "dest_name": "jalqut", + "dest_type": "numeric(6,0)", + "description": "Last Global Re-Run Run Time" + }, + { + "source_name": "JAADISC", + "source_type": "CHAR(1)", + "dest_name": "jaadisc", + "dest_type": "text", + "description": "Apply Disc/Charge to Standard Sales Order" + }, + { + "source_name": "JAHREAS", + "source_type": "CHAR(2)", + "dest_name": "jahreas", + "dest_type": "text", + "description": "Hold Reason" + }, + { + "source_name": "JAFUT1", + "source_type": "CHAR(1)", + "dest_name": "jafut1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "JAFUT2", + "source_type": "CHAR(1)", + "dest_name": "jafut2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "JAFUT3", + "source_type": "CHAR(1)", + "dest_name": "jafut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "JAFUT4", + "source_type": "CHAR(1)", + "dest_name": "jafut4", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "JAFUT5", + "source_type": "CHAR(1)", + "dest_name": "jafut5", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "JAFUT6", + "source_type": "CHAR(10)", + "dest_name": "jafut6", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "JAFUT7", + "source_type": "CHAR(10)", + "dest_name": "jafut7", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "JAFUT8", + "source_type": "CHAR(20)", + "dest_name": "jafut8", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "JAFUT9", + "source_type": "CHAR(20)", + "dest_name": "jafut9", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "JAFUT10", + "source_type": "NUMERIC(15,5)", + "dest_name": "jafut10", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "JAFUT11", + "source_type": "NUMERIC(15,5)", + "dest_name": "jafut11", + "dest_type": "numeric(15,5)", + "description": "Future Use" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/iprca.sql b/config/modules/iprca.sql new file mode 100644 index 0000000..7bddb67 --- /dev/null +++ b/config/modules/iprca.sql @@ -0,0 +1,26 @@ +SELECT + RTRIM(JAPLCD) AS japlcd, + RTRIM(JAPLDS) AS japlds, + RTRIM(JAPLD1) AS japld1, + RTRIM(JAPLD2) AS japld2, + RTRIM(JABQTP) AS jabqtp, + RTRIM(JABQGN) AS jabqgn, + JABQUN AS jabqun, + RTRIM(JAPLNT) AS japlnt, + JABQUT AS jabqut, + JALQUN AS jalqun, + JALQUT AS jalqut, + RTRIM(JAADISC) AS jaadisc, + RTRIM(JAHREAS) AS jahreas, + RTRIM(JAFUT1) AS jafut1, + RTRIM(JAFUT2) AS jafut2, + RTRIM(JAFUT3) AS jafut3, + RTRIM(JAFUT4) AS jafut4, + RTRIM(JAFUT5) AS jafut5, + RTRIM(JAFUT6) AS jafut6, + RTRIM(JAFUT7) AS jafut7, + RTRIM(JAFUT8) AS jafut8, + RTRIM(JAFUT9) AS jafut9, + JAFUT10 AS jafut10, + JAFUT11 AS jafut11 +FROM LGDAT.IPRCA diff --git a/config/modules/iprcb.json b/config/modules/iprcb.json new file mode 100644 index 0000000..b05f8ba --- /dev/null +++ b/config/modules/iprcb.json @@ -0,0 +1,351 @@ +{ + "name": "iprcb", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.iprcb", + "staging_table": "pipekit_staging.iprcb", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Pricing - PriceLlist Assignment", + "columns": [ + { + "source_name": "JBTYPE", + "source_type": "CHAR(1)", + "dest_name": "jbtype", + "dest_type": "text", + "description": "Assignment Type" + }, + { + "source_name": "JBCODE", + "source_type": "CHAR(8)", + "dest_name": "jbcode", + "dest_type": "text", + "description": "Customer /Class" + }, + { + "source_name": "JBPLCD", + "source_type": "CHAR(5)", + "dest_name": "jbplcd", + "dest_type": "text", + "description": "Price List" + }, + { + "source_name": "JBFDAT", + "source_type": "DATE", + "dest_name": "jbfdat", + "dest_type": "date", + "description": "Valid from" + }, + { + "source_name": "JBTDAT", + "source_type": "DATE", + "dest_name": "jbtdat", + "dest_type": "date", + "description": "Valid to" + }, + { + "source_name": "JBDISC", + "source_type": "CHAR(3)", + "dest_name": "jbdisc", + "dest_type": "text", + "description": "Discount Code" + }, + { + "source_name": "JBDIST", + "source_type": "CHAR(1)", + "dest_name": "jbdist", + "dest_type": "text", + "description": "Discount Type" + }, + { + "source_name": "JBUSEG", + "source_type": "CHAR(1)", + "dest_name": "jbuseg", + "dest_type": "text", + "description": "Assignment Usage" + }, + { + "source_name": "JBFLG1", + "source_type": "CHAR(1)", + "dest_name": "jbflg1", + "dest_type": "text", + "description": "Future Flag 1" + }, + { + "source_name": "JBFLG2", + "source_type": "CHAR(1)", + "dest_name": "jbflg2", + "dest_type": "text", + "description": "Future Flag 2" + }, + { + "source_name": "JBFLG3", + "source_type": "CHAR(1)", + "dest_name": "jbflg3", + "dest_type": "text", + "description": "Future Flag 3" + }, + { + "source_name": "JBFLG4", + "source_type": "CHAR(1)", + "dest_name": "jbflg4", + "dest_type": "text", + "description": "Future Flag 4" + }, + { + "source_name": "JBFLG5", + "source_type": "CHAR(1)", + "dest_name": "jbflg5", + "dest_type": "text", + "description": "Future Flag 5" + }, + { + "source_name": "JBFUT1", + "source_type": "CHAR(3)", + "dest_name": "jbfut1", + "dest_type": "text", + "description": "Future Use 1" + }, + { + "source_name": "JBFUT2", + "source_type": "CHAR(3)", + "dest_name": "jbfut2", + "dest_type": "text", + "description": "Future Use 2" + }, + { + "source_name": "JBFUT3", + "source_type": "CHAR(3)", + "dest_name": "jbfut3", + "dest_type": "text", + "description": "Future Use 3" + }, + { + "source_name": "JBFUT4", + "source_type": "CHAR(3)", + "dest_name": "jbfut4", + "dest_type": "text", + "description": "Future Use 4" + }, + { + "source_name": "JBFUT5", + "source_type": "CHAR(3)", + "dest_name": "jbfut5", + "dest_type": "text", + "description": "Future Use 5" + }, + { + "source_name": "JBFUT6", + "source_type": "CHAR(5)", + "dest_name": "jbfut6", + "dest_type": "text", + "description": "Future Use 6" + }, + { + "source_name": "JBFUT7", + "source_type": "CHAR(5)", + "dest_name": "jbfut7", + "dest_type": "text", + "description": "Future Use 7" + }, + { + "source_name": "JBFUT8", + "source_type": "CHAR(5)", + "dest_name": "jbfut8", + "dest_type": "text", + "description": "Future Use 8" + }, + { + "source_name": "JBFUT9", + "source_type": "CHAR(5)", + "dest_name": "jbfut9", + "dest_type": "text", + "description": "Future Use 9" + }, + { + "source_name": "JBFUT10", + "source_type": "CHAR(5)", + "dest_name": "jbfut10", + "dest_type": "text", + "description": "Future Use 10" + }, + { + "source_name": "JBFUT11", + "source_type": "CHAR(10)", + "dest_name": "jbfut11", + "dest_type": "text", + "description": "Last Update Date" + }, + { + "source_name": "JBFUT12", + "source_type": "CHAR(10)", + "dest_name": "jbfut12", + "dest_type": "text", + "description": "Update By User ID" + }, + { + "source_name": "JBFUT13", + "source_type": "CHAR(10)", + "dest_name": "jbfut13", + "dest_type": "text", + "description": "Future Use 13" + }, + { + "source_name": "JBFUT14", + "source_type": "CHAR(10)", + "dest_name": "jbfut14", + "dest_type": "text", + "description": "Future Use 14" + }, + { + "source_name": "JBFUT15", + "source_type": "CHAR(10)", + "dest_name": "jbfut15", + "dest_type": "text", + "description": "Future Use 15" + }, + { + "source_name": "JBFUT16", + "source_type": "CHAR(20)", + "dest_name": "jbfut16", + "dest_type": "text", + "description": "Future Use 16" + }, + { + "source_name": "JBFUT17", + "source_type": "CHAR(20)", + "dest_name": "jbfut17", + "dest_type": "text", + "description": "Future Use 17" + }, + { + "source_name": "JBFUT18", + "source_type": "CHAR(20)", + "dest_name": "jbfut18", + "dest_type": "text", + "description": "Future Use 18" + }, + { + "source_name": "JBFUT19", + "source_type": "CHAR(20)", + "dest_name": "jbfut19", + "dest_type": "text", + "description": "Future Use 19" + }, + { + "source_name": "JBFUT20", + "source_type": "CHAR(20)", + "dest_name": "jbfut20", + "dest_type": "text", + "description": "Future Use 20" + }, + { + "source_name": "JBFUT21", + "source_type": "CHAR(30)", + "dest_name": "jbfut21", + "dest_type": "text", + "description": "Future Use 21" + }, + { + "source_name": "JBFUT22", + "source_type": "CHAR(30)", + "dest_name": "jbfut22", + "dest_type": "text", + "description": "Future Use 22" + }, + { + "source_name": "JBFUT23", + "source_type": "CHAR(30)", + "dest_name": "jbfut23", + "dest_type": "text", + "description": "Future Use 23" + }, + { + "source_name": "JBFUT24", + "source_type": "CHAR(30)", + "dest_name": "jbfut24", + "dest_type": "text", + "description": "Future Use 24" + }, + { + "source_name": "JBFUT25", + "source_type": "CHAR(30)", + "dest_name": "jbfut25", + "dest_type": "text", + "description": "Future Use 25" + }, + { + "source_name": "JBFUT26", + "source_type": "NUMERIC(10,0)", + "dest_name": "jbfut26", + "dest_type": "numeric(10,0)", + "description": "Future Use 26" + }, + { + "source_name": "JBFUT27", + "source_type": "NUMERIC(10,0)", + "dest_name": "jbfut27", + "dest_type": "numeric(10,0)", + "description": "Future Use 27" + }, + { + "source_name": "JBFUT28", + "source_type": "NUMERIC(10,0)", + "dest_name": "jbfut28", + "dest_type": "numeric(10,0)", + "description": "Future Use 28" + }, + { + "source_name": "JBFUT29", + "source_type": "NUMERIC(10,0)", + "dest_name": "jbfut29", + "dest_type": "numeric(10,0)", + "description": "Future Use 29" + }, + { + "source_name": "JBFUT30", + "source_type": "NUMERIC(10,0)", + "dest_name": "jbfut30", + "dest_type": "numeric(10,0)", + "description": "Future Use 30" + }, + { + "source_name": "JBFUT31", + "source_type": "NUMERIC(15,5)", + "dest_name": "jbfut31", + "dest_type": "numeric(15,5)", + "description": "Future Use 31" + }, + { + "source_name": "JBFUT32", + "source_type": "NUMERIC(15,5)", + "dest_name": "jbfut32", + "dest_type": "numeric(15,5)", + "description": "Future Use 32" + }, + { + "source_name": "JBFUT33", + "source_type": "NUMERIC(15,5)", + "dest_name": "jbfut33", + "dest_type": "numeric(15,5)", + "description": "Future Use 33" + }, + { + "source_name": "JBFUT34", + "source_type": "NUMERIC(15,5)", + "dest_name": "jbfut34", + "dest_type": "numeric(15,5)", + "description": "Future Use 34" + }, + { + "source_name": "JBFUT35", + "source_type": "NUMERIC(15,5)", + "dest_name": "jbfut35", + "dest_type": "numeric(15,5)", + "description": "Future Use 35" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/iprcb.sql b/config/modules/iprcb.sql new file mode 100644 index 0000000..e888a4d --- /dev/null +++ b/config/modules/iprcb.sql @@ -0,0 +1,50 @@ +SELECT + RTRIM(JBTYPE) AS jbtype, + RTRIM(JBCODE) AS jbcode, + RTRIM(JBPLCD) AS jbplcd, + CASE WHEN JBFDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBFDAT END AS jbfdat, + CASE WHEN JBTDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBTDAT END AS jbtdat, + RTRIM(JBDISC) AS jbdisc, + RTRIM(JBDIST) AS jbdist, + RTRIM(JBUSEG) AS jbuseg, + RTRIM(JBFLG1) AS jbflg1, + RTRIM(JBFLG2) AS jbflg2, + RTRIM(JBFLG3) AS jbflg3, + RTRIM(JBFLG4) AS jbflg4, + RTRIM(JBFLG5) AS jbflg5, + RTRIM(JBFUT1) AS jbfut1, + RTRIM(JBFUT2) AS jbfut2, + RTRIM(JBFUT3) AS jbfut3, + RTRIM(JBFUT4) AS jbfut4, + RTRIM(JBFUT5) AS jbfut5, + RTRIM(JBFUT6) AS jbfut6, + RTRIM(JBFUT7) AS jbfut7, + RTRIM(JBFUT8) AS jbfut8, + RTRIM(JBFUT9) AS jbfut9, + RTRIM(JBFUT10) AS jbfut10, + RTRIM(JBFUT11) AS jbfut11, + RTRIM(JBFUT12) AS jbfut12, + RTRIM(JBFUT13) AS jbfut13, + RTRIM(JBFUT14) AS jbfut14, + RTRIM(JBFUT15) AS jbfut15, + RTRIM(JBFUT16) AS jbfut16, + RTRIM(JBFUT17) AS jbfut17, + RTRIM(JBFUT18) AS jbfut18, + RTRIM(JBFUT19) AS jbfut19, + RTRIM(JBFUT20) AS jbfut20, + RTRIM(JBFUT21) AS jbfut21, + RTRIM(JBFUT22) AS jbfut22, + RTRIM(JBFUT23) AS jbfut23, + RTRIM(JBFUT24) AS jbfut24, + RTRIM(JBFUT25) AS jbfut25, + JBFUT26 AS jbfut26, + JBFUT27 AS jbfut27, + JBFUT28 AS jbfut28, + JBFUT29 AS jbfut29, + JBFUT30 AS jbfut30, + JBFUT31 AS jbfut31, + JBFUT32 AS jbfut32, + JBFUT33 AS jbfut33, + JBFUT34 AS jbfut34, + JBFUT35 AS jbfut35 +FROM LGDAT.IPRCB diff --git a/config/modules/iprcbhc.json b/config/modules/iprcbhc.json new file mode 100644 index 0000000..11dfd56 --- /dev/null +++ b/config/modules/iprcbhc.json @@ -0,0 +1,64 @@ +{ + "name": "iprcbhc", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.iprcbhc", + "staging_table": "pipekit_staging.iprcbhc", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "HC Modified Price List Assignment", + "columns": [ + { + "source_name": "JBPLVL", + "source_type": "CHAR(10)", + "dest_name": "jbplvl", + "dest_type": "text", + "description": "Price Level" + }, + { + "source_name": "JBPLCD", + "source_type": "CHAR(5)", + "dest_name": "jbplcd", + "dest_type": "text", + "description": "Price List" + }, + { + "source_name": "JBFDAT", + "source_type": "DATE", + "dest_name": "jbfdat", + "dest_type": "date", + "description": "Valid from" + }, + { + "source_name": "JBTDAT", + "source_type": "DATE", + "dest_name": "jbtdat", + "dest_type": "date", + "description": "Valid to" + }, + { + "source_name": "JBDISC", + "source_type": "DECIMAL(6,5)", + "dest_name": "jbdisc", + "dest_type": "numeric(6,5)", + "description": "Discount %" + }, + { + "source_name": "JBMDAT", + "source_type": "DATE", + "dest_name": "jbmdat", + "dest_type": "date", + "description": "Last Maintained" + }, + { + "source_name": "JBMUSR", + "source_type": "CHAR(10)", + "dest_name": "jbmusr", + "dest_type": "text", + "description": "Last Maintained By" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/iprcbhc.sql b/config/modules/iprcbhc.sql new file mode 100644 index 0000000..8a86433 --- /dev/null +++ b/config/modules/iprcbhc.sql @@ -0,0 +1,9 @@ +SELECT + RTRIM(JBPLVL) AS jbplvl, + RTRIM(JBPLCD) AS jbplcd, + CASE WHEN JBFDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBFDAT END AS jbfdat, + CASE WHEN JBTDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBTDAT END AS jbtdat, + JBDISC AS jbdisc, + CASE WHEN JBMDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBMDAT END AS jbmdat, + RTRIM(JBMUSR) AS jbmusr +FROM "CMS.CUSLG".IPRCBHC diff --git a/config/modules/iprcc.json b/config/modules/iprcc.json new file mode 100644 index 0000000..1d4d2b6 --- /dev/null +++ b/config/modules/iprcc.json @@ -0,0 +1,148 @@ +{ + "name": "iprcc", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.iprcc", + "staging_table": "pipekit_staging.iprcc", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Price list file 6.0", + "columns": [ + { + "source_name": "JCPLCD", + "source_type": "CHAR(5)", + "dest_name": "jcplcd", + "dest_type": "text", + "description": "Price List Code" + }, + { + "source_name": "JCPART", + "source_type": "CHAR(20)", + "dest_name": "jcpart", + "dest_type": "text", + "description": "Part Number" + }, + { + "source_name": "JCUNIT", + "source_type": "CHAR(3)", + "dest_name": "jcunit", + "dest_type": "text", + "description": "Pricing Unit" + }, + { + "source_name": "JCVOLL", + "source_type": "DECIMAL(12,5)", + "dest_name": "jcvoll", + "dest_type": "numeric(12,5)", + "description": "Volume" + }, + { + "source_name": "JCPRIC", + "source_type": "DECIMAL(12,5)", + "dest_name": "jcpric", + "dest_type": "numeric(12,5)", + "description": "Price" + }, + { + "source_name": "JCDISC", + "source_type": "CHAR(3)", + "dest_name": "jcdisc", + "dest_type": "text", + "description": "Discount Code" + }, + { + "source_name": "JCDISF", + "source_type": "CHAR(1)", + "dest_name": "jcdisf", + "dest_type": "text", + "description": "Discount Flag" + }, + { + "source_name": "JCCPCT", + "source_type": "NUMERIC(4,2)", + "dest_name": "jccpct", + "dest_type": "numeric(4,2)", + "description": "Commission %" + }, + { + "source_name": "JCCRAT", + "source_type": "NUMERIC(5,2)", + "dest_name": "jccrat", + "dest_type": "numeric(5,2)", + "description": "Commission Rate" + }, + { + "source_name": "JCF0CM", + "source_type": "CHAR(1)", + "dest_name": "jcf0cm", + "dest_type": "text", + "description": "Force 0 Commission Flag" + }, + { + "source_name": "JCFUT1", + "source_type": "CHAR(1)", + "dest_name": "jcfut1", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "JCFUT2", + "source_type": "CHAR(1)", + "dest_name": "jcfut2", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "JCFUT3", + "source_type": "CHAR(1)", + "dest_name": "jcfut3", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "JCFUT4", + "source_type": "CHAR(5)", + "dest_name": "jcfut4", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "JCFUT5", + "source_type": "CHAR(5)", + "dest_name": "jcfut5", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "JCFUT6", + "source_type": "CHAR(10)", + "dest_name": "jcfut6", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "JCFUT7", + "source_type": "CHAR(10)", + "dest_name": "jcfut7", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "JCFUT8", + "source_type": "CHAR(20)", + "dest_name": "jcfut8", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "JCFUT9", + "source_type": "CHAR(30)", + "dest_name": "jcfut9", + "dest_type": "text", + "description": "Future Field" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/iprcc.sql b/config/modules/iprcc.sql new file mode 100644 index 0000000..acac154 --- /dev/null +++ b/config/modules/iprcc.sql @@ -0,0 +1,21 @@ +SELECT + RTRIM(JCPLCD) AS jcplcd, + RTRIM(JCPART) AS jcpart, + RTRIM(JCUNIT) AS jcunit, + JCVOLL AS jcvoll, + JCPRIC AS jcpric, + RTRIM(JCDISC) AS jcdisc, + RTRIM(JCDISF) AS jcdisf, + JCCPCT AS jccpct, + JCCRAT AS jccrat, + RTRIM(JCF0CM) AS jcf0cm, + RTRIM(JCFUT1) AS jcfut1, + RTRIM(JCFUT2) AS jcfut2, + RTRIM(JCFUT3) AS jcfut3, + RTRIM(JCFUT4) AS jcfut4, + RTRIM(JCFUT5) AS jcfut5, + RTRIM(JCFUT6) AS jcfut6, + RTRIM(JCFUT7) AS jcfut7, + RTRIM(JCFUT8) AS jcfut8, + RTRIM(JCFUT9) AS jcfut9 +FROM LGDAT.IPRCC diff --git a/config/modules/iprcctn.json b/config/modules/iprcctn.json new file mode 100644 index 0000000..aaf75d5 --- /dev/null +++ b/config/modules/iprcctn.json @@ -0,0 +1,169 @@ +{ + "name": "iprcctn", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.iprcctn", + "staging_table": "pipekit_staging.iprcctn", + "merge_strategy": "incremental", + "merge_key": "t8date", + "enabled": 1, + "dest_description": "Price List Trans New Price Detail 6.0", + "columns": [ + { + "source_name": "T8PLCD", + "source_type": "CHAR(5)", + "dest_name": "t8plcd", + "dest_type": "text", + "description": "Price List Code" + }, + { + "source_name": "T8PART", + "source_type": "CHAR(20)", + "dest_name": "t8part", + "dest_type": "text", + "description": "Part Number" + }, + { + "source_name": "T8UNIT", + "source_type": "CHAR(3)", + "dest_name": "t8unit", + "dest_type": "text", + "description": "Pricing Unit" + }, + { + "source_name": "T8DATE", + "source_type": "DATE", + "dest_name": "t8date", + "dest_type": "date", + "description": "Transaction Date" + }, + { + "source_name": "T8TIME", + "source_type": "TIME", + "dest_name": "t8time", + "dest_type": "time", + "description": "Transaction Time" + }, + { + "source_name": "T8VOLL", + "source_type": "DECIMAL(12,5)", + "dest_name": "t8voll", + "dest_type": "numeric(12,5)", + "description": "New Volume" + }, + { + "source_name": "T8PRIC", + "source_type": "DECIMAL(12,5)", + "dest_name": "t8pric", + "dest_type": "numeric(12,5)", + "description": "New Price" + }, + { + "source_name": "T8DISC", + "source_type": "CHAR(3)", + "dest_name": "t8disc", + "dest_type": "text", + "description": "New Discount Code" + }, + { + "source_name": "T8DISF", + "source_type": "CHAR(1)", + "dest_name": "t8disf", + "dest_type": "text", + "description": "New Discount Flag" + }, + { + "source_name": "T8CPCT", + "source_type": "NUMERIC(4,2)", + "dest_name": "t8cpct", + "dest_type": "numeric(4,2)", + "description": "New Commission %" + }, + { + "source_name": "T8CRAT", + "source_type": "NUMERIC(5,2)", + "dest_name": "t8crat", + "dest_type": "numeric(5,2)", + "description": "New Comm. Rate" + }, + { + "source_name": "T8F0CM", + "source_type": "CHAR(1)", + "dest_name": "t8f0cm", + "dest_type": "text", + "description": "New Force 0 Commission Flag" + }, + { + "source_name": "T8FUT1", + "source_type": "CHAR(1)", + "dest_name": "t8fut1", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "T8FUT2", + "source_type": "CHAR(1)", + "dest_name": "t8fut2", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "T8FUT3", + "source_type": "CHAR(1)", + "dest_name": "t8fut3", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "T8FUT4", + "source_type": "CHAR(5)", + "dest_name": "t8fut4", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "T8FUT5", + "source_type": "CHAR(5)", + "dest_name": "t8fut5", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "T8FUT6", + "source_type": "CHAR(10)", + "dest_name": "t8fut6", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "T8FUT7", + "source_type": "CHAR(10)", + "dest_name": "t8fut7", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "T8FUT8", + "source_type": "CHAR(20)", + "dest_name": "t8fut8", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "T8FUT9", + "source_type": "CHAR(30)", + "dest_name": "t8fut9", + "dest_type": "text", + "description": "Future Field" + } + ], + "watermarks": [ + { + "name": "iprcctn_wm", + "connection": "usmidsap02", + "resolver_sql": "SELECT COALESCE(MAX(t8date), DATE '2000-01-01') FROM cms.iprcctn", + "default_value": null + } + ], + "hooks": [] +} diff --git a/config/modules/iprcctn.sql b/config/modules/iprcctn.sql new file mode 100644 index 0000000..645551e --- /dev/null +++ b/config/modules/iprcctn.sql @@ -0,0 +1,24 @@ +SELECT + RTRIM(T8PLCD) AS t8plcd, + RTRIM(T8PART) AS t8part, + RTRIM(T8UNIT) AS t8unit, + CASE WHEN T8DATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE T8DATE END AS t8date, + T8TIME AS t8time, + T8VOLL AS t8voll, + T8PRIC AS t8pric, + RTRIM(T8DISC) AS t8disc, + RTRIM(T8DISF) AS t8disf, + T8CPCT AS t8cpct, + T8CRAT AS t8crat, + RTRIM(T8F0CM) AS t8f0cm, + RTRIM(T8FUT1) AS t8fut1, + RTRIM(T8FUT2) AS t8fut2, + RTRIM(T8FUT3) AS t8fut3, + RTRIM(T8FUT4) AS t8fut4, + RTRIM(T8FUT5) AS t8fut5, + RTRIM(T8FUT6) AS t8fut6, + RTRIM(T8FUT7) AS t8fut7, + RTRIM(T8FUT8) AS t8fut8, + RTRIM(T8FUT9) AS t8fut9 +FROM LGDAT.IPRCCTN +WHERE T8DATE >= '{iprcctn_wm}' diff --git a/config/modules/iprccto.json b/config/modules/iprccto.json new file mode 100644 index 0000000..dc1f4bb --- /dev/null +++ b/config/modules/iprccto.json @@ -0,0 +1,169 @@ +{ + "name": "iprccto", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.iprccto", + "staging_table": "pipekit_staging.iprccto", + "merge_strategy": "incremental", + "merge_key": "t7date", + "enabled": 1, + "dest_description": "Price List Old Price Details 6.0", + "columns": [ + { + "source_name": "T7PLCD", + "source_type": "CHAR(5)", + "dest_name": "t7plcd", + "dest_type": "text", + "description": "Price List Code" + }, + { + "source_name": "T7PART", + "source_type": "CHAR(20)", + "dest_name": "t7part", + "dest_type": "text", + "description": "Part Number" + }, + { + "source_name": "T7UNIT", + "source_type": "CHAR(3)", + "dest_name": "t7unit", + "dest_type": "text", + "description": "Pricing Unit" + }, + { + "source_name": "T7DATE", + "source_type": "DATE", + "dest_name": "t7date", + "dest_type": "date", + "description": "Transaction Date" + }, + { + "source_name": "T7TIME", + "source_type": "TIME", + "dest_name": "t7time", + "dest_type": "time", + "description": "Transaction Time" + }, + { + "source_name": "T7VOLL", + "source_type": "DECIMAL(12,5)", + "dest_name": "t7voll", + "dest_type": "numeric(12,5)", + "description": "Old Volume" + }, + { + "source_name": "T7PRIC", + "source_type": "DECIMAL(12,5)", + "dest_name": "t7pric", + "dest_type": "numeric(12,5)", + "description": "Old Price" + }, + { + "source_name": "T7DISC", + "source_type": "CHAR(3)", + "dest_name": "t7disc", + "dest_type": "text", + "description": "Old Discount Code" + }, + { + "source_name": "T7DISF", + "source_type": "CHAR(1)", + "dest_name": "t7disf", + "dest_type": "text", + "description": "Old Discount Flag" + }, + { + "source_name": "T7CPCT", + "source_type": "NUMERIC(4,2)", + "dest_name": "t7cpct", + "dest_type": "numeric(4,2)", + "description": "Old Commission %" + }, + { + "source_name": "T7CRAT", + "source_type": "NUMERIC(5,2)", + "dest_name": "t7crat", + "dest_type": "numeric(5,2)", + "description": "Old Comm. Rate" + }, + { + "source_name": "T7F0CM", + "source_type": "CHAR(1)", + "dest_name": "t7f0cm", + "dest_type": "text", + "description": "Old Force 0 Commission Flag" + }, + { + "source_name": "T7FUT1", + "source_type": "CHAR(1)", + "dest_name": "t7fut1", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "T7FUT2", + "source_type": "CHAR(1)", + "dest_name": "t7fut2", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "T7FUT3", + "source_type": "CHAR(1)", + "dest_name": "t7fut3", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "T7FUT4", + "source_type": "CHAR(5)", + "dest_name": "t7fut4", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "T7FUT5", + "source_type": "CHAR(5)", + "dest_name": "t7fut5", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "T7FUT6", + "source_type": "CHAR(10)", + "dest_name": "t7fut6", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "T7FUT7", + "source_type": "CHAR(10)", + "dest_name": "t7fut7", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "T7FUT8", + "source_type": "CHAR(20)", + "dest_name": "t7fut8", + "dest_type": "text", + "description": "Future Field" + }, + { + "source_name": "T7FUT9", + "source_type": "CHAR(30)", + "dest_name": "t7fut9", + "dest_type": "text", + "description": "Future Field" + } + ], + "watermarks": [ + { + "name": "iprccto_wm", + "connection": "usmidsap02", + "resolver_sql": "SELECT COALESCE(MAX(t7date), DATE '2000-01-01') FROM cms.iprccto", + "default_value": null + } + ], + "hooks": [] +} diff --git a/config/modules/iprccto.sql b/config/modules/iprccto.sql new file mode 100644 index 0000000..153a4d2 --- /dev/null +++ b/config/modules/iprccto.sql @@ -0,0 +1,24 @@ +SELECT + RTRIM(T7PLCD) AS t7plcd, + RTRIM(T7PART) AS t7part, + RTRIM(T7UNIT) AS t7unit, + CASE WHEN T7DATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE T7DATE END AS t7date, + T7TIME AS t7time, + T7VOLL AS t7voll, + T7PRIC AS t7pric, + RTRIM(T7DISC) AS t7disc, + RTRIM(T7DISF) AS t7disf, + T7CPCT AS t7cpct, + T7CRAT AS t7crat, + RTRIM(T7F0CM) AS t7f0cm, + RTRIM(T7FUT1) AS t7fut1, + RTRIM(T7FUT2) AS t7fut2, + RTRIM(T7FUT3) AS t7fut3, + RTRIM(T7FUT4) AS t7fut4, + RTRIM(T7FUT5) AS t7fut5, + RTRIM(T7FUT6) AS t7fut6, + RTRIM(T7FUT7) AS t7fut7, + RTRIM(T7FUT8) AS t7fut8, + RTRIM(T7FUT9) AS t7fut9 +FROM LGDAT.IPRCCTO +WHERE T7DATE >= '{iprccto_wm}' diff --git a/config/modules/irea.json b/config/modules/irea.json new file mode 100644 index 0000000..ff96241 --- /dev/null +++ b/config/modules/irea.json @@ -0,0 +1,43 @@ +{ + "name": "irea", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.irea", + "staging_table": "pipekit_staging.irea", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Inactive Reason Master File", + "columns": [ + { + "source_name": "WETYPE", + "source_type": "NUMERIC(3,0)", + "dest_name": "wetype", + "dest_type": "numeric(3,0)", + "description": "File Type" + }, + { + "source_name": "WEREAS", + "source_type": "CHAR(2)", + "dest_name": "wereas", + "dest_type": "text", + "description": "Reason Code" + }, + { + "source_name": "WEDESC", + "source_type": "CHAR(30)", + "dest_name": "wedesc", + "dest_type": "text", + "description": "Reason Description" + }, + { + "source_name": "WEFLAG", + "source_type": "CHAR(1)", + "dest_name": "weflag", + "dest_type": "text", + "description": "Default Control" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/irea.sql b/config/modules/irea.sql new file mode 100644 index 0000000..084757c --- /dev/null +++ b/config/modules/irea.sql @@ -0,0 +1,6 @@ +SELECT + WETYPE AS wetype, + RTRIM(WEREAS) AS wereas, + RTRIM(WEDESC) AS wedesc, + RTRIM(WEFLAG) AS weflag +FROM LGDAT.IREA diff --git a/config/modules/macgrp.json b/config/modules/macgrp.json new file mode 100644 index 0000000..94db539 --- /dev/null +++ b/config/modules/macgrp.json @@ -0,0 +1,36 @@ +{ + "name": "macgrp", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.macgrp", + "staging_table": "pipekit_staging.macgrp", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Machine Group File", + "columns": [ + { + "source_name": "ADMACG", + "source_type": "CHAR(3)", + "dest_name": "admacg", + "dest_type": "text", + "description": "Machine Group" + }, + { + "source_name": "ADMDES", + "source_type": "CHAR(30)", + "dest_name": "admdes", + "dest_type": "text", + "description": "Description" + }, + { + "source_name": "ADBK01", + "source_type": "CHAR(31)", + "dest_name": "adbk01", + "dest_type": "text", + "description": "ADBK01" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/macgrp.sql b/config/modules/macgrp.sql new file mode 100644 index 0000000..95b77ec --- /dev/null +++ b/config/modules/macgrp.sql @@ -0,0 +1,5 @@ +SELECT + RTRIM(ADMACG) AS admacg, + RTRIM(ADMDES) AS admdes, + RTRIM(ADBK01) AS adbk01 +FROM LGDAT.MACGRP diff --git a/config/modules/majg.json b/config/modules/majg.json new file mode 100644 index 0000000..208d849 --- /dev/null +++ b/config/modules/majg.json @@ -0,0 +1,29 @@ +{ + "name": "majg", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.majg", + "staging_table": "pipekit_staging.majg", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Major Group Codes 6.0", + "columns": [ + { + "source_name": "BQGRP", + "source_type": "CHAR(3)", + "dest_name": "bqgrp", + "dest_type": "text", + "description": "Major Group Code" + }, + { + "source_name": "BQDES", + "source_type": "CHAR(30)", + "dest_name": "bqdes", + "dest_type": "text", + "description": "Description" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/majg.sql b/config/modules/majg.sql new file mode 100644 index 0000000..596ab14 --- /dev/null +++ b/config/modules/majg.sql @@ -0,0 +1,4 @@ +SELECT + RTRIM(BQGRP) AS bqgrp, + RTRIM(BQDES) AS bqdes +FROM LGDAT.MAJG diff --git a/config/modules/methdm.json b/config/modules/methdm.json new file mode 100644 index 0000000..0c30a0c --- /dev/null +++ b/config/modules/methdm.json @@ -0,0 +1,386 @@ +{ + "name": "methdm", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.methdm", + "staging_table": "pipekit_staging.methdm", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Method Detail - Material (M-Record) 6.0", + "columns": [ + { + "source_name": "AQTYPE", + "source_type": "CHAR(1)", + "dest_name": "aqtype", + "dest_type": "text", + "description": "Record Type" + }, + { + "source_name": "AQPART", + "source_type": "CHAR(20)", + "dest_name": "aqpart", + "dest_type": "text", + "description": "Part Number" + }, + { + "source_name": "AQSEQ#", + "source_type": "NUMERIC(3,0)", + "dest_name": "aqseq#", + "dest_type": "numeric(3,0)", + "description": "Sequence Number" + }, + { + "source_name": "AQLIN#", + "source_type": "NUMERIC(4,0)", + "dest_name": "aqlin#", + "dest_type": "numeric(4,0)", + "description": "Line #" + }, + { + "source_name": "AQMTLP", + "source_type": "CHAR(20)", + "dest_name": "aqmtlp", + "dest_type": "text", + "description": "Material Part #" + }, + { + "source_name": "AQMTLD", + "source_type": "CHAR(30)", + "dest_name": "aqmtld", + "dest_type": "text", + "description": "Material Description" + }, + { + "source_name": "AQQPPC", + "source_type": "NUMERIC(10,5)", + "dest_name": "aqqppc", + "dest_type": "numeric(10,5)", + "description": "Quantity per AQQTYM fld" + }, + { + "source_name": "AQUNIT", + "source_type": "CHAR(3)", + "dest_name": "aqunit", + "dest_type": "text", + "description": "Unit of Measure" + }, + { + "source_name": "AQSQTY", + "source_type": "NUMERIC(8,4)", + "dest_name": "aqsqty", + "dest_type": "numeric(8,4)", + "description": "Spare Parts Quantity" + }, + { + "source_name": "AQQTYM", + "source_type": "NUMERIC(6,2)", + "dest_name": "aqqtym", + "dest_type": "numeric(6,2)", + "description": "Quantity Multiplier" + }, + { + "source_name": "AQBLWT", + "source_type": "CHAR(1)", + "dest_name": "aqblwt", + "dest_type": "text", + "description": "Blow Through Part" + }, + { + "source_name": "AQBK01", + "source_type": "CHAR(3)", + "dest_name": "aqbk01", + "dest_type": "text", + "description": "AQBK01" + }, + { + "source_name": "AQSTYP", + "source_type": "CHAR(1)", + "dest_name": "aqstyp", + "dest_type": "text", + "description": "Stock Type" + }, + { + "source_name": "AQLEAD", + "source_type": "NUMERIC(3,0)", + "dest_name": "aqlead", + "dest_type": "numeric(3,0)", + "description": "Lead Time" + }, + { + "source_name": "AQMAJG", + "source_type": "CHAR(3)", + "dest_name": "aqmajg", + "dest_type": "text", + "description": "Major Group Code" + }, + { + "source_name": "AQITM", + "source_type": "NUMERIC(3,0)", + "dest_name": "aqitm", + "dest_type": "numeric(3,0)", + "description": "Item Number" + }, + { + "source_name": "AQITMX", + "source_type": "CHAR(1)", + "dest_name": "aqitmx", + "dest_type": "text", + "description": "Item Number Extension" + }, + { + "source_name": "AQBK02", + "source_type": "CHAR(14)", + "dest_name": "aqbk02", + "dest_type": "text", + "description": "AQBK02" + }, + { + "source_name": "AQALLC", + "source_type": "CHAR(1)", + "dest_name": "aqallc", + "dest_type": "text", + "description": "Allocation" + }, + { + "source_name": "AQBACK", + "source_type": "CHAR(1)", + "dest_name": "aqback", + "dest_type": "text", + "description": "Back Flush" + }, + { + "source_name": "AQSCRP", + "source_type": "NUMERIC(3,1)", + "dest_name": "aqscrp", + "dest_type": "numeric(3,1)", + "description": "Scrap %" + }, + { + "source_name": "AQRQBY", + "source_type": "CHAR(1)", + "dest_name": "aqrqby", + "dest_type": "text", + "description": "Requirement By-product" + }, + { + "source_name": "AQSTKL", + "source_type": "CHAR(6)", + "dest_name": "aqstkl", + "dest_type": "text", + "description": "Stock Location" + }, + { + "source_name": "AQBK03", + "source_type": "CHAR(9)", + "dest_name": "aqbk03", + "dest_type": "text", + "description": "AQBK03" + }, + { + "source_name": "AQDRAW", + "source_type": "CHAR(9)", + "dest_name": "aqdraw", + "dest_type": "text", + "description": "Drawing Number" + }, + { + "source_name": "AQDFLC", + "source_type": "CHAR(1)", + "dest_name": "aqdflc", + "dest_type": "text", + "description": "Draw From Loc As Defined" + }, + { + "source_name": "AQFUT1", + "source_type": "CHAR(1)", + "dest_name": "aqfut1", + "dest_type": "text", + "description": "Support Sub- Aassembly Dual Reporting" + }, + { + "source_name": "AQFUT2", + "source_type": "CHAR(1)", + "dest_name": "aqfut2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AQFUT3", + "source_type": "CHAR(1)", + "dest_name": "aqfut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AQFUT4", + "source_type": "CHAR(1)", + "dest_name": "aqfut4", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AQFUT5", + "source_type": "CHAR(1)", + "dest_name": "aqfut5", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AQFUT6", + "source_type": "CHAR(3)", + "dest_name": "aqfut6", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AQFUT7", + "source_type": "CHAR(3)", + "dest_name": "aqfut7", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AQFUT8", + "source_type": "CHAR(10)", + "dest_name": "aqfut8", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AQFUT9", + "source_type": "CHAR(10)", + "dest_name": "aqfut9", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AQFUTA", + "source_type": "CHAR(20)", + "dest_name": "aqfuta", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AQFUTB", + "source_type": "NUMERIC(15,5)", + "dest_name": "aqfutb", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "AQFUTC", + "source_type": "NUMERIC(15,5)", + "dest_name": "aqfutc", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "AQFUTD", + "source_type": "NUMERIC(15,5)", + "dest_name": "aqfutd", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "AQFUTE", + "source_type": "NUMERIC(9,0)", + "dest_name": "aqfute", + "dest_type": "numeric(9,0)", + "description": "Future Use" + }, + { + "source_name": "AQDEPT", + "source_type": "CHAR(5)", + "dest_name": "aqdept", + "dest_type": "text", + "description": "Production Department Code" + }, + { + "source_name": "AQRESC", + "source_type": "CHAR(5)", + "dest_name": "aqresc", + "dest_type": "text", + "description": "Resource Code" + }, + { + "source_name": "AQPLNT", + "source_type": "CHAR(3)", + "dest_name": "aqplnt", + "dest_type": "text", + "description": "Plant Code" + }, + { + "source_name": "AQMJCM", + "source_type": "CHAR(1)", + "dest_name": "aqmjcm", + "dest_type": "text", + "description": "Major Component" + }, + { + "source_name": "AQECND", + "source_type": "NUMERIC(3,0)", + "dest_name": "aqecnd", + "dest_type": "numeric(3,0)", + "description": "last applied ECN dtl#" + }, + { + "source_name": "AQECNL", + "source_type": "NUMERIC(3,0)", + "dest_name": "aqecnl", + "dest_type": "numeric(3,0)", + "description": "last applied ECN line#" + }, + { + "source_name": "AQLDAT", + "source_type": "DATE", + "dest_name": "aqldat", + "dest_type": "date", + "description": "last applied ECN date" + }, + { + "source_name": "AQLECN", + "source_type": "CHAR(10)", + "dest_name": "aqlecn", + "dest_type": "text", + "description": "last applied ECN#" + }, + { + "source_name": "AQLEDAT", + "source_type": "DATE", + "dest_name": "aqledat", + "dest_type": "date", + "description": "ECN Effective Date" + }, + { + "source_name": "AQLETME", + "source_type": "NUMERIC(6,0)", + "dest_name": "aqletme", + "dest_type": "numeric(6,0)", + "description": "last applied ECN time" + }, + { + "source_name": "AQFUSG", + "source_type": "CHAR(1)", + "dest_name": "aqfusg", + "dest_type": "text", + "description": "Fix Usage Flag" + }, + { + "source_name": "AQWUCM", + "source_type": "CHAR(1)", + "dest_name": "aqwucm", + "dest_type": "text", + "description": "Whole Unit Consumption Flag" + }, + { + "source_name": "AQRDCF", + "source_type": "NUMERIC(5,5)", + "dest_name": "aqrdcf", + "dest_type": "numeric(5,5)", + "description": "Rounding Cutoff Decimal Value" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/methdm.sql b/config/modules/methdm.sql new file mode 100644 index 0000000..fc2385b --- /dev/null +++ b/config/modules/methdm.sql @@ -0,0 +1,55 @@ +SELECT + RTRIM(AQTYPE) AS aqtype, + RTRIM(AQPART) AS aqpart, + "AQSEQ#" AS "aqseq#", + "AQLIN#" AS "aqlin#", + RTRIM(AQMTLP) AS aqmtlp, + RTRIM(AQMTLD) AS aqmtld, + AQQPPC AS aqqppc, + RTRIM(AQUNIT) AS aqunit, + AQSQTY AS aqsqty, + AQQTYM AS aqqtym, + RTRIM(AQBLWT) AS aqblwt, + RTRIM(AQBK01) AS aqbk01, + RTRIM(AQSTYP) AS aqstyp, + AQLEAD AS aqlead, + RTRIM(AQMAJG) AS aqmajg, + AQITM AS aqitm, + RTRIM(AQITMX) AS aqitmx, + RTRIM(AQBK02) AS aqbk02, + RTRIM(AQALLC) AS aqallc, + RTRIM(AQBACK) AS aqback, + AQSCRP AS aqscrp, + RTRIM(AQRQBY) AS aqrqby, + RTRIM(AQSTKL) AS aqstkl, + RTRIM(AQBK03) AS aqbk03, + RTRIM(AQDRAW) AS aqdraw, + RTRIM(AQDFLC) AS aqdflc, + RTRIM(AQFUT1) AS aqfut1, + RTRIM(AQFUT2) AS aqfut2, + RTRIM(AQFUT3) AS aqfut3, + RTRIM(AQFUT4) AS aqfut4, + RTRIM(AQFUT5) AS aqfut5, + RTRIM(AQFUT6) AS aqfut6, + RTRIM(AQFUT7) AS aqfut7, + RTRIM(AQFUT8) AS aqfut8, + RTRIM(AQFUT9) AS aqfut9, + RTRIM(AQFUTA) AS aqfuta, + AQFUTB AS aqfutb, + AQFUTC AS aqfutc, + AQFUTD AS aqfutd, + AQFUTE AS aqfute, + RTRIM(AQDEPT) AS aqdept, + RTRIM(AQRESC) AS aqresc, + RTRIM(AQPLNT) AS aqplnt, + RTRIM(AQMJCM) AS aqmjcm, + AQECND AS aqecnd, + AQECNL AS aqecnl, + CASE WHEN AQLDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AQLDAT END AS aqldat, + RTRIM(AQLECN) AS aqlecn, + CASE WHEN AQLEDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AQLEDAT END AS aqledat, + AQLETME AS aqletme, + RTRIM(AQFUSG) AS aqfusg, + RTRIM(AQWUCM) AS aqwucm, + AQRDCF AS aqrdcf +FROM LGDAT.METHDM diff --git a/config/modules/methdo.json b/config/modules/methdo.json new file mode 100644 index 0000000..84974dd --- /dev/null +++ b/config/modules/methdo.json @@ -0,0 +1,218 @@ +{ + "name": "methdo", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.methdo", + "staging_table": "pipekit_staging.methdo", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Method Detail-Outside Service (O-Record)6.0", + "columns": [ + { + "source_name": "APTYPE", + "source_type": "CHAR(1)", + "dest_name": "aptype", + "dest_type": "text", + "description": "Record Type" + }, + { + "source_name": "APPART", + "source_type": "CHAR(20)", + "dest_name": "appart", + "dest_type": "text", + "description": "Part Number" + }, + { + "source_name": "APSEQ#", + "source_type": "NUMERIC(3,0)", + "dest_name": "apseq#", + "dest_type": "numeric(3,0)", + "description": "Sequence Number" + }, + { + "source_name": "APLIN#", + "source_type": "NUMERIC(2,0)", + "dest_name": "aplin#", + "dest_type": "numeric(2,0)", + "description": "Line #" + }, + { + "source_name": "APVEND", + "source_type": "CHAR(10)", + "dest_name": "apvend", + "dest_type": "text", + "description": "Vendor Code" + }, + { + "source_name": "APODES", + "source_type": "CHAR(30)", + "dest_name": "apodes", + "dest_type": "text", + "description": "O/S Description" + }, + { + "source_name": "APBQTY", + "source_type": "NUMERIC(8,0)", + "dest_name": "apbqty", + "dest_type": "numeric(8,0)", + "description": "Quantity Based On" + }, + { + "source_name": "APTIME", + "source_type": "NUMERIC(5,2)", + "dest_name": "aptime", + "dest_type": "numeric(5,2)", + "description": "Estimated Time" + }, + { + "source_name": "APCOST", + "source_type": "NUMERIC(13,5)", + "dest_name": "apcost", + "dest_type": "numeric(13,5)", + "description": "Total Cost" + }, + { + "source_name": "APFCSI", + "source_type": "NUMERIC(13,5)", + "dest_name": "apfcsi", + "dest_type": "numeric(13,5)", + "description": "Freight In Cost/Unit" + }, + { + "source_name": "APFCSO", + "source_type": "NUMERIC(13,5)", + "dest_name": "apfcso", + "dest_type": "numeric(13,5)", + "description": "Freight Out Cost/Unit" + }, + { + "source_name": "APUNCS", + "source_type": "NUMERIC(13,5)", + "dest_name": "apuncs", + "dest_type": "numeric(13,5)", + "description": "O/S Unit Cost" + }, + { + "source_name": "APDEPT", + "source_type": "CHAR(5)", + "dest_name": "apdept", + "dest_type": "text", + "description": "Production Department Code" + }, + { + "source_name": "APRESC", + "source_type": "CHAR(2)", + "dest_name": "apresc", + "dest_type": "text", + "description": "Resource" + }, + { + "source_name": "APFUT1", + "source_type": "CHAR(1)", + "dest_name": "apfut1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "APFUT2", + "source_type": "CHAR(1)", + "dest_name": "apfut2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "APFUT3", + "source_type": "CHAR(1)", + "dest_name": "apfut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "APFUT4", + "source_type": "CHAR(1)", + "dest_name": "apfut4", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "APFUT5", + "source_type": "CHAR(1)", + "dest_name": "apfut5", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "APFUT6", + "source_type": "CHAR(3)", + "dest_name": "apfut6", + "dest_type": "text", + "description": "Pricing Unit" + }, + { + "source_name": "APFUT7", + "source_type": "CHAR(3)", + "dest_name": "apfut7", + "dest_type": "text", + "description": "Order Unit" + }, + { + "source_name": "APFUT8", + "source_type": "CHAR(10)", + "dest_name": "apfut8", + "dest_type": "text", + "description": "O/S Currency Code" + }, + { + "source_name": "APFUT9", + "source_type": "CHAR(10)", + "dest_name": "apfut9", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "APFUTA", + "source_type": "CHAR(20)", + "dest_name": "apfuta", + "dest_type": "text", + "description": "Exchange Rate on OS Cost" + }, + { + "source_name": "APFUTB", + "source_type": "NUMERIC(15,5)", + "dest_name": "apfutb", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "APFUTC", + "source_type": "NUMERIC(15,5)", + "dest_name": "apfutc", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "APFUTD", + "source_type": "NUMERIC(15,5)", + "dest_name": "apfutd", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "APFUTE", + "source_type": "NUMERIC(9,0)", + "dest_name": "apfute", + "dest_type": "numeric(9,0)", + "description": "Future Use" + }, + { + "source_name": "APPLNT", + "source_type": "CHAR(3)", + "dest_name": "applnt", + "dest_type": "text", + "description": "Plant Code" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/methdo.sql b/config/modules/methdo.sql new file mode 100644 index 0000000..695feeb --- /dev/null +++ b/config/modules/methdo.sql @@ -0,0 +1,31 @@ +SELECT + RTRIM(APTYPE) AS aptype, + RTRIM(APPART) AS appart, + "APSEQ#" AS "apseq#", + "APLIN#" AS "aplin#", + RTRIM(APVEND) AS apvend, + RTRIM(APODES) AS apodes, + APBQTY AS apbqty, + APTIME AS aptime, + APCOST AS apcost, + APFCSI AS apfcsi, + APFCSO AS apfcso, + APUNCS AS apuncs, + RTRIM(APDEPT) AS apdept, + RTRIM(APRESC) AS apresc, + RTRIM(APFUT1) AS apfut1, + RTRIM(APFUT2) AS apfut2, + RTRIM(APFUT3) AS apfut3, + RTRIM(APFUT4) AS apfut4, + RTRIM(APFUT5) AS apfut5, + RTRIM(APFUT6) AS apfut6, + RTRIM(APFUT7) AS apfut7, + RTRIM(APFUT8) AS apfut8, + RTRIM(APFUT9) AS apfut9, + RTRIM(APFUTA) AS apfuta, + APFUTB AS apfutb, + APFUTC AS apfutc, + APFUTD AS apfutd, + APFUTE AS apfute, + RTRIM(APPLNT) AS applnt +FROM LGDAT.METHDO diff --git a/config/modules/methdr.json b/config/modules/methdr.json new file mode 100644 index 0000000..cac9fcc --- /dev/null +++ b/config/modules/methdr.json @@ -0,0 +1,323 @@ +{ + "name": "methdr", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.methdr", + "staging_table": "pipekit_staging.methdr", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Method Detail - Routings (R-Record) 6.1", + "columns": [ + { + "source_name": "AOTYPE", + "source_type": "CHAR(1)", + "dest_name": "aotype", + "dest_type": "text", + "description": "Record Type" + }, + { + "source_name": "AOPART", + "source_type": "CHAR(20)", + "dest_name": "aopart", + "dest_type": "text", + "description": "Part Number" + }, + { + "source_name": "AOSEQ#", + "source_type": "NUMERIC(3,0)", + "dest_name": "aoseq#", + "dest_type": "numeric(3,0)", + "description": "Sequence Number" + }, + { + "source_name": "AOLIN#", + "source_type": "NUMERIC(2,0)", + "dest_name": "aolin#", + "dest_type": "numeric(2,0)", + "description": "Line #" + }, + { + "source_name": "AODEPT", + "source_type": "CHAR(5)", + "dest_name": "aodept", + "dest_type": "text", + "description": "Production Department Code" + }, + { + "source_name": "AORESC", + "source_type": "CHAR(5)", + "dest_name": "aoresc", + "dest_type": "text", + "description": "Resource Code" + }, + { + "source_name": "AOOPNM", + "source_type": "CHAR(3)", + "dest_name": "aoopnm", + "dest_type": "text", + "description": "Operation Code" + }, + { + "source_name": "AOSETP", + "source_type": "NUMERIC(8,2)", + "dest_name": "aosetp", + "dest_type": "numeric(8,2)", + "description": "Setup Standard" + }, + { + "source_name": "AORUNS", + "source_type": "NUMERIC(10,4)", + "dest_name": "aoruns", + "dest_type": "numeric(10,4)", + "description": "Schedule Run Standard" + }, + { + "source_name": "AORTYP", + "source_type": "CHAR(1)", + "dest_name": "aortyp", + "dest_type": "text", + "description": "Run Type" + }, + { + "source_name": "AOSCRW", + "source_type": "NUMERIC(2,0)", + "dest_name": "aoscrw", + "dest_type": "numeric(2,0)", + "description": "Setup Crew" + }, + { + "source_name": "AOREPP", + "source_type": "CHAR(1)", + "dest_name": "aorepp", + "dest_type": "text", + "description": "Reporting Point" + }, + { + "source_name": "AOLAGT", + "source_type": "NUMERIC(8,2)", + "dest_name": "aolagt", + "dest_type": "numeric(8,2)", + "description": "Lag Time" + }, + { + "source_name": "AOTBTH", + "source_type": "NUMERIC(8,0)", + "dest_name": "aotbth", + "dest_type": "numeric(8,0)", + "description": "Transfer Batch" + }, + { + "source_name": "AOUNIT", + "source_type": "CHAR(3)", + "dest_name": "aounit", + "dest_type": "text", + "description": "Std. Units" + }, + { + "source_name": "AOPRC#", + "source_type": "CHAR(10)", + "dest_name": "aoprc#", + "dest_type": "text", + "description": "Process #" + }, + { + "source_name": "AOEFF", + "source_type": "NUMERIC(5,2)", + "dest_name": "aoeff", + "dest_type": "numeric(5,2)", + "description": "Efficiency Percentage" + }, + { + "source_name": "AOBK03", + "source_type": "CHAR(5)", + "dest_name": "aobk03", + "dest_type": "text", + "description": "Sched Priority Group" + }, + { + "source_name": "AO#MEN", + "source_type": "NUMERIC(2,0)", + "dest_name": "ao#men", + "dest_type": "numeric(2,0)", + "description": "Number Of Men" + }, + { + "source_name": "AO#MCH", + "source_type": "NUMERIC(2,0)", + "dest_name": "ao#mch", + "dest_type": "numeric(2,0)", + "description": "Number Of Machines" + }, + { + "source_name": "AOEFC1", + "source_type": "NUMERIC(15,9)", + "dest_name": "aoefc1", + "dest_type": "numeric(15,9)", + "description": "Efficiency Factor Before Seq" + }, + { + "source_name": "AOEFC2", + "source_type": "NUMERIC(15,9)", + "dest_name": "aoefc2", + "dest_type": "numeric(15,9)", + "description": "Efficiency Factor After Seq" + }, + { + "source_name": "AOBK04", + "source_type": "CHAR(8)", + "dest_name": "aobk04", + "dest_type": "text", + "description": "AOBK04" + }, + { + "source_name": "AOCTME", + "source_type": "NUMERIC(5,2)", + "dest_name": "aoctme", + "dest_type": "numeric(5,2)", + "description": "Cycle Time (Sec/Part)" + }, + { + "source_name": "AOMULT", + "source_type": "NUMERIC(3,0)", + "dest_name": "aomult", + "dest_type": "numeric(3,0)", + "description": "Multiple Parts" + }, + { + "source_name": "AOCNOR", + "source_type": "NUMERIC(5,0)", + "dest_name": "aocnor", + "dest_type": "numeric(5,0)", + "description": "Concurrent Resources" + }, + { + "source_name": "AOBCDR", + "source_type": "NUMERIC(15,5)", + "dest_name": "aobcdr", + "dest_type": "numeric(15,5)", + "description": "Burden Rate Factor" + }, + { + "source_name": "AOFUT1", + "source_type": "CHAR(1)", + "dest_name": "aofut1", + "dest_type": "text", + "description": "(MRP) Create REPP By Tfr Batch Qty" + }, + { + "source_name": "AOFUT2", + "source_type": "CHAR(1)", + "dest_name": "aofut2", + "dest_type": "text", + "description": "Standard Cost Rollup By Tfr Batch Qty" + }, + { + "source_name": "AOFUT3", + "source_type": "CHAR(1)", + "dest_name": "aofut3", + "dest_type": "text", + "description": "Expected Receipt Created By Trf Batch & Run Rate" + }, + { + "source_name": "AOFUT4", + "source_type": "CHAR(10)", + "dest_name": "aofut4", + "dest_type": "text", + "description": "Future Use 4" + }, + { + "source_name": "AOFUT5", + "source_type": "CHAR(10)", + "dest_name": "aofut5", + "dest_type": "text", + "description": "Future Use 5" + }, + { + "source_name": "AOFUT6", + "source_type": "CHAR(10)", + "dest_name": "aofut6", + "dest_type": "text", + "description": "Future Use 6" + }, + { + "source_name": "AOFUT7", + "source_type": "CHAR(20)", + "dest_name": "aofut7", + "dest_type": "text", + "description": "Future Use 7" + }, + { + "source_name": "AOFUT8", + "source_type": "CHAR(20)", + "dest_name": "aofut8", + "dest_type": "text", + "description": "Future Use 8" + }, + { + "source_name": "AOFUT9", + "source_type": "CHAR(30)", + "dest_name": "aofut9", + "dest_type": "text", + "description": "Future Use 9" + }, + { + "source_name": "AOFUTA", + "source_type": "CHAR(30)", + "dest_name": "aofuta", + "dest_type": "text", + "description": "Future Use A" + }, + { + "source_name": "AOFUTB", + "source_type": "CHAR(30)", + "dest_name": "aofutb", + "dest_type": "text", + "description": "Future Use B" + }, + { + "source_name": "AOFUTC", + "source_type": "NUMERIC(15,5)", + "dest_name": "aofutc", + "dest_type": "numeric(15,5)", + "description": "Costing Run Standard" + }, + { + "source_name": "AOFUTD", + "source_type": "NUMERIC(15,5)", + "dest_name": "aofutd", + "dest_type": "numeric(15,5)", + "description": "Theoretical Run Rate" + }, + { + "source_name": "AOFUTE", + "source_type": "NUMERIC(15,5)", + "dest_name": "aofute", + "dest_type": "numeric(15,5)", + "description": "Future Use E" + }, + { + "source_name": "AOFUTF", + "source_type": "NUMERIC(15,5)", + "dest_name": "aofutf", + "dest_type": "numeric(15,5)", + "description": "Future Use F" + }, + { + "source_name": "AOPLNT", + "source_type": "CHAR(3)", + "dest_name": "aoplnt", + "dest_type": "text", + "description": "Plant Code" + }, + { + "source_name": "AOSMCH", + "source_type": "NUMERIC(2,0)", + "dest_name": "aosmch", + "dest_type": "numeric(2,0)", + "description": "SetUp Number Machine" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/methdr.sql b/config/modules/methdr.sql new file mode 100644 index 0000000..7f8462b --- /dev/null +++ b/config/modules/methdr.sql @@ -0,0 +1,46 @@ +SELECT + RTRIM(AOTYPE) AS aotype, + RTRIM(AOPART) AS aopart, + "AOSEQ#" AS "aoseq#", + "AOLIN#" AS "aolin#", + RTRIM(AODEPT) AS aodept, + RTRIM(AORESC) AS aoresc, + RTRIM(AOOPNM) AS aoopnm, + AOSETP AS aosetp, + AORUNS AS aoruns, + RTRIM(AORTYP) AS aortyp, + AOSCRW AS aoscrw, + RTRIM(AOREPP) AS aorepp, + AOLAGT AS aolagt, + AOTBTH AS aotbth, + RTRIM(AOUNIT) AS aounit, + RTRIM("AOPRC#") AS "aoprc#", + AOEFF AS aoeff, + RTRIM(AOBK03) AS aobk03, + "AO#MEN" AS "ao#men", + "AO#MCH" AS "ao#mch", + AOEFC1 AS aoefc1, + AOEFC2 AS aoefc2, + RTRIM(AOBK04) AS aobk04, + AOCTME AS aoctme, + AOMULT AS aomult, + AOCNOR AS aocnor, + AOBCDR AS aobcdr, + RTRIM(AOFUT1) AS aofut1, + RTRIM(AOFUT2) AS aofut2, + RTRIM(AOFUT3) AS aofut3, + RTRIM(AOFUT4) AS aofut4, + RTRIM(AOFUT5) AS aofut5, + RTRIM(AOFUT6) AS aofut6, + RTRIM(AOFUT7) AS aofut7, + RTRIM(AOFUT8) AS aofut8, + RTRIM(AOFUT9) AS aofut9, + RTRIM(AOFUTA) AS aofuta, + RTRIM(AOFUTB) AS aofutb, + AOFUTC AS aofutc, + AOFUTD AS aofutd, + AOFUTE AS aofute, + AOFUTF AS aofutf, + RTRIM(AOPLNT) AS aoplnt, + AOSMCH AS aosmch +FROM LGDAT.METHDR diff --git a/config/modules/mmgp.json b/config/modules/mmgp.json new file mode 100644 index 0000000..b2dfa2c --- /dev/null +++ b/config/modules/mmgp.json @@ -0,0 +1,43 @@ +{ + "name": "mmgp", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.mmgp", + "staging_table": "pipekit_staging.mmgp", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Minor Group Codes 6.0", + "columns": [ + { + "source_name": "BRMGRP", + "source_type": "CHAR(3)", + "dest_name": "brmgrp", + "dest_type": "text", + "description": "Minor Group Code" + }, + { + "source_name": "BRDES", + "source_type": "CHAR(18)", + "dest_name": "brdes", + "dest_type": "text", + "description": "Description" + }, + { + "source_name": "BR2", + "source_type": "CHAR(2)", + "dest_name": "br2", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "BRGRP", + "source_type": "CHAR(3)", + "dest_name": "brgrp", + "dest_type": "text", + "description": "Major Group Code" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/mmgp.sql b/config/modules/mmgp.sql new file mode 100644 index 0000000..e6790a0 --- /dev/null +++ b/config/modules/mmgp.sql @@ -0,0 +1,6 @@ +SELECT + RTRIM(BRMGRP) AS brmgrp, + RTRIM(BRDES) AS brdes, + RTRIM(BR2) AS br2, + RTRIM(BRGRP) AS brgrp +FROM LGDAT.MMGP diff --git a/config/modules/mmsl.json b/config/modules/mmsl.json new file mode 100644 index 0000000..1697385 --- /dev/null +++ b/config/modules/mmsl.json @@ -0,0 +1,50 @@ +{ + "name": "mmsl", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.mmsl", + "staging_table": "pipekit_staging.mmsl", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Sales Codes Master 6.0", + "columns": [ + { + "source_name": "BSMJCD", + "source_type": "CHAR(3)", + "dest_name": "bsmjcd", + "dest_type": "text", + "description": "Major Sales Code" + }, + { + "source_name": "BSMNCD", + "source_type": "CHAR(3)", + "dest_name": "bsmncd", + "dest_type": "text", + "description": "Minor Sales Code" + }, + { + "source_name": "BSDES1", + "source_type": "CHAR(30)", + "dest_name": "bsdes1", + "dest_type": "text", + "description": "Description line 1" + }, + { + "source_name": "BSDES2", + "source_type": "CHAR(30)", + "dest_name": "bsdes2", + "dest_type": "text", + "description": "Description line 2" + }, + { + "source_name": "BSDATE", + "source_type": "DATE", + "dest_name": "bsdate", + "dest_type": "date", + "description": "Last update date" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/mmsl.sql b/config/modules/mmsl.sql new file mode 100644 index 0000000..6c502e7 --- /dev/null +++ b/config/modules/mmsl.sql @@ -0,0 +1,7 @@ +SELECT + RTRIM(BSMJCD) AS bsmjcd, + RTRIM(BSMNCD) AS bsmncd, + RTRIM(BSDES1) AS bsdes1, + RTRIM(BSDES2) AS bsdes2, + CASE WHEN BSDATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE BSDATE END AS bsdate +FROM LGDAT.MMSL diff --git a/config/modules/opcode.json b/config/modules/opcode.json new file mode 100644 index 0000000..95db3ed --- /dev/null +++ b/config/modules/opcode.json @@ -0,0 +1,78 @@ +{ + "name": "opcode", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.opcode", + "staging_table": "pipekit_staging.opcode", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Method Operation Codes 6.1", + "columns": [ + { + "source_name": "AECODE", + "source_type": "CHAR(3)", + "dest_name": "aecode", + "dest_type": "text", + "description": "Operation Code" + }, + { + "source_name": "AEDES1", + "source_type": "CHAR(30)", + "dest_name": "aedes1", + "dest_type": "text", + "description": "Description 1" + }, + { + "source_name": "AEDES2", + "source_type": "CHAR(30)", + "dest_name": "aedes2", + "dest_type": "text", + "description": "Description 2" + }, + { + "source_name": "AEDES3", + "source_type": "CHAR(30)", + "dest_name": "aedes3", + "dest_type": "text", + "description": "Description 3" + }, + { + "source_name": "AEDES4", + "source_type": "CHAR(30)", + "dest_name": "aedes4", + "dest_type": "text", + "description": "Description 4" + }, + { + "source_name": "AEDATE", + "source_type": "DATE", + "dest_name": "aedate", + "dest_type": "date", + "description": "Last Updated" + }, + { + "source_name": "AELABR", + "source_type": "NUMERIC(8,2)", + "dest_name": "aelabr", + "dest_type": "numeric(8,2)", + "description": "Operation Labour Rate" + }, + { + "source_name": "AEBK01", + "source_type": "CHAR(16)", + "dest_name": "aebk01", + "dest_type": "text", + "description": "AEBK01" + }, + { + "source_name": "AEPLNT", + "source_type": "CHAR(3)", + "dest_name": "aeplnt", + "dest_type": "text", + "description": "Plant Code" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/opcode.sql b/config/modules/opcode.sql new file mode 100644 index 0000000..6e17f20 --- /dev/null +++ b/config/modules/opcode.sql @@ -0,0 +1,11 @@ +SELECT + RTRIM(AECODE) AS aecode, + RTRIM(AEDES1) AS aedes1, + RTRIM(AEDES2) AS aedes2, + RTRIM(AEDES3) AS aedes3, + RTRIM(AEDES4) AS aedes4, + CASE WHEN AEDATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AEDATE END AS aedate, + AELABR AS aelabr, + RTRIM(AEBK01) AS aebk01, + RTRIM(AEPLNT) AS aeplnt +FROM LGDAT.OPCODE diff --git a/config/modules/plnt.json b/config/modules/plnt.json new file mode 100644 index 0000000..1e6b346 --- /dev/null +++ b/config/modules/plnt.json @@ -0,0 +1,596 @@ +{ + "name": "plnt", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.plnt", + "staging_table": "pipekit_staging.plnt", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Plant Master File 6.1", + "columns": [ + { + "source_name": "YAPLNT", + "source_type": "CHAR(3)", + "dest_name": "yaplnt", + "dest_type": "text", + "description": "Plant Code" + }, + { + "source_name": "YAPNME", + "source_type": "CHAR(30)", + "dest_name": "yapnme", + "dest_type": "text", + "description": "Plant Name" + }, + { + "source_name": "YAADR#", + "source_type": "NUMERIC(8,0)", + "dest_name": "yaadr#", + "dest_type": "numeric(8,0)", + "description": "Address Number" + }, + { + "source_name": "YASLOC", + "source_type": "CHAR(6)", + "dest_name": "yasloc", + "dest_type": "text", + "description": "Ship From Loc." + }, + { + "source_name": "YARLOC", + "source_type": "CHAR(6)", + "dest_name": "yarloc", + "dest_type": "text", + "description": "Recv To Loc." + }, + { + "source_name": "YATLOC", + "source_type": "CHAR(6)", + "dest_name": "yatloc", + "dest_type": "text", + "description": "In-Transit Loc." + }, + { + "source_name": "YATMZN", + "source_type": "CHAR(2)", + "dest_name": "yatmzn", + "dest_type": "text", + "description": "Time Zone" + }, + { + "source_name": "YAMRPS", + "source_type": "NUMERIC(3,0)", + "dest_name": "yamrps", + "dest_type": "numeric(3,0)", + "description": "MRP Sequence" + }, + { + "source_name": "YAMTHC", + "source_type": "NUMERIC(3,0)", + "dest_name": "yamthc", + "dest_type": "numeric(3,0)", + "description": "5.1 Data" + }, + { + "source_name": "YASLSF", + "source_type": "CHAR(3)", + "dest_name": "yaslsf", + "dest_type": "text", + "description": "Sales Forecast" + }, + { + "source_name": "YACUSR", + "source_type": "CHAR(10)", + "dest_name": "yacusr", + "dest_type": "text", + "description": "Created By User" + }, + { + "source_name": "YACDAT", + "source_type": "DATE", + "dest_name": "yacdat", + "dest_type": "date", + "description": "Date Created" + }, + { + "source_name": "YACTME", + "source_type": "TIME", + "dest_name": "yactme", + "dest_type": "time", + "description": "Time Created" + }, + { + "source_name": "YAUUSR", + "source_type": "CHAR(10)", + "dest_name": "yauusr", + "dest_type": "text", + "description": "Updated By User" + }, + { + "source_name": "YAUDAT", + "source_type": "DATE", + "dest_name": "yaudat", + "dest_type": "date", + "description": "Date Updated" + }, + { + "source_name": "YAUTME", + "source_type": "TIME", + "dest_name": "yautme", + "dest_type": "time", + "description": "Time Updated" + }, + { + "source_name": "YAFUT1", + "source_type": "CHAR(6)", + "dest_name": "yafut1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT2", + "source_type": "CHAR(6)", + "dest_name": "yafut2", + "dest_type": "text", + "description": "WTR In-Trn Rcv Fail-Scan (Bonded)" + }, + { + "source_name": "YAFUT3", + "source_type": "CHAR(6)", + "dest_name": "yafut3", + "dest_type": "text", + "description": "WTR In-Trn Rcv Fail-Scan" + }, + { + "source_name": "YAFUT4", + "source_type": "CHAR(10)", + "dest_name": "yafut4", + "dest_type": "text", + "description": "5.1 Data" + }, + { + "source_name": "YAWIPF", + "source_type": "CHAR(6)", + "dest_name": "yawipf", + "dest_type": "text", + "description": "WIP From Loc" + }, + { + "source_name": "YAWIPT", + "source_type": "CHAR(6)", + "dest_name": "yawipt", + "dest_type": "text", + "description": "WIP To Loc" + }, + { + "source_name": "YASCPF", + "source_type": "CHAR(6)", + "dest_name": "yascpf", + "dest_type": "text", + "description": "Scrap Recovery Loc" + }, + { + "source_name": "YAFUT5", + "source_type": "CHAR(10)", + "dest_name": "yafut5", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YACOMP", + "source_type": "NUMERIC(2,0)", + "dest_name": "yacomp", + "dest_type": "numeric(2,0)", + "description": "Company Number" + }, + { + "source_name": "YAACRL", + "source_type": "NUMERIC(10,0)", + "dest_name": "yaacrl", + "dest_type": "numeric(10,0)", + "description": "A/P Accrual G/L Account" + }, + { + "source_name": "YAFUT6", + "source_type": "CHAR(10)", + "dest_name": "yafut6", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT7", + "source_type": "CHAR(20)", + "dest_name": "yafut7", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT8", + "source_type": "CHAR(20)", + "dest_name": "yafut8", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT9", + "source_type": "NUMERIC(15,5)", + "dest_name": "yafut9", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "YAFLG1", + "source_type": "CHAR(1)", + "dest_name": "yaflg1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFLG2", + "source_type": "CHAR(1)", + "dest_name": "yaflg2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFLG3", + "source_type": "CHAR(1)", + "dest_name": "yaflg3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFLG4", + "source_type": "CHAR(1)", + "dest_name": "yaflg4", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFLG5", + "source_type": "CHAR(1)", + "dest_name": "yaflg5", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAPRCV", + "source_type": "CHAR(6)", + "dest_name": "yaprcv", + "dest_type": "text", + "description": "F/G Receive Loc" + }, + { + "source_name": "YAPRTN", + "source_type": "CHAR(6)", + "dest_name": "yaprtn", + "dest_type": "text", + "description": "P/O Return Loc" + }, + { + "source_name": "YACONT", + "source_type": "CHAR(30)", + "dest_name": "yacont", + "dest_type": "text", + "description": "Contact Person" + }, + { + "source_name": "YAFUT10", + "source_type": "CHAR(6)", + "dest_name": "yafut10", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT11", + "source_type": "CHAR(6)", + "dest_name": "yafut11", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT12", + "source_type": "CHAR(6)", + "dest_name": "yafut12", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT13", + "source_type": "CHAR(3)", + "dest_name": "yafut13", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT14", + "source_type": "CHAR(3)", + "dest_name": "yafut14", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAMDFL", + "source_type": "CHAR(6)", + "dest_name": "yamdfl", + "dest_type": "text", + "description": "Material Draw From Loc" + }, + { + "source_name": "YACCSL", + "source_type": "CHAR(6)", + "dest_name": "yaccsl", + "dest_type": "text", + "description": "Customer Con. Loc" + }, + { + "source_name": "YAVCSL", + "source_type": "CHAR(6)", + "dest_name": "yavcsl", + "dest_type": "text", + "description": "Vendor Con. Loc" + }, + { + "source_name": "YAOSSL", + "source_type": "CHAR(6)", + "dest_name": "yaossl", + "dest_type": "text", + "description": "Dft O/S Loc" + }, + { + "source_name": "YATMZC", + "source_type": "CHAR(4)", + "dest_name": "yatmzc", + "dest_type": "text", + "description": "Time Zone Code" + }, + { + "source_name": "YARTSI", + "source_type": "CHAR(1)", + "dest_name": "yartsi", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "YAWSFSL", + "source_type": "CHAR(6)", + "dest_name": "yawsfsl", + "dest_type": "text", + "description": "Warranty Ship From Loc" + }, + { + "source_name": "YAEMAL", + "source_type": "CHAR(50)", + "dest_name": "yaemal", + "dest_type": "text", + "description": "Email Address" + }, + { + "source_name": "YAFACRL", + "source_type": "NUMERIC(10,0)", + "dest_name": "yafacrl", + "dest_type": "numeric(10,0)", + "description": "Freight Accrual Acct" + }, + { + "source_name": "YASCDL", + "source_type": "CHAR(6)", + "dest_name": "yascdl", + "dest_type": "text", + "description": "SCD-Part Location" + }, + { + "source_name": "YASCPLT", + "source_type": "CHAR(3)", + "dest_name": "yascplt", + "dest_type": "text", + "description": "Plant Code of Service Charge Part" + }, + { + "source_name": "YAPCKLT", + "source_type": "NUMERIC(3,0)", + "dest_name": "yapcklt", + "dest_type": "numeric(3,0)", + "description": "Picking Lead Time" + }, + { + "source_name": "YASTER", + "source_type": "CHAR(10)", + "dest_name": "yaster", + "dest_type": "text", + "description": "Field Service Territory Code" + }, + { + "source_name": "YARPRL", + "source_type": "CHAR(6)", + "dest_name": "yarprl", + "dest_type": "text", + "description": "Repair Type Location" + }, + { + "source_name": "YARSLC", + "source_type": "CHAR(6)", + "dest_name": "yarslc", + "dest_type": "text", + "description": "Repair Ship From Location" + }, + { + "source_name": "YAHIN", + "source_type": "CHAR(9)", + "dest_name": "yahin", + "dest_type": "text", + "description": "Health Industry Number" + }, + { + "source_name": "YADPVT", + "source_type": "CHAR(10)", + "dest_name": "yadpvt", + "dest_type": "text", + "description": "Dept USRDEF verification template" + }, + { + "source_name": "YARSVT", + "source_type": "CHAR(10)", + "dest_name": "yarsvt", + "dest_type": "text", + "description": "Resc USRDEF verification template" + }, + { + "source_name": "YAAPSB", + "source_type": "CHAR(1)", + "dest_name": "yaapsb", + "dest_type": "text", + "description": "Auto Post SCD BOL" + }, + { + "source_name": "YAITBL", + "source_type": "CHAR(6)", + "dest_name": "yaitbl", + "dest_type": "text", + "description": "In Transit Bonded Location" + }, + { + "source_name": "YASPLT", + "source_type": "CHAR(3)", + "dest_name": "yasplt", + "dest_type": "text", + "description": "Service Plant" + }, + { + "source_name": "YAFUT15", + "source_type": "CHAR(20)", + "dest_name": "yafut15", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT16", + "source_type": "CHAR(20)", + "dest_name": "yafut16", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT17", + "source_type": "CHAR(30)", + "dest_name": "yafut17", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT18", + "source_type": "CHAR(30)", + "dest_name": "yafut18", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT19", + "source_type": "NUMERIC(15,5)", + "dest_name": "yafut19", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "YAFUT20", + "source_type": "NUMERIC(15,5)", + "dest_name": "yafut20", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "YAFUT21", + "source_type": "CHAR(10)", + "dest_name": "yafut21", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT22", + "source_type": "CHAR(10)", + "dest_name": "yafut22", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT23", + "source_type": "CHAR(10)", + "dest_name": "yafut23", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT24", + "source_type": "CHAR(10)", + "dest_name": "yafut24", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT25", + "source_type": "CHAR(10)", + "dest_name": "yafut25", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT26", + "source_type": "CHAR(1)", + "dest_name": "yafut26", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT27", + "source_type": "CHAR(1)", + "dest_name": "yafut27", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT28", + "source_type": "CHAR(1)", + "dest_name": "yafut28", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT29", + "source_type": "CHAR(1)", + "dest_name": "yafut29", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT30", + "source_type": "CHAR(1)", + "dest_name": "yafut30", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "YAFUT31", + "source_type": "NUMERIC(15,5)", + "dest_name": "yafut31", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "YAFUT32", + "source_type": "NUMERIC(15,5)", + "dest_name": "yafut32", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "YAFUT33", + "source_type": "NUMERIC(15,5)", + "dest_name": "yafut33", + "dest_type": "numeric(15,5)", + "description": "Future Use" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/plnt.sql b/config/modules/plnt.sql new file mode 100644 index 0000000..f77dab3 --- /dev/null +++ b/config/modules/plnt.sql @@ -0,0 +1,85 @@ +SELECT + RTRIM(YAPLNT) AS yaplnt, + RTRIM(YAPNME) AS yapnme, + "YAADR#" AS "yaadr#", + RTRIM(YASLOC) AS yasloc, + RTRIM(YARLOC) AS yarloc, + RTRIM(YATLOC) AS yatloc, + RTRIM(YATMZN) AS yatmzn, + YAMRPS AS yamrps, + YAMTHC AS yamthc, + RTRIM(YASLSF) AS yaslsf, + RTRIM(YACUSR) AS yacusr, + CASE WHEN YACDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE YACDAT END AS yacdat, + YACTME AS yactme, + RTRIM(YAUUSR) AS yauusr, + CASE WHEN YAUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE YAUDAT END AS yaudat, + YAUTME AS yautme, + RTRIM(YAFUT1) AS yafut1, + RTRIM(YAFUT2) AS yafut2, + RTRIM(YAFUT3) AS yafut3, + RTRIM(YAFUT4) AS yafut4, + RTRIM(YAWIPF) AS yawipf, + RTRIM(YAWIPT) AS yawipt, + RTRIM(YASCPF) AS yascpf, + RTRIM(YAFUT5) AS yafut5, + YACOMP AS yacomp, + YAACRL AS yaacrl, + RTRIM(YAFUT6) AS yafut6, + RTRIM(YAFUT7) AS yafut7, + RTRIM(YAFUT8) AS yafut8, + YAFUT9 AS yafut9, + RTRIM(YAFLG1) AS yaflg1, + RTRIM(YAFLG2) AS yaflg2, + RTRIM(YAFLG3) AS yaflg3, + RTRIM(YAFLG4) AS yaflg4, + RTRIM(YAFLG5) AS yaflg5, + RTRIM(YAPRCV) AS yaprcv, + RTRIM(YAPRTN) AS yaprtn, + RTRIM(YACONT) AS yacont, + RTRIM(YAFUT10) AS yafut10, + RTRIM(YAFUT11) AS yafut11, + RTRIM(YAFUT12) AS yafut12, + RTRIM(YAFUT13) AS yafut13, + RTRIM(YAFUT14) AS yafut14, + RTRIM(YAMDFL) AS yamdfl, + RTRIM(YACCSL) AS yaccsl, + RTRIM(YAVCSL) AS yavcsl, + RTRIM(YAOSSL) AS yaossl, + RTRIM(YATMZC) AS yatmzc, + RTRIM(YARTSI) AS yartsi, + RTRIM(YAWSFSL) AS yawsfsl, + RTRIM(YAEMAL) AS yaemal, + YAFACRL AS yafacrl, + RTRIM(YASCDL) AS yascdl, + RTRIM(YASCPLT) AS yascplt, + YAPCKLT AS yapcklt, + RTRIM(YASTER) AS yaster, + RTRIM(YARPRL) AS yarprl, + RTRIM(YARSLC) AS yarslc, + RTRIM(YAHIN) AS yahin, + RTRIM(YADPVT) AS yadpvt, + RTRIM(YARSVT) AS yarsvt, + RTRIM(YAAPSB) AS yaapsb, + RTRIM(YAITBL) AS yaitbl, + RTRIM(YASPLT) AS yasplt, + RTRIM(YAFUT15) AS yafut15, + RTRIM(YAFUT16) AS yafut16, + RTRIM(YAFUT17) AS yafut17, + RTRIM(YAFUT18) AS yafut18, + YAFUT19 AS yafut19, + YAFUT20 AS yafut20, + RTRIM(YAFUT21) AS yafut21, + RTRIM(YAFUT22) AS yafut22, + RTRIM(YAFUT23) AS yafut23, + RTRIM(YAFUT24) AS yafut24, + RTRIM(YAFUT25) AS yafut25, + RTRIM(YAFUT26) AS yafut26, + RTRIM(YAFUT27) AS yafut27, + RTRIM(YAFUT28) AS yafut28, + RTRIM(YAFUT29) AS yafut29, + RTRIM(YAFUT30) AS yafut30, + YAFUT31 AS yafut31, + YAFUT32 AS yafut32, + YAFUT33 AS yafut33 +FROM LGDAT.PLNT diff --git a/config/modules/punit.json b/config/modules/punit.json new file mode 100644 index 0000000..0e49c45 --- /dev/null +++ b/config/modules/punit.json @@ -0,0 +1,78 @@ +{ + "name": "punit", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.punit", + "staging_table": "pipekit_staging.punit", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Part/Unit Conversion File 6.0", + "columns": [ + { + "source_name": "IHPART", + "source_type": "CHAR(20)", + "dest_name": "ihpart", + "dest_type": "text", + "description": "Part Number" + }, + { + "source_name": "IHUNT1", + "source_type": "CHAR(3)", + "dest_name": "ihunt1", + "dest_type": "text", + "description": "Unit1" + }, + { + "source_name": "IHUNT2", + "source_type": "CHAR(3)", + "dest_name": "ihunt2", + "dest_type": "text", + "description": "Unit2" + }, + { + "source_name": "IHCNV1", + "source_type": "NUMERIC(10,5)", + "dest_name": "ihcnv1", + "dest_type": "numeric(10,5)", + "description": "Conversion 1" + }, + { + "source_name": "IHCNV2", + "source_type": "NUMERIC(10,5)", + "dest_name": "ihcnv2", + "dest_type": "numeric(10,5)", + "description": "Conversion 2" + }, + { + "source_name": "IHCDAT", + "source_type": "DATE", + "dest_name": "ihcdat", + "dest_type": "date", + "description": "Date Created" + }, + { + "source_name": "IHCUSR", + "source_type": "CHAR(10)", + "dest_name": "ihcusr", + "dest_type": "text", + "description": "Created By" + }, + { + "source_name": "IHUDAT", + "source_type": "DATE", + "dest_name": "ihudat", + "dest_type": "date", + "description": "Date Updated" + }, + { + "source_name": "IHUUSR", + "source_type": "CHAR(10)", + "dest_name": "ihuusr", + "dest_type": "text", + "description": "Updated By" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/punit.sql b/config/modules/punit.sql new file mode 100644 index 0000000..d42f25a --- /dev/null +++ b/config/modules/punit.sql @@ -0,0 +1,11 @@ +SELECT + RTRIM(IHPART) AS ihpart, + RTRIM(IHUNT1) AS ihunt1, + RTRIM(IHUNT2) AS ihunt2, + IHCNV1 AS ihcnv1, + IHCNV2 AS ihcnv2, + CASE WHEN IHCDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE IHCDAT END AS ihcdat, + RTRIM(IHCUSR) AS ihcusr, + CASE WHEN IHUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE IHUDAT END AS ihudat, + RTRIM(IHUUSR) AS ihuusr +FROM LGDAT.PUNIT diff --git a/config/modules/resre.json b/config/modules/resre.json new file mode 100644 index 0000000..f1595e2 --- /dev/null +++ b/config/modules/resre.json @@ -0,0 +1,456 @@ +{ + "name": "resre", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.resre", + "staging_table": "pipekit_staging.resre", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Resource Master File (Equipment) 6.1", + "columns": [ + { + "source_name": "ABTYPE", + "source_type": "CHAR(1)", + "dest_name": "abtype", + "dest_type": "text", + "description": "Always E" + }, + { + "source_name": "ABDEPT", + "source_type": "CHAR(5)", + "dest_name": "abdept", + "dest_type": "text", + "description": "Production Department Code" + }, + { + "source_name": "ABRESC", + "source_type": "CHAR(5)", + "dest_name": "abresc", + "dest_type": "text", + "description": "Resource Code" + }, + { + "source_name": "ABDES", + "source_type": "CHAR(30)", + "dest_name": "abdes", + "dest_type": "text", + "description": "Resource Name" + }, + { + "source_name": "ABBRDR", + "source_type": "NUMERIC(8,2)", + "dest_name": "abbrdr", + "dest_type": "numeric(8,2)", + "description": "Fixed Burden Rate" + }, + { + "source_name": "ABCAPT", + "source_type": "NUMERIC(4,2)", + "dest_name": "abcapt", + "dest_type": "numeric(4,2)", + "description": "Resource Capacity" + }, + { + "source_name": "ABCREW", + "source_type": "NUMERIC(2,0)", + "dest_name": "abcrew", + "dest_type": "numeric(2,0)", + "description": "Default Crew Size" + }, + { + "source_name": "ABBRDP", + "source_type": "NUMERIC(4,0)", + "dest_name": "abbrdp", + "dest_type": "numeric(4,0)", + "description": "Fixed Burden %" + }, + { + "source_name": "ABBLNK", + "source_type": "CHAR(2)", + "dest_name": "abblnk", + "dest_type": "text", + "description": "Not Used" + }, + { + "source_name": "ABSTIM", + "source_type": "TIME", + "dest_name": "abstim", + "dest_type": "time", + "description": "Starting Time" + }, + { + "source_name": "ABMACG", + "source_type": "CHAR(3)", + "dest_name": "abmacg", + "dest_type": "text", + "description": "Machine Group" + }, + { + "source_name": "ABRDAT", + "source_type": "DATE", + "dest_name": "abrdat", + "dest_type": "date", + "description": "Last Report Date" + }, + { + "source_name": "ABRTIM", + "source_type": "TIME", + "dest_name": "abrtim", + "dest_type": "time", + "description": "Last Report Time" + }, + { + "source_name": "ABTMZN", + "source_type": "CHAR(4)", + "dest_name": "abtmzn", + "dest_type": "text", + "description": "Time Zone Code" + }, + { + "source_name": "ABSCHD", + "source_type": "CHAR(1)", + "dest_name": "abschd", + "dest_type": "text", + "description": "Schedule Resc" + }, + { + "source_name": "ABFINS", + "source_type": "CHAR(1)", + "dest_name": "abfins", + "dest_type": "text", + "description": "Finitely Sched Type" + }, + { + "source_name": "ABLABS", + "source_type": "NUMERIC(8,2)", + "dest_name": "ablabs", + "dest_type": "numeric(8,2)", + "description": "Set-up Labour Rate" + }, + { + "source_name": "ABLABR", + "source_type": "NUMERIC(8,2)", + "dest_name": "ablabr", + "dest_type": "numeric(8,2)", + "description": "Run Labour Rate" + }, + { + "source_name": "ABVBRD", + "source_type": "NUMERIC(8,2)", + "dest_name": "abvbrd", + "dest_type": "numeric(8,2)", + "description": "Variable Burden Rate" + }, + { + "source_name": "ABFRML", + "source_type": "CHAR(6)", + "dest_name": "abfrml", + "dest_type": "text", + "description": "Def Loc To Draw Inv From" + }, + { + "source_name": "ABRCVL", + "source_type": "CHAR(6)", + "dest_name": "abrcvl", + "dest_type": "text", + "description": "Def Loc To Recv Inv To" + }, + { + "source_name": "ABUTLP", + "source_type": "NUMERIC(5,2)", + "dest_name": "abutlp", + "dest_type": "numeric(5,2)", + "description": "Utilization Percentage" + }, + { + "source_name": "ABBDVP", + "source_type": "NUMERIC(4,0)", + "dest_name": "abbdvp", + "dest_type": "numeric(4,0)", + "description": "Variable Burden %" + }, + { + "source_name": "ABWPDR", + "source_type": "CHAR(6)", + "dest_name": "abwpdr", + "dest_type": "text", + "description": "WIP Draw From" + }, + { + "source_name": "ABWPRV", + "source_type": "CHAR(6)", + "dest_name": "abwprv", + "dest_type": "text", + "description": "WIP Receive To" + }, + { + "source_name": "ABCDRC", + "source_type": "CHAR(10)", + "dest_name": "abcdrc", + "dest_type": "text", + "description": "Cost Driver Code" + }, + { + "source_name": "ABCDRF", + "source_type": "NUMERIC(15,5)", + "dest_name": "abcdrf", + "dest_type": "numeric(15,5)", + "description": "Driver Rate Fixed Burden" + }, + { + "source_name": "ABCDRV", + "source_type": "NUMERIC(15,5)", + "dest_name": "abcdrv", + "dest_type": "numeric(15,5)", + "description": "Driver Rate Variable Burden" + }, + { + "source_name": "ABCDUM", + "source_type": "CHAR(3)", + "dest_name": "abcdum", + "dest_type": "text", + "description": "Driver Rate Unit" + }, + { + "source_name": "ABUSLF", + "source_type": "CHAR(1)", + "dest_name": "abuslf", + "dest_type": "text", + "description": "Use Labour Fixed" + }, + { + "source_name": "ABUSLV", + "source_type": "CHAR(1)", + "dest_name": "abuslv", + "dest_type": "text", + "description": "Use Labour Variable" + }, + { + "source_name": "ABPLNT", + "source_type": "CHAR(3)", + "dest_name": "abplnt", + "dest_type": "text", + "description": "Plant Code" + }, + { + "source_name": "ABFUT1", + "source_type": "CHAR(10)", + "dest_name": "abfut1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "ABFUT2", + "source_type": "CHAR(10)", + "dest_name": "abfut2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "ABWSFI", + "source_type": "CHAR(20)", + "dest_name": "abwsfi", + "dest_type": "text", + "description": "HMI Event Feature Id" + }, + { + "source_name": "ABFUT3", + "source_type": "CHAR(10)", + "dest_name": "abfut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "ABFUT4", + "source_type": "CHAR(20)", + "dest_name": "abfut4", + "dest_type": "text", + "description": "Mattec Resource code" + }, + { + "source_name": "ABFUT5", + "source_type": "CHAR(30)", + "dest_name": "abfut5", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "ABFUT6", + "source_type": "NUMERIC(15,5)", + "dest_name": "abfut6", + "dest_type": "numeric(15,5)", + "description": "Maximum Size" + }, + { + "source_name": "ABFUT7", + "source_type": "CHAR(3)", + "dest_name": "abfut7", + "dest_type": "text", + "description": "Maximum Size Unit" + }, + { + "source_name": "ABFUT8", + "source_type": "CHAR(1)", + "dest_name": "abfut8", + "dest_type": "text", + "description": "Mattec Resource" + }, + { + "source_name": "ABFUT9", + "source_type": "CHAR(1)", + "dest_name": "abfut9", + "dest_type": "text", + "description": "Constraint Type" + }, + { + "source_name": "ABFUTA", + "source_type": "CHAR(1)", + "dest_name": "abfuta", + "dest_type": "text", + "description": "Mattec Speed Type" + }, + { + "source_name": "ABFUTB", + "source_type": "CHAR(1)", + "dest_name": "abfutb", + "dest_type": "text", + "description": "Post Batch Reporting" + }, + { + "source_name": "ABFUTC", + "source_type": "CHAR(1)", + "dest_name": "abfutc", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "ABDBR", + "source_type": "CHAR(1)", + "dest_name": "abdbr", + "dest_type": "text", + "description": "DBR Resource" + }, + { + "source_name": "ABDBUF", + "source_type": "NUMERIC(5,2)", + "dest_name": "abdbuf", + "dest_type": "numeric(5,2)", + "description": "DBR Safety Buffer" + }, + { + "source_name": "ABSLTP", + "source_type": "CHAR(1)", + "dest_name": "absltp", + "dest_type": "text", + "description": "Spec. Tolerance Type" + }, + { + "source_name": "ABLSL", + "source_type": "NUMERIC(5,2)", + "dest_name": "ablsl", + "dest_type": "numeric(5,2)", + "description": "Lower Spec. Tolerance" + }, + { + "source_name": "ABUSL", + "source_type": "NUMERIC(5,2)", + "dest_name": "abusl", + "dest_type": "numeric(5,2)", + "description": "Upper Spec. Tolerance" + }, + { + "source_name": "ABNPF", + "source_type": "NUMERIC(3,0)", + "dest_name": "abnpf", + "dest_type": "numeric(3,0)", + "description": "Non-production Limit Factor" + }, + { + "source_name": "ABFUT10", + "source_type": "CHAR(10)", + "dest_name": "abfut10", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "ABFUT11", + "source_type": "CHAR(10)", + "dest_name": "abfut11", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "ABFUT12", + "source_type": "CHAR(10)", + "dest_name": "abfut12", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "ABFUT13", + "source_type": "CHAR(10)", + "dest_name": "abfut13", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "ABFUT14", + "source_type": "CHAR(10)", + "dest_name": "abfut14", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "ABFUT15", + "source_type": "CHAR(10)", + "dest_name": "abfut15", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "ABFUT16", + "source_type": "CHAR(20)", + "dest_name": "abfut16", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "ABFUT17", + "source_type": "CHAR(20)", + "dest_name": "abfut17", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "ABFUT18", + "source_type": "CHAR(30)", + "dest_name": "abfut18", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "ABVKTR", + "source_type": "CHAR(10)", + "dest_name": "abvktr", + "dest_type": "text", + "description": "Virtual Kanban Time-On-Hand Range Code" + }, + { + "source_name": "ABVKTY", + "source_type": "CHAR(1)", + "dest_name": "abvkty", + "dest_type": "text", + "description": "Virtual Kanban Type" + }, + { + "source_name": "ABMCOA", + "source_type": "NUMERIC(3,0)", + "dest_name": "abmcoa", + "dest_type": "numeric(3,0)", + "description": "Machine Overall Efficiency" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/resre.sql b/config/modules/resre.sql new file mode 100644 index 0000000..1628158 --- /dev/null +++ b/config/modules/resre.sql @@ -0,0 +1,65 @@ +SELECT + RTRIM(ABTYPE) AS abtype, + RTRIM(ABDEPT) AS abdept, + RTRIM(ABRESC) AS abresc, + RTRIM(ABDES) AS abdes, + ABBRDR AS abbrdr, + ABCAPT AS abcapt, + ABCREW AS abcrew, + ABBRDP AS abbrdp, + RTRIM(ABBLNK) AS abblnk, + ABSTIM AS abstim, + RTRIM(ABMACG) AS abmacg, + CASE WHEN ABRDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE ABRDAT END AS abrdat, + ABRTIM AS abrtim, + RTRIM(ABTMZN) AS abtmzn, + RTRIM(ABSCHD) AS abschd, + RTRIM(ABFINS) AS abfins, + ABLABS AS ablabs, + ABLABR AS ablabr, + ABVBRD AS abvbrd, + RTRIM(ABFRML) AS abfrml, + RTRIM(ABRCVL) AS abrcvl, + ABUTLP AS abutlp, + ABBDVP AS abbdvp, + RTRIM(ABWPDR) AS abwpdr, + RTRIM(ABWPRV) AS abwprv, + RTRIM(ABCDRC) AS abcdrc, + ABCDRF AS abcdrf, + ABCDRV AS abcdrv, + RTRIM(ABCDUM) AS abcdum, + RTRIM(ABUSLF) AS abuslf, + RTRIM(ABUSLV) AS abuslv, + RTRIM(ABPLNT) AS abplnt, + RTRIM(ABFUT1) AS abfut1, + RTRIM(ABFUT2) AS abfut2, + RTRIM(ABWSFI) AS abwsfi, + RTRIM(ABFUT3) AS abfut3, + RTRIM(ABFUT4) AS abfut4, + RTRIM(ABFUT5) AS abfut5, + ABFUT6 AS abfut6, + RTRIM(ABFUT7) AS abfut7, + RTRIM(ABFUT8) AS abfut8, + RTRIM(ABFUT9) AS abfut9, + RTRIM(ABFUTA) AS abfuta, + RTRIM(ABFUTB) AS abfutb, + RTRIM(ABFUTC) AS abfutc, + RTRIM(ABDBR) AS abdbr, + ABDBUF AS abdbuf, + RTRIM(ABSLTP) AS absltp, + ABLSL AS ablsl, + ABUSL AS abusl, + ABNPF AS abnpf, + RTRIM(ABFUT10) AS abfut10, + RTRIM(ABFUT11) AS abfut11, + RTRIM(ABFUT12) AS abfut12, + RTRIM(ABFUT13) AS abfut13, + RTRIM(ABFUT14) AS abfut14, + RTRIM(ABFUT15) AS abfut15, + RTRIM(ABFUT16) AS abfut16, + RTRIM(ABFUT17) AS abfut17, + RTRIM(ABFUT18) AS abfut18, + RTRIM(ABVKTR) AS abvktr, + RTRIM(ABVKTY) AS abvkty, + ABMCOA AS abmcoa +FROM LGDAT.RESRE diff --git a/config/modules/sach.json b/config/modules/sach.json new file mode 100644 index 0000000..d0c5e45 --- /dev/null +++ b/config/modules/sach.json @@ -0,0 +1,281 @@ +{ + "name": "sach", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.sach", + "staging_table": "pipekit_staging.sach", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Sales Channel Master", + "columns": [ + { + "source_name": "BK7CODE", + "source_type": "CHAR(10)", + "dest_name": "bk7code", + "dest_type": "text", + "description": "Sales Channel" + }, + { + "source_name": "BK7DES1", + "source_type": "CHAR(30)", + "dest_name": "bk7des1", + "dest_type": "text", + "description": "Sales Channel Description 1" + }, + { + "source_name": "BK7DES2", + "source_type": "CHAR(30)", + "dest_name": "bk7des2", + "dest_type": "text", + "description": "Sales Channel Description 2" + }, + { + "source_name": "BK7DES3", + "source_type": "CHAR(30)", + "dest_name": "bk7des3", + "dest_type": "text", + "description": "Sales Channel Description 3" + }, + { + "source_name": "BK7TRAD", + "source_type": "CHAR(1)", + "dest_name": "bk7trad", + "dest_type": "text", + "description": "Trading Company" + }, + { + "source_name": "BK7CARC", + "source_type": "CHAR(17)", + "dest_name": "bk7carc", + "dest_type": "text", + "description": "Optional Default Carrier Code" + }, + { + "source_name": "BK7SERC", + "source_type": "CHAR(3)", + "dest_name": "bk7serc", + "dest_type": "text", + "description": "Optional Default Service Code" + }, + { + "source_name": "BK7CUSR", + "source_type": "CHAR(10)", + "dest_name": "bk7cusr", + "dest_type": "text", + "description": "Created By User" + }, + { + "source_name": "BK7CDAT", + "source_type": "DATE", + "dest_name": "bk7cdat", + "dest_type": "date", + "description": "Date Created" + }, + { + "source_name": "BK7CTME", + "source_type": "TIME", + "dest_name": "bk7ctme", + "dest_type": "time", + "description": "Time Created" + }, + { + "source_name": "BK7UUSR", + "source_type": "CHAR(10)", + "dest_name": "bk7uusr", + "dest_type": "text", + "description": "Updated By User" + }, + { + "source_name": "BK7UDAT", + "source_type": "DATE", + "dest_name": "bk7udat", + "dest_type": "date", + "description": "Date Updated" + }, + { + "source_name": "BK7UTME", + "source_type": "TIME", + "dest_name": "bk7utme", + "dest_type": "time", + "description": "Time Updated" + }, + { + "source_name": "BK7SNDAT", + "source_type": "CHAR(1)", + "dest_name": "bk7sndat", + "dest_type": "text", + "description": "Send Avatax" + }, + { + "source_name": "BK7FUT01", + "source_type": "CHAR(1)", + "dest_name": "bk7fut01", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "BK7FUT02", + "source_type": "CHAR(1)", + "dest_name": "bk7fut02", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "BK7FUT03", + "source_type": "CHAR(1)", + "dest_name": "bk7fut03", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "BK7FUT04", + "source_type": "CHAR(30)", + "dest_name": "bk7fut04", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "BK7FUT05", + "source_type": "CHAR(30)", + "dest_name": "bk7fut05", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "BK7FUT06", + "source_type": "CHAR(30)", + "dest_name": "bk7fut06", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "BK7FUT07", + "source_type": "NUMERIC(15,5)", + "dest_name": "bk7fut07", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "BK7FUT08", + "source_type": "NUMERIC(15,5)", + "dest_name": "bk7fut08", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "BK7FUT09", + "source_type": "NUMERIC(15,5)", + "dest_name": "bk7fut09", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "BK7FUT10", + "source_type": "NUMERIC(15,5)", + "dest_name": "bk7fut10", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "BK7DBUY", + "source_type": "CHAR(1)", + "dest_name": "bk7dbuy", + "dest_type": "text", + "description": "Default Direct Buy" + }, + { + "source_name": "BK7DBAC", + "source_type": "CHAR(1)", + "dest_name": "bk7dbac", + "dest_type": "text", + "description": "Default Direct Buy Action" + }, + { + "source_name": "BK7PROM", + "source_type": "CHAR(35)", + "dest_name": "bk7prom", + "dest_type": "text", + "description": "Default Promotion Number" + }, + { + "source_name": "BK7OTYP", + "source_type": "CHAR(1)", + "dest_name": "bk7otyp", + "dest_type": "text", + "description": "Default Order Type" + }, + { + "source_name": "BK7AVAC", + "source_type": "CHAR(1)", + "dest_name": "bk7avac", + "dest_type": "text", + "description": "Check Available Quantity" + }, + { + "source_name": "BK7QTHR", + "source_type": "CHAR(2)", + "dest_name": "bk7qthr", + "dest_type": "text", + "description": "Quantity Not Available Hold Reason" + }, + { + "source_name": "BK7APPV", + "source_type": "CHAR(1)", + "dest_name": "bk7appv", + "dest_type": "text", + "description": "Approval Required" + }, + { + "source_name": "BK7APPD", + "source_type": "NUMERIC(15,5)", + "dest_name": "bk7appd", + "dest_type": "numeric(15,5)", + "description": "Pre-Approved Amount" + }, + { + "source_name": "BK7APHR", + "source_type": "CHAR(2)", + "dest_name": "bk7aphr", + "dest_type": "text", + "description": "Pending Approval Hold Reason" + }, + { + "source_name": "BK7PLCD", + "source_type": "CHAR(5)", + "dest_name": "bk7plcd", + "dest_type": "text", + "description": "Override Price List Code" + }, + { + "source_name": "BK7EDIS", + "source_type": "CHAR(1)", + "dest_name": "bk7edis", + "dest_type": "text", + "description": "Extra Discount/Charge Accepted" + }, + { + "source_name": "BK7EXPO", + "source_type": "CHAR(1)", + "dest_name": "bk7expo", + "dest_type": "text", + "description": "Default Expedited Order" + }, + { + "source_name": "BK7F0PR", + "source_type": "CHAR(1)", + "dest_name": "bk7f0pr", + "dest_type": "text", + "description": "Force 0 Price" + }, + { + "source_name": "BK7PRTY", + "source_type": "NUMERIC(1,0)", + "dest_name": "bk7prty", + "dest_type": "numeric(1,0)", + "description": "Default Priority" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/sach.sql b/config/modules/sach.sql new file mode 100644 index 0000000..9bb81ff --- /dev/null +++ b/config/modules/sach.sql @@ -0,0 +1,40 @@ +SELECT + RTRIM(BK7CODE) AS bk7code, + RTRIM(BK7DES1) AS bk7des1, + RTRIM(BK7DES2) AS bk7des2, + RTRIM(BK7DES3) AS bk7des3, + RTRIM(BK7TRAD) AS bk7trad, + RTRIM(BK7CARC) AS bk7carc, + RTRIM(BK7SERC) AS bk7serc, + RTRIM(BK7CUSR) AS bk7cusr, + CASE WHEN BK7CDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE BK7CDAT END AS bk7cdat, + BK7CTME AS bk7ctme, + RTRIM(BK7UUSR) AS bk7uusr, + CASE WHEN BK7UDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE BK7UDAT END AS bk7udat, + BK7UTME AS bk7utme, + RTRIM(BK7SNDAT) AS bk7sndat, + RTRIM(BK7FUT01) AS bk7fut01, + RTRIM(BK7FUT02) AS bk7fut02, + RTRIM(BK7FUT03) AS bk7fut03, + RTRIM(BK7FUT04) AS bk7fut04, + RTRIM(BK7FUT05) AS bk7fut05, + RTRIM(BK7FUT06) AS bk7fut06, + BK7FUT07 AS bk7fut07, + BK7FUT08 AS bk7fut08, + BK7FUT09 AS bk7fut09, + BK7FUT10 AS bk7fut10, + RTRIM(BK7DBUY) AS bk7dbuy, + RTRIM(BK7DBAC) AS bk7dbac, + RTRIM(BK7PROM) AS bk7prom, + RTRIM(BK7OTYP) AS bk7otyp, + RTRIM(BK7AVAC) AS bk7avac, + RTRIM(BK7QTHR) AS bk7qthr, + RTRIM(BK7APPV) AS bk7appv, + BK7APPD AS bk7appd, + RTRIM(BK7APHR) AS bk7aphr, + RTRIM(BK7PLCD) AS bk7plcd, + RTRIM(BK7EDIS) AS bk7edis, + RTRIM(BK7EXPO) AS bk7expo, + RTRIM(BK7F0PR) AS bk7f0pr, + BK7PRTY AS bk7prty +FROM LGDAT.SACH diff --git a/config/modules/sscc.json b/config/modules/sscc.json new file mode 100644 index 0000000..c37b8e8 --- /dev/null +++ b/config/modules/sscc.json @@ -0,0 +1,225 @@ +{ + "name": "sscc", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.sscc", + "staging_table": "pipekit_staging.sscc", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Style/Size/Color Codes file 6.0", + "columns": [ + { + "source_name": "SSCTYP", + "source_type": "CHAR(1)", + "dest_name": "ssctyp", + "dest_type": "text", + "description": "Type" + }, + { + "source_name": "SSCCDE", + "source_type": "CHAR(20)", + "dest_name": "ssccde", + "dest_type": "text", + "description": "Code" + }, + { + "source_name": "SSCDE1", + "source_type": "CHAR(30)", + "dest_name": "sscde1", + "dest_type": "text", + "description": "Desc. 1" + }, + { + "source_name": "SSCDE2", + "source_type": "CHAR(30)", + "dest_name": "sscde2", + "dest_type": "text", + "description": "Desc. 2" + }, + { + "source_name": "SSCDE3", + "source_type": "CHAR(30)", + "dest_name": "sscde3", + "dest_type": "text", + "description": "Desc. 3" + }, + { + "source_name": "SSCCUSR", + "source_type": "CHAR(10)", + "dest_name": "ssccusr", + "dest_type": "text", + "description": "Created By User" + }, + { + "source_name": "SSCCDAT", + "source_type": "DATE", + "dest_name": "ssccdat", + "dest_type": "date", + "description": "Date Created" + }, + { + "source_name": "SSCCTME", + "source_type": "TIME", + "dest_name": "sscctme", + "dest_type": "time", + "description": "Time Created" + }, + { + "source_name": "SSCUUSR", + "source_type": "CHAR(10)", + "dest_name": "sscuusr", + "dest_type": "text", + "description": "Updated By User" + }, + { + "source_name": "SSCUDAT", + "source_type": "DATE", + "dest_name": "sscudat", + "dest_type": "date", + "description": "Date Updated" + }, + { + "source_name": "SSCUTME", + "source_type": "TIME", + "dest_name": "sscutme", + "dest_type": "time", + "description": "Time Updated" + }, + { + "source_name": "SSCFUT1", + "source_type": "CHAR(1)", + "dest_name": "sscfut1", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "SSCFUT2", + "source_type": "CHAR(1)", + "dest_name": "sscfut2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "SSCFUT3", + "source_type": "CHAR(20)", + "dest_name": "sscfut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "SSCFUT4", + "source_type": "CHAR(20)", + "dest_name": "sscfut4", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "SSCFUT5", + "source_type": "CHAR(30)", + "dest_name": "sscfut5", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "SSCFUT6", + "source_type": "CHAR(30)", + "dest_name": "sscfut6", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "SSCLN", + "source_type": "NUMERIC(15,5)", + "dest_name": "sscln", + "dest_type": "numeric(15,5)", + "description": "Length" + }, + { + "source_name": "SSCLNU", + "source_type": "CHAR(3)", + "dest_name": "ssclnu", + "dest_type": "text", + "description": "Length Unit" + }, + { + "source_name": "SSCWD", + "source_type": "NUMERIC(15,5)", + "dest_name": "sscwd", + "dest_type": "numeric(15,5)", + "description": "Width" + }, + { + "source_name": "SSCWDU", + "source_type": "CHAR(3)", + "dest_name": "sscwdu", + "dest_type": "text", + "description": "Width Unit" + }, + { + "source_name": "SSCHG", + "source_type": "NUMERIC(15,5)", + "dest_name": "sschg", + "dest_type": "numeric(15,5)", + "description": "Height" + }, + { + "source_name": "SSCHGU", + "source_type": "CHAR(3)", + "dest_name": "sschgu", + "dest_type": "text", + "description": "Height Unit" + }, + { + "source_name": "SSCWG", + "source_type": "NUMERIC(15,5)", + "dest_name": "sscwg", + "dest_type": "numeric(15,5)", + "description": "Weight" + }, + { + "source_name": "SSCWGU", + "source_type": "CHAR(3)", + "dest_name": "sscwgu", + "dest_type": "text", + "description": "Weight Unit" + }, + { + "source_name": "SSCFGTY", + "source_type": "CHAR(30)", + "dest_name": "sscfgty", + "dest_type": "text", + "description": "Finished Good Type Code" + }, + { + "source_name": "SSCFGAT", + "source_type": "CHAR(30)", + "dest_name": "sscfgat", + "dest_type": "text", + "description": "Finished Good Attribute Code" + }, + { + "source_name": "SSCFGCL", + "source_type": "CHAR(30)", + "dest_name": "sscfgcl", + "dest_type": "text", + "description": "Finished Good Colour Type Code" + }, + { + "source_name": "SSCFGFT", + "source_type": "CHAR(30)", + "dest_name": "sscfgft", + "dest_type": "text", + "description": "Finished Good Flap Style Code" + }, + { + "source_name": "SSCFGFZ", + "source_type": "CHAR(30)", + "dest_name": "sscfgfz", + "dest_type": "text", + "description": "Finished Good Flap Size Code" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/sscc.sql b/config/modules/sscc.sql new file mode 100644 index 0000000..082c3ab --- /dev/null +++ b/config/modules/sscc.sql @@ -0,0 +1,32 @@ +SELECT + RTRIM(SSCTYP) AS ssctyp, + RTRIM(SSCCDE) AS ssccde, + RTRIM(SSCDE1) AS sscde1, + RTRIM(SSCDE2) AS sscde2, + RTRIM(SSCDE3) AS sscde3, + RTRIM(SSCCUSR) AS ssccusr, + CASE WHEN SSCCDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE SSCCDAT END AS ssccdat, + SSCCTME AS sscctme, + RTRIM(SSCUUSR) AS sscuusr, + CASE WHEN SSCUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE SSCUDAT END AS sscudat, + SSCUTME AS sscutme, + RTRIM(SSCFUT1) AS sscfut1, + RTRIM(SSCFUT2) AS sscfut2, + RTRIM(SSCFUT3) AS sscfut3, + RTRIM(SSCFUT4) AS sscfut4, + RTRIM(SSCFUT5) AS sscfut5, + RTRIM(SSCFUT6) AS sscfut6, + SSCLN AS sscln, + RTRIM(SSCLNU) AS ssclnu, + SSCWD AS sscwd, + RTRIM(SSCWDU) AS sscwdu, + SSCHG AS sschg, + RTRIM(SSCHGU) AS sschgu, + SSCWG AS sscwg, + RTRIM(SSCWGU) AS sscwgu, + RTRIM(SSCFGTY) AS sscfgty, + RTRIM(SSCFGAT) AS sscfgat, + RTRIM(SSCFGCL) AS sscfgcl, + RTRIM(SSCFGFT) AS sscfgft, + RTRIM(SSCFGFZ) AS sscfgfz +FROM LGDAT.SSCC diff --git a/config/modules/stka.json b/config/modules/stka.json new file mode 100644 index 0000000..b546921 --- /dev/null +++ b/config/modules/stka.json @@ -0,0 +1,1611 @@ +{ + "name": "stka", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.stka", + "staging_table": "pipekit_staging.stka", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Part/Plant Replenishment Options 6.1", + "columns": [ + { + "source_name": "V6PART", + "source_type": "CHAR(20)", + "dest_name": "v6part", + "dest_type": "text", + "description": "Part Number" + }, + { + "source_name": "V6PLNT", + "source_type": "CHAR(3)", + "dest_name": "v6plnt", + "dest_type": "text", + "description": "Plant Code" + }, + { + "source_name": "V6UNTI", + "source_type": "CHAR(3)", + "dest_name": "v6unti", + "dest_type": "text", + "description": "Unit Of Issue" + }, + { + "source_name": "V6RPLN", + "source_type": "CHAR(1)", + "dest_name": "v6rpln", + "dest_type": "text", + "description": "Replenishment Type" + }, + { + "source_name": "V6TPLN", + "source_type": "CHAR(3)", + "dest_name": "v6tpln", + "dest_type": "text", + "description": "Source Plant" + }, + { + "source_name": "V6TDYS", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6tdys", + "dest_type": "numeric(3,0)", + "description": "Transfer Days" + }, + { + "source_name": "V6MRPS", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6mrps", + "dest_type": "numeric(3,0)", + "description": "MRP Sequence" + }, + { + "source_name": "V6ABCC", + "source_type": "CHAR(1)", + "dest_name": "v6abcc", + "dest_type": "text", + "description": "ABC Code" + }, + { + "source_name": "V6CCPY", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6ccpy", + "dest_type": "numeric(3,0)", + "description": "Cycles Per Year" + }, + { + "source_name": "V6LCDT", + "source_type": "DATE", + "dest_name": "v6lcdt", + "dest_type": "date", + "description": "Last Counted Date" + }, + { + "source_name": "V6DBCC", + "source_type": "DATE", + "dest_name": "v6dbcc", + "dest_type": "date", + "description": "Date Begin Count" + }, + { + "source_name": "V6ORDQ", + "source_type": "NUMERIC(15,5)", + "dest_name": "v6ordq", + "dest_type": "numeric(15,5)", + "description": "Min. Transfer Quantity" + }, + { + "source_name": "V6OPCY", + "source_type": "CHAR(1)", + "dest_name": "v6opcy", + "dest_type": "text", + "description": "Transfer Policy" + }, + { + "source_name": "V6MULT", + "source_type": "DECIMAL(5,0)", + "dest_name": "v6mult", + "dest_type": "numeric(5,0)", + "description": "Transfer Multiplier" + }, + { + "source_name": "V6FUT1", + "source_type": "CHAR(6)", + "dest_name": "v6fut1", + "dest_type": "text", + "description": "Good Reporting Hold Serial" + }, + { + "source_name": "V6FUT2", + "source_type": "CHAR(6)", + "dest_name": "v6fut2", + "dest_type": "text", + "description": "Serial Hold Reason" + }, + { + "source_name": "V6SCDT", + "source_type": "CHAR(1)", + "dest_name": "v6scdt", + "dest_type": "text", + "description": "Schedule Type" + }, + { + "source_name": "V6PLAN", + "source_type": "CHAR(10)", + "dest_name": "v6plan", + "dest_type": "text", + "description": "Buyer/Planner Code" + }, + { + "source_name": "V6CNTR", + "source_type": "CHAR(3)", + "dest_name": "v6cntr", + "dest_type": "text", + "description": "Default Container Code" + }, + { + "source_name": "V6UNTP", + "source_type": "CHAR(3)", + "dest_name": "v6untp", + "dest_type": "text", + "description": "Pricing Unit" + }, + { + "source_name": "V6LVL", + "source_type": "NUMERIC(2,0)", + "dest_name": "v6lvl", + "dest_type": "numeric(2,0)", + "description": "BOM Level" + }, + { + "source_name": "V6PACK", + "source_type": "DECIMAL(15,5)", + "dest_name": "v6pack", + "dest_type": "numeric(15,5)", + "description": "Standard Pack Size" + }, + { + "source_name": "V6PACU", + "source_type": "CHAR(3)", + "dest_name": "v6pacu", + "dest_type": "text", + "description": "Standard Pack Unit" + }, + { + "source_name": "V6PRPT", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6prpt", + "dest_type": "numeric(3,0)", + "description": "Matl Prep Lead Time" + }, + { + "source_name": "V6KITC", + "source_type": "CHAR(1)", + "dest_name": "v6kitc", + "dest_type": "text", + "description": "Kit Code" + }, + { + "source_name": "V6PROC", + "source_type": "CHAR(8)", + "dest_name": "v6proc", + "dest_type": "text", + "description": "Inspection Procedure" + }, + { + "source_name": "V6LRSP", + "source_type": "CHAR(1)", + "dest_name": "v6lrsp", + "dest_type": "text", + "description": "Print Label Receiving" + }, + { + "source_name": "V6LRSC", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6lrsc", + "dest_type": "numeric(3,0)", + "description": "Label Copies Receiving" + }, + { + "source_name": "V6LRSF", + "source_type": "CHAR(3)", + "dest_name": "v6lrsf", + "dest_type": "text", + "description": "Serial Label Format" + }, + { + "source_name": "V6LRMP", + "source_type": "CHAR(1)", + "dest_name": "v6lrmp", + "dest_type": "text", + "description": "Print Master Receiving" + }, + { + "source_name": "V6LRMC", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6lrmc", + "dest_type": "numeric(3,0)", + "description": "Master Copies Receiving" + }, + { + "source_name": "V6LRMF", + "source_type": "CHAR(3)", + "dest_name": "v6lrmf", + "dest_type": "text", + "description": "Master Label Format" + }, + { + "source_name": "V6LWSP", + "source_type": "CHAR(1)", + "dest_name": "v6lwsp", + "dest_type": "text", + "description": "Print Label WIP" + }, + { + "source_name": "V6LWSC", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6lwsc", + "dest_type": "numeric(3,0)", + "description": "Label Copies WIP" + }, + { + "source_name": "V6LWSF", + "source_type": "CHAR(3)", + "dest_name": "v6lwsf", + "dest_type": "text", + "description": "Serial Label Format" + }, + { + "source_name": "V6LCSP", + "source_type": "CHAR(1)", + "dest_name": "v6lcsp", + "dest_type": "text", + "description": "Print Label Production" + }, + { + "source_name": "V6LCSC", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6lcsc", + "dest_type": "numeric(3,0)", + "description": "Label Copies Production" + }, + { + "source_name": "V6LCSF", + "source_type": "CHAR(3)", + "dest_name": "v6lcsf", + "dest_type": "text", + "description": "Serial Label Format" + }, + { + "source_name": "V6LCMP", + "source_type": "CHAR(1)", + "dest_name": "v6lcmp", + "dest_type": "text", + "description": "Print Master Production" + }, + { + "source_name": "V6LCMC", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6lcmc", + "dest_type": "numeric(3,0)", + "description": "Master Copies Production" + }, + { + "source_name": "V6LCMF", + "source_type": "CHAR(3)", + "dest_name": "v6lcmf", + "dest_type": "text", + "description": "Master Label Format" + }, + { + "source_name": "V6LSSC", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6lssc", + "dest_type": "numeric(3,0)", + "description": "Label Copies Shipping" + }, + { + "source_name": "V6LSSF", + "source_type": "CHAR(3)", + "dest_name": "v6lssf", + "dest_type": "text", + "description": "Serial Label Format" + }, + { + "source_name": "V6LSMP", + "source_type": "CHAR(1)", + "dest_name": "v6lsmp", + "dest_type": "text", + "description": "Print Master Shipping" + }, + { + "source_name": "V6LSMC", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6lsmc", + "dest_type": "numeric(3,0)", + "description": "Master Copies Shipping" + }, + { + "source_name": "V6LSMF", + "source_type": "CHAR(3)", + "dest_name": "v6lsmf", + "dest_type": "text", + "description": "Master Label Format" + }, + { + "source_name": "V6MPCK", + "source_type": "DECIMAL(15,5)", + "dest_name": "v6mpck", + "dest_type": "numeric(15,5)", + "description": "Pallet Pack Size" + }, + { + "source_name": "V6MPKU", + "source_type": "CHAR(3)", + "dest_name": "v6mpku", + "dest_type": "text", + "description": "Pallet Pack Unit" + }, + { + "source_name": "V6ALTF", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6altf", + "dest_type": "numeric(3,0)", + "description": "Allocation Time Fence" + }, + { + "source_name": "V6DBUY", + "source_type": "CHAR(1)", + "dest_name": "v6dbuy", + "dest_type": "text", + "description": "Direct Buy" + }, + { + "source_name": "V6SCDP", + "source_type": "NUMERIC(5,0)", + "dest_name": "v6scdp", + "dest_type": "numeric(5,0)", + "description": "Sched. Priority" + }, + { + "source_name": "V6SELP", + "source_type": "CHAR(1)", + "dest_name": "v6selp", + "dest_type": "text", + "description": "Sellable Part" + }, + { + "source_name": "V6RCPS", + "source_type": "NUMERIC(15,5)", + "dest_name": "v6rcps", + "dest_type": "numeric(15,5)", + "description": "Receiving Pack Size" + }, + { + "source_name": "V6RECU", + "source_type": "CHAR(3)", + "dest_name": "v6recu", + "dest_type": "text", + "description": "Receiving Pack Size Unit" + }, + { + "source_name": "V6RECC", + "source_type": "CHAR(3)", + "dest_name": "v6recc", + "dest_type": "text", + "description": "Receiving Container Code" + }, + { + "source_name": "V6FTMF", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6ftmf", + "dest_type": "numeric(3,0)", + "description": "Loading Time Fence" + }, + { + "source_name": "V6CSMU", + "source_type": "CHAR(1)", + "dest_name": "v6csmu", + "dest_type": "text", + "description": "Restrict Cur Std Cost to Manual Update" + }, + { + "source_name": "V6NTKY", + "source_type": "CHAR(20)", + "dest_name": "v6ntky", + "dest_type": "text", + "description": "Part Note Key" + }, + { + "source_name": "V6MINQ", + "source_type": "DECIMAL(15,5)", + "dest_name": "v6minq", + "dest_type": "numeric(15,5)", + "description": "Minimum Quantity" + }, + { + "source_name": "V6MAXQ", + "source_type": "DECIMAL(15,5)", + "dest_name": "v6maxq", + "dest_type": "numeric(15,5)", + "description": "Maximum Quantity" + }, + { + "source_name": "V6MOQT", + "source_type": "DECIMAL(15,5)", + "dest_name": "v6moqt", + "dest_type": "numeric(15,5)", + "description": "Minimum Order Qty" + }, + { + "source_name": "V6ESTV", + "source_type": "DECIMAL(15,5)", + "dest_name": "v6estv", + "dest_type": "numeric(15,5)", + "description": "Estimated Volume" + }, + { + "source_name": "V6CORG", + "source_type": "CHAR(3)", + "dest_name": "v6corg", + "dest_type": "text", + "description": "Country Of Origin (Code)" + }, + { + "source_name": "V6PSOR", + "source_type": "CHAR(3)", + "dest_name": "v6psor", + "dest_type": "text", + "description": "Province/State of Origin" + }, + { + "source_name": "V6STAT", + "source_type": "CHAR(1)", + "dest_name": "v6stat", + "dest_type": "text", + "description": "Inventory Item Status" + }, + { + "source_name": "V6REAS", + "source_type": "CHAR(2)", + "dest_name": "v6reas", + "dest_type": "text", + "description": "Inactive Reason Code" + }, + { + "source_name": "V6AUTY", + "source_type": "CHAR(1)", + "dest_name": "v6auty", + "dest_type": "text", + "description": "Requisition Approval" + }, + { + "source_name": "V6UNTO", + "source_type": "CHAR(3)", + "dest_name": "v6unto", + "dest_type": "text", + "description": "Unit of Order" + }, + { + "source_name": "V6REQC", + "source_type": "CHAR(10)", + "dest_name": "v6reqc", + "dest_type": "text", + "description": "Requistioners Code" + }, + { + "source_name": "V6BUYR", + "source_type": "CHAR(10)", + "dest_name": "v6buyr", + "dest_type": "text", + "description": "Buyer Code" + }, + { + "source_name": "V6LEAD", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6lead", + "dest_type": "numeric(3,0)", + "description": "Manufacturing Lead Time" + }, + { + "source_name": "V6OPTR", + "source_type": "DECIMAL(15,5)", + "dest_name": "v6optr", + "dest_type": "numeric(15,5)", + "description": "Optimum Run/Purch Size" + }, + { + "source_name": "V6MULTP", + "source_type": "DECIMAL(5,0)", + "dest_name": "v6multp", + "dest_type": "numeric(5,0)", + "description": "Production Multiplier" + }, + { + "source_name": "V6MINR", + "source_type": "NUMERIC(15,5)", + "dest_name": "v6minr", + "dest_type": "numeric(15,5)", + "description": "Minimum Run/Purch Quantity" + }, + { + "source_name": "V6PERC", + "source_type": "NUMERIC(8,5)", + "dest_name": "v6perc", + "dest_type": "numeric(8,5)", + "description": "Percent Complete" + }, + { + "source_name": "V6OLA", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6ola", + "dest_type": "numeric(3,0)", + "description": "Obsoleted" + }, + { + "source_name": "V6MPQT", + "source_type": "DECIMAL(15,5)", + "dest_name": "v6mpqt", + "dest_type": "numeric(15,5)", + "description": "Event Based Master Build Notify Quantity" + }, + { + "source_name": "V6DPST", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6dpst", + "dest_type": "numeric(3,0)", + "description": "Days Notice" + }, + { + "source_name": "V6SPDT", + "source_type": "DATE", + "dest_name": "v6spdt", + "dest_type": "date", + "description": "Start of Production Date" + }, + { + "source_name": "V6BBDT", + "source_type": "DATE", + "dest_name": "v6bbdt", + "dest_type": "date", + "description": "Balance/ Build Out Date" + }, + { + "source_name": "V6ORLT", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6orlt", + "dest_type": "numeric(3,0)", + "description": "Order Rel Lead Time" + }, + { + "source_name": "V6AUTR", + "source_type": "CHAR(1)", + "dest_name": "v6autr", + "dest_type": "text", + "description": "MRP Auto Rel WO" + }, + { + "source_name": "V6REPP", + "source_type": "CHAR(1)", + "dest_name": "v6repp", + "dest_type": "text", + "description": "Repetitive Control" + }, + { + "source_name": "V6REPT", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6rept", + "dest_type": "numeric(3,0)", + "description": "Reporting Tolerance %" + }, + { + "source_name": "V6SHRK", + "source_type": "NUMERIC(5,3)", + "dest_name": "v6shrk", + "dest_type": "numeric(5,3)", + "description": "Shrinkage Factor" + }, + { + "source_name": "V6FCFN", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6fcfn", + "dest_type": "numeric(3,0)", + "description": "Forecast Fence" + }, + { + "source_name": "V6AUTO", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6auto", + "dest_type": "numeric(3,0)", + "description": "Obsoleted" + }, + { + "source_name": "V6OLOK", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6olok", + "dest_type": "numeric(3,0)", + "description": "Order Look Ahead" + }, + { + "source_name": "V6OEPY", + "source_type": "CHAR(1)", + "dest_name": "v6oepy", + "dest_type": "text", + "description": "Order Policy" + }, + { + "source_name": "V6PRFR", + "source_type": "CHAR(3)", + "dest_name": "v6prfr", + "dest_type": "text", + "description": "Production Frequency" + }, + { + "source_name": "V6CMTL", + "source_type": "CHAR(20)", + "dest_name": "v6cmtl", + "dest_type": "text", + "description": "Common Material Part" + }, + { + "source_name": "V6DRWS", + "source_type": "CHAR(1)", + "dest_name": "v6drws", + "dest_type": "text", + "description": "Drawing Size" + }, + { + "source_name": "V6DRWL", + "source_type": "CHAR(4)", + "dest_name": "v6drwl", + "dest_type": "text", + "description": "Drawing Location" + }, + { + "source_name": "V6DENC", + "source_type": "CHAR(11)", + "dest_name": "v6denc", + "dest_type": "text", + "description": "Drawing Engineering Change #" + }, + { + "source_name": "V6DREL", + "source_type": "CHAR(3)", + "dest_name": "v6drel", + "dest_type": "text", + "description": "Drawing Revision Level" + }, + { + "source_name": "V6DDAT", + "source_type": "DATE", + "dest_name": "v6ddat", + "dest_type": "date", + "description": "Drawing Revision Date" + }, + { + "source_name": "V6DRWN", + "source_type": "CHAR(20)", + "dest_name": "v6drwn", + "dest_type": "text", + "description": "Drawing Number" + }, + { + "source_name": "V6DRWS2", + "source_type": "CHAR(1)", + "dest_name": "v6drws2", + "dest_type": "text", + "description": "Drawing 2 Size" + }, + { + "source_name": "V6DRWL2", + "source_type": "CHAR(4)", + "dest_name": "v6drwl2", + "dest_type": "text", + "description": "Drawing 2 Location" + }, + { + "source_name": "V6DENC2", + "source_type": "CHAR(11)", + "dest_name": "v6denc2", + "dest_type": "text", + "description": "Drawing 2 Engineering Change #" + }, + { + "source_name": "V6DREL2", + "source_type": "CHAR(3)", + "dest_name": "v6drel2", + "dest_type": "text", + "description": "Drawing 2 Revision Level" + }, + { + "source_name": "V6DDAT2", + "source_type": "DATE", + "dest_name": "v6ddat2", + "dest_type": "date", + "description": "Drawing 2 Revision Date" + }, + { + "source_name": "V6DRWN2", + "source_type": "CHAR(20)", + "dest_name": "v6drwn2", + "dest_type": "text", + "description": "Drawing 2 Number" + }, + { + "source_name": "V6LOTF", + "source_type": "CHAR(1)", + "dest_name": "v6lotf", + "dest_type": "text", + "description": "Lot Mandatory Y/N" + }, + { + "source_name": "V6SERF", + "source_type": "CHAR(1)", + "dest_name": "v6serf", + "dest_type": "text", + "description": "Serialized Mandatory Y/N" + }, + { + "source_name": "V6LOTB", + "source_type": "CHAR(1)", + "dest_name": "v6lotb", + "dest_type": "text", + "description": "Maintain Lot Balance Y/N" + }, + { + "source_name": "V6LOTA", + "source_type": "CHAR(1)", + "dest_name": "v6lota", + "dest_type": "text", + "description": "Lot Association Y/N" + }, + { + "source_name": "V6LOTV", + "source_type": "CHAR(1)", + "dest_name": "v6lotv", + "dest_type": "text", + "description": "Lot# Validation Y/N" + }, + { + "source_name": "V6STCL", + "source_type": "CHAR(3)", + "dest_name": "v6stcl", + "dest_type": "text", + "description": "Storage Class" + }, + { + "source_name": "V6VLCD", + "source_type": "CHAR(3)", + "dest_name": "v6vlcd", + "dest_type": "text", + "description": "Velocity Code" + }, + { + "source_name": "V6SPPP", + "source_type": "NUMERIC(4,0)", + "dest_name": "v6sppp", + "dest_type": "numeric(4,0)", + "description": "Stnd Pack Per Pallet" + }, + { + "source_name": "V6SPPC", + "source_type": "CHAR(50)", + "dest_name": "v6sppc", + "dest_type": "text", + "description": "Stnd Pack Pallet Comment" + }, + { + "source_name": "V6MPPP", + "source_type": "NUMERIC(4,0)", + "dest_name": "v6mppp", + "dest_type": "numeric(4,0)", + "description": "Mast Pack Per Pallet" + }, + { + "source_name": "V6MPPC", + "source_type": "CHAR(50)", + "dest_name": "v6mppc", + "dest_type": "text", + "description": "Mast Pack Pallet Comment" + }, + { + "source_name": "V6FRML", + "source_type": "CHAR(6)", + "dest_name": "v6frml", + "dest_type": "text", + "description": "Default Draw From Location" + }, + { + "source_name": "V6ISTR", + "source_type": "CHAR(6)", + "dest_name": "v6istr", + "dest_type": "text", + "description": "Material Issue Location" + }, + { + "source_name": "V6ENGC", + "source_type": "CHAR(11)", + "dest_name": "v6engc", + "dest_type": "text", + "description": "Engineering Change #" + }, + { + "source_name": "V6REVL", + "source_type": "CHAR(3)", + "dest_name": "v6revl", + "dest_type": "text", + "description": "Revision Level" + }, + { + "source_name": "V6RDAT", + "source_type": "DATE", + "dest_name": "v6rdat", + "dest_type": "date", + "description": "Revision Date" + }, + { + "source_name": "V6RCVLC", + "source_type": "CHAR(6)", + "dest_name": "v6rcvlc", + "dest_type": "text", + "description": "Receive To Location" + }, + { + "source_name": "V6SFLC", + "source_type": "CHAR(6)", + "dest_name": "v6sflc", + "dest_type": "text", + "description": "Default Ship-From Location" + }, + { + "source_name": "V6CUSR", + "source_type": "CHAR(10)", + "dest_name": "v6cusr", + "dest_type": "text", + "description": "Created By User" + }, + { + "source_name": "V6CDAT", + "source_type": "DATE", + "dest_name": "v6cdat", + "dest_type": "date", + "description": "Date Created" + }, + { + "source_name": "V6CTME", + "source_type": "TIME", + "dest_name": "v6ctme", + "dest_type": "time", + "description": "Time Created" + }, + { + "source_name": "V6UUSR", + "source_type": "CHAR(10)", + "dest_name": "v6uusr", + "dest_type": "text", + "description": "Updated By User" + }, + { + "source_name": "V6UDAT", + "source_type": "DATE", + "dest_name": "v6udat", + "dest_type": "date", + "description": "Date Updated" + }, + { + "source_name": "V6UTME", + "source_type": "TIME", + "dest_name": "v6utme", + "dest_type": "time", + "description": "Time Updated" + }, + { + "source_name": "V6FUT3", + "source_type": "CHAR(10)", + "dest_name": "v6fut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT4", + "source_type": "CHAR(10)", + "dest_name": "v6fut4", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT5", + "source_type": "CHAR(20)", + "dest_name": "v6fut5", + "dest_type": "text", + "description": "Use Label Qty as BOL Part Weight" + }, + { + "source_name": "V6FLG1", + "source_type": "CHAR(1)", + "dest_name": "v6flg1", + "dest_type": "text", + "description": "Support Serial Manufacturing Date" + }, + { + "source_name": "V6FLG2", + "source_type": "CHAR(1)", + "dest_name": "v6flg2", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FLG3", + "source_type": "CHAR(1)", + "dest_name": "v6flg3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FLG4", + "source_type": "CHAR(1)", + "dest_name": "v6flg4", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FLG5", + "source_type": "CHAR(1)", + "dest_name": "v6flg5", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FLG6", + "source_type": "CHAR(1)", + "dest_name": "v6flg6", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FLG7", + "source_type": "CHAR(1)", + "dest_name": "v6flg7", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FLG8", + "source_type": "CHAR(1)", + "dest_name": "v6flg8", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FLG9", + "source_type": "CHAR(1)", + "dest_name": "v6flg9", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FLG10", + "source_type": "CHAR(1)", + "dest_name": "v6flg10", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT6", + "source_type": "NUMERIC(15,5)", + "dest_name": "v6fut6", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "V6FUT7", + "source_type": "CHAR(5)", + "dest_name": "v6fut7", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT8", + "source_type": "CHAR(5)", + "dest_name": "v6fut8", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT9", + "source_type": "CHAR(5)", + "dest_name": "v6fut9", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT10", + "source_type": "CHAR(5)", + "dest_name": "v6fut10", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT11", + "source_type": "CHAR(10)", + "dest_name": "v6fut11", + "dest_type": "text", + "description": "Product Family" + }, + { + "source_name": "V6FUT12", + "source_type": "CHAR(10)", + "dest_name": "v6fut12", + "dest_type": "text", + "description": "Product Type" + }, + { + "source_name": "V6FUT13", + "source_type": "CHAR(10)", + "dest_name": "v6fut13", + "dest_type": "text", + "description": "Product Group" + }, + { + "source_name": "V6FUT14", + "source_type": "CHAR(10)", + "dest_name": "v6fut14", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT15", + "source_type": "CHAR(10)", + "dest_name": "v6fut15", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT16", + "source_type": "CHAR(20)", + "dest_name": "v6fut16", + "dest_type": "text", + "description": "Product Detail" + }, + { + "source_name": "V6FUT17", + "source_type": "CHAR(20)", + "dest_name": "v6fut17", + "dest_type": "text", + "description": "Product Brand" + }, + { + "source_name": "V6FUT18", + "source_type": "CHAR(20)", + "dest_name": "v6fut18", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT19", + "source_type": "CHAR(20)", + "dest_name": "v6fut19", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT20", + "source_type": "CHAR(20)", + "dest_name": "v6fut20", + "dest_type": "text", + "description": "Allow Vendor Part Price Maintenance" + }, + { + "source_name": "V6FUT21", + "source_type": "CHAR(30)", + "dest_name": "v6fut21", + "dest_type": "text", + "description": "Output Queue for Real-Time Swap" + }, + { + "source_name": "V6FUT22", + "source_type": "CHAR(30)", + "dest_name": "v6fut22", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT23", + "source_type": "CHAR(30)", + "dest_name": "v6fut23", + "dest_type": "text", + "description": "Support Receiving Label Expiry Date" + }, + { + "source_name": "V6FUT24", + "source_type": "CHAR(30)", + "dest_name": "v6fut24", + "dest_type": "text", + "description": "Shop Floor Default Output Queue" + }, + { + "source_name": "V6FUT25", + "source_type": "CHAR(30)", + "dest_name": "v6fut25", + "dest_type": "text", + "description": "Virtual Kanban Demand Profile" + }, + { + "source_name": "V6FUT26", + "source_type": "NUMERIC(10,0)", + "dest_name": "v6fut26", + "dest_type": "numeric(10,0)", + "description": "Future Use" + }, + { + "source_name": "V6FUT27", + "source_type": "NUMERIC(10,0)", + "dest_name": "v6fut27", + "dest_type": "numeric(10,0)", + "description": "Future Use" + }, + { + "source_name": "V6FUT28", + "source_type": "NUMERIC(10,0)", + "dest_name": "v6fut28", + "dest_type": "numeric(10,0)", + "description": "Future Use" + }, + { + "source_name": "V6FUT29", + "source_type": "NUMERIC(10,0)", + "dest_name": "v6fut29", + "dest_type": "numeric(10,0)", + "description": "Future Use" + }, + { + "source_name": "V6FUT30", + "source_type": "NUMERIC(10,0)", + "dest_name": "v6fut30", + "dest_type": "numeric(10,0)", + "description": "Future Use" + }, + { + "source_name": "V6FUT31", + "source_type": "NUMERIC(15,0)", + "dest_name": "v6fut31", + "dest_type": "numeric(15,0)", + "description": "Future Use" + }, + { + "source_name": "V6FUT32", + "source_type": "NUMERIC(15,0)", + "dest_name": "v6fut32", + "dest_type": "numeric(15,0)", + "description": "Future Use" + }, + { + "source_name": "V6FUT33", + "source_type": "NUMERIC(15,0)", + "dest_name": "v6fut33", + "dest_type": "numeric(15,0)", + "description": "Future Use" + }, + { + "source_name": "V6FUT34", + "source_type": "NUMERIC(15,0)", + "dest_name": "v6fut34", + "dest_type": "numeric(15,0)", + "description": "Future Use" + }, + { + "source_name": "V6FUT35", + "source_type": "NUMERIC(15,0)", + "dest_name": "v6fut35", + "dest_type": "numeric(15,0)", + "description": "Virtual Kanban Manual Demand (IU)" + }, + { + "source_name": "V6FUT36", + "source_type": "DATE", + "dest_name": "v6fut36", + "dest_type": "date", + "description": "Future Use" + }, + { + "source_name": "V6FUT37", + "source_type": "DATE", + "dest_name": "v6fut37", + "dest_type": "date", + "description": "Future Use" + }, + { + "source_name": "V6FUT38", + "source_type": "DATE", + "dest_name": "v6fut38", + "dest_type": "date", + "description": "Future Use" + }, + { + "source_name": "V6FUT39", + "source_type": "DATE", + "dest_name": "v6fut39", + "dest_type": "date", + "description": "Future Use" + }, + { + "source_name": "V6FUT40", + "source_type": "DATE", + "dest_name": "v6fut40", + "dest_type": "date", + "description": "Future Use" + }, + { + "source_name": "V6FUT41", + "source_type": "TIME", + "dest_name": "v6fut41", + "dest_type": "time", + "description": "Future Use" + }, + { + "source_name": "V6FUT42", + "source_type": "TIME", + "dest_name": "v6fut42", + "dest_type": "time", + "description": "Future Use" + }, + { + "source_name": "V6FUT43", + "source_type": "TIME", + "dest_name": "v6fut43", + "dest_type": "time", + "description": "Future Use" + }, + { + "source_name": "V6FUT44", + "source_type": "TIME", + "dest_name": "v6fut44", + "dest_type": "time", + "description": "Future Use" + }, + { + "source_name": "V6FUT45", + "source_type": "TIME", + "dest_name": "v6fut45", + "dest_type": "time", + "description": "Future Use" + }, + { + "source_name": "V6PRCL", + "source_type": "CHAR(1)", + "dest_name": "v6prcl", + "dest_type": "text", + "description": "Price Lock" + }, + { + "source_name": "V6DBAC", + "source_type": "CHAR(1)", + "dest_name": "v6dbac", + "dest_type": "text", + "description": "Direct Buy Action" + }, + { + "source_name": "V6SCDPT", + "source_type": "CHAR(1)", + "dest_name": "v6scdpt", + "dest_type": "text", + "description": "SCD Part" + }, + { + "source_name": "V6APSUP", + "source_type": "CHAR(1)", + "dest_name": "v6apsup", + "dest_type": "text", + "description": "Requires Approved Supplier" + }, + { + "source_name": "V6MATP", + "source_type": "CHAR(1)", + "dest_name": "v6matp", + "dest_type": "text", + "description": "Mattec Part" + }, + { + "source_name": "V6MATM", + "source_type": "CHAR(1)", + "dest_name": "v6matm", + "dest_type": "text", + "description": "Mattec Material Type" + }, + { + "source_name": "V6MESC", + "source_type": "CHAR(1)", + "dest_name": "v6mesc", + "dest_type": "text", + "description": "Generate ME COGS for Service Charged" + }, + { + "source_name": "V6CRTM", + "source_type": "CHAR(1)", + "dest_name": "v6crtm", + "dest_type": "text", + "description": "Crt. Singl Mst S er for Rcv. Serials" + }, + { + "source_name": "V6LLED", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6lled", + "dest_type": "numeric(3,0)", + "description": "Longest Lead Time (in days)" + }, + { + "source_name": "V6PCTR", + "source_type": "CHAR(3)", + "dest_name": "v6pctr", + "dest_type": "text", + "description": "Pallet Container Code" + }, + { + "source_name": "V6INQU", + "source_type": "CHAR(3)", + "dest_name": "v6inqu", + "dest_type": "text", + "description": "Availability Inquiry Display Unit" + }, + { + "source_name": "V6CLEXP", + "source_type": "CHAR(1)", + "dest_name": "v6clexp", + "dest_type": "text", + "description": "Check Lot Expiry Date for Manual Issue" + }, + { + "source_name": "V6ATPDRP", + "source_type": "CHAR(1)", + "dest_name": "v6atpdrp", + "dest_type": "text", + "description": "Auto-create Prod Reporting for Toyota Manifest Shi" + }, + { + "source_name": "V6CPJGL", + "source_type": "CHAR(1)", + "dest_name": "v6cpjgl", + "dest_type": "text", + "description": "Create Project G/L At Actual Cost For Manual Serl" + }, + { + "source_name": "V6SHLOTM", + "source_type": "CHAR(1)", + "dest_name": "v6shlotm", + "dest_type": "text", + "description": "Customer Shipment Lot Mandatory" + }, + { + "source_name": "V6WTYSHP", + "source_type": "CHAR(1)", + "dest_name": "v6wtyshp", + "dest_type": "text", + "description": "Part Under Warnty On Customer Shipment" + }, + { + "source_name": "V6BSLTM", + "source_type": "CHAR(1)", + "dest_name": "v6bsltm", + "dest_type": "text", + "description": "Build Rcv Serials to Rcv Master" + }, + { + "source_name": "V6RQORDI", + "source_type": "CHAR(1)", + "dest_name": "v6rqordi", + "dest_type": "text", + "description": "Event Reporting Requires Order Info" + }, + { + "source_name": "V6MBUNT", + "source_type": "CHAR(3)", + "dest_name": "v6mbunt", + "dest_type": "text", + "description": "Unit for Event Based Master Build Notify Quantity" + }, + { + "source_name": "V6RQRVQC", + "source_type": "CHAR(1)", + "dest_name": "v6rqrvqc", + "dest_type": "text", + "description": "Require First-Time Receiving QC Inspection" + }, + { + "source_name": "V6IEEDTC", + "source_type": "CHAR(1)", + "dest_name": "v6ieedtc", + "dest_type": "text", + "description": "Include/Exclude in Serial Earlier Date Check" + }, + { + "source_name": "V6UTDAY", + "source_type": "CHAR(1)", + "dest_name": "v6utday", + "dest_type": "text", + "description": "Use Tolerable Days In Serl Earlier Act Date Chk" + }, + { + "source_name": "V6INSTKR", + "source_type": "CHAR(1)", + "dest_name": "v6instkr", + "dest_type": "text", + "description": "Stockroom Inclusion In Serl Earlier Act Date Chk" + }, + { + "source_name": "V6ATSPK", + "source_type": "CHAR(10)", + "dest_name": "v6atspk", + "dest_type": "text", + "description": "ATS Pick Group" + }, + { + "source_name": "V6CCPTCP", + "source_type": "CHAR(20)", + "dest_name": "v6ccptcp", + "dest_type": "text", + "description": "Cert of Compliance Part Control Plan" + }, + { + "source_name": "V6CALMB", + "source_type": "CHAR(1)", + "dest_name": "v6calmb", + "dest_type": "text", + "description": "Calculate Minimum Balance" + }, + { + "source_name": "V6MBCALM", + "source_type": "CHAR(1)", + "dest_name": "v6mbcalm", + "dest_type": "text", + "description": "Minimum Balance Calculation Mode" + }, + { + "source_name": "V6CALITV", + "source_type": "CHAR(1)", + "dest_name": "v6calitv", + "dest_type": "text", + "description": "Calculation Mode Interval" + }, + { + "source_name": "V6PCTNCN", + "source_type": "NUMERIC(10,0)", + "dest_name": "v6pctncn", + "dest_type": "numeric(10,0)", + "description": "Pallet Container Configuration Number" + }, + { + "source_name": "V6PDPMLT", + "source_type": "NUMERIC(5,0)", + "dest_name": "v6pdpmlt", + "dest_type": "numeric(5,0)", + "description": "Production Pallet Multiple" + }, + { + "source_name": "V6SHPMLT", + "source_type": "NUMERIC(5,0)", + "dest_name": "v6shpmlt", + "dest_type": "numeric(5,0)", + "description": "Shipping Pallet Multiple" + }, + { + "source_name": "V6TOLD", + "source_type": "NUMERIC(4,0)", + "dest_name": "v6told", + "dest_type": "numeric(4,0)", + "description": "Tolerable Days In Serl Earlier Act Date Chk" + }, + { + "source_name": "V6NITV", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6nitv", + "dest_type": "numeric(3,0)", + "description": "Number of Interval" + }, + { + "source_name": "V6LNITV", + "source_type": "NUMERIC(3,0)", + "dest_name": "v6lnitv", + "dest_type": "numeric(3,0)", + "description": "Last Number of Interval" + }, + { + "source_name": "V6MINDV", + "source_type": "NUMERIC(8,2)", + "dest_name": "v6mindv", + "dest_type": "numeric(8,2)", + "description": "Minimum Dollar Value" + }, + { + "source_name": "V6HJPP", + "source_type": "CHAR(10)", + "dest_name": "v6hjpp", + "dest_type": "text", + "description": "Heijunka Part Profile" + }, + { + "source_name": "V6USHJ", + "source_type": "CHAR(1)", + "dest_name": "v6ushj", + "dest_type": "text", + "description": "Use Heijunka Smoothing" + }, + { + "source_name": "V6USHP", + "source_type": "CHAR(1)", + "dest_name": "v6ushp", + "dest_type": "text", + "description": "Use Heijunka Pattern" + }, + { + "source_name": "V6FUT46", + "source_type": "CHAR(10)", + "dest_name": "v6fut46", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT47", + "source_type": "CHAR(10)", + "dest_name": "v6fut47", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT48", + "source_type": "CHAR(10)", + "dest_name": "v6fut48", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT49", + "source_type": "CHAR(20)", + "dest_name": "v6fut49", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT50", + "source_type": "CHAR(20)", + "dest_name": "v6fut50", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT51", + "source_type": "CHAR(20)", + "dest_name": "v6fut51", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT52", + "source_type": "CHAR(30)", + "dest_name": "v6fut52", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT53", + "source_type": "CHAR(30)", + "dest_name": "v6fut53", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "V6FUT54", + "source_type": "NUMERIC(15,5)", + "dest_name": "v6fut54", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "V6FUT55", + "source_type": "NUMERIC(15,5)", + "dest_name": "v6fut55", + "dest_type": "numeric(15,5)", + "description": "Future Use" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/stka.sql b/config/modules/stka.sql new file mode 100644 index 0000000..cf1d8f0 --- /dev/null +++ b/config/modules/stka.sql @@ -0,0 +1,230 @@ +SELECT + RTRIM(V6PART) AS v6part, + RTRIM(V6PLNT) AS v6plnt, + RTRIM(V6UNTI) AS v6unti, + RTRIM(V6RPLN) AS v6rpln, + RTRIM(V6TPLN) AS v6tpln, + V6TDYS AS v6tdys, + V6MRPS AS v6mrps, + RTRIM(V6ABCC) AS v6abcc, + V6CCPY AS v6ccpy, + CASE WHEN V6LCDT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6LCDT END AS v6lcdt, + CASE WHEN V6DBCC IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6DBCC END AS v6dbcc, + V6ORDQ AS v6ordq, + RTRIM(V6OPCY) AS v6opcy, + V6MULT AS v6mult, + RTRIM(V6FUT1) AS v6fut1, + RTRIM(V6FUT2) AS v6fut2, + RTRIM(V6SCDT) AS v6scdt, + RTRIM(V6PLAN) AS v6plan, + RTRIM(V6CNTR) AS v6cntr, + RTRIM(V6UNTP) AS v6untp, + V6LVL AS v6lvl, + V6PACK AS v6pack, + RTRIM(V6PACU) AS v6pacu, + V6PRPT AS v6prpt, + RTRIM(V6KITC) AS v6kitc, + RTRIM(V6PROC) AS v6proc, + RTRIM(V6LRSP) AS v6lrsp, + V6LRSC AS v6lrsc, + RTRIM(V6LRSF) AS v6lrsf, + RTRIM(V6LRMP) AS v6lrmp, + V6LRMC AS v6lrmc, + RTRIM(V6LRMF) AS v6lrmf, + RTRIM(V6LWSP) AS v6lwsp, + V6LWSC AS v6lwsc, + RTRIM(V6LWSF) AS v6lwsf, + RTRIM(V6LCSP) AS v6lcsp, + V6LCSC AS v6lcsc, + RTRIM(V6LCSF) AS v6lcsf, + RTRIM(V6LCMP) AS v6lcmp, + V6LCMC AS v6lcmc, + RTRIM(V6LCMF) AS v6lcmf, + V6LSSC AS v6lssc, + RTRIM(V6LSSF) AS v6lssf, + RTRIM(V6LSMP) AS v6lsmp, + V6LSMC AS v6lsmc, + RTRIM(V6LSMF) AS v6lsmf, + V6MPCK AS v6mpck, + RTRIM(V6MPKU) AS v6mpku, + V6ALTF AS v6altf, + RTRIM(V6DBUY) AS v6dbuy, + V6SCDP AS v6scdp, + RTRIM(V6SELP) AS v6selp, + V6RCPS AS v6rcps, + RTRIM(V6RECU) AS v6recu, + RTRIM(V6RECC) AS v6recc, + V6FTMF AS v6ftmf, + RTRIM(V6CSMU) AS v6csmu, + RTRIM(V6NTKY) AS v6ntky, + V6MINQ AS v6minq, + V6MAXQ AS v6maxq, + V6MOQT AS v6moqt, + V6ESTV AS v6estv, + RTRIM(V6CORG) AS v6corg, + RTRIM(V6PSOR) AS v6psor, + RTRIM(V6STAT) AS v6stat, + RTRIM(V6REAS) AS v6reas, + RTRIM(V6AUTY) AS v6auty, + RTRIM(V6UNTO) AS v6unto, + RTRIM(V6REQC) AS v6reqc, + RTRIM(V6BUYR) AS v6buyr, + V6LEAD AS v6lead, + V6OPTR AS v6optr, + V6MULTP AS v6multp, + V6MINR AS v6minr, + V6PERC AS v6perc, + V6OLA AS v6ola, + V6MPQT AS v6mpqt, + V6DPST AS v6dpst, + CASE WHEN V6SPDT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6SPDT END AS v6spdt, + CASE WHEN V6BBDT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6BBDT END AS v6bbdt, + V6ORLT AS v6orlt, + RTRIM(V6AUTR) AS v6autr, + RTRIM(V6REPP) AS v6repp, + V6REPT AS v6rept, + V6SHRK AS v6shrk, + V6FCFN AS v6fcfn, + V6AUTO AS v6auto, + V6OLOK AS v6olok, + RTRIM(V6OEPY) AS v6oepy, + RTRIM(V6PRFR) AS v6prfr, + RTRIM(V6CMTL) AS v6cmtl, + RTRIM(V6DRWS) AS v6drws, + RTRIM(V6DRWL) AS v6drwl, + RTRIM(V6DENC) AS v6denc, + RTRIM(V6DREL) AS v6drel, + CASE WHEN V6DDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6DDAT END AS v6ddat, + RTRIM(V6DRWN) AS v6drwn, + RTRIM(V6DRWS2) AS v6drws2, + RTRIM(V6DRWL2) AS v6drwl2, + RTRIM(V6DENC2) AS v6denc2, + RTRIM(V6DREL2) AS v6drel2, + CASE WHEN V6DDAT2 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6DDAT2 END AS v6ddat2, + RTRIM(V6DRWN2) AS v6drwn2, + RTRIM(V6LOTF) AS v6lotf, + RTRIM(V6SERF) AS v6serf, + RTRIM(V6LOTB) AS v6lotb, + RTRIM(V6LOTA) AS v6lota, + RTRIM(V6LOTV) AS v6lotv, + RTRIM(V6STCL) AS v6stcl, + RTRIM(V6VLCD) AS v6vlcd, + V6SPPP AS v6sppp, + RTRIM(V6SPPC) AS v6sppc, + V6MPPP AS v6mppp, + RTRIM(V6MPPC) AS v6mppc, + RTRIM(V6FRML) AS v6frml, + RTRIM(V6ISTR) AS v6istr, + RTRIM(V6ENGC) AS v6engc, + RTRIM(V6REVL) AS v6revl, + CASE WHEN V6RDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6RDAT END AS v6rdat, + RTRIM(V6RCVLC) AS v6rcvlc, + RTRIM(V6SFLC) AS v6sflc, + RTRIM(V6CUSR) AS v6cusr, + CASE WHEN V6CDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6CDAT END AS v6cdat, + V6CTME AS v6ctme, + RTRIM(V6UUSR) AS v6uusr, + CASE WHEN V6UDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6UDAT END AS v6udat, + V6UTME AS v6utme, + RTRIM(V6FUT3) AS v6fut3, + RTRIM(V6FUT4) AS v6fut4, + RTRIM(V6FUT5) AS v6fut5, + RTRIM(V6FLG1) AS v6flg1, + RTRIM(V6FLG2) AS v6flg2, + RTRIM(V6FLG3) AS v6flg3, + RTRIM(V6FLG4) AS v6flg4, + RTRIM(V6FLG5) AS v6flg5, + RTRIM(V6FLG6) AS v6flg6, + RTRIM(V6FLG7) AS v6flg7, + RTRIM(V6FLG8) AS v6flg8, + RTRIM(V6FLG9) AS v6flg9, + RTRIM(V6FLG10) AS v6flg10, + V6FUT6 AS v6fut6, + RTRIM(V6FUT7) AS v6fut7, + RTRIM(V6FUT8) AS v6fut8, + RTRIM(V6FUT9) AS v6fut9, + RTRIM(V6FUT10) AS v6fut10, + RTRIM(V6FUT11) AS v6fut11, + RTRIM(V6FUT12) AS v6fut12, + RTRIM(V6FUT13) AS v6fut13, + RTRIM(V6FUT14) AS v6fut14, + RTRIM(V6FUT15) AS v6fut15, + RTRIM(V6FUT16) AS v6fut16, + RTRIM(V6FUT17) AS v6fut17, + RTRIM(V6FUT18) AS v6fut18, + RTRIM(V6FUT19) AS v6fut19, + RTRIM(V6FUT20) AS v6fut20, + RTRIM(V6FUT21) AS v6fut21, + RTRIM(V6FUT22) AS v6fut22, + RTRIM(V6FUT23) AS v6fut23, + RTRIM(V6FUT24) AS v6fut24, + RTRIM(V6FUT25) AS v6fut25, + V6FUT26 AS v6fut26, + V6FUT27 AS v6fut27, + V6FUT28 AS v6fut28, + V6FUT29 AS v6fut29, + V6FUT30 AS v6fut30, + V6FUT31 AS v6fut31, + V6FUT32 AS v6fut32, + V6FUT33 AS v6fut33, + V6FUT34 AS v6fut34, + V6FUT35 AS v6fut35, + CASE WHEN V6FUT36 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6FUT36 END AS v6fut36, + CASE WHEN V6FUT37 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6FUT37 END AS v6fut37, + CASE WHEN V6FUT38 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6FUT38 END AS v6fut38, + CASE WHEN V6FUT39 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6FUT39 END AS v6fut39, + CASE WHEN V6FUT40 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6FUT40 END AS v6fut40, + V6FUT41 AS v6fut41, + V6FUT42 AS v6fut42, + V6FUT43 AS v6fut43, + V6FUT44 AS v6fut44, + V6FUT45 AS v6fut45, + RTRIM(V6PRCL) AS v6prcl, + RTRIM(V6DBAC) AS v6dbac, + RTRIM(V6SCDPT) AS v6scdpt, + RTRIM(V6APSUP) AS v6apsup, + RTRIM(V6MATP) AS v6matp, + RTRIM(V6MATM) AS v6matm, + RTRIM(V6MESC) AS v6mesc, + RTRIM(V6CRTM) AS v6crtm, + V6LLED AS v6lled, + RTRIM(V6PCTR) AS v6pctr, + RTRIM(V6INQU) AS v6inqu, + RTRIM(V6CLEXP) AS v6clexp, + RTRIM(V6ATPDRP) AS v6atpdrp, + RTRIM(V6CPJGL) AS v6cpjgl, + RTRIM(V6SHLOTM) AS v6shlotm, + RTRIM(V6WTYSHP) AS v6wtyshp, + RTRIM(V6BSLTM) AS v6bsltm, + RTRIM(V6RQORDI) AS v6rqordi, + RTRIM(V6MBUNT) AS v6mbunt, + RTRIM(V6RQRVQC) AS v6rqrvqc, + RTRIM(V6IEEDTC) AS v6ieedtc, + RTRIM(V6UTDAY) AS v6utday, + RTRIM(V6INSTKR) AS v6instkr, + RTRIM(V6ATSPK) AS v6atspk, + RTRIM(V6CCPTCP) AS v6ccptcp, + RTRIM(V6CALMB) AS v6calmb, + RTRIM(V6MBCALM) AS v6mbcalm, + RTRIM(V6CALITV) AS v6calitv, + V6PCTNCN AS v6pctncn, + V6PDPMLT AS v6pdpmlt, + V6SHPMLT AS v6shpmlt, + V6TOLD AS v6told, + V6NITV AS v6nitv, + V6LNITV AS v6lnitv, + V6MINDV AS v6mindv, + RTRIM(V6HJPP) AS v6hjpp, + RTRIM(V6USHJ) AS v6ushj, + RTRIM(V6USHP) AS v6ushp, + RTRIM(V6FUT46) AS v6fut46, + RTRIM(V6FUT47) AS v6fut47, + RTRIM(V6FUT48) AS v6fut48, + RTRIM(V6FUT49) AS v6fut49, + RTRIM(V6FUT50) AS v6fut50, + RTRIM(V6FUT51) AS v6fut51, + RTRIM(V6FUT52) AS v6fut52, + RTRIM(V6FUT53) AS v6fut53, + V6FUT54 AS v6fut54, + V6FUT55 AS v6fut55 +FROM LGDAT.STKA diff --git a/config/modules/stkmm.json b/config/modules/stkmm.json new file mode 100644 index 0000000..33b50c2 --- /dev/null +++ b/config/modules/stkmm.json @@ -0,0 +1,1730 @@ +{ + "name": "stkmm", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.stkmm", + "staging_table": "pipekit_staging.stkmm", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Global Item Master-Manufactured Parts 6.0", + "columns": [ + { + "source_name": "AVPART", + "source_type": "CHAR(20)", + "dest_name": "avpart", + "dest_type": "text", + "description": "Part Number" + }, + { + "source_name": "AVDES1", + "source_type": "CHAR(30)", + "dest_name": "avdes1", + "dest_type": "text", + "description": "Description 1" + }, + { + "source_name": "AVDES2", + "source_type": "CHAR(30)", + "dest_name": "avdes2", + "dest_type": "text", + "description": "Description 2" + }, + { + "source_name": "AVDES3", + "source_type": "CHAR(30)", + "dest_name": "avdes3", + "dest_type": "text", + "description": "Description 3" + }, + { + "source_name": "AVUNTI", + "source_type": "CHAR(3)", + "dest_name": "avunti", + "dest_type": "text", + "description": "Dft Unit of Issue" + }, + { + "source_name": "AVMAJG", + "source_type": "CHAR(3)", + "dest_name": "avmajg", + "dest_type": "text", + "description": "Major Group Code" + }, + { + "source_name": "AVMING", + "source_type": "CHAR(3)", + "dest_name": "avming", + "dest_type": "text", + "description": "Minor Group Code" + }, + { + "source_name": "AVMAJS", + "source_type": "CHAR(3)", + "dest_name": "avmajs", + "dest_type": "text", + "description": "Major Sales Code" + }, + { + "source_name": "AVMINS", + "source_type": "CHAR(3)", + "dest_name": "avmins", + "dest_type": "text", + "description": "Minor Sales Code" + }, + { + "source_name": "AVGLCD", + "source_type": "CHAR(3)", + "dest_name": "avglcd", + "dest_type": "text", + "description": "G/L Sales Code" + }, + { + "source_name": "AVGLED", + "source_type": "CHAR(3)", + "dest_name": "avgled", + "dest_type": "text", + "description": "G/L Expense Code" + }, + { + "source_name": "AVHARM", + "source_type": "CHAR(13)", + "dest_name": "avharm", + "dest_type": "text", + "description": "Harmonization #" + }, + { + "source_name": "AVCLSS", + "source_type": "CHAR(3)", + "dest_name": "avclss", + "dest_type": "text", + "description": "Inventory Class Code" + }, + { + "source_name": "AVFUT3", + "source_type": "CHAR(20)", + "dest_name": "avfut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFUT4", + "source_type": "CHAR(20)", + "dest_name": "avfut4", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFUT5", + "source_type": "CHAR(20)", + "dest_name": "avfut5", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFUTC", + "source_type": "CHAR(10)", + "dest_name": "avfutc", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFUTD", + "source_type": "CHAR(10)", + "dest_name": "avfutd", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVUPCC", + "source_type": "CHAR(14)", + "dest_name": "avupcc", + "dest_type": "text", + "description": "UPC Code" + }, + { + "source_name": "AVGTIN", + "source_type": "NUMERIC(14,0)", + "dest_name": "avgtin", + "dest_type": "numeric(14,0)", + "description": "Global Trade Item Number" + }, + { + "source_name": "AVNWHT", + "source_type": "DECIMAL(11,5)", + "dest_name": "avnwht", + "dest_type": "numeric(11,5)", + "description": "Net Weight" + }, + { + "source_name": "AVNWUN", + "source_type": "CHAR(3)", + "dest_name": "avnwun", + "dest_type": "text", + "description": "Net Weight Unit" + }, + { + "source_name": "AVSVOL", + "source_type": "DECIMAL(15,5)", + "dest_name": "avsvol", + "dest_type": "numeric(15,5)", + "description": "Shipping Volume" + }, + { + "source_name": "AVSVUN", + "source_type": "CHAR(3)", + "dest_name": "avsvun", + "dest_type": "text", + "description": "Shipping Volume Unit" + }, + { + "source_name": "AVENGC", + "source_type": "CHAR(11)", + "dest_name": "avengc", + "dest_type": "text", + "description": "Engineering Change #" + }, + { + "source_name": "AVREVL", + "source_type": "CHAR(3)", + "dest_name": "avrevl", + "dest_type": "text", + "description": "Revision Level" + }, + { + "source_name": "AVRDAT", + "source_type": "DATE", + "dest_name": "avrdat", + "dest_type": "date", + "description": "Revision Date" + }, + { + "source_name": "AVCOIL", + "source_type": "CHAR(1)", + "dest_name": "avcoil", + "dest_type": "text", + "description": "LUMP Y/N" + }, + { + "source_name": "AVFUT9", + "source_type": "CHAR(1)", + "dest_name": "avfut9", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVMSPC", + "source_type": "CHAR(10)", + "dest_name": "avmspc", + "dest_type": "text", + "description": "Material Specification" + }, + { + "source_name": "AVSLIF", + "source_type": "NUMERIC(4,0)", + "dest_name": "avslif", + "dest_type": "numeric(4,0)", + "description": "Shelf Life" + }, + { + "source_name": "AVDPLT", + "source_type": "CHAR(3)", + "dest_name": "avdplt", + "dest_type": "text", + "description": "Default Plant Code" + }, + { + "source_name": "AVUVER", + "source_type": "CHAR(10)", + "dest_name": "avuver", + "dest_type": "text", + "description": "USRDEF Verification Template" + }, + { + "source_name": "AVCATA", + "source_type": "CHAR(25)", + "dest_name": "avcata", + "dest_type": "text", + "description": "Catalog ID" + }, + { + "source_name": "AVFEDC", + "source_type": "CHAR(3)", + "dest_name": "avfedc", + "dest_type": "text", + "description": "Tax Group Code" + }, + { + "source_name": "AVTAXR", + "source_type": "CHAR(1)", + "dest_name": "avtaxr", + "dest_type": "text", + "description": "Tax Rate Code" + }, + { + "source_name": "AVCUST", + "source_type": "CHAR(8)", + "dest_name": "avcust", + "dest_type": "text", + "description": "Customer Code" + }, + { + "source_name": "AVCPT#", + "source_type": "CHAR(30)", + "dest_name": "avcpt#", + "dest_type": "text", + "description": "Customer Part Number" + }, + { + "source_name": "AVREV#", + "source_type": "CHAR(3)", + "dest_name": "avrev#", + "dest_type": "text", + "description": "Customer Revision" + }, + { + "source_name": "AVFUT7", + "source_type": "CHAR(1)", + "dest_name": "avfut7", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFUT8", + "source_type": "CHAR(1)", + "dest_name": "avfut8", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFUTB", + "source_type": "CHAR(1)", + "dest_name": "avfutb", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVLDAT", + "source_type": "DATE", + "dest_name": "avldat", + "dest_type": "date", + "description": "NOT USED" + }, + { + "source_name": "AVTYPE", + "source_type": "CHAR(1)", + "dest_name": "avtype", + "dest_type": "text", + "description": "Stock Type" + }, + { + "source_name": "AVFUTK", + "source_type": "CHAR(1)", + "dest_name": "avfutk", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFUTN", + "source_type": "CHAR(20)", + "dest_name": "avfutn", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVPPAP", + "source_type": "CHAR(1)", + "dest_name": "avppap", + "dest_type": "text", + "description": "PPAP" + }, + { + "source_name": "AVCUSR", + "source_type": "CHAR(10)", + "dest_name": "avcusr", + "dest_type": "text", + "description": "Created By User" + }, + { + "source_name": "AVCDAT", + "source_type": "DATE", + "dest_name": "avcdat", + "dest_type": "date", + "description": "Date Created" + }, + { + "source_name": "AVCTME", + "source_type": "TIME", + "dest_name": "avctme", + "dest_type": "time", + "description": "Time Created" + }, + { + "source_name": "AVUUSR", + "source_type": "CHAR(10)", + "dest_name": "avuusr", + "dest_type": "text", + "description": "Updated By User" + }, + { + "source_name": "AVUDAT", + "source_type": "DATE", + "dest_name": "avudat", + "dest_type": "date", + "description": "Date Updated" + }, + { + "source_name": "AVUTME", + "source_type": "TIME", + "dest_name": "avutme", + "dest_type": "time", + "description": "Time Updated" + }, + { + "source_name": "AVSIZC", + "source_type": "CHAR(20)", + "dest_name": "avsizc", + "dest_type": "text", + "description": "Size Code" + }, + { + "source_name": "AVSTLC", + "source_type": "CHAR(20)", + "dest_name": "avstlc", + "dest_type": "text", + "description": "Style Code" + }, + { + "source_name": "AVCOLC", + "source_type": "CHAR(20)", + "dest_name": "avcolc", + "dest_type": "text", + "description": "Color Code" + }, + { + "source_name": "AVASSC", + "source_type": "CHAR(10)", + "dest_name": "avassc", + "dest_type": "text", + "description": "Assembly Code" + }, + { + "source_name": "AVSASC", + "source_type": "CHAR(10)", + "dest_name": "avsasc", + "dest_type": "text", + "description": "Subassembly Code" + }, + { + "source_name": "AVLCOIL", + "source_type": "CHAR(1)", + "dest_name": "avlcoil", + "dest_type": "text", + "description": "Coil Y/N" + }, + { + "source_name": "AVGDFL", + "source_type": "CHAR(1)", + "dest_name": "avgdfl", + "dest_type": "text", + "description": "Global Discount Flag" + }, + { + "source_name": "AVVDFL", + "source_type": "CHAR(1)", + "dest_name": "avvdfl", + "dest_type": "text", + "description": "Volume Discount Flag" + }, + { + "source_name": "AVWOQF", + "source_type": "CHAR(1)", + "dest_name": "avwoqf", + "dest_type": "text", + "description": "Whole Order Qty Flag" + }, + { + "source_name": "AVNMFC", + "source_type": "CHAR(20)", + "dest_name": "avnmfc", + "dest_type": "text", + "description": "Freight Code NMFC#" + }, + { + "source_name": "AVFUTH", + "source_type": "NUMERIC(15,5)", + "dest_name": "avfuth", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "AVFUTI", + "source_type": "NUMERIC(15,5)", + "dest_name": "avfuti", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "AVFUTL", + "source_type": "CHAR(1)", + "dest_name": "avfutl", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFUTM", + "source_type": "CHAR(20)", + "dest_name": "avfutm", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFUTP", + "source_type": "CHAR(20)", + "dest_name": "avfutp", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFUTQ", + "source_type": "DATE", + "dest_name": "avfutq", + "dest_type": "date", + "description": "Future Use" + }, + { + "source_name": "AVFUTR", + "source_type": "DATE", + "dest_name": "avfutr", + "dest_type": "date", + "description": "Future Use" + }, + { + "source_name": "AVPRUN", + "source_type": "DECIMAL(5,0)", + "dest_name": "avprun", + "dest_type": "numeric(5,0)", + "description": "Production Runs" + }, + { + "source_name": "AVTOTP", + "source_type": "DECIMAL(15,5)", + "dest_name": "avtotp", + "dest_type": "numeric(15,5)", + "description": "Total Produced" + }, + { + "source_name": "AVDISC", + "source_type": "CHAR(1)", + "dest_name": "avdisc", + "dest_type": "text", + "description": "Discount Code" + }, + { + "source_name": "AVINVT", + "source_type": "CHAR(1)", + "dest_name": "avinvt", + "dest_type": "text", + "description": "Inventory Type" + }, + { + "source_name": "AVBK01", + "source_type": "CHAR(1)", + "dest_name": "avbk01", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "AVBILL", + "source_type": "CHAR(1)", + "dest_name": "avbill", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "AVBK04", + "source_type": "CHAR(4)", + "dest_name": "avbk04", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "AVBK06", + "source_type": "CHAR(1)", + "dest_name": "avbk06", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "AVOLDD", + "source_type": "CHAR(10)", + "dest_name": "avoldd", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "AVOLDD2", + "source_type": "CHAR(10)", + "dest_name": "avoldd2", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "AVLOTF", + "source_type": "CHAR(1)", + "dest_name": "avlotf", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "AVSERF", + "source_type": "CHAR(1)", + "dest_name": "avserf", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "AVORIG", + "source_type": "CHAR(3)", + "dest_name": "avorig", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "AVPLAN", + "source_type": "CHAR(10)", + "dest_name": "avplan", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVMINQ", + "source_type": "DECIMAL(15,5)", + "dest_name": "avminq", + "dest_type": "numeric(15,5)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVMAXQ", + "source_type": "DECIMAL(15,5)", + "dest_name": "avmaxq", + "dest_type": "numeric(15,5)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLEAD", + "source_type": "NUMERIC(3,0)", + "dest_name": "avlead", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVSCDT", + "source_type": "CHAR(1)", + "dest_name": "avscdt", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVESTV", + "source_type": "DECIMAL(15,5)", + "dest_name": "avestv", + "dest_type": "numeric(15,5)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVCNTR", + "source_type": "CHAR(3)", + "dest_name": "avcntr", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVUNTP", + "source_type": "CHAR(3)", + "dest_name": "avuntp", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLVL", + "source_type": "NUMERIC(2,0)", + "dest_name": "avlvl", + "dest_type": "numeric(2,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVMOQT", + "source_type": "DECIMAL(15,5)", + "dest_name": "avmoqt", + "dest_type": "numeric(15,5)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVPACK", + "source_type": "DECIMAL(15,5)", + "dest_name": "avpack", + "dest_type": "numeric(15,5)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVPACU", + "source_type": "CHAR(3)", + "dest_name": "avpacu", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVPRPT", + "source_type": "NUMERIC(3,0)", + "dest_name": "avprpt", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVKITC", + "source_type": "CHAR(1)", + "dest_name": "avkitc", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVPROC", + "source_type": "CHAR(8)", + "dest_name": "avproc", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLRSP", + "source_type": "CHAR(1)", + "dest_name": "avlrsp", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLRSC", + "source_type": "NUMERIC(3,0)", + "dest_name": "avlrsc", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLRSF", + "source_type": "CHAR(3)", + "dest_name": "avlrsf", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLRMP", + "source_type": "CHAR(1)", + "dest_name": "avlrmp", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLRMC", + "source_type": "NUMERIC(3,0)", + "dest_name": "avlrmc", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLRMF", + "source_type": "CHAR(3)", + "dest_name": "avlrmf", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLWSP", + "source_type": "CHAR(1)", + "dest_name": "avlwsp", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLWSC", + "source_type": "NUMERIC(3,0)", + "dest_name": "avlwsc", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLWSF", + "source_type": "CHAR(3)", + "dest_name": "avlwsf", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLCSP", + "source_type": "CHAR(1)", + "dest_name": "avlcsp", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLCSC", + "source_type": "NUMERIC(3,0)", + "dest_name": "avlcsc", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLCSF", + "source_type": "CHAR(3)", + "dest_name": "avlcsf", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLCMP", + "source_type": "CHAR(1)", + "dest_name": "avlcmp", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLCMC", + "source_type": "NUMERIC(3,0)", + "dest_name": "avlcmc", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLCMF", + "source_type": "CHAR(3)", + "dest_name": "avlcmf", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLSSC", + "source_type": "NUMERIC(3,0)", + "dest_name": "avlssc", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLSSF", + "source_type": "CHAR(3)", + "dest_name": "avlssf", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLSMP", + "source_type": "CHAR(1)", + "dest_name": "avlsmp", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLSMC", + "source_type": "NUMERIC(3,0)", + "dest_name": "avlsmc", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVLSMF", + "source_type": "CHAR(3)", + "dest_name": "avlsmf", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVMPCK", + "source_type": "DECIMAL(15,5)", + "dest_name": "avmpck", + "dest_type": "numeric(15,5)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVMPKU", + "source_type": "CHAR(3)", + "dest_name": "avmpku", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVALTF", + "source_type": "NUMERIC(3,0)", + "dest_name": "avaltf", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVDBUY", + "source_type": "CHAR(1)", + "dest_name": "avdbuy", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT1", + "source_type": "CHAR(6)", + "dest_name": "avfut1", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT2", + "source_type": "CHAR(6)", + "dest_name": "avfut2", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT6", + "source_type": "NUMERIC(5,0)", + "dest_name": "avfut6", + "dest_type": "numeric(5,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUTA", + "source_type": "CHAR(1)", + "dest_name": "avfuta", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUTG", + "source_type": "NUMERIC(15,5)", + "dest_name": "avfutg", + "dest_type": "numeric(15,5)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVRECU", + "source_type": "CHAR(3)", + "dest_name": "avrecu", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFTMF", + "source_type": "NUMERIC(3,0)", + "dest_name": "avftmf", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVRECC", + "source_type": "CHAR(3)", + "dest_name": "avrecc", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUTJ", + "source_type": "CHAR(1)", + "dest_name": "avfutj", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVABCC", + "source_type": "CHAR(1)", + "dest_name": "avabcc", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVCORG", + "source_type": "CHAR(3)", + "dest_name": "avcorg", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVPERC", + "source_type": "NUMERIC(8,5)", + "dest_name": "avperc", + "dest_type": "numeric(8,5)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVOPTR", + "source_type": "DECIMAL(15,5)", + "dest_name": "avoptr", + "dest_type": "numeric(15,5)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVMULT", + "source_type": "DECIMAL(5,0)", + "dest_name": "avmult", + "dest_type": "numeric(5,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVMINR", + "source_type": "NUMERIC(15,5)", + "dest_name": "avminr", + "dest_type": "numeric(15,5)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVSHRK", + "source_type": "NUMERIC(5,3)", + "dest_name": "avshrk", + "dest_type": "numeric(5,3)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVSTAT", + "source_type": "CHAR(1)", + "dest_name": "avstat", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVREAS", + "source_type": "CHAR(2)", + "dest_name": "avreas", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVSPDT", + "source_type": "DATE", + "dest_name": "avspdt", + "dest_type": "date", + "description": "PLACE MARKER" + }, + { + "source_name": "AVBBDT", + "source_type": "DATE", + "dest_name": "avbbdt", + "dest_type": "date", + "description": "PLACE MARKER" + }, + { + "source_name": "AVPSOR", + "source_type": "CHAR(3)", + "dest_name": "avpsor", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUTO", + "source_type": "CHAR(20)", + "dest_name": "avfuto", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVDRWS", + "source_type": "CHAR(1)", + "dest_name": "avdrws", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVDRWL", + "source_type": "CHAR(4)", + "dest_name": "avdrwl", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVDENC", + "source_type": "CHAR(11)", + "dest_name": "avdenc", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVDREL", + "source_type": "CHAR(3)", + "dest_name": "avdrel", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVDDAT", + "source_type": "DATE", + "dest_name": "avddat", + "dest_type": "date", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUTE", + "source_type": "CHAR(20)", + "dest_name": "avfute", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVDRWS2", + "source_type": "CHAR(1)", + "dest_name": "avdrws2", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVDRWL2", + "source_type": "CHAR(4)", + "dest_name": "avdrwl2", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVDENC2", + "source_type": "CHAR(11)", + "dest_name": "avdenc2", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVDREL2", + "source_type": "CHAR(3)", + "dest_name": "avdrel2", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVDDAT2", + "source_type": "DATE", + "dest_name": "avddat2", + "dest_type": "date", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUTF", + "source_type": "CHAR(20)", + "dest_name": "avfutf", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVSTCL", + "source_type": "CHAR(3)", + "dest_name": "avstcl", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVVLCD", + "source_type": "CHAR(3)", + "dest_name": "avvlcd", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVSPPP", + "source_type": "NUMERIC(4,0)", + "dest_name": "avsppp", + "dest_type": "numeric(4,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVSPPC", + "source_type": "CHAR(50)", + "dest_name": "avsppc", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVMPPP", + "source_type": "NUMERIC(4,0)", + "dest_name": "avmppp", + "dest_type": "numeric(4,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVMPPC", + "source_type": "CHAR(50)", + "dest_name": "avmppc", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFLG01", + "source_type": "CHAR(1)", + "dest_name": "avflg01", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFLG02", + "source_type": "CHAR(1)", + "dest_name": "avflg02", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFLG03", + "source_type": "CHAR(1)", + "dest_name": "avflg03", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFLG04", + "source_type": "CHAR(1)", + "dest_name": "avflg04", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFLG05", + "source_type": "CHAR(1)", + "dest_name": "avflg05", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFLG06", + "source_type": "CHAR(1)", + "dest_name": "avflg06", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFLG07", + "source_type": "CHAR(1)", + "dest_name": "avflg07", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFLG08", + "source_type": "CHAR(1)", + "dest_name": "avflg08", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFLG09", + "source_type": "CHAR(1)", + "dest_name": "avflg09", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AVFLG10", + "source_type": "CHAR(1)", + "dest_name": "avflg10", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT01", + "source_type": "CHAR(3)", + "dest_name": "avfut01", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT02", + "source_type": "CHAR(3)", + "dest_name": "avfut02", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT03", + "source_type": "CHAR(3)", + "dest_name": "avfut03", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT04", + "source_type": "CHAR(3)", + "dest_name": "avfut04", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT05", + "source_type": "CHAR(3)", + "dest_name": "avfut05", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT06", + "source_type": "CHAR(5)", + "dest_name": "avfut06", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT07", + "source_type": "CHAR(5)", + "dest_name": "avfut07", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT08", + "source_type": "CHAR(5)", + "dest_name": "avfut08", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT09", + "source_type": "CHAR(5)", + "dest_name": "avfut09", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT10", + "source_type": "CHAR(5)", + "dest_name": "avfut10", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT11", + "source_type": "CHAR(10)", + "dest_name": "avfut11", + "dest_type": "text", + "description": "Product Family" + }, + { + "source_name": "AVFUT12", + "source_type": "CHAR(10)", + "dest_name": "avfut12", + "dest_type": "text", + "description": "Product Type" + }, + { + "source_name": "AVFUT13", + "source_type": "CHAR(10)", + "dest_name": "avfut13", + "dest_type": "text", + "description": "Product Group" + }, + { + "source_name": "AVFUT14", + "source_type": "CHAR(10)", + "dest_name": "avfut14", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT15", + "source_type": "CHAR(10)", + "dest_name": "avfut15", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT16", + "source_type": "CHAR(20)", + "dest_name": "avfut16", + "dest_type": "text", + "description": "Product Detail" + }, + { + "source_name": "AVFUT17", + "source_type": "CHAR(20)", + "dest_name": "avfut17", + "dest_type": "text", + "description": "Product Brand" + }, + { + "source_name": "AVFUT18", + "source_type": "CHAR(20)", + "dest_name": "avfut18", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT19", + "source_type": "CHAR(20)", + "dest_name": "avfut19", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT20", + "source_type": "CHAR(20)", + "dest_name": "avfut20", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT21", + "source_type": "CHAR(30)", + "dest_name": "avfut21", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT22", + "source_type": "CHAR(30)", + "dest_name": "avfut22", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT23", + "source_type": "CHAR(30)", + "dest_name": "avfut23", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT24", + "source_type": "CHAR(30)", + "dest_name": "avfut24", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT25", + "source_type": "CHAR(30)", + "dest_name": "avfut25", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT26", + "source_type": "NUMERIC(10,0)", + "dest_name": "avfut26", + "dest_type": "numeric(10,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT27", + "source_type": "NUMERIC(10,0)", + "dest_name": "avfut27", + "dest_type": "numeric(10,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT28", + "source_type": "NUMERIC(10,0)", + "dest_name": "avfut28", + "dest_type": "numeric(10,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT29", + "source_type": "NUMERIC(10,0)", + "dest_name": "avfut29", + "dest_type": "numeric(10,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT30", + "source_type": "NUMERIC(10,0)", + "dest_name": "avfut30", + "dest_type": "numeric(10,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT31", + "source_type": "NUMERIC(15,0)", + "dest_name": "avfut31", + "dest_type": "numeric(15,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT32", + "source_type": "NUMERIC(15,0)", + "dest_name": "avfut32", + "dest_type": "numeric(15,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT33", + "source_type": "NUMERIC(15,0)", + "dest_name": "avfut33", + "dest_type": "numeric(15,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT34", + "source_type": "NUMERIC(15,0)", + "dest_name": "avfut34", + "dest_type": "numeric(15,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT35", + "source_type": "NUMERIC(15,0)", + "dest_name": "avfut35", + "dest_type": "numeric(15,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT36", + "source_type": "DATE", + "dest_name": "avfut36", + "dest_type": "date", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT37", + "source_type": "DATE", + "dest_name": "avfut37", + "dest_type": "date", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT38", + "source_type": "DATE", + "dest_name": "avfut38", + "dest_type": "date", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT39", + "source_type": "DATE", + "dest_name": "avfut39", + "dest_type": "date", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT40", + "source_type": "DATE", + "dest_name": "avfut40", + "dest_type": "date", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT41", + "source_type": "TIME", + "dest_name": "avfut41", + "dest_type": "time", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT42", + "source_type": "TIME", + "dest_name": "avfut42", + "dest_type": "time", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT43", + "source_type": "TIME", + "dest_name": "avfut43", + "dest_type": "time", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT44", + "source_type": "TIME", + "dest_name": "avfut44", + "dest_type": "time", + "description": "PLACE MARKER" + }, + { + "source_name": "AVFUT45", + "source_type": "TIME", + "dest_name": "avfut45", + "dest_type": "time", + "description": "PLACE MARKER" + }, + { + "source_name": "AVUDFT", + "source_type": "CHAR(1)", + "dest_name": "avudft", + "dest_type": "text", + "description": "Unit Defaults" + }, + { + "source_name": "AVFRML", + "source_type": "CHAR(6)", + "dest_name": "avfrml", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AVHAZA", + "source_type": "CHAR(1)", + "dest_name": "avhaza", + "dest_type": "text", + "description": "Hazardous" + }, + { + "source_name": "AVLLED", + "source_type": "NUMERIC(3,0)", + "dest_name": "avlled", + "dest_type": "numeric(3,0)", + "description": "Longest Lead Time (in days)" + }, + { + "source_name": "AVDBAC", + "source_type": "CHAR(1)", + "dest_name": "avdbac", + "dest_type": "text", + "description": "Direct Buy Action Code" + }, + { + "source_name": "AVSCDPT", + "source_type": "CHAR(1)", + "dest_name": "avscdpt", + "dest_type": "text", + "description": "SCD Part" + }, + { + "source_name": "AVFIFO", + "source_type": "CHAR(1)", + "dest_name": "avfifo", + "dest_type": "text", + "description": "FIFO Tracking" + }, + { + "source_name": "AVANTID", + "source_type": "CHAR(1)", + "dest_name": "avantid", + "dest_type": "text", + "description": "Anti-Dumping Tracking" + }, + { + "source_name": "AVSUBT", + "source_type": "CHAR(1)", + "dest_name": "avsubt", + "dest_type": "text", + "description": "Dumping Subject" + }, + { + "source_name": "AVPRCL", + "source_type": "CHAR(1)", + "dest_name": "avprcl", + "dest_type": "text", + "description": "Price Lock" + }, + { + "source_name": "AVOTP", + "source_type": "CHAR(1)", + "dest_name": "avotp", + "dest_type": "text", + "description": "One-Time Part" + }, + { + "source_name": "AVCBYL", + "source_type": "CHAR(1)", + "dest_name": "avcbyl", + "dest_type": "text", + "description": "Consumed By Length" + }, + { + "source_name": "AVSRVC", + "source_type": "CHAR(1)", + "dest_name": "avsrvc", + "dest_type": "text", + "description": "Service Charge Part" + }, + { + "source_name": "AVSPAL", + "source_type": "CHAR(1)", + "dest_name": "avspal", + "dest_type": "text", + "description": "Separate PO-AP for Received Lump" + }, + { + "source_name": "AVPGRP", + "source_type": "CHAR(20)", + "dest_name": "avpgrp", + "dest_type": "text", + "description": "Commodity Category Code" + }, + { + "source_name": "AVUPN", + "source_type": "CHAR(18)", + "dest_name": "avupn", + "dest_type": "text", + "description": "Universal Product Number" + }, + { + "source_name": "AVUEQG", + "source_type": "CHAR(1)", + "dest_name": "avueqg", + "dest_type": "text", + "description": "Set UPN Same as GTIN" + }, + { + "source_name": "AVMFRC", + "source_type": "CHAR(10)", + "dest_name": "avmfrc", + "dest_type": "text", + "description": "Manufacturer Code" + }, + { + "source_name": "AVATFR", + "source_type": "CHAR(1)", + "dest_name": "avatfr", + "dest_type": "text", + "description": "ATF Restricted" + }, + { + "source_name": "AVBBKRQ", + "source_type": "CHAR(1)", + "dest_name": "avbbkrq", + "dest_type": "text", + "description": "Bound Book Required" + }, + { + "source_name": "AVMLBLC", + "source_type": "CHAR(1)", + "dest_name": "avmlblc", + "dest_type": "text", + "description": "Manual Label Creation Control" + }, + { + "source_name": "AVROHSCT", + "source_type": "CHAR(1)", + "dest_name": "avrohsct", + "dest_type": "text", + "description": "RoHS Certificate" + }, + { + "source_name": "AVROHSCF", + "source_type": "CHAR(1)", + "dest_name": "avrohscf", + "dest_type": "text", + "description": "RoHS Certified" + }, + { + "source_name": "AVBBKINT", + "source_type": "CHAR(2)", + "dest_name": "avbbkint", + "dest_type": "text", + "description": "Bound Book Initial Condition" + }, + { + "source_name": "AVMFCOR", + "source_type": "CHAR(3)", + "dest_name": "avmfcor", + "dest_type": "text", + "description": "Manufacturing Country of Origin" + }, + { + "source_name": "AVMFPOR", + "source_type": "CHAR(3)", + "dest_name": "avmfpor", + "dest_type": "text", + "description": "Manufacturer Province of Origin" + }, + { + "source_name": "AVMFRMC", + "source_type": "CHAR(30)", + "dest_name": "avmfrmc", + "dest_type": "text", + "description": "Manufacturer Model Code" + }, + { + "source_name": "AVMFRMS", + "source_type": "CHAR(30)", + "dest_name": "avmfrms", + "dest_type": "text", + "description": "Manufacturer Model Style Code" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/stkmm.sql b/config/modules/stkmm.sql new file mode 100644 index 0000000..71d2166 --- /dev/null +++ b/config/modules/stkmm.sql @@ -0,0 +1,247 @@ +SELECT + RTRIM(AVPART) AS avpart, + RTRIM(AVDES1) AS avdes1, + RTRIM(AVDES2) AS avdes2, + RTRIM(AVDES3) AS avdes3, + RTRIM(AVUNTI) AS avunti, + RTRIM(AVMAJG) AS avmajg, + RTRIM(AVMING) AS avming, + RTRIM(AVMAJS) AS avmajs, + RTRIM(AVMINS) AS avmins, + RTRIM(AVGLCD) AS avglcd, + RTRIM(AVGLED) AS avgled, + RTRIM(AVHARM) AS avharm, + RTRIM(AVCLSS) AS avclss, + RTRIM(AVFUT3) AS avfut3, + RTRIM(AVFUT4) AS avfut4, + RTRIM(AVFUT5) AS avfut5, + RTRIM(AVFUTC) AS avfutc, + RTRIM(AVFUTD) AS avfutd, + RTRIM(AVUPCC) AS avupcc, + AVGTIN AS avgtin, + AVNWHT AS avnwht, + RTRIM(AVNWUN) AS avnwun, + AVSVOL AS avsvol, + RTRIM(AVSVUN) AS avsvun, + RTRIM(AVENGC) AS avengc, + RTRIM(AVREVL) AS avrevl, + CASE WHEN AVRDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVRDAT END AS avrdat, + RTRIM(AVCOIL) AS avcoil, + RTRIM(AVFUT9) AS avfut9, + RTRIM(AVMSPC) AS avmspc, + AVSLIF AS avslif, + RTRIM(AVDPLT) AS avdplt, + RTRIM(AVUVER) AS avuver, + RTRIM(AVCATA) AS avcata, + RTRIM(AVFEDC) AS avfedc, + RTRIM(AVTAXR) AS avtaxr, + RTRIM(AVCUST) AS avcust, + RTRIM("AVCPT#") AS "avcpt#", + RTRIM("AVREV#") AS "avrev#", + RTRIM(AVFUT7) AS avfut7, + RTRIM(AVFUT8) AS avfut8, + RTRIM(AVFUTB) AS avfutb, + CASE WHEN AVLDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVLDAT END AS avldat, + RTRIM(AVTYPE) AS avtype, + RTRIM(AVFUTK) AS avfutk, + RTRIM(AVFUTN) AS avfutn, + RTRIM(AVPPAP) AS avppap, + RTRIM(AVCUSR) AS avcusr, + CASE WHEN AVCDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVCDAT END AS avcdat, + AVCTME AS avctme, + RTRIM(AVUUSR) AS avuusr, + CASE WHEN AVUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVUDAT END AS avudat, + AVUTME AS avutme, + RTRIM(AVSIZC) AS avsizc, + RTRIM(AVSTLC) AS avstlc, + RTRIM(AVCOLC) AS avcolc, + RTRIM(AVASSC) AS avassc, + RTRIM(AVSASC) AS avsasc, + RTRIM(AVLCOIL) AS avlcoil, + RTRIM(AVGDFL) AS avgdfl, + RTRIM(AVVDFL) AS avvdfl, + RTRIM(AVWOQF) AS avwoqf, + RTRIM(AVNMFC) AS avnmfc, + AVFUTH AS avfuth, + AVFUTI AS avfuti, + RTRIM(AVFUTL) AS avfutl, + RTRIM(AVFUTM) AS avfutm, + RTRIM(AVFUTP) AS avfutp, + CASE WHEN AVFUTQ IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVFUTQ END AS avfutq, + CASE WHEN AVFUTR IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVFUTR END AS avfutr, + AVPRUN AS avprun, + AVTOTP AS avtotp, + RTRIM(AVDISC) AS avdisc, + RTRIM(AVINVT) AS avinvt, + RTRIM(AVBK01) AS avbk01, + RTRIM(AVBILL) AS avbill, + RTRIM(AVBK04) AS avbk04, + RTRIM(AVBK06) AS avbk06, + RTRIM(AVOLDD) AS avoldd, + RTRIM(AVOLDD2) AS avoldd2, + RTRIM(AVLOTF) AS avlotf, + RTRIM(AVSERF) AS avserf, + RTRIM(AVORIG) AS avorig, + RTRIM(AVPLAN) AS avplan, + AVMINQ AS avminq, + AVMAXQ AS avmaxq, + AVLEAD AS avlead, + RTRIM(AVSCDT) AS avscdt, + AVESTV AS avestv, + RTRIM(AVCNTR) AS avcntr, + RTRIM(AVUNTP) AS avuntp, + AVLVL AS avlvl, + AVMOQT AS avmoqt, + AVPACK AS avpack, + RTRIM(AVPACU) AS avpacu, + AVPRPT AS avprpt, + RTRIM(AVKITC) AS avkitc, + RTRIM(AVPROC) AS avproc, + RTRIM(AVLRSP) AS avlrsp, + AVLRSC AS avlrsc, + RTRIM(AVLRSF) AS avlrsf, + RTRIM(AVLRMP) AS avlrmp, + AVLRMC AS avlrmc, + RTRIM(AVLRMF) AS avlrmf, + RTRIM(AVLWSP) AS avlwsp, + AVLWSC AS avlwsc, + RTRIM(AVLWSF) AS avlwsf, + RTRIM(AVLCSP) AS avlcsp, + AVLCSC AS avlcsc, + RTRIM(AVLCSF) AS avlcsf, + RTRIM(AVLCMP) AS avlcmp, + AVLCMC AS avlcmc, + RTRIM(AVLCMF) AS avlcmf, + AVLSSC AS avlssc, + RTRIM(AVLSSF) AS avlssf, + RTRIM(AVLSMP) AS avlsmp, + AVLSMC AS avlsmc, + RTRIM(AVLSMF) AS avlsmf, + AVMPCK AS avmpck, + RTRIM(AVMPKU) AS avmpku, + AVALTF AS avaltf, + RTRIM(AVDBUY) AS avdbuy, + RTRIM(AVFUT1) AS avfut1, + RTRIM(AVFUT2) AS avfut2, + AVFUT6 AS avfut6, + RTRIM(AVFUTA) AS avfuta, + AVFUTG AS avfutg, + RTRIM(AVRECU) AS avrecu, + AVFTMF AS avftmf, + RTRIM(AVRECC) AS avrecc, + RTRIM(AVFUTJ) AS avfutj, + RTRIM(AVABCC) AS avabcc, + RTRIM(AVCORG) AS avcorg, + AVPERC AS avperc, + AVOPTR AS avoptr, + AVMULT AS avmult, + AVMINR AS avminr, + AVSHRK AS avshrk, + RTRIM(AVSTAT) AS avstat, + RTRIM(AVREAS) AS avreas, + CASE WHEN AVSPDT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVSPDT END AS avspdt, + CASE WHEN AVBBDT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVBBDT END AS avbbdt, + RTRIM(AVPSOR) AS avpsor, + RTRIM(AVFUTO) AS avfuto, + RTRIM(AVDRWS) AS avdrws, + RTRIM(AVDRWL) AS avdrwl, + RTRIM(AVDENC) AS avdenc, + RTRIM(AVDREL) AS avdrel, + CASE WHEN AVDDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVDDAT END AS avddat, + RTRIM(AVFUTE) AS avfute, + RTRIM(AVDRWS2) AS avdrws2, + RTRIM(AVDRWL2) AS avdrwl2, + RTRIM(AVDENC2) AS avdenc2, + RTRIM(AVDREL2) AS avdrel2, + CASE WHEN AVDDAT2 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVDDAT2 END AS avddat2, + RTRIM(AVFUTF) AS avfutf, + RTRIM(AVSTCL) AS avstcl, + RTRIM(AVVLCD) AS avvlcd, + AVSPPP AS avsppp, + RTRIM(AVSPPC) AS avsppc, + AVMPPP AS avmppp, + RTRIM(AVMPPC) AS avmppc, + RTRIM(AVFLG01) AS avflg01, + RTRIM(AVFLG02) AS avflg02, + RTRIM(AVFLG03) AS avflg03, + RTRIM(AVFLG04) AS avflg04, + RTRIM(AVFLG05) AS avflg05, + RTRIM(AVFLG06) AS avflg06, + RTRIM(AVFLG07) AS avflg07, + RTRIM(AVFLG08) AS avflg08, + RTRIM(AVFLG09) AS avflg09, + RTRIM(AVFLG10) AS avflg10, + RTRIM(AVFUT01) AS avfut01, + RTRIM(AVFUT02) AS avfut02, + RTRIM(AVFUT03) AS avfut03, + RTRIM(AVFUT04) AS avfut04, + RTRIM(AVFUT05) AS avfut05, + RTRIM(AVFUT06) AS avfut06, + RTRIM(AVFUT07) AS avfut07, + RTRIM(AVFUT08) AS avfut08, + RTRIM(AVFUT09) AS avfut09, + RTRIM(AVFUT10) AS avfut10, + RTRIM(AVFUT11) AS avfut11, + RTRIM(AVFUT12) AS avfut12, + RTRIM(AVFUT13) AS avfut13, + RTRIM(AVFUT14) AS avfut14, + RTRIM(AVFUT15) AS avfut15, + RTRIM(AVFUT16) AS avfut16, + RTRIM(AVFUT17) AS avfut17, + RTRIM(AVFUT18) AS avfut18, + RTRIM(AVFUT19) AS avfut19, + RTRIM(AVFUT20) AS avfut20, + RTRIM(AVFUT21) AS avfut21, + RTRIM(AVFUT22) AS avfut22, + RTRIM(AVFUT23) AS avfut23, + RTRIM(AVFUT24) AS avfut24, + RTRIM(AVFUT25) AS avfut25, + AVFUT26 AS avfut26, + AVFUT27 AS avfut27, + AVFUT28 AS avfut28, + AVFUT29 AS avfut29, + AVFUT30 AS avfut30, + AVFUT31 AS avfut31, + AVFUT32 AS avfut32, + AVFUT33 AS avfut33, + AVFUT34 AS avfut34, + AVFUT35 AS avfut35, + CASE WHEN AVFUT36 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVFUT36 END AS avfut36, + CASE WHEN AVFUT37 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVFUT37 END AS avfut37, + CASE WHEN AVFUT38 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVFUT38 END AS avfut38, + CASE WHEN AVFUT39 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVFUT39 END AS avfut39, + CASE WHEN AVFUT40 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVFUT40 END AS avfut40, + AVFUT41 AS avfut41, + AVFUT42 AS avfut42, + AVFUT43 AS avfut43, + AVFUT44 AS avfut44, + AVFUT45 AS avfut45, + RTRIM(AVUDFT) AS avudft, + RTRIM(AVFRML) AS avfrml, + RTRIM(AVHAZA) AS avhaza, + AVLLED AS avlled, + RTRIM(AVDBAC) AS avdbac, + RTRIM(AVSCDPT) AS avscdpt, + RTRIM(AVFIFO) AS avfifo, + RTRIM(AVANTID) AS avantid, + RTRIM(AVSUBT) AS avsubt, + RTRIM(AVPRCL) AS avprcl, + RTRIM(AVOTP) AS avotp, + RTRIM(AVCBYL) AS avcbyl, + RTRIM(AVSRVC) AS avsrvc, + RTRIM(AVSPAL) AS avspal, + RTRIM(AVPGRP) AS avpgrp, + RTRIM(AVUPN) AS avupn, + RTRIM(AVUEQG) AS avueqg, + RTRIM(AVMFRC) AS avmfrc, + RTRIM(AVATFR) AS avatfr, + RTRIM(AVBBKRQ) AS avbbkrq, + RTRIM(AVMLBLC) AS avmlblc, + RTRIM(AVROHSCT) AS avrohsct, + RTRIM(AVROHSCF) AS avrohscf, + RTRIM(AVBBKINT) AS avbbkint, + RTRIM(AVMFCOR) AS avmfcor, + RTRIM(AVMFPOR) AS avmfpor, + RTRIM(AVMFRMC) AS avmfrmc, + RTRIM(AVMFRMS) AS avmfrms +FROM LGDAT.STKMM diff --git a/config/modules/stkmp.json b/config/modules/stkmp.json new file mode 100644 index 0000000..4eeb09c --- /dev/null +++ b/config/modules/stkmp.json @@ -0,0 +1,1758 @@ +{ + "name": "stkmp", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.stkmp", + "staging_table": "pipekit_staging.stkmp", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Global Item Master - Purchased parts 6.0", + "columns": [ + { + "source_name": "AWPART", + "source_type": "CHAR(20)", + "dest_name": "awpart", + "dest_type": "text", + "description": "Part Number" + }, + { + "source_name": "AWDES1", + "source_type": "CHAR(30)", + "dest_name": "awdes1", + "dest_type": "text", + "description": "Description 1" + }, + { + "source_name": "AWDES2", + "source_type": "CHAR(30)", + "dest_name": "awdes2", + "dest_type": "text", + "description": "Description 2" + }, + { + "source_name": "AWDES3", + "source_type": "CHAR(30)", + "dest_name": "awdes3", + "dest_type": "text", + "description": "Description 3" + }, + { + "source_name": "AWUNTI", + "source_type": "CHAR(3)", + "dest_name": "awunti", + "dest_type": "text", + "description": "Dft Unit of Issue" + }, + { + "source_name": "AWMAJG", + "source_type": "CHAR(3)", + "dest_name": "awmajg", + "dest_type": "text", + "description": "Major Group Code" + }, + { + "source_name": "AWMING", + "source_type": "CHAR(3)", + "dest_name": "awming", + "dest_type": "text", + "description": "Minor Group Code" + }, + { + "source_name": "AWMAJS", + "source_type": "CHAR(3)", + "dest_name": "awmajs", + "dest_type": "text", + "description": "Major Sales Code" + }, + { + "source_name": "AWMINS", + "source_type": "CHAR(3)", + "dest_name": "awmins", + "dest_type": "text", + "description": "Minor Sales Code" + }, + { + "source_name": "AWGLDC", + "source_type": "CHAR(3)", + "dest_name": "awgldc", + "dest_type": "text", + "description": "G/L Sales Code" + }, + { + "source_name": "AWGLED", + "source_type": "CHAR(3)", + "dest_name": "awgled", + "dest_type": "text", + "description": "G/L Expense Code" + }, + { + "source_name": "AWHARM", + "source_type": "CHAR(13)", + "dest_name": "awharm", + "dest_type": "text", + "description": "Harmonization Number" + }, + { + "source_name": "AWCLSS", + "source_type": "CHAR(3)", + "dest_name": "awclss", + "dest_type": "text", + "description": "Inventory Class Code" + }, + { + "source_name": "AWFUT3", + "source_type": "CHAR(20)", + "dest_name": "awfut3", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFUT4", + "source_type": "CHAR(20)", + "dest_name": "awfut4", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFUT5", + "source_type": "CHAR(20)", + "dest_name": "awfut5", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFUTC", + "source_type": "CHAR(10)", + "dest_name": "awfutc", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFUTD", + "source_type": "CHAR(10)", + "dest_name": "awfutd", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWUPCC", + "source_type": "CHAR(14)", + "dest_name": "awupcc", + "dest_type": "text", + "description": "UPC Code" + }, + { + "source_name": "AWGTIN", + "source_type": "NUMERIC(14,0)", + "dest_name": "awgtin", + "dest_type": "numeric(14,0)", + "description": "Global Trade Item Number" + }, + { + "source_name": "AWNWHT", + "source_type": "DECIMAL(11,5)", + "dest_name": "awnwht", + "dest_type": "numeric(11,5)", + "description": "Net Weight" + }, + { + "source_name": "AWNWUN", + "source_type": "CHAR(3)", + "dest_name": "awnwun", + "dest_type": "text", + "description": "Net Weight Unit" + }, + { + "source_name": "AWSVOL", + "source_type": "DECIMAL(15,5)", + "dest_name": "awsvol", + "dest_type": "numeric(15,5)", + "description": "Shipping Volume" + }, + { + "source_name": "AWSVUN", + "source_type": "CHAR(3)", + "dest_name": "awsvun", + "dest_type": "text", + "description": "Shipping Volume Unit" + }, + { + "source_name": "AWTYPE", + "source_type": "CHAR(1)", + "dest_name": "awtype", + "dest_type": "text", + "description": "Stock Type" + }, + { + "source_name": "AWVEND", + "source_type": "CHAR(10)", + "dest_name": "awvend", + "dest_type": "text", + "description": "Vendor Code" + }, + { + "source_name": "AWVPT#", + "source_type": "CHAR(30)", + "dest_name": "awvpt#", + "dest_type": "text", + "description": "Vendors Part #" + }, + { + "source_name": "AWREV#", + "source_type": "CHAR(3)", + "dest_name": "awrev#", + "dest_type": "text", + "description": "Vendors Revision#" + }, + { + "source_name": "AWENGC", + "source_type": "CHAR(11)", + "dest_name": "awengc", + "dest_type": "text", + "description": "Engineering Change #" + }, + { + "source_name": "AWREVL", + "source_type": "CHAR(3)", + "dest_name": "awrevl", + "dest_type": "text", + "description": "Revision Level" + }, + { + "source_name": "AWRDAT", + "source_type": "DATE", + "dest_name": "awrdat", + "dest_type": "date", + "description": "Revision Date" + }, + { + "source_name": "AWFUT7", + "source_type": "CHAR(1)", + "dest_name": "awfut7", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFUT8", + "source_type": "CHAR(1)", + "dest_name": "awfut8", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFUTB", + "source_type": "CHAR(1)", + "dest_name": "awfutb", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWCOIL", + "source_type": "CHAR(1)", + "dest_name": "awcoil", + "dest_type": "text", + "description": "LUMP Y/N" + }, + { + "source_name": "AWFUT9", + "source_type": "CHAR(1)", + "dest_name": "awfut9", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWMSPC", + "source_type": "CHAR(10)", + "dest_name": "awmspc", + "dest_type": "text", + "description": "Material Specification" + }, + { + "source_name": "AWUVER", + "source_type": "CHAR(10)", + "dest_name": "awuver", + "dest_type": "text", + "description": "USRDEF Verification Template" + }, + { + "source_name": "AWCATA", + "source_type": "CHAR(25)", + "dest_name": "awcata", + "dest_type": "text", + "description": "Catalog ID" + }, + { + "source_name": "AWSLIF", + "source_type": "NUMERIC(4,0)", + "dest_name": "awslif", + "dest_type": "numeric(4,0)", + "description": "Shelf Life" + }, + { + "source_name": "AWFUTK", + "source_type": "CHAR(1)", + "dest_name": "awfutk", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFUTN", + "source_type": "CHAR(20)", + "dest_name": "awfutn", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWPPAP", + "source_type": "CHAR(1)", + "dest_name": "awppap", + "dest_type": "text", + "description": "PPAP" + }, + { + "source_name": "AWDPLT", + "source_type": "CHAR(3)", + "dest_name": "awdplt", + "dest_type": "text", + "description": "Default Plant Code" + }, + { + "source_name": "AWGDFL", + "source_type": "CHAR(1)", + "dest_name": "awgdfl", + "dest_type": "text", + "description": "Global Discount Flag" + }, + { + "source_name": "AWVDFL", + "source_type": "CHAR(1)", + "dest_name": "awvdfl", + "dest_type": "text", + "description": "Volume Discount Flag" + }, + { + "source_name": "AWWOQF", + "source_type": "CHAR(1)", + "dest_name": "awwoqf", + "dest_type": "text", + "description": "Whole Order Qty Flag" + }, + { + "source_name": "AWLCOIL", + "source_type": "CHAR(1)", + "dest_name": "awlcoil", + "dest_type": "text", + "description": "Coil Y/N" + }, + { + "source_name": "AWNMFC", + "source_type": "CHAR(20)", + "dest_name": "awnmfc", + "dest_type": "text", + "description": "Freight Code NMFC#" + }, + { + "source_name": "AWSIZC", + "source_type": "CHAR(20)", + "dest_name": "awsizc", + "dest_type": "text", + "description": "Size Code" + }, + { + "source_name": "AWSTLC", + "source_type": "CHAR(20)", + "dest_name": "awstlc", + "dest_type": "text", + "description": "Style Code" + }, + { + "source_name": "AWCOLC", + "source_type": "CHAR(20)", + "dest_name": "awcolc", + "dest_type": "text", + "description": "Color Code" + }, + { + "source_name": "AWASSC", + "source_type": "CHAR(10)", + "dest_name": "awassc", + "dest_type": "text", + "description": "Assembly Code" + }, + { + "source_name": "AWSASC", + "source_type": "CHAR(10)", + "dest_name": "awsasc", + "dest_type": "text", + "description": "Subassembly Code" + }, + { + "source_name": "AWCUSR", + "source_type": "CHAR(10)", + "dest_name": "awcusr", + "dest_type": "text", + "description": "Created By User" + }, + { + "source_name": "AWCDAT", + "source_type": "DATE", + "dest_name": "awcdat", + "dest_type": "date", + "description": "Date Created" + }, + { + "source_name": "AWCTME", + "source_type": "TIME", + "dest_name": "awctme", + "dest_type": "time", + "description": "Time Created" + }, + { + "source_name": "AWUUSR", + "source_type": "CHAR(10)", + "dest_name": "awuusr", + "dest_type": "text", + "description": "Updated By User" + }, + { + "source_name": "AWUDAT", + "source_type": "DATE", + "dest_name": "awudat", + "dest_type": "date", + "description": "Date Updated" + }, + { + "source_name": "AWUTME", + "source_type": "TIME", + "dest_name": "awutme", + "dest_type": "time", + "description": "Time Updated" + }, + { + "source_name": "AWFUTH", + "source_type": "NUMERIC(15,5)", + "dest_name": "awfuth", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "AWFUTI", + "source_type": "NUMERIC(15,5)", + "dest_name": "awfuti", + "dest_type": "numeric(15,5)", + "description": "Future Use" + }, + { + "source_name": "AWFUT6", + "source_type": "NUMERIC(5,0)", + "dest_name": "awfut6", + "dest_type": "numeric(5,0)", + "description": "Future Use" + }, + { + "source_name": "AWFUTL", + "source_type": "CHAR(1)", + "dest_name": "awfutl", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFUTM", + "source_type": "CHAR(20)", + "dest_name": "awfutm", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFUTO", + "source_type": "CHAR(20)", + "dest_name": "awfuto", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFUTP", + "source_type": "CHAR(20)", + "dest_name": "awfutp", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFUTQ", + "source_type": "DATE", + "dest_name": "awfutq", + "dest_type": "date", + "description": "Future Use" + }, + { + "source_name": "AWFUTR", + "source_type": "DATE", + "dest_name": "awfutr", + "dest_type": "date", + "description": "Future Use" + }, + { + "source_name": "AWLDAT", + "source_type": "DATE", + "dest_name": "awldat", + "dest_type": "date", + "description": "NOT USED" + }, + { + "source_name": "AWLOTF", + "source_type": "CHAR(1)", + "dest_name": "awlotf", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "AWSERF", + "source_type": "CHAR(1)", + "dest_name": "awserf", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "AWOLDD", + "source_type": "CHAR(10)", + "dest_name": "awoldd", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "AWBK02", + "source_type": "CHAR(10)", + "dest_name": "awbk02", + "dest_type": "text", + "description": "AWBK02" + }, + { + "source_name": "AWOLDD2", + "source_type": "CHAR(10)", + "dest_name": "awoldd2", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "AWDISC", + "source_type": "CHAR(1)", + "dest_name": "awdisc", + "dest_type": "text", + "description": "Discount Code" + }, + { + "source_name": "AWORIG", + "source_type": "CHAR(3)", + "dest_name": "aworig", + "dest_type": "text", + "description": "Country of Origin Code" + }, + { + "source_name": "AWFEDC", + "source_type": "CHAR(3)", + "dest_name": "awfedc", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "AWTAXR", + "source_type": "CHAR(1)", + "dest_name": "awtaxr", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "AWBK01", + "source_type": "CHAR(1)", + "dest_name": "awbk01", + "dest_type": "text", + "description": "AWBK01" + }, + { + "source_name": "AWBK03", + "source_type": "CHAR(2)", + "dest_name": "awbk03", + "dest_type": "text", + "description": "AWBK03" + }, + { + "source_name": "AWBK04", + "source_type": "CHAR(16)", + "dest_name": "awbk04", + "dest_type": "text", + "description": "AWBK04" + }, + { + "source_name": "AWBK05", + "source_type": "CHAR(26)", + "dest_name": "awbk05", + "dest_type": "text", + "description": "AWBK05" + }, + { + "source_name": "AWINVT", + "source_type": "CHAR(1)", + "dest_name": "awinvt", + "dest_type": "text", + "description": "Inventory Type" + }, + { + "source_name": "AWCONV", + "source_type": "DECIMAL(9,4)", + "dest_name": "awconv", + "dest_type": "numeric(9,4)", + "description": "Conversion Factor" + }, + { + "source_name": "AWUNTO", + "source_type": "CHAR(3)", + "dest_name": "awunto", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWREQC", + "source_type": "CHAR(10)", + "dest_name": "awreqc", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWOPTR", + "source_type": "DECIMAL(15,5)", + "dest_name": "awoptr", + "dest_type": "numeric(15,5)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLEAD", + "source_type": "NUMERIC(3,0)", + "dest_name": "awlead", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWCORG", + "source_type": "CHAR(3)", + "dest_name": "awcorg", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWCNTR", + "source_type": "CHAR(3)", + "dest_name": "awcntr", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWOLA", + "source_type": "NUMERIC(3,0)", + "dest_name": "awola", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWUNTP", + "source_type": "CHAR(3)", + "dest_name": "awuntp", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWSHRK", + "source_type": "NUMERIC(5,3)", + "dest_name": "awshrk", + "dest_type": "numeric(5,3)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLVL", + "source_type": "NUMERIC(2,0)", + "dest_name": "awlvl", + "dest_type": "numeric(2,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWMOQT", + "source_type": "DECIMAL(15,5)", + "dest_name": "awmoqt", + "dest_type": "numeric(15,5)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWPACK", + "source_type": "DECIMAL(15,5)", + "dest_name": "awpack", + "dest_type": "numeric(15,5)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWPACU", + "source_type": "CHAR(3)", + "dest_name": "awpacu", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWPRPT", + "source_type": "NUMERIC(3,0)", + "dest_name": "awprpt", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWBUYR", + "source_type": "CHAR(10)", + "dest_name": "awbuyr", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWAUTY", + "source_type": "CHAR(1)", + "dest_name": "awauty", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWMPQT", + "source_type": "DECIMAL(15,5)", + "dest_name": "awmpqt", + "dest_type": "numeric(15,5)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWABCC", + "source_type": "CHAR(1)", + "dest_name": "awabcc", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWSTAT", + "source_type": "CHAR(1)", + "dest_name": "awstat", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWPROC", + "source_type": "CHAR(8)", + "dest_name": "awproc", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLRSP", + "source_type": "CHAR(1)", + "dest_name": "awlrsp", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLRSC", + "source_type": "NUMERIC(3,0)", + "dest_name": "awlrsc", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLRSF", + "source_type": "CHAR(3)", + "dest_name": "awlrsf", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLRMP", + "source_type": "CHAR(1)", + "dest_name": "awlrmp", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLRMC", + "source_type": "NUMERIC(3,0)", + "dest_name": "awlrmc", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLRMF", + "source_type": "CHAR(3)", + "dest_name": "awlrmf", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLWSP", + "source_type": "CHAR(1)", + "dest_name": "awlwsp", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLWSC", + "source_type": "NUMERIC(3,0)", + "dest_name": "awlwsc", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLWSF", + "source_type": "CHAR(3)", + "dest_name": "awlwsf", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLCSP", + "source_type": "CHAR(1)", + "dest_name": "awlcsp", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLCSC", + "source_type": "NUMERIC(3,0)", + "dest_name": "awlcsc", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLCSF", + "source_type": "CHAR(3)", + "dest_name": "awlcsf", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLCMP", + "source_type": "CHAR(1)", + "dest_name": "awlcmp", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLCMC", + "source_type": "NUMERIC(3,0)", + "dest_name": "awlcmc", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLCMF", + "source_type": "CHAR(3)", + "dest_name": "awlcmf", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLSSC", + "source_type": "NUMERIC(3,0)", + "dest_name": "awlssc", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLSSF", + "source_type": "CHAR(3)", + "dest_name": "awlssf", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLSMP", + "source_type": "CHAR(1)", + "dest_name": "awlsmp", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLSMC", + "source_type": "NUMERIC(3,0)", + "dest_name": "awlsmc", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWLSMF", + "source_type": "CHAR(3)", + "dest_name": "awlsmf", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWMPCK", + "source_type": "DECIMAL(15,5)", + "dest_name": "awmpck", + "dest_type": "numeric(15,5)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWMPKU", + "source_type": "CHAR(3)", + "dest_name": "awmpku", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUTJ", + "source_type": "CHAR(1)", + "dest_name": "awfutj", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUTG", + "source_type": "NUMERIC(15,5)", + "dest_name": "awfutg", + "dest_type": "numeric(15,5)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWDBUY", + "source_type": "CHAR(1)", + "dest_name": "awdbuy", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWPERC", + "source_type": "NUMERIC(8,5)", + "dest_name": "awperc", + "dest_type": "numeric(8,5)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWREAS", + "source_type": "CHAR(2)", + "dest_name": "awreas", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT1", + "source_type": "CHAR(6)", + "dest_name": "awfut1", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT2", + "source_type": "CHAR(6)", + "dest_name": "awfut2", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWALTF", + "source_type": "NUMERIC(3,0)", + "dest_name": "awaltf", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFTMF", + "source_type": "NUMERIC(3,0)", + "dest_name": "awftmf", + "dest_type": "numeric(3,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWRECU", + "source_type": "CHAR(3)", + "dest_name": "awrecu", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWRECC", + "source_type": "CHAR(3)", + "dest_name": "awrecc", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWPSOR", + "source_type": "CHAR(3)", + "dest_name": "awpsor", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUTA", + "source_type": "CHAR(1)", + "dest_name": "awfuta", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWSCDT", + "source_type": "CHAR(1)", + "dest_name": "awscdt", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWDRWS", + "source_type": "CHAR(1)", + "dest_name": "awdrws", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWDRWL", + "source_type": "CHAR(4)", + "dest_name": "awdrwl", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWDENC", + "source_type": "CHAR(11)", + "dest_name": "awdenc", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWDREL", + "source_type": "CHAR(3)", + "dest_name": "awdrel", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWDDAT", + "source_type": "DATE", + "dest_name": "awddat", + "dest_type": "date", + "description": "PLACE MARKER" + }, + { + "source_name": "AWDRWS2", + "source_type": "CHAR(1)", + "dest_name": "awdrws2", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWDRWL2", + "source_type": "CHAR(4)", + "dest_name": "awdrwl2", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWDENC2", + "source_type": "CHAR(11)", + "dest_name": "awdenc2", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWDREL2", + "source_type": "CHAR(3)", + "dest_name": "awdrel2", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWDDAT2", + "source_type": "DATE", + "dest_name": "awddat2", + "dest_type": "date", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUTE", + "source_type": "CHAR(20)", + "dest_name": "awfute", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUTF", + "source_type": "CHAR(20)", + "dest_name": "awfutf", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWSTCL", + "source_type": "CHAR(3)", + "dest_name": "awstcl", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWVLCD", + "source_type": "CHAR(3)", + "dest_name": "awvlcd", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWSPPP", + "source_type": "NUMERIC(4,0)", + "dest_name": "awsppp", + "dest_type": "numeric(4,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWSPPC", + "source_type": "CHAR(50)", + "dest_name": "awsppc", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWMPPP", + "source_type": "NUMERIC(4,0)", + "dest_name": "awmppp", + "dest_type": "numeric(4,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWMPPC", + "source_type": "CHAR(50)", + "dest_name": "awmppc", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFLG01", + "source_type": "CHAR(1)", + "dest_name": "awflg01", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFLG02", + "source_type": "CHAR(1)", + "dest_name": "awflg02", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFLG03", + "source_type": "CHAR(1)", + "dest_name": "awflg03", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFLG04", + "source_type": "CHAR(1)", + "dest_name": "awflg04", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFLG05", + "source_type": "CHAR(1)", + "dest_name": "awflg05", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFLG06", + "source_type": "CHAR(1)", + "dest_name": "awflg06", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFLG07", + "source_type": "CHAR(1)", + "dest_name": "awflg07", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFLG08", + "source_type": "CHAR(1)", + "dest_name": "awflg08", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFLG09", + "source_type": "CHAR(1)", + "dest_name": "awflg09", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFLG10", + "source_type": "CHAR(1)", + "dest_name": "awflg10", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT01", + "source_type": "CHAR(3)", + "dest_name": "awfut01", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT02", + "source_type": "CHAR(3)", + "dest_name": "awfut02", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT03", + "source_type": "CHAR(3)", + "dest_name": "awfut03", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT04", + "source_type": "CHAR(3)", + "dest_name": "awfut04", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT05", + "source_type": "CHAR(3)", + "dest_name": "awfut05", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT06", + "source_type": "CHAR(5)", + "dest_name": "awfut06", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT07", + "source_type": "CHAR(5)", + "dest_name": "awfut07", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT08", + "source_type": "CHAR(5)", + "dest_name": "awfut08", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT09", + "source_type": "CHAR(5)", + "dest_name": "awfut09", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT10", + "source_type": "CHAR(5)", + "dest_name": "awfut10", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT11", + "source_type": "CHAR(10)", + "dest_name": "awfut11", + "dest_type": "text", + "description": "Product Family" + }, + { + "source_name": "AWFUT12", + "source_type": "CHAR(10)", + "dest_name": "awfut12", + "dest_type": "text", + "description": "Product Type" + }, + { + "source_name": "AWFUT13", + "source_type": "CHAR(10)", + "dest_name": "awfut13", + "dest_type": "text", + "description": "Product Group" + }, + { + "source_name": "AWFUT14", + "source_type": "CHAR(10)", + "dest_name": "awfut14", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT15", + "source_type": "CHAR(10)", + "dest_name": "awfut15", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT16", + "source_type": "CHAR(20)", + "dest_name": "awfut16", + "dest_type": "text", + "description": "Product Detail" + }, + { + "source_name": "AWFUT17", + "source_type": "CHAR(20)", + "dest_name": "awfut17", + "dest_type": "text", + "description": "Product Brand" + }, + { + "source_name": "AWFUT18", + "source_type": "CHAR(20)", + "dest_name": "awfut18", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT19", + "source_type": "CHAR(20)", + "dest_name": "awfut19", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT20", + "source_type": "CHAR(20)", + "dest_name": "awfut20", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT21", + "source_type": "CHAR(30)", + "dest_name": "awfut21", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT22", + "source_type": "CHAR(30)", + "dest_name": "awfut22", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT23", + "source_type": "CHAR(30)", + "dest_name": "awfut23", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT24", + "source_type": "CHAR(30)", + "dest_name": "awfut24", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT25", + "source_type": "CHAR(30)", + "dest_name": "awfut25", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT26", + "source_type": "NUMERIC(10,0)", + "dest_name": "awfut26", + "dest_type": "numeric(10,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT27", + "source_type": "NUMERIC(10,0)", + "dest_name": "awfut27", + "dest_type": "numeric(10,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT28", + "source_type": "NUMERIC(10,0)", + "dest_name": "awfut28", + "dest_type": "numeric(10,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT29", + "source_type": "NUMERIC(10,0)", + "dest_name": "awfut29", + "dest_type": "numeric(10,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT30", + "source_type": "NUMERIC(10,0)", + "dest_name": "awfut30", + "dest_type": "numeric(10,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT31", + "source_type": "NUMERIC(15,0)", + "dest_name": "awfut31", + "dest_type": "numeric(15,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT32", + "source_type": "NUMERIC(15,0)", + "dest_name": "awfut32", + "dest_type": "numeric(15,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT33", + "source_type": "NUMERIC(15,0)", + "dest_name": "awfut33", + "dest_type": "numeric(15,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT34", + "source_type": "NUMERIC(15,0)", + "dest_name": "awfut34", + "dest_type": "numeric(15,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT35", + "source_type": "NUMERIC(15,0)", + "dest_name": "awfut35", + "dest_type": "numeric(15,0)", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT36", + "source_type": "DATE", + "dest_name": "awfut36", + "dest_type": "date", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT37", + "source_type": "DATE", + "dest_name": "awfut37", + "dest_type": "date", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT38", + "source_type": "DATE", + "dest_name": "awfut38", + "dest_type": "date", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT39", + "source_type": "DATE", + "dest_name": "awfut39", + "dest_type": "date", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT40", + "source_type": "DATE", + "dest_name": "awfut40", + "dest_type": "date", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT41", + "source_type": "TIME", + "dest_name": "awfut41", + "dest_type": "time", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT42", + "source_type": "TIME", + "dest_name": "awfut42", + "dest_type": "time", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT43", + "source_type": "TIME", + "dest_name": "awfut43", + "dest_type": "time", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT44", + "source_type": "TIME", + "dest_name": "awfut44", + "dest_type": "time", + "description": "PLACE MARKER" + }, + { + "source_name": "AWFUT45", + "source_type": "TIME", + "dest_name": "awfut45", + "dest_type": "time", + "description": "PLACE MARKER" + }, + { + "source_name": "AWUDFT", + "source_type": "CHAR(1)", + "dest_name": "awudft", + "dest_type": "text", + "description": "Unit Defaults" + }, + { + "source_name": "AWFRML", + "source_type": "CHAR(6)", + "dest_name": "awfrml", + "dest_type": "text", + "description": "PLACE MARKER" + }, + { + "source_name": "AWHAZA", + "source_type": "CHAR(1)", + "dest_name": "awhaza", + "dest_type": "text", + "description": "Hazardous" + }, + { + "source_name": "AWLLED", + "source_type": "NUMERIC(3,0)", + "dest_name": "awlled", + "dest_type": "numeric(3,0)", + "description": "Longest Lead Time (in days)" + }, + { + "source_name": "AWDBAC", + "source_type": "CHAR(1)", + "dest_name": "awdbac", + "dest_type": "text", + "description": "Direct Buy Action Code" + }, + { + "source_name": "AWSCDPT", + "source_type": "CHAR(1)", + "dest_name": "awscdpt", + "dest_type": "text", + "description": "SCD Part" + }, + { + "source_name": "AWFIFO", + "source_type": "CHAR(1)", + "dest_name": "awfifo", + "dest_type": "text", + "description": "FIFO Tracking" + }, + { + "source_name": "AWANTID", + "source_type": "CHAR(1)", + "dest_name": "awantid", + "dest_type": "text", + "description": "Anti-Dumping Tracking" + }, + { + "source_name": "AWSUBT", + "source_type": "CHAR(1)", + "dest_name": "awsubt", + "dest_type": "text", + "description": "Dumping Subject" + }, + { + "source_name": "AWPRCL", + "source_type": "CHAR(1)", + "dest_name": "awprcl", + "dest_type": "text", + "description": "Price Lock" + }, + { + "source_name": "AWOTP", + "source_type": "CHAR(1)", + "dest_name": "awotp", + "dest_type": "text", + "description": "One-Time Part" + }, + { + "source_name": "AWCBYL", + "source_type": "CHAR(1)", + "dest_name": "awcbyl", + "dest_type": "text", + "description": "Consumed By Length" + }, + { + "source_name": "AWSRVC", + "source_type": "CHAR(1)", + "dest_name": "awsrvc", + "dest_type": "text", + "description": "Service Charge Part" + }, + { + "source_name": "AWSPAL", + "source_type": "CHAR(1)", + "dest_name": "awspal", + "dest_type": "text", + "description": "Separate PO-AP for Received Lump" + }, + { + "source_name": "AWPGRP", + "source_type": "CHAR(20)", + "dest_name": "awpgrp", + "dest_type": "text", + "description": "Commodity Category Code" + }, + { + "source_name": "AWUPN", + "source_type": "CHAR(18)", + "dest_name": "awupn", + "dest_type": "text", + "description": "Universal Product Number" + }, + { + "source_name": "AWUEQG", + "source_type": "CHAR(1)", + "dest_name": "awueqg", + "dest_type": "text", + "description": "Set UPN Same as GTIN" + }, + { + "source_name": "AWMROT", + "source_type": "CHAR(1)", + "dest_name": "awmrot", + "dest_type": "text", + "description": "MRO Type" + }, + { + "source_name": "AWFUT54", + "source_type": "CHAR(10)", + "dest_name": "awfut54", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFUT55", + "source_type": "CHAR(10)", + "dest_name": "awfut55", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFUT56", + "source_type": "CHAR(20)", + "dest_name": "awfut56", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFUT57", + "source_type": "CHAR(20)", + "dest_name": "awfut57", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFUT58", + "source_type": "CHAR(1)", + "dest_name": "awfut58", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWFUT59", + "source_type": "CHAR(1)", + "dest_name": "awfut59", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "AWMFRC", + "source_type": "CHAR(10)", + "dest_name": "awmfrc", + "dest_type": "text", + "description": "Manufacturer Code" + }, + { + "source_name": "AWATFR", + "source_type": "CHAR(1)", + "dest_name": "awatfr", + "dest_type": "text", + "description": "ATF Restricted" + }, + { + "source_name": "AWBBKRQ", + "source_type": "CHAR(1)", + "dest_name": "awbbkrq", + "dest_type": "text", + "description": "Bound Book Required" + }, + { + "source_name": "AWMLBLC", + "source_type": "CHAR(1)", + "dest_name": "awmlblc", + "dest_type": "text", + "description": "Manual Label Creation Control" + }, + { + "source_name": "AWROHSCT", + "source_type": "CHAR(1)", + "dest_name": "awrohsct", + "dest_type": "text", + "description": "RoHS Certificate" + }, + { + "source_name": "AWROHSCF", + "source_type": "CHAR(1)", + "dest_name": "awrohscf", + "dest_type": "text", + "description": "RoHS Certified" + }, + { + "source_name": "AWBBKINT", + "source_type": "CHAR(2)", + "dest_name": "awbbkint", + "dest_type": "text", + "description": "Bound Book Initial Condition" + }, + { + "source_name": "AWMFCOR", + "source_type": "CHAR(3)", + "dest_name": "awmfcor", + "dest_type": "text", + "description": "Manufacturing Country of Origin" + }, + { + "source_name": "AWMFPOR", + "source_type": "CHAR(3)", + "dest_name": "awmfpor", + "dest_type": "text", + "description": "Manufacturer Province of Origin" + }, + { + "source_name": "AWMFRMC", + "source_type": "CHAR(30)", + "dest_name": "awmfrmc", + "dest_type": "text", + "description": "Manufacturer Model Code" + }, + { + "source_name": "AWMFRMS", + "source_type": "CHAR(30)", + "dest_name": "awmfrms", + "dest_type": "text", + "description": "Manufacturer Model Style Code" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/stkmp.sql b/config/modules/stkmp.sql new file mode 100644 index 0000000..882763a --- /dev/null +++ b/config/modules/stkmp.sql @@ -0,0 +1,251 @@ +SELECT + RTRIM(AWPART) AS awpart, + RTRIM(AWDES1) AS awdes1, + RTRIM(AWDES2) AS awdes2, + RTRIM(AWDES3) AS awdes3, + RTRIM(AWUNTI) AS awunti, + RTRIM(AWMAJG) AS awmajg, + RTRIM(AWMING) AS awming, + RTRIM(AWMAJS) AS awmajs, + RTRIM(AWMINS) AS awmins, + RTRIM(AWGLDC) AS awgldc, + RTRIM(AWGLED) AS awgled, + RTRIM(AWHARM) AS awharm, + RTRIM(AWCLSS) AS awclss, + RTRIM(AWFUT3) AS awfut3, + RTRIM(AWFUT4) AS awfut4, + RTRIM(AWFUT5) AS awfut5, + RTRIM(AWFUTC) AS awfutc, + RTRIM(AWFUTD) AS awfutd, + RTRIM(AWUPCC) AS awupcc, + AWGTIN AS awgtin, + AWNWHT AS awnwht, + RTRIM(AWNWUN) AS awnwun, + AWSVOL AS awsvol, + RTRIM(AWSVUN) AS awsvun, + RTRIM(AWTYPE) AS awtype, + RTRIM(AWVEND) AS awvend, + RTRIM("AWVPT#") AS "awvpt#", + RTRIM("AWREV#") AS "awrev#", + RTRIM(AWENGC) AS awengc, + RTRIM(AWREVL) AS awrevl, + CASE WHEN AWRDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWRDAT END AS awrdat, + RTRIM(AWFUT7) AS awfut7, + RTRIM(AWFUT8) AS awfut8, + RTRIM(AWFUTB) AS awfutb, + RTRIM(AWCOIL) AS awcoil, + RTRIM(AWFUT9) AS awfut9, + RTRIM(AWMSPC) AS awmspc, + RTRIM(AWUVER) AS awuver, + RTRIM(AWCATA) AS awcata, + AWSLIF AS awslif, + RTRIM(AWFUTK) AS awfutk, + RTRIM(AWFUTN) AS awfutn, + RTRIM(AWPPAP) AS awppap, + RTRIM(AWDPLT) AS awdplt, + RTRIM(AWGDFL) AS awgdfl, + RTRIM(AWVDFL) AS awvdfl, + RTRIM(AWWOQF) AS awwoqf, + RTRIM(AWLCOIL) AS awlcoil, + RTRIM(AWNMFC) AS awnmfc, + RTRIM(AWSIZC) AS awsizc, + RTRIM(AWSTLC) AS awstlc, + RTRIM(AWCOLC) AS awcolc, + RTRIM(AWASSC) AS awassc, + RTRIM(AWSASC) AS awsasc, + RTRIM(AWCUSR) AS awcusr, + CASE WHEN AWCDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWCDAT END AS awcdat, + AWCTME AS awctme, + RTRIM(AWUUSR) AS awuusr, + CASE WHEN AWUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWUDAT END AS awudat, + AWUTME AS awutme, + AWFUTH AS awfuth, + AWFUTI AS awfuti, + AWFUT6 AS awfut6, + RTRIM(AWFUTL) AS awfutl, + RTRIM(AWFUTM) AS awfutm, + RTRIM(AWFUTO) AS awfuto, + RTRIM(AWFUTP) AS awfutp, + CASE WHEN AWFUTQ IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUTQ END AS awfutq, + CASE WHEN AWFUTR IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUTR END AS awfutr, + CASE WHEN AWLDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWLDAT END AS awldat, + RTRIM(AWLOTF) AS awlotf, + RTRIM(AWSERF) AS awserf, + RTRIM(AWOLDD) AS awoldd, + RTRIM(AWBK02) AS awbk02, + RTRIM(AWOLDD2) AS awoldd2, + RTRIM(AWDISC) AS awdisc, + RTRIM(AWORIG) AS aworig, + RTRIM(AWFEDC) AS awfedc, + RTRIM(AWTAXR) AS awtaxr, + RTRIM(AWBK01) AS awbk01, + RTRIM(AWBK03) AS awbk03, + RTRIM(AWBK04) AS awbk04, + RTRIM(AWBK05) AS awbk05, + RTRIM(AWINVT) AS awinvt, + AWCONV AS awconv, + RTRIM(AWUNTO) AS awunto, + RTRIM(AWREQC) AS awreqc, + AWOPTR AS awoptr, + AWLEAD AS awlead, + RTRIM(AWCORG) AS awcorg, + RTRIM(AWCNTR) AS awcntr, + AWOLA AS awola, + RTRIM(AWUNTP) AS awuntp, + AWSHRK AS awshrk, + AWLVL AS awlvl, + AWMOQT AS awmoqt, + AWPACK AS awpack, + RTRIM(AWPACU) AS awpacu, + AWPRPT AS awprpt, + RTRIM(AWBUYR) AS awbuyr, + RTRIM(AWAUTY) AS awauty, + AWMPQT AS awmpqt, + RTRIM(AWABCC) AS awabcc, + RTRIM(AWSTAT) AS awstat, + RTRIM(AWPROC) AS awproc, + RTRIM(AWLRSP) AS awlrsp, + AWLRSC AS awlrsc, + RTRIM(AWLRSF) AS awlrsf, + RTRIM(AWLRMP) AS awlrmp, + AWLRMC AS awlrmc, + RTRIM(AWLRMF) AS awlrmf, + RTRIM(AWLWSP) AS awlwsp, + AWLWSC AS awlwsc, + RTRIM(AWLWSF) AS awlwsf, + RTRIM(AWLCSP) AS awlcsp, + AWLCSC AS awlcsc, + RTRIM(AWLCSF) AS awlcsf, + RTRIM(AWLCMP) AS awlcmp, + AWLCMC AS awlcmc, + RTRIM(AWLCMF) AS awlcmf, + AWLSSC AS awlssc, + RTRIM(AWLSSF) AS awlssf, + RTRIM(AWLSMP) AS awlsmp, + AWLSMC AS awlsmc, + RTRIM(AWLSMF) AS awlsmf, + AWMPCK AS awmpck, + RTRIM(AWMPKU) AS awmpku, + RTRIM(AWFUTJ) AS awfutj, + AWFUTG AS awfutg, + RTRIM(AWDBUY) AS awdbuy, + AWPERC AS awperc, + RTRIM(AWREAS) AS awreas, + RTRIM(AWFUT1) AS awfut1, + RTRIM(AWFUT2) AS awfut2, + AWALTF AS awaltf, + AWFTMF AS awftmf, + RTRIM(AWRECU) AS awrecu, + RTRIM(AWRECC) AS awrecc, + RTRIM(AWPSOR) AS awpsor, + RTRIM(AWFUTA) AS awfuta, + RTRIM(AWSCDT) AS awscdt, + RTRIM(AWDRWS) AS awdrws, + RTRIM(AWDRWL) AS awdrwl, + RTRIM(AWDENC) AS awdenc, + RTRIM(AWDREL) AS awdrel, + CASE WHEN AWDDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWDDAT END AS awddat, + RTRIM(AWDRWS2) AS awdrws2, + RTRIM(AWDRWL2) AS awdrwl2, + RTRIM(AWDENC2) AS awdenc2, + RTRIM(AWDREL2) AS awdrel2, + CASE WHEN AWDDAT2 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWDDAT2 END AS awddat2, + RTRIM(AWFUTE) AS awfute, + RTRIM(AWFUTF) AS awfutf, + RTRIM(AWSTCL) AS awstcl, + RTRIM(AWVLCD) AS awvlcd, + AWSPPP AS awsppp, + RTRIM(AWSPPC) AS awsppc, + AWMPPP AS awmppp, + RTRIM(AWMPPC) AS awmppc, + RTRIM(AWFLG01) AS awflg01, + RTRIM(AWFLG02) AS awflg02, + RTRIM(AWFLG03) AS awflg03, + RTRIM(AWFLG04) AS awflg04, + RTRIM(AWFLG05) AS awflg05, + RTRIM(AWFLG06) AS awflg06, + RTRIM(AWFLG07) AS awflg07, + RTRIM(AWFLG08) AS awflg08, + RTRIM(AWFLG09) AS awflg09, + RTRIM(AWFLG10) AS awflg10, + RTRIM(AWFUT01) AS awfut01, + RTRIM(AWFUT02) AS awfut02, + RTRIM(AWFUT03) AS awfut03, + RTRIM(AWFUT04) AS awfut04, + RTRIM(AWFUT05) AS awfut05, + RTRIM(AWFUT06) AS awfut06, + RTRIM(AWFUT07) AS awfut07, + RTRIM(AWFUT08) AS awfut08, + RTRIM(AWFUT09) AS awfut09, + RTRIM(AWFUT10) AS awfut10, + RTRIM(AWFUT11) AS awfut11, + RTRIM(AWFUT12) AS awfut12, + RTRIM(AWFUT13) AS awfut13, + RTRIM(AWFUT14) AS awfut14, + RTRIM(AWFUT15) AS awfut15, + RTRIM(AWFUT16) AS awfut16, + RTRIM(AWFUT17) AS awfut17, + RTRIM(AWFUT18) AS awfut18, + RTRIM(AWFUT19) AS awfut19, + RTRIM(AWFUT20) AS awfut20, + RTRIM(AWFUT21) AS awfut21, + RTRIM(AWFUT22) AS awfut22, + RTRIM(AWFUT23) AS awfut23, + RTRIM(AWFUT24) AS awfut24, + RTRIM(AWFUT25) AS awfut25, + AWFUT26 AS awfut26, + AWFUT27 AS awfut27, + AWFUT28 AS awfut28, + AWFUT29 AS awfut29, + AWFUT30 AS awfut30, + AWFUT31 AS awfut31, + AWFUT32 AS awfut32, + AWFUT33 AS awfut33, + AWFUT34 AS awfut34, + AWFUT35 AS awfut35, + CASE WHEN AWFUT36 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUT36 END AS awfut36, + CASE WHEN AWFUT37 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUT37 END AS awfut37, + CASE WHEN AWFUT38 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUT38 END AS awfut38, + CASE WHEN AWFUT39 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUT39 END AS awfut39, + CASE WHEN AWFUT40 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUT40 END AS awfut40, + AWFUT41 AS awfut41, + AWFUT42 AS awfut42, + AWFUT43 AS awfut43, + AWFUT44 AS awfut44, + AWFUT45 AS awfut45, + RTRIM(AWUDFT) AS awudft, + RTRIM(AWFRML) AS awfrml, + RTRIM(AWHAZA) AS awhaza, + AWLLED AS awlled, + RTRIM(AWDBAC) AS awdbac, + RTRIM(AWSCDPT) AS awscdpt, + RTRIM(AWFIFO) AS awfifo, + RTRIM(AWANTID) AS awantid, + RTRIM(AWSUBT) AS awsubt, + RTRIM(AWPRCL) AS awprcl, + RTRIM(AWOTP) AS awotp, + RTRIM(AWCBYL) AS awcbyl, + RTRIM(AWSRVC) AS awsrvc, + RTRIM(AWSPAL) AS awspal, + RTRIM(AWPGRP) AS awpgrp, + RTRIM(AWUPN) AS awupn, + RTRIM(AWUEQG) AS awueqg, + RTRIM(AWMROT) AS awmrot, + RTRIM(AWFUT54) AS awfut54, + RTRIM(AWFUT55) AS awfut55, + RTRIM(AWFUT56) AS awfut56, + RTRIM(AWFUT57) AS awfut57, + RTRIM(AWFUT58) AS awfut58, + RTRIM(AWFUT59) AS awfut59, + RTRIM(AWMFRC) AS awmfrc, + RTRIM(AWATFR) AS awatfr, + RTRIM(AWBBKRQ) AS awbbkrq, + RTRIM(AWMLBLC) AS awmlblc, + RTRIM(AWROHSCT) AS awrohsct, + RTRIM(AWROHSCF) AS awrohscf, + RTRIM(AWBBKINT) AS awbbkint, + RTRIM(AWMFCOR) AS awmfcor, + RTRIM(AWMFPOR) AS awmfpor, + RTRIM(AWMFRMC) AS awmfrmc, + RTRIM(AWMFRMS) AS awmfrms +FROM LGDAT.STKMP diff --git a/config/modules/usrcust.json b/config/modules/usrcust.json new file mode 100644 index 0000000..b70d404 --- /dev/null +++ b/config/modules/usrcust.json @@ -0,0 +1,190 @@ +{ + "name": "usrcust", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.usrcust", + "staging_table": "pipekit_staging.usrcust", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "... USER customer file", + "columns": [ + { + "source_name": "CUCUST", + "source_type": "CHAR(8)", + "dest_name": "cucust", + "dest_type": "text", + "description": "CUSTOMER#" + }, + { + "source_name": "CUTFMON", + "source_type": "CHAR(1)", + "dest_name": "cutfmon", + "dest_type": "text", + "description": "DELIVER ON MON YN" + }, + { + "source_name": "CUTFTUE", + "source_type": "CHAR(1)", + "dest_name": "cutftue", + "dest_type": "text", + "description": "DELIVER ON TUE YN" + }, + { + "source_name": "CUTFWED", + "source_type": "CHAR(1)", + "dest_name": "cutfwed", + "dest_type": "text", + "description": "DELIVER ON WED YN" + }, + { + "source_name": "CUTFTHR", + "source_type": "CHAR(1)", + "dest_name": "cutfthr", + "dest_type": "text", + "description": "DELIVER ON THR YN" + }, + { + "source_name": "CUTFFRI", + "source_type": "CHAR(1)", + "dest_name": "cutffri", + "dest_type": "text", + "description": "DELIVER ON FRI YN" + }, + { + "source_name": "CUTFSAT", + "source_type": "CHAR(1)", + "dest_name": "cutfsat", + "dest_type": "text", + "description": "DELIVER ON SAT YN" + }, + { + "source_name": "CUTFSUN", + "source_type": "CHAR(1)", + "dest_name": "cutfsun", + "dest_type": "text", + "description": "DELIVER ON SUN YN" + }, + { + "source_name": "CUTFCSR", + "source_type": "CHAR(1)", + "dest_name": "cutfcsr", + "dest_type": "text", + "description": "CONTACT CSR YN" + }, + { + "source_name": "CUTFCM1", + "source_type": "CHAR(75)", + "dest_name": "cutfcm1", + "dest_type": "text", + "description": "COMMENTS 1" + }, + { + "source_name": "CUTFCM2", + "source_type": "CHAR(75)", + "dest_name": "cutfcm2", + "dest_type": "text", + "description": "COMMENTS 2" + }, + { + "source_name": "CUTFNM", + "source_type": "CHAR(50)", + "dest_name": "cutfnm", + "dest_type": "text", + "description": "CONTACT NAME" + }, + { + "source_name": "CUTFPH", + "source_type": "CHAR(50)", + "dest_name": "cutfph", + "dest_type": "text", + "description": "CONTACT PHONE" + }, + { + "source_name": "CUTFEM", + "source_type": "CHAR(150)", + "dest_name": "cutfem", + "dest_type": "text", + "description": "CONTACT EMAIL" + }, + { + "source_name": "CUTFCAR", + "source_type": "CHAR(30)", + "dest_name": "cutfcar", + "dest_type": "text", + "description": "CARRIER PREF" + }, + { + "source_name": "CUTFEQP", + "source_type": "CHAR(2)", + "dest_name": "cutfeqp", + "dest_type": "text", + "description": "EQUIPMENT" + }, + { + "source_name": "CUTFAPT", + "source_type": "CHAR(2)", + "dest_name": "cutfapt", + "dest_type": "text", + "description": "APPT NOTIFY" + }, + { + "source_name": "CUTFDEL", + "source_type": "CHAR(2)", + "dest_name": "cutfdel", + "dest_type": "text", + "description": "DELIVERY NOTIFY" + }, + { + "source_name": "CUTFRHR", + "source_type": "CHAR(30)", + "dest_name": "cutfrhr", + "dest_type": "text", + "description": "RECEIVING HOURS" + }, + { + "source_name": "CUGREP", + "source_type": "CHAR(5)", + "dest_name": "cugrep", + "dest_type": "text", + "description": "INSIDE SALES REP" + }, + { + "source_name": "CURREP", + "source_type": "CHAR(5)", + "dest_name": "currep", + "dest_type": "text", + "description": "RETAIL REP" + }, + { + "source_name": "CUNREP", + "source_type": "CHAR(5)", + "dest_name": "cunrep", + "dest_type": "text", + "description": "KEY ACCOUNT REP" + }, + { + "source_name": "CUMREP", + "source_type": "CHAR(5)", + "dest_name": "cumrep", + "dest_type": "text", + "description": "MISC REP" + }, + { + "source_name": "CURCVTMS", + "source_type": "NUMERIC(4,0)", + "dest_name": "curcvtms", + "dest_type": "numeric(4,0)", + "description": "RECEIVING TIME START" + }, + { + "source_name": "CURCVTME", + "source_type": "NUMERIC(4,0)", + "dest_name": "curcvtme", + "dest_type": "numeric(4,0)", + "description": "RECEIVING TIME END" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/usrcust.sql b/config/modules/usrcust.sql new file mode 100644 index 0000000..71932a3 --- /dev/null +++ b/config/modules/usrcust.sql @@ -0,0 +1,27 @@ +SELECT + RTRIM(CUCUST) AS cucust, + RTRIM(CUTFMON) AS cutfmon, + RTRIM(CUTFTUE) AS cutftue, + RTRIM(CUTFWED) AS cutfwed, + RTRIM(CUTFTHR) AS cutfthr, + RTRIM(CUTFFRI) AS cutffri, + RTRIM(CUTFSAT) AS cutfsat, + RTRIM(CUTFSUN) AS cutfsun, + RTRIM(CUTFCSR) AS cutfcsr, + RTRIM(CUTFCM1) AS cutfcm1, + RTRIM(CUTFCM2) AS cutfcm2, + RTRIM(CUTFNM) AS cutfnm, + RTRIM(CUTFPH) AS cutfph, + RTRIM(CUTFEM) AS cutfem, + RTRIM(CUTFCAR) AS cutfcar, + RTRIM(CUTFEQP) AS cutfeqp, + RTRIM(CUTFAPT) AS cutfapt, + RTRIM(CUTFDEL) AS cutfdel, + RTRIM(CUTFRHR) AS cutfrhr, + RTRIM(CUGREP) AS cugrep, + RTRIM(CURREP) AS currep, + RTRIM(CUNREP) AS cunrep, + RTRIM(CUMREP) AS cumrep, + CURCVTMS AS curcvtms, + CURCVTME AS curcvtme +FROM LGPGM.USRCUST diff --git a/config/modules/usrd.json b/config/modules/usrd.json new file mode 100644 index 0000000..9fde413 --- /dev/null +++ b/config/modules/usrd.json @@ -0,0 +1,85 @@ +{ + "name": "usrd", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.usrd", + "staging_table": "pipekit_staging.usrd", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "User Definition File 5.3", + "columns": [ + { + "source_name": "LTSRCE", + "source_type": "CHAR(3)", + "dest_name": "ltsrce", + "dest_type": "text", + "description": "Source" + }, + { + "source_name": "LTKEYF", + "source_type": "CHAR(20)", + "dest_name": "ltkeyf", + "dest_type": "text", + "description": "Key Field" + }, + { + "source_name": "LTENT#", + "source_type": "NUMERIC(3,0)", + "dest_name": "ltent#", + "dest_type": "numeric(3,0)", + "description": "Entry #" + }, + { + "source_name": "LTTTLE", + "source_type": "CHAR(15)", + "dest_name": "ltttle", + "dest_type": "text", + "description": "Title/Prompt" + }, + { + "source_name": "LTTYPE", + "source_type": "CHAR(1)", + "dest_name": "lttype", + "dest_type": "text", + "description": "Field Type" + }, + { + "source_name": "LTSIZE", + "source_type": "NUMERIC(2,0)", + "dest_name": "ltsize", + "dest_type": "numeric(2,0)", + "description": "Field Size" + }, + { + "source_name": "LTDECS", + "source_type": "NUMERIC(2,0)", + "dest_name": "ltdecs", + "dest_type": "numeric(2,0)", + "description": "# of Decimals" + }, + { + "source_name": "LTPMPG", + "source_type": "CHAR(10)", + "dest_name": "ltpmpg", + "dest_type": "text", + "description": "Exit Point Prompt Program" + }, + { + "source_name": "LTVLPG", + "source_type": "CHAR(10)", + "dest_name": "ltvlpg", + "dest_type": "text", + "description": "Exit Point Validation Program" + }, + { + "source_name": "LTLTLE", + "source_type": "CHAR(80)", + "dest_name": "ltltle", + "dest_type": "text", + "description": "Long Title/Prompt" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/usrd.sql b/config/modules/usrd.sql new file mode 100644 index 0000000..ba0bde1 --- /dev/null +++ b/config/modules/usrd.sql @@ -0,0 +1,12 @@ +SELECT + RTRIM(LTSRCE) AS ltsrce, + RTRIM(LTKEYF) AS ltkeyf, + "LTENT#" AS "ltent#", + RTRIM(LTTTLE) AS ltttle, + RTRIM(LTTYPE) AS lttype, + LTSIZE AS ltsize, + LTDECS AS ltdecs, + RTRIM(LTPMPG) AS ltpmpg, + RTRIM(LTVLPG) AS ltvlpg, + RTRIM(LTLTLE) AS ltltle +FROM LGDAT.USRD diff --git a/config/modules/vend.json b/config/modules/vend.json new file mode 100644 index 0000000..b03d7ed --- /dev/null +++ b/config/modules/vend.json @@ -0,0 +1,1345 @@ +{ + "name": "vend", + "source_connection": "S78030956", + "dest_connection": "usmidsap02", + "dest_table": "cms.vend", + "staging_table": "pipekit_staging.vend", + "merge_strategy": "full", + "merge_key": null, + "enabled": 1, + "dest_description": "Vendor Master 6.1", + "columns": [ + { + "source_name": "BTPYTD", + "source_type": "DECIMAL(11,2)", + "dest_name": "btpytd", + "dest_type": "numeric(11,2)", + "description": "Previous YTD Purchases" + }, + { + "source_name": "BTNAME", + "source_type": "CHAR(30)", + "dest_name": "btname", + "dest_type": "text", + "description": "Vendor Name" + }, + { + "source_name": "BTADR1", + "source_type": "CHAR(35)", + "dest_name": "btadr1", + "dest_type": "text", + "description": "Address Line 1" + }, + { + "source_name": "BTADR2", + "source_type": "CHAR(35)", + "dest_name": "btadr2", + "dest_type": "text", + "description": "Address Line 2" + }, + { + "source_name": "BTADR3", + "source_type": "CHAR(35)", + "dest_name": "btadr3", + "dest_type": "text", + "description": "Address Line 3" + }, + { + "source_name": "BTADR4", + "source_type": "CHAR(35)", + "dest_name": "btadr4", + "dest_type": "text", + "description": "Address Line 4" + }, + { + "source_name": "BTADR5", + "source_type": "CHAR(35)", + "dest_name": "btadr5", + "dest_type": "text", + "description": "Address Line 5" + }, + { + "source_name": "BTADR6", + "source_type": "CHAR(35)", + "dest_name": "btadr6", + "dest_type": "text", + "description": "Address Line 6" + }, + { + "source_name": "BTADR7", + "source_type": "CHAR(35)", + "dest_name": "btadr7", + "dest_type": "text", + "description": "Address Line 7" + }, + { + "source_name": "BTADR8", + "source_type": "CHAR(35)", + "dest_name": "btadr8", + "dest_type": "text", + "description": "Address Line 8" + }, + { + "source_name": "BTADR9", + "source_type": "CHAR(35)", + "dest_name": "btadr9", + "dest_type": "text", + "description": "Address Line 9" + }, + { + "source_name": "BTADR10", + "source_type": "CHAR(35)", + "dest_name": "btadr10", + "dest_type": "text", + "description": "Address Line 10" + }, + { + "source_name": "BTPOST", + "source_type": "CHAR(10)", + "dest_name": "btpost", + "dest_type": "text", + "description": "Postal Code/ZIP" + }, + { + "source_name": "BTCITY", + "source_type": "CHAR(30)", + "dest_name": "btcity", + "dest_type": "text", + "description": "City" + }, + { + "source_name": "BTTEL#", + "source_type": "CHAR(25)", + "dest_name": "bttel#", + "dest_type": "text", + "description": "Telephone Number" + }, + { + "source_name": "BTBANK", + "source_type": "CHAR(3)", + "dest_name": "btbank", + "dest_type": "text", + "description": "A/P Bank Code" + }, + { + "source_name": "BTPERC", + "source_type": "DECIMAL(3,1)", + "dest_name": "btperc", + "dest_type": "numeric(3,1)", + "description": "NOT USED" + }, + { + "source_name": "BTTERM", + "source_type": "DECIMAL(3,0)", + "dest_name": "btterm", + "dest_type": "numeric(3,0)", + "description": "NOT USED" + }, + { + "source_name": "BTCYTD", + "source_type": "DECIMAL(11,2)", + "dest_name": "btcytd", + "dest_type": "numeric(11,2)", + "description": "YTD Purchases Amount" + }, + { + "source_name": "BTLDAT", + "source_type": "DATE", + "dest_name": "btldat", + "dest_type": "date", + "description": "Last Cheque Date" + }, + { + "source_name": "BTCLAS", + "source_type": "CHAR(1)", + "dest_name": "btclas", + "dest_type": "text", + "description": "Vendor Class" + }, + { + "source_name": "BTGSTF", + "source_type": "CHAR(1)", + "dest_name": "btgstf", + "dest_type": "text", + "description": "NOT USED" + }, + { + "source_name": "BTNETD", + "source_type": "NUMERIC(3,0)", + "dest_name": "btnetd", + "dest_type": "numeric(3,0)", + "description": "NOT USED" + }, + { + "source_name": "BTCURR", + "source_type": "CHAR(2)", + "dest_name": "btcurr", + "dest_type": "text", + "description": "Currency Code" + }, + { + "source_name": "BTSORT", + "source_type": "NUMERIC(2,0)", + "dest_name": "btsort", + "dest_type": "numeric(2,0)", + "description": "Name Sort Position" + }, + { + "source_name": "BTCONT", + "source_type": "CHAR(18)", + "dest_name": "btcont", + "dest_type": "text", + "description": "Contact Name" + }, + { + "source_name": "BTVEND", + "source_type": "CHAR(10)", + "dest_name": "btvend", + "dest_type": "text", + "description": "Vendor Code" + }, + { + "source_name": "BTFAX#", + "source_type": "CHAR(25)", + "dest_name": "btfax#", + "dest_type": "text", + "description": "FAX Number" + }, + { + "source_name": "BTGSTL", + "source_type": "CHAR(20)", + "dest_name": "btgstl", + "dest_type": "text", + "description": "GST Licence Number" + }, + { + "source_name": "BTTRMC", + "source_type": "CHAR(2)", + "dest_name": "bttrmc", + "dest_type": "text", + "description": "Terms Code" + }, + { + "source_name": "BTFOBC", + "source_type": "CHAR(3)", + "dest_name": "btfobc", + "dest_type": "text", + "description": "FOB Code" + }, + { + "source_name": "BTTAXG", + "source_type": "CHAR(3)", + "dest_name": "bttaxg", + "dest_type": "text", + "description": "Tax Group Code" + }, + { + "source_name": "BTTAXR", + "source_type": "CHAR(1)", + "dest_name": "bttaxr", + "dest_type": "text", + "description": "Goods Tax Rate Code" + }, + { + "source_name": "BTTAXS", + "source_type": "CHAR(1)", + "dest_name": "bttaxs", + "dest_type": "text", + "description": "Services Tax Rate Code" + }, + { + "source_name": "BTRMIT", + "source_type": "CHAR(10)", + "dest_name": "btrmit", + "dest_type": "text", + "description": "Remit to Vendor Code" + }, + { + "source_name": "BTOSSL", + "source_type": "CHAR(6)", + "dest_name": "btossl", + "dest_type": "text", + "description": "O/S Stockroom Code" + }, + { + "source_name": "BTDUNS", + "source_type": "CHAR(14)", + "dest_name": "btduns", + "dest_type": "text", + "description": "Duns Number" + }, + { + "source_name": "BTAUVF", + "source_type": "CHAR(1)", + "dest_name": "btauvf", + "dest_type": "text", + "description": "Auto Voucher Flag" + }, + { + "source_name": "BTCPVR", + "source_type": "CHAR(1)", + "dest_name": "btcpvr", + "dest_type": "text", + "description": "Cheque/ Voucher Flag" + }, + { + "source_name": "BTCARC", + "source_type": "CHAR(17)", + "dest_name": "btcarc", + "dest_type": "text", + "description": "Carrier Code" + }, + { + "source_name": "BTCBRC", + "source_type": "CHAR(10)", + "dest_name": "btcbrc", + "dest_type": "text", + "description": "Customs Broker Code" + }, + { + "source_name": "BTAPPD", + "source_type": "NUMERIC(12,2)", + "dest_name": "btappd", + "dest_type": "numeric(12,2)", + "description": "P/O Approval Limit" + }, + { + "source_name": "BTMINF", + "source_type": "CHAR(1)", + "dest_name": "btminf", + "dest_type": "text", + "description": "Minority Indicator Y/N" + }, + { + "source_name": "BTVNRM", + "source_type": "CHAR(1)", + "dest_name": "btvnrm", + "dest_type": "text", + "description": "Vendor Remittance EDI" + }, + { + "source_name": "BTBKRM", + "source_type": "CHAR(1)", + "dest_name": "btbkrm", + "dest_type": "text", + "description": "Bank Remittance EDI" + }, + { + "source_name": "BTINSP", + "source_type": "CHAR(5)", + "dest_name": "btinsp", + "dest_type": "text", + "description": "QC Inspector Code" + }, + { + "source_name": "BTPSAC", + "source_type": "CHAR(1)", + "dest_name": "btpsac", + "dest_type": "text", + "description": "Create Planning Schedule" + }, + { + "source_name": "BTPSFR", + "source_type": "CHAR(1)", + "dest_name": "btpsfr", + "dest_type": "text", + "description": "Planning Schedule Frequency" + }, + { + "source_name": "BTPSDY", + "source_type": "CHAR(1)", + "dest_name": "btpsdy", + "dest_type": "text", + "description": "Planning Schedule Day" + }, + { + "source_name": "BTPSDR", + "source_type": "CHAR(1)", + "dest_name": "btpsdr", + "dest_type": "text", + "description": "Planning Schedule Date" + }, + { + "source_name": "BTSSAC", + "source_type": "CHAR(1)", + "dest_name": "btssac", + "dest_type": "text", + "description": "Create Shipping Schedule" + }, + { + "source_name": "BTSSFR", + "source_type": "CHAR(1)", + "dest_name": "btssfr", + "dest_type": "text", + "description": "Shipping Schedule Frequency" + }, + { + "source_name": "BTSSDY", + "source_type": "CHAR(1)", + "dest_name": "btssdy", + "dest_type": "text", + "description": "Shipping Schedule Day" + }, + { + "source_name": "BTSSDR", + "source_type": "CHAR(1)", + "dest_name": "btssdr", + "dest_type": "text", + "description": "Shipping Schedule Date" + }, + { + "source_name": "BTPEDI", + "source_type": "CHAR(1)", + "dest_name": "btpedi", + "dest_type": "text", + "description": "Planning Schedule EDI" + }, + { + "source_name": "BTSEDI", + "source_type": "CHAR(1)", + "dest_name": "btsedi", + "dest_type": "text", + "description": "Shipping Schedule EDI" + }, + { + "source_name": "BTCNTC", + "source_type": "CHAR(3)", + "dest_name": "btcntc", + "dest_type": "text", + "description": "Country Code" + }, + { + "source_name": "BTFAXP", + "source_type": "CHAR(1)", + "dest_name": "btfaxp", + "dest_type": "text", + "description": "P/O Send Mode" + }, + { + "source_name": "BTEMAL", + "source_type": "CHAR(50)", + "dest_name": "btemal", + "dest_type": "text", + "description": "E-Mail Address" + }, + { + "source_name": "BTWPAG", + "source_type": "CHAR(60)", + "dest_name": "btwpag", + "dest_type": "text", + "description": "Web Page Address" + }, + { + "source_name": "BTFLG1", + "source_type": "CHAR(1)", + "dest_name": "btflg1", + "dest_type": "text", + "description": "Scan Supplier Serial #s" + }, + { + "source_name": "BTCUSR", + "source_type": "CHAR(10)", + "dest_name": "btcusr", + "dest_type": "text", + "description": "Created By User" + }, + { + "source_name": "BTCDAT", + "source_type": "DATE", + "dest_name": "btcdat", + "dest_type": "date", + "description": "Record Creation Date" + }, + { + "source_name": "BTCTME", + "source_type": "TIME", + "dest_name": "btctme", + "dest_type": "time", + "description": "Time Created" + }, + { + "source_name": "BTUUSR", + "source_type": "CHAR(10)", + "dest_name": "btuusr", + "dest_type": "text", + "description": "Updated By User" + }, + { + "source_name": "BTUDAT", + "source_type": "DATE", + "dest_name": "btudat", + "dest_type": "date", + "description": "Record Updated Date" + }, + { + "source_name": "BTUTME", + "source_type": "TIME", + "dest_name": "btutme", + "dest_type": "time", + "description": "Time Updated" + }, + { + "source_name": "BTPRCL", + "source_type": "CHAR(1)", + "dest_name": "btprcl", + "dest_type": "text", + "description": "Prepaid Collect" + }, + { + "source_name": "BTFLG2", + "source_type": "CHAR(1)", + "dest_name": "btflg2", + "dest_type": "text", + "description": "1099 Applicable" + }, + { + "source_name": "BTFLG3", + "source_type": "CHAR(1)", + "dest_name": "btflg3", + "dest_type": "text", + "description": "Generate ScoreCard" + }, + { + "source_name": "BTFLG4", + "source_type": "CHAR(1)", + "dest_name": "btflg4", + "dest_type": "text", + "description": "Process Serialized dtls" + }, + { + "source_name": "BTUVER", + "source_type": "CHAR(10)", + "dest_name": "btuver", + "dest_type": "text", + "description": "USRDEF Verification Template" + }, + { + "source_name": "BTPRCD", + "source_type": "CHAR(3)", + "dest_name": "btprcd", + "dest_type": "text", + "description": "Province /State Code" + }, + { + "source_name": "BTSTAT", + "source_type": "CHAR(1)", + "dest_name": "btstat", + "dest_type": "text", + "description": "Vendor Status" + }, + { + "source_name": "BTREAS", + "source_type": "CHAR(2)", + "dest_name": "btreas", + "dest_type": "text", + "description": "Inactive Reason Code" + }, + { + "source_name": "BTARCN", + "source_type": "CHAR(30)", + "dest_name": "btarcn", + "dest_type": "text", + "description": "A/R Contact" + }, + { + "source_name": "BTARPN", + "source_type": "CHAR(25)", + "dest_name": "btarpn", + "dest_type": "text", + "description": "A/R Phone Number" + }, + { + "source_name": "BTARFX", + "source_type": "CHAR(25)", + "dest_name": "btarfx", + "dest_type": "text", + "description": "A/R Fax Number" + }, + { + "source_name": "BTEBNK", + "source_type": "CHAR(10)", + "dest_name": "btebnk", + "dest_type": "text", + "description": "EFT Bank Code" + }, + { + "source_name": "BTDACN", + "source_type": "NUMERIC(17,0)", + "dest_name": "btdacn", + "dest_type": "numeric(17,0)", + "description": "Deposit Account Number" + }, + { + "source_name": "BTDACT", + "source_type": "CHAR(2)", + "dest_name": "btdact", + "dest_type": "text", + "description": "Deposit Account Type" + }, + { + "source_name": "BTPAYT", + "source_type": "CHAR(1)", + "dest_name": "btpayt", + "dest_type": "text", + "description": "Payment Type" + }, + { + "source_name": "BTFRMT", + "source_type": "CHAR(1)", + "dest_name": "btfrmt", + "dest_type": "text", + "description": "Fax Remittance" + }, + { + "source_name": "BTAPCN", + "source_type": "CHAR(1)", + "dest_name": "btapcn", + "dest_type": "text", + "description": "A/P Control" + }, + { + "source_name": "BTFUT1", + "source_type": "CHAR(10)", + "dest_name": "btfut1", + "dest_type": "text", + "description": "Future Use 1" + }, + { + "source_name": "BTFUT2", + "source_type": "CHAR(10)", + "dest_name": "btfut2", + "dest_type": "text", + "description": "Future Use 2" + }, + { + "source_name": "BTFUT3", + "source_type": "CHAR(10)", + "dest_name": "btfut3", + "dest_type": "text", + "description": "Future Use 3" + }, + { + "source_name": "BTFUT4", + "source_type": "CHAR(20)", + "dest_name": "btfut4", + "dest_type": "text", + "description": "Future Use 4" + }, + { + "source_name": "BTFUT5", + "source_type": "CHAR(20)", + "dest_name": "btfut5", + "dest_type": "text", + "description": "Commodity Authorization" + }, + { + "source_name": "BTFUT6", + "source_type": "NUMERIC(15,5)", + "dest_name": "btfut6", + "dest_type": "numeric(15,5)", + "description": "Future Use 6" + }, + { + "source_name": "BTFUT7", + "source_type": "CHAR(3)", + "dest_name": "btfut7", + "dest_type": "text", + "description": "Future Use 7" + }, + { + "source_name": "BTFUT8", + "source_type": "CHAR(1)", + "dest_name": "btfut8", + "dest_type": "text", + "description": "Future Use 8" + }, + { + "source_name": "BTFUT9", + "source_type": "CHAR(1)", + "dest_name": "btfut9", + "dest_type": "text", + "description": "Future Use 9" + }, + { + "source_name": "BTFUTA", + "source_type": "CHAR(1)", + "dest_name": "btfuta", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "BTFUTB", + "source_type": "CHAR(1)", + "dest_name": "btfutb", + "dest_type": "text", + "description": "Future Use" + }, + { + "source_name": "BTSPLN", + "source_type": "CHAR(1)", + "dest_name": "btspln", + "dest_type": "text", + "description": "Send Planning Schedule" + }, + { + "source_name": "BTSSHP", + "source_type": "CHAR(1)", + "dest_name": "btsshp", + "dest_type": "text", + "description": "Send Shipping Schedule" + }, + { + "source_name": "BTSASN", + "source_type": "CHAR(1)", + "dest_name": "btsasn", + "dest_type": "text", + "description": "Send ASN" + }, + { + "source_name": "BTSLT", + "source_type": "NUMERIC(5,0)", + "dest_name": "btslt", + "dest_type": "numeric(5,0)", + "description": "Shipping Lead Time" + }, + { + "source_name": "BTSWK", + "source_type": "CHAR(1)", + "dest_name": "btswk", + "dest_type": "text", + "description": "Skip Weekend for Lead Time" + }, + { + "source_name": "BTRERA", + "source_type": "CHAR(1)", + "dest_name": "btrera", + "dest_type": "text", + "description": "Require EDI Remittance Advice" + }, + { + "source_name": "BTPPAY", + "source_type": "CHAR(1)", + "dest_name": "btppay", + "dest_type": "text", + "description": "Partial Payment Allowed for EDI" + }, + { + "source_name": "BTFRBL", + "source_type": "CHAR(1)", + "dest_name": "btfrbl", + "dest_type": "text", + "description": "SCD BOL# for Freight Bill" + }, + { + "source_name": "BTVNDT", + "source_type": "CHAR(1)", + "dest_name": "btvndt", + "dest_type": "text", + "description": "Vendor Type" + }, + { + "source_name": "BTFUT10", + "source_type": "CHAR(10)", + "dest_name": "btfut10", + "dest_type": "text", + "description": "Extra Future 1" + }, + { + "source_name": "BTFUT11", + "source_type": "CHAR(10)", + "dest_name": "btfut11", + "dest_type": "text", + "description": "Default EDI Special Instruction Code" + }, + { + "source_name": "BTFUT12", + "source_type": "CHAR(10)", + "dest_name": "btfut12", + "dest_type": "text", + "description": "Import Vendor Flag" + }, + { + "source_name": "BTFUT13", + "source_type": "CHAR(20)", + "dest_name": "btfut13", + "dest_type": "text", + "description": "User Defined Flds Vndr Part Verf. Tmpl" + }, + { + "source_name": "BTFUT14", + "source_type": "CHAR(20)", + "dest_name": "btfut14", + "dest_type": "text", + "description": "Ext Future 5" + }, + { + "source_name": "BTFUT15", + "source_type": "CHAR(20)", + "dest_name": "btfut15", + "dest_type": "text", + "description": "Ext Future 6" + }, + { + "source_name": "BTFUT16", + "source_type": "NUMERIC(15,5)", + "dest_name": "btfut16", + "dest_type": "numeric(15,5)", + "description": "Ext Future 7" + }, + { + "source_name": "BTFUT17", + "source_type": "NUMERIC(15,5)", + "dest_name": "btfut17", + "dest_type": "numeric(15,5)", + "description": "Ext Future 8" + }, + { + "source_name": "BTFUT18", + "source_type": "NUMERIC(15,5)", + "dest_name": "btfut18", + "dest_type": "numeric(15,5)", + "description": "Future9" + }, + { + "source_name": "BTFLG10", + "source_type": "CHAR(1)", + "dest_name": "btflg10", + "dest_type": "text", + "description": "Auto-Prt PO When Approve" + }, + { + "source_name": "BTFLG11", + "source_type": "CHAR(1)", + "dest_name": "btflg11", + "dest_type": "text", + "description": "Voucher Without Rcpt/Ref Requires Notpad" + }, + { + "source_name": "BTFLG12", + "source_type": "CHAR(1)", + "dest_name": "btflg12", + "dest_type": "text", + "description": "Enter Notes for Recurring Vouchers" + }, + { + "source_name": "BTTMZN", + "source_type": "CHAR(4)", + "dest_name": "bttmzn", + "dest_type": "text", + "description": "Time Zone Code" + }, + { + "source_name": "BTDLRF", + "source_type": "CHAR(1)", + "dest_name": "btdlrf", + "dest_type": "text", + "description": "Dealer Flag" + }, + { + "source_name": "BTIDSP", + "source_type": "CHAR(1)", + "dest_name": "btidsp", + "dest_type": "text", + "description": "Initial Display Schedule Release" + }, + { + "source_name": "BTSLTU", + "source_type": "CHAR(1)", + "dest_name": "btsltu", + "dest_type": "text", + "description": "Shipping Lead Time Unit" + }, + { + "source_name": "BTSTRN", + "source_type": "CHAR(1)", + "dest_name": "btstrn", + "dest_type": "text", + "description": "Round Shipping Hours to Days" + }, + { + "source_name": "BTRPRL", + "source_type": "CHAR(6)", + "dest_name": "btrprl", + "dest_type": "text", + "description": "Repair Location" + }, + { + "source_name": "BTCAMT", + "source_type": "NUMERIC(15,5)", + "dest_name": "btcamt", + "dest_type": "numeric(15,5)", + "description": "PO-AP Pre-approved Increase Amt" + }, + { + "source_name": "BTUDPC", + "source_type": "NUMERIC(7,3)", + "dest_name": "btudpc", + "dest_type": "numeric(7,3)", + "description": "Vchr Pre-approved Increase %" + }, + { + "source_name": "BTUDAM", + "source_type": "NUMERIC(15,5)", + "dest_name": "btudam", + "dest_type": "numeric(15,5)", + "description": "Vchr Pre-approved Increase Amt" + }, + { + "source_name": "BTPGRP", + "source_type": "CHAR(20)", + "dest_name": "btpgrp", + "dest_type": "text", + "description": "Commodity Category Code" + }, + { + "source_name": "BT2DFMT", + "source_type": "CHAR(10)", + "dest_name": "bt2dfmt", + "dest_type": "text", + "description": "2D Scan Format" + }, + { + "source_name": "BTD2DS", + "source_type": "CHAR(1)", + "dest_name": "btd2ds", + "dest_type": "text", + "description": "Default to 2D Scan" + }, + { + "source_name": "BTLANG", + "source_type": "CHAR(2)", + "dest_name": "btlang", + "dest_type": "text", + "description": "Language Code" + }, + { + "source_name": "BTHIN", + "source_type": "CHAR(9)", + "dest_name": "bthin", + "dest_type": "text", + "description": "Health Industry Number" + }, + { + "source_name": "BTFEDID", + "source_type": "CHAR(15)", + "dest_name": "btfedid", + "dest_type": "text", + "description": "Federal ID" + }, + { + "source_name": "BTO2DL", + "source_type": "CHAR(1)", + "dest_name": "bto2dl", + "dest_type": "text", + "description": "Override 2D Scan Lot" + }, + { + "source_name": "BTASNM", + "source_type": "CHAR(1)", + "dest_name": "btasnm", + "dest_type": "text", + "description": "ASN Mapping" + }, + { + "source_name": "BTDCLS", + "source_type": "CHAR(10)", + "dest_name": "btdcls", + "dest_type": "text", + "description": "Vendor Dumping Class Code" + }, + { + "source_name": "BTDSUPP", + "source_type": "CHAR(20)", + "dest_name": "btdsupp", + "dest_type": "text", + "description": "Dft. Supplier Code" + }, + { + "source_name": "BTDEPIN", + "source_type": "NUMERIC(11,0)", + "dest_name": "btdepin", + "dest_type": "numeric(11,0)", + "description": "Deposit Institution" + }, + { + "source_name": "BTMORQ", + "source_type": "NUMERIC(15,5)", + "dest_name": "btmorq", + "dest_type": "numeric(15,5)", + "description": "Minimum Order Amount" + }, + { + "source_name": "BTDACA", + "source_type": "CHAR(50)", + "dest_name": "btdaca", + "dest_type": "text", + "description": "Deposit Account Number (char)" + }, + { + "source_name": "BTDOMS", + "source_type": "CHAR(1)", + "dest_name": "btdoms", + "dest_type": "text", + "description": "Domestic Bank Indicator" + }, + { + "source_name": "BTBREF", + "source_type": "CHAR(10)", + "dest_name": "btbref", + "dest_type": "text", + "description": "Bank Reference" + }, + { + "source_name": "BTSWID", + "source_type": "CHAR(15)", + "dest_name": "btswid", + "dest_type": "text", + "description": "Swift ID" + }, + { + "source_name": "BTBLAC", + "source_type": "CHAR(30)", + "dest_name": "btblac", + "dest_type": "text", + "description": "Billing Account Number" + }, + { + "source_name": "BTABAN", + "source_type": "CHAR(9)", + "dest_name": "btaban", + "dest_type": "text", + "description": "ABA#" + }, + { + "source_name": "BTCHIP", + "source_type": "CHAR(15)", + "dest_name": "btchip", + "dest_type": "text", + "description": "CHIP#" + }, + { + "source_name": "BT3BNAM", + "source_type": "CHAR(30)", + "dest_name": "bt3bnam", + "dest_type": "text", + "description": "Third Party Bank Name" + }, + { + "source_name": "BT3CHIP", + "source_type": "CHAR(15)", + "dest_name": "bt3chip", + "dest_type": "text", + "description": "Third Party Bank CHIP#" + }, + { + "source_name": "BT3SWID", + "source_type": "CHAR(15)", + "dest_name": "bt3swid", + "dest_type": "text", + "description": "Third Party Bank Swif ID" + }, + { + "source_name": "BT3BLAC", + "source_type": "CHAR(35)", + "dest_name": "bt3blac", + "dest_type": "text", + "description": "Third Party Bank Billing Account Number" + }, + { + "source_name": "BT3IBAN", + "source_type": "CHAR(35)", + "dest_name": "bt3iban", + "dest_type": "text", + "description": "Third Party Bank IBAN#" + }, + { + "source_name": "BT3ADR1", + "source_type": "CHAR(30)", + "dest_name": "bt3adr1", + "dest_type": "text", + "description": "Third Party Bank Address Line 1" + }, + { + "source_name": "BT3ADR2", + "source_type": "CHAR(30)", + "dest_name": "bt3adr2", + "dest_type": "text", + "description": "Third Party Bank Address Line 2" + }, + { + "source_name": "BT3CITY", + "source_type": "CHAR(30)", + "dest_name": "bt3city", + "dest_type": "text", + "description": "Third Party Bank City" + }, + { + "source_name": "BT3PROV", + "source_type": "CHAR(3)", + "dest_name": "bt3prov", + "dest_type": "text", + "description": "Third Party Bank Prov/Stat" + }, + { + "source_name": "BT3POST", + "source_type": "CHAR(10)", + "dest_name": "bt3post", + "dest_type": "text", + "description": "Third Party Bank Postal/Zip" + }, + { + "source_name": "BT3CRYC", + "source_type": "CHAR(3)", + "dest_name": "bt3cryc", + "dest_type": "text", + "description": "Third Party Bank Country" + }, + { + "source_name": "BT3CONT", + "source_type": "CHAR(10)", + "dest_name": "bt3cont", + "dest_type": "text", + "description": "Third Party Bank Contact Name" + }, + { + "source_name": "BT3PHON", + "source_type": "CHAR(25)", + "dest_name": "bt3phon", + "dest_type": "text", + "description": "Third Party Bank Phone #" + }, + { + "source_name": "BT3FAXN", + "source_type": "CHAR(25)", + "dest_name": "bt3faxn", + "dest_type": "text", + "description": "Third Party Bank Fax #" + }, + { + "source_name": "BTFCUR", + "source_type": "CHAR(2)", + "dest_name": "btfcur", + "dest_type": "text", + "description": "Foreign Currency" + }, + { + "source_name": "BTEBNM", + "source_type": "CHAR(30)", + "dest_name": "btebnm", + "dest_type": "text", + "description": "Bank Name" + }, + { + "source_name": "BTFFTH", + "source_type": "DECIMAL(11,2)", + "dest_name": "btffth", + "dest_type": "numeric(11,2)", + "description": "Free Freight Threshold" + }, + { + "source_name": "BTXBNAM", + "source_type": "CHAR(30)", + "dest_name": "btxbnam", + "dest_type": "text", + "description": "In-Care-Of Bank Name" + }, + { + "source_name": "BTXCHIP", + "source_type": "CHAR(15)", + "dest_name": "btxchip", + "dest_type": "text", + "description": "In-Care-Of Bank CHIP#" + }, + { + "source_name": "BTXSWID", + "source_type": "CHAR(15)", + "dest_name": "btxswid", + "dest_type": "text", + "description": "In-Care-Of Bank Swif ID" + }, + { + "source_name": "BTXBLAC", + "source_type": "CHAR(35)", + "dest_name": "btxblac", + "dest_type": "text", + "description": "In-Care-Of Bank Account Number" + }, + { + "source_name": "BTXIBAN", + "source_type": "CHAR(35)", + "dest_name": "btxiban", + "dest_type": "text", + "description": "In-Care-Of Bank IBAN#" + }, + { + "source_name": "BTXADR1", + "source_type": "CHAR(30)", + "dest_name": "btxadr1", + "dest_type": "text", + "description": "In-Care-Of Bank Address Line 1" + }, + { + "source_name": "BTXADR2", + "source_type": "CHAR(30)", + "dest_name": "btxadr2", + "dest_type": "text", + "description": "In-Care-Of Bank Address Line 2" + }, + { + "source_name": "BTXCITY", + "source_type": "CHAR(30)", + "dest_name": "btxcity", + "dest_type": "text", + "description": "In-Care-Of Bank City" + }, + { + "source_name": "BTXPROV", + "source_type": "CHAR(3)", + "dest_name": "btxprov", + "dest_type": "text", + "description": "In-Care-Of Bank Prov/Stat" + }, + { + "source_name": "BTXPOST", + "source_type": "CHAR(10)", + "dest_name": "btxpost", + "dest_type": "text", + "description": "In-Care-Of Bank Postal/Zip" + }, + { + "source_name": "BTXCRYC", + "source_type": "CHAR(3)", + "dest_name": "btxcryc", + "dest_type": "text", + "description": "In-Care-Of Bank Country" + }, + { + "source_name": "BTXCONT", + "source_type": "CHAR(10)", + "dest_name": "btxcont", + "dest_type": "text", + "description": "In-Care-Of Bank Contact Name" + }, + { + "source_name": "BTXPHON", + "source_type": "CHAR(25)", + "dest_name": "btxphon", + "dest_type": "text", + "description": "In-Care-Of Bank Phone #" + }, + { + "source_name": "BTXFAXN", + "source_type": "CHAR(25)", + "dest_name": "btxfaxn", + "dest_type": "text", + "description": "In-Care-Of Bank Fax #" + }, + { + "source_name": "BTGMT", + "source_type": "CHAR(1)", + "dest_name": "btgmt", + "dest_type": "text", + "description": "Global SWIFT" + }, + { + "source_name": "BTMRPN", + "source_type": "CHAR(1)", + "dest_name": "btmrpn", + "dest_type": "text", + "description": "Display/Print/Send MRP Notification" + }, + { + "source_name": "BTEZAI", + "source_type": "CHAR(1)", + "dest_name": "btezai", + "dest_type": "text", + "description": "EZ ASN Update PO Shipments In-Transit" + }, + { + "source_name": "BTFUT19", + "source_type": "CHAR(1)", + "dest_name": "btfut19", + "dest_type": "text", + "description": "Support Intercompany ASN Reuse Shipped Serl#" + }, + { + "source_name": "BTFUT20", + "source_type": "CHAR(1)", + "dest_name": "btfut20", + "dest_type": "text", + "description": "Future Use 20" + }, + { + "source_name": "BTFUT21", + "source_type": "CHAR(10)", + "dest_name": "btfut21", + "dest_type": "text", + "description": "Future Use 21" + }, + { + "source_name": "BTFUT22", + "source_type": "CHAR(10)", + "dest_name": "btfut22", + "dest_type": "text", + "description": "Future Use 22" + }, + { + "source_name": "BTFUT23", + "source_type": "CHAR(20)", + "dest_name": "btfut23", + "dest_type": "text", + "description": "Future Use 23" + }, + { + "source_name": "BTFUT24", + "source_type": "CHAR(20)", + "dest_name": "btfut24", + "dest_type": "text", + "description": "Future Use 24" + }, + { + "source_name": "BTFUT25", + "source_type": "CHAR(30)", + "dest_name": "btfut25", + "dest_type": "text", + "description": "Future Use 25" + }, + { + "source_name": "BTFUT26", + "source_type": "CHAR(30)", + "dest_name": "btfut26", + "dest_type": "text", + "description": "Future Use 26" + }, + { + "source_name": "BTFUT27", + "source_type": "CHAR(30)", + "dest_name": "btfut27", + "dest_type": "text", + "description": "Future Use 27" + }, + { + "source_name": "BTFUT28", + "source_type": "NUMERIC(15,5)", + "dest_name": "btfut28", + "dest_type": "numeric(15,5)", + "description": "Future Use 28" + }, + { + "source_name": "BTFUT29", + "source_type": "NUMERIC(15,5)", + "dest_name": "btfut29", + "dest_type": "numeric(15,5)", + "description": "Future Use 29" + }, + { + "source_name": "BTFUT30", + "source_type": "NUMERIC(15,5)", + "dest_name": "btfut30", + "dest_type": "numeric(15,5)", + "description": "Future Use 30" + } + ], + "watermarks": [], + "hooks": [] +} diff --git a/config/modules/vend.sql b/config/modules/vend.sql new file mode 100644 index 0000000..9328e43 --- /dev/null +++ b/config/modules/vend.sql @@ -0,0 +1,192 @@ +SELECT + BTPYTD AS btpytd, + RTRIM(BTNAME) AS btname, + RTRIM(BTADR1) AS btadr1, + RTRIM(BTADR2) AS btadr2, + RTRIM(BTADR3) AS btadr3, + RTRIM(BTADR4) AS btadr4, + RTRIM(BTADR5) AS btadr5, + RTRIM(BTADR6) AS btadr6, + RTRIM(BTADR7) AS btadr7, + RTRIM(BTADR8) AS btadr8, + RTRIM(BTADR9) AS btadr9, + RTRIM(BTADR10) AS btadr10, + RTRIM(BTPOST) AS btpost, + RTRIM(BTCITY) AS btcity, + RTRIM("BTTEL#") AS "bttel#", + RTRIM(BTBANK) AS btbank, + BTPERC AS btperc, + BTTERM AS btterm, + BTCYTD AS btcytd, + CASE WHEN BTLDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE BTLDAT END AS btldat, + RTRIM(BTCLAS) AS btclas, + RTRIM(BTGSTF) AS btgstf, + BTNETD AS btnetd, + RTRIM(BTCURR) AS btcurr, + BTSORT AS btsort, + RTRIM(BTCONT) AS btcont, + RTRIM(BTVEND) AS btvend, + RTRIM("BTFAX#") AS "btfax#", + RTRIM(BTGSTL) AS btgstl, + RTRIM(BTTRMC) AS bttrmc, + RTRIM(BTFOBC) AS btfobc, + RTRIM(BTTAXG) AS bttaxg, + RTRIM(BTTAXR) AS bttaxr, + RTRIM(BTTAXS) AS bttaxs, + RTRIM(BTRMIT) AS btrmit, + RTRIM(BTOSSL) AS btossl, + RTRIM(BTDUNS) AS btduns, + RTRIM(BTAUVF) AS btauvf, + RTRIM(BTCPVR) AS btcpvr, + RTRIM(BTCARC) AS btcarc, + RTRIM(BTCBRC) AS btcbrc, + BTAPPD AS btappd, + RTRIM(BTMINF) AS btminf, + RTRIM(BTVNRM) AS btvnrm, + RTRIM(BTBKRM) AS btbkrm, + RTRIM(BTINSP) AS btinsp, + RTRIM(BTPSAC) AS btpsac, + RTRIM(BTPSFR) AS btpsfr, + RTRIM(BTPSDY) AS btpsdy, + RTRIM(BTPSDR) AS btpsdr, + RTRIM(BTSSAC) AS btssac, + RTRIM(BTSSFR) AS btssfr, + RTRIM(BTSSDY) AS btssdy, + RTRIM(BTSSDR) AS btssdr, + RTRIM(BTPEDI) AS btpedi, + RTRIM(BTSEDI) AS btsedi, + RTRIM(BTCNTC) AS btcntc, + RTRIM(BTFAXP) AS btfaxp, + RTRIM(BTEMAL) AS btemal, + RTRIM(BTWPAG) AS btwpag, + RTRIM(BTFLG1) AS btflg1, + RTRIM(BTCUSR) AS btcusr, + CASE WHEN BTCDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE BTCDAT END AS btcdat, + BTCTME AS btctme, + RTRIM(BTUUSR) AS btuusr, + CASE WHEN BTUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE BTUDAT END AS btudat, + BTUTME AS btutme, + RTRIM(BTPRCL) AS btprcl, + RTRIM(BTFLG2) AS btflg2, + RTRIM(BTFLG3) AS btflg3, + RTRIM(BTFLG4) AS btflg4, + RTRIM(BTUVER) AS btuver, + RTRIM(BTPRCD) AS btprcd, + RTRIM(BTSTAT) AS btstat, + RTRIM(BTREAS) AS btreas, + RTRIM(BTARCN) AS btarcn, + RTRIM(BTARPN) AS btarpn, + RTRIM(BTARFX) AS btarfx, + RTRIM(BTEBNK) AS btebnk, + BTDACN AS btdacn, + RTRIM(BTDACT) AS btdact, + RTRIM(BTPAYT) AS btpayt, + RTRIM(BTFRMT) AS btfrmt, + RTRIM(BTAPCN) AS btapcn, + RTRIM(BTFUT1) AS btfut1, + RTRIM(BTFUT2) AS btfut2, + RTRIM(BTFUT3) AS btfut3, + RTRIM(BTFUT4) AS btfut4, + RTRIM(BTFUT5) AS btfut5, + BTFUT6 AS btfut6, + RTRIM(BTFUT7) AS btfut7, + RTRIM(BTFUT8) AS btfut8, + RTRIM(BTFUT9) AS btfut9, + RTRIM(BTFUTA) AS btfuta, + RTRIM(BTFUTB) AS btfutb, + RTRIM(BTSPLN) AS btspln, + RTRIM(BTSSHP) AS btsshp, + RTRIM(BTSASN) AS btsasn, + BTSLT AS btslt, + RTRIM(BTSWK) AS btswk, + RTRIM(BTRERA) AS btrera, + RTRIM(BTPPAY) AS btppay, + RTRIM(BTFRBL) AS btfrbl, + RTRIM(BTVNDT) AS btvndt, + RTRIM(BTFUT10) AS btfut10, + RTRIM(BTFUT11) AS btfut11, + RTRIM(BTFUT12) AS btfut12, + RTRIM(BTFUT13) AS btfut13, + RTRIM(BTFUT14) AS btfut14, + RTRIM(BTFUT15) AS btfut15, + BTFUT16 AS btfut16, + BTFUT17 AS btfut17, + BTFUT18 AS btfut18, + RTRIM(BTFLG10) AS btflg10, + RTRIM(BTFLG11) AS btflg11, + RTRIM(BTFLG12) AS btflg12, + RTRIM(BTTMZN) AS bttmzn, + RTRIM(BTDLRF) AS btdlrf, + RTRIM(BTIDSP) AS btidsp, + RTRIM(BTSLTU) AS btsltu, + RTRIM(BTSTRN) AS btstrn, + RTRIM(BTRPRL) AS btrprl, + BTCAMT AS btcamt, + BTUDPC AS btudpc, + BTUDAM AS btudam, + RTRIM(BTPGRP) AS btpgrp, + RTRIM(BT2DFMT) AS bt2dfmt, + RTRIM(BTD2DS) AS btd2ds, + RTRIM(BTLANG) AS btlang, + RTRIM(BTHIN) AS bthin, + RTRIM(BTFEDID) AS btfedid, + RTRIM(BTO2DL) AS bto2dl, + RTRIM(BTASNM) AS btasnm, + RTRIM(BTDCLS) AS btdcls, + RTRIM(BTDSUPP) AS btdsupp, + BTDEPIN AS btdepin, + BTMORQ AS btmorq, + RTRIM(BTDACA) AS btdaca, + RTRIM(BTDOMS) AS btdoms, + RTRIM(BTBREF) AS btbref, + RTRIM(BTSWID) AS btswid, + RTRIM(BTBLAC) AS btblac, + RTRIM(BTABAN) AS btaban, + RTRIM(BTCHIP) AS btchip, + RTRIM(BT3BNAM) AS bt3bnam, + RTRIM(BT3CHIP) AS bt3chip, + RTRIM(BT3SWID) AS bt3swid, + RTRIM(BT3BLAC) AS bt3blac, + RTRIM(BT3IBAN) AS bt3iban, + RTRIM(BT3ADR1) AS bt3adr1, + RTRIM(BT3ADR2) AS bt3adr2, + RTRIM(BT3CITY) AS bt3city, + RTRIM(BT3PROV) AS bt3prov, + RTRIM(BT3POST) AS bt3post, + RTRIM(BT3CRYC) AS bt3cryc, + RTRIM(BT3CONT) AS bt3cont, + RTRIM(BT3PHON) AS bt3phon, + RTRIM(BT3FAXN) AS bt3faxn, + RTRIM(BTFCUR) AS btfcur, + RTRIM(BTEBNM) AS btebnm, + BTFFTH AS btffth, + RTRIM(BTXBNAM) AS btxbnam, + RTRIM(BTXCHIP) AS btxchip, + RTRIM(BTXSWID) AS btxswid, + RTRIM(BTXBLAC) AS btxblac, + RTRIM(BTXIBAN) AS btxiban, + RTRIM(BTXADR1) AS btxadr1, + RTRIM(BTXADR2) AS btxadr2, + RTRIM(BTXCITY) AS btxcity, + RTRIM(BTXPROV) AS btxprov, + RTRIM(BTXPOST) AS btxpost, + RTRIM(BTXCRYC) AS btxcryc, + RTRIM(BTXCONT) AS btxcont, + RTRIM(BTXPHON) AS btxphon, + RTRIM(BTXFAXN) AS btxfaxn, + RTRIM(BTGMT) AS btgmt, + RTRIM(BTMRPN) AS btmrpn, + RTRIM(BTEZAI) AS btezai, + RTRIM(BTFUT19) AS btfut19, + RTRIM(BTFUT20) AS btfut20, + RTRIM(BTFUT21) AS btfut21, + RTRIM(BTFUT22) AS btfut22, + RTRIM(BTFUT23) AS btfut23, + RTRIM(BTFUT24) AS btfut24, + RTRIM(BTFUT25) AS btfut25, + RTRIM(BTFUT26) AS btfut26, + RTRIM(BTFUT27) AS btfut27, + BTFUT28 AS btfut28, + BTFUT29 AS btfut29, + BTFUT30 AS btfut30 +FROM LGDAT.VEND