Add GP Payables (PM) modules and an Accounts Payable group
Only pm00200 (vendor master) covered the AP side; every transactional PM table was missing even though the parallel receivables (rm*) set was fully built out. Add ten modules mirroring that AR structure: pm00100 vendor class setup pm20100 open apply detail pm00300 vendor address master pm30200 paid transaction history pm00400 key master (doc index) pm30300 apply history pm10100 open GL distributions pm30600 GL distribution history pm20000 open transactions pm30700 tax history All full reloads. The whole set is <=230k rows and loads in seconds over the Postgres COPY path, so a watermark buys nothing — and a date-keyed incremental carries the row-level purge drift documented for icstt. pm20000 and pm30200 do have DEX_ROW_TS if that changes. Column maps come from pipekit's own /api/introspect/columns over the GPSERVER linked server. Descriptions are null throughout: GP populates no MS_Description extended properties (CHG has zero), and the metadata lives in the Dexterity dictionary rather than SQL Server. The group is scheduled 0 1 * * * but left disabled, matching the Accounts Receivable group. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
217177b3a7
commit
e8a3acaebd
@ -1,4 +1,55 @@
|
||||
[
|
||||
{
|
||||
"name": "Accounts Payable",
|
||||
"members": [
|
||||
{
|
||||
"module": "pm00100",
|
||||
"run_order": 1
|
||||
},
|
||||
{
|
||||
"module": "pm00300",
|
||||
"run_order": 2
|
||||
},
|
||||
{
|
||||
"module": "pm00400",
|
||||
"run_order": 3
|
||||
},
|
||||
{
|
||||
"module": "pm10100",
|
||||
"run_order": 4
|
||||
},
|
||||
{
|
||||
"module": "pm20000",
|
||||
"run_order": 5
|
||||
},
|
||||
{
|
||||
"module": "pm20100",
|
||||
"run_order": 6
|
||||
},
|
||||
{
|
||||
"module": "pm30200",
|
||||
"run_order": 7
|
||||
},
|
||||
{
|
||||
"module": "pm30300",
|
||||
"run_order": 8
|
||||
},
|
||||
{
|
||||
"module": "pm30600",
|
||||
"run_order": 9
|
||||
},
|
||||
{
|
||||
"module": "pm30700",
|
||||
"run_order": 10
|
||||
}
|
||||
],
|
||||
"schedules": [
|
||||
{
|
||||
"cron_expr": "0 1 * * *",
|
||||
"enabled": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Accounts Receivable",
|
||||
"members": [
|
||||
|
||||
387
config/modules/pm00100.json
Normal file
387
config/modules/pm00100.json
Normal file
@ -0,0 +1,387 @@
|
||||
{
|
||||
"name": "pm00100",
|
||||
"source_connection": "sqlserver",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "gp.pm00100",
|
||||
"staging_table": "pipekit_staging.pm00100",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Dynamics GP payables vendor class setup",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "VNDCLSID",
|
||||
"source_type": "CHAR(11)",
|
||||
"dest_name": "vndclsid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VNDCLDSC",
|
||||
"source_type": "CHAR(31)",
|
||||
"dest_name": "vndcldsc",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEFLTCLS",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "defltcls",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MXIAFVND",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "mxiafvnd",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MXINVAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "mxinvamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "WRITEOFF",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "writeoff",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CREDTLMT",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "credtlmt",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TEN99TYPE",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "ten99type",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PTCSHACF",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "ptcshacf",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MXWOFAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "mxwofamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MINORDER",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "minorder",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CRLMTDLR",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "crlmtdlr",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PYMNTPRI",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "pymntpri",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "SHIPMTHD",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "shipmthd",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PYMTRMID",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "pymtrmid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MINPYTYP",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "minpytyp",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MINPYDLR",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "minpydlr",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MINPYPCT",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "minpypct",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CURNCYID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "curncyid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TAXSCHID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "taxschid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "KPCALHST",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "kpcalhst",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "KGLDSTHS",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "kgldsths",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "KPERHIST",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "kperhist",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "KPTRXHST",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "kptrxhst",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TRDDISCT",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "trddisct",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "USERDEF1",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "userdef1",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "USERDEF2",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "userdef2",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PMAPINDX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "pmapindx",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PMCSHIDX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "pmcshidx",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PMDAVIDX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "pmdavidx",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PMDTKIDX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "pmdtkidx",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PMFINIDX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "pmfinidx",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PMMSCHIX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "pmmschix",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PMFRTIDX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "pmfrtidx",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PMTAXIDX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "pmtaxidx",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PMWRTIDX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "pmwrtidx",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PMPRCHIX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "pmprchix",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PMRTNGIX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "pmrtngix",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PMTDSCIX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "pmtdscix",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ACPURIDX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "acpuridx",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PURPVIDX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "purpvidx",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CHEKBKID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "chekbkid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MODIFDT",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "modifdt",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CREATDDT",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "creatddt",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "RATETPID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "ratetpid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Revalue_Vendor",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "revalue_vendor",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Post_Results_To",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "post_results_to",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "FREEONBOARD",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "freeonboard",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISGRPER",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "disgrper",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DUEGRPER",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "duegrper",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TaxInvRecvd",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "taxinvrecvd",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CBVAT",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "cbvat",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEX_ROW_ID",
|
||||
"source_type": "INT",
|
||||
"dest_name": "dex_row_id",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": [],
|
||||
"description": "Dynamics GP payables vendor class setup"
|
||||
}
|
||||
55
config/modules/pm00100.sql
Normal file
55
config/modules/pm00100.sql
Normal file
@ -0,0 +1,55 @@
|
||||
SELECT
|
||||
RTRIM([VNDCLSID]) AS vndclsid,
|
||||
RTRIM([VNDCLDSC]) AS vndcldsc,
|
||||
[DEFLTCLS] AS defltcls,
|
||||
[MXIAFVND] AS mxiafvnd,
|
||||
[MXINVAMT] AS mxinvamt,
|
||||
[WRITEOFF] AS writeoff,
|
||||
[CREDTLMT] AS credtlmt,
|
||||
[TEN99TYPE] AS ten99type,
|
||||
[PTCSHACF] AS ptcshacf,
|
||||
[MXWOFAMT] AS mxwofamt,
|
||||
[MINORDER] AS minorder,
|
||||
[CRLMTDLR] AS crlmtdlr,
|
||||
RTRIM([PYMNTPRI]) AS pymntpri,
|
||||
RTRIM([SHIPMTHD]) AS shipmthd,
|
||||
RTRIM([PYMTRMID]) AS pymtrmid,
|
||||
[MINPYTYP] AS minpytyp,
|
||||
[MINPYDLR] AS minpydlr,
|
||||
[MINPYPCT] AS minpypct,
|
||||
RTRIM([CURNCYID]) AS curncyid,
|
||||
RTRIM([TAXSCHID]) AS taxschid,
|
||||
[KPCALHST] AS kpcalhst,
|
||||
[KGLDSTHS] AS kgldsths,
|
||||
[KPERHIST] AS kperhist,
|
||||
[KPTRXHST] AS kptrxhst,
|
||||
[TRDDISCT] AS trddisct,
|
||||
RTRIM([USERDEF1]) AS userdef1,
|
||||
RTRIM([USERDEF2]) AS userdef2,
|
||||
[PMAPINDX] AS pmapindx,
|
||||
[PMCSHIDX] AS pmcshidx,
|
||||
[PMDAVIDX] AS pmdavidx,
|
||||
[PMDTKIDX] AS pmdtkidx,
|
||||
[PMFINIDX] AS pmfinidx,
|
||||
[PMMSCHIX] AS pmmschix,
|
||||
[PMFRTIDX] AS pmfrtidx,
|
||||
[PMTAXIDX] AS pmtaxidx,
|
||||
[PMWRTIDX] AS pmwrtidx,
|
||||
[PMPRCHIX] AS pmprchix,
|
||||
[PMRTNGIX] AS pmrtngix,
|
||||
[PMTDSCIX] AS pmtdscix,
|
||||
[ACPURIDX] AS acpuridx,
|
||||
[PURPVIDX] AS purpvidx,
|
||||
RTRIM([CHEKBKID]) AS chekbkid,
|
||||
[MODIFDT] AS modifdt,
|
||||
[CREATDDT] AS creatddt,
|
||||
RTRIM([RATETPID]) AS ratetpid,
|
||||
[Revalue_Vendor] AS revalue_vendor,
|
||||
[Post_Results_To] AS post_results_to,
|
||||
[FREEONBOARD] AS freeonboard,
|
||||
[DISGRPER] AS disgrper,
|
||||
[DUEGRPER] AS duegrper,
|
||||
[TaxInvRecvd] AS taxinvrecvd,
|
||||
[CBVAT] AS cbvat,
|
||||
[DEX_ROW_ID] AS dex_row_id
|
||||
FROM [GPSERVER].[CHG].[dbo].[PM00100]
|
||||
205
config/modules/pm00300.json
Normal file
205
config/modules/pm00300.json
Normal file
@ -0,0 +1,205 @@
|
||||
{
|
||||
"name": "pm00300",
|
||||
"source_connection": "sqlserver",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "gp.pm00300",
|
||||
"staging_table": "pipekit_staging.pm00300",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Dynamics GP payables vendor address master",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "VENDORID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vendorid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ADRSCODE",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "adrscode",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VNDCNTCT",
|
||||
"source_type": "CHAR(61)",
|
||||
"dest_name": "vndcntct",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ADDRESS1",
|
||||
"source_type": "CHAR(61)",
|
||||
"dest_name": "address1",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ADDRESS2",
|
||||
"source_type": "CHAR(61)",
|
||||
"dest_name": "address2",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ADDRESS3",
|
||||
"source_type": "CHAR(61)",
|
||||
"dest_name": "address3",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CITY",
|
||||
"source_type": "CHAR(35)",
|
||||
"dest_name": "city",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "STATE",
|
||||
"source_type": "CHAR(29)",
|
||||
"dest_name": "state",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ZIPCODE",
|
||||
"source_type": "CHAR(11)",
|
||||
"dest_name": "zipcode",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "COUNTRY",
|
||||
"source_type": "CHAR(61)",
|
||||
"dest_name": "country",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "UPSZONE",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "upszone",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PHNUMBR1",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "phnumbr1",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PHNUMBR2",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "phnumbr2",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PHONE3",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "phone3",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "FAXNUMBR",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "faxnumbr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "SHIPMTHD",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "shipmthd",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TAXSCHID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "taxschid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "EmailPOs",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "emailpos",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "POEmailRecipient",
|
||||
"source_type": "CHAR(81)",
|
||||
"dest_name": "poemailrecipient",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "EmailPOFormat",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "emailpoformat",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "FaxPOs",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "faxpos",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "POFaxNumber",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "pofaxnumber",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "FaxPOFormat",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "faxpoformat",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CCode",
|
||||
"source_type": "CHAR(7)",
|
||||
"dest_name": "ccode",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DECLID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "declid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEX_ROW_TS",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "dex_row_ts",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEX_ROW_ID",
|
||||
"source_type": "INT",
|
||||
"dest_name": "dex_row_id",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": [],
|
||||
"description": "Dynamics GP payables vendor address master"
|
||||
}
|
||||
29
config/modules/pm00300.sql
Normal file
29
config/modules/pm00300.sql
Normal file
@ -0,0 +1,29 @@
|
||||
SELECT
|
||||
RTRIM([VENDORID]) AS vendorid,
|
||||
RTRIM([ADRSCODE]) AS adrscode,
|
||||
RTRIM([VNDCNTCT]) AS vndcntct,
|
||||
RTRIM([ADDRESS1]) AS address1,
|
||||
RTRIM([ADDRESS2]) AS address2,
|
||||
RTRIM([ADDRESS3]) AS address3,
|
||||
RTRIM([CITY]) AS city,
|
||||
RTRIM([STATE]) AS state,
|
||||
RTRIM([ZIPCODE]) AS zipcode,
|
||||
RTRIM([COUNTRY]) AS country,
|
||||
RTRIM([UPSZONE]) AS upszone,
|
||||
RTRIM([PHNUMBR1]) AS phnumbr1,
|
||||
RTRIM([PHNUMBR2]) AS phnumbr2,
|
||||
RTRIM([PHONE3]) AS phone3,
|
||||
RTRIM([FAXNUMBR]) AS faxnumbr,
|
||||
RTRIM([SHIPMTHD]) AS shipmthd,
|
||||
RTRIM([TAXSCHID]) AS taxschid,
|
||||
[EmailPOs] AS emailpos,
|
||||
RTRIM([POEmailRecipient]) AS poemailrecipient,
|
||||
[EmailPOFormat] AS emailpoformat,
|
||||
[FaxPOs] AS faxpos,
|
||||
RTRIM([POFaxNumber]) AS pofaxnumber,
|
||||
[FaxPOFormat] AS faxpoformat,
|
||||
RTRIM([CCode]) AS ccode,
|
||||
RTRIM([DECLID]) AS declid,
|
||||
[DEX_ROW_TS] AS dex_row_ts,
|
||||
[DEX_ROW_ID] AS dex_row_id
|
||||
FROM [GPSERVER].[CHG].[dbo].[PM00300]
|
||||
114
config/modules/pm00400.json
Normal file
114
config/modules/pm00400.json
Normal file
@ -0,0 +1,114 @@
|
||||
{
|
||||
"name": "pm00400",
|
||||
"source_connection": "sqlserver",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "gp.pm00400",
|
||||
"staging_table": "pipekit_staging.pm00400",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Dynamics GP payables key master; document index spanning open and history",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "CNTRLNUM",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "cntrlnum",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CNTRLTYP",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "cntrltyp",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DCSTATUS",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "dcstatus",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DOCTYPE",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "doctype",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VENDORID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vendorid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DOCNUMBR",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "docnumbr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TRXSORCE",
|
||||
"source_type": "CHAR(13)",
|
||||
"dest_name": "trxsorce",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CHEKBKID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "chekbkid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DUEDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "duedate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISCDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "discdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BCHSOURC",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "bchsourc",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DOCDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "docdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "USERID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "userid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEX_ROW_ID",
|
||||
"source_type": "INT",
|
||||
"dest_name": "dex_row_id",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": [],
|
||||
"description": "Dynamics GP payables key master; document index spanning open and history"
|
||||
}
|
||||
16
config/modules/pm00400.sql
Normal file
16
config/modules/pm00400.sql
Normal file
@ -0,0 +1,16 @@
|
||||
SELECT
|
||||
RTRIM([CNTRLNUM]) AS cntrlnum,
|
||||
[CNTRLTYP] AS cntrltyp,
|
||||
[DCSTATUS] AS dcstatus,
|
||||
[DOCTYPE] AS doctype,
|
||||
RTRIM([VENDORID]) AS vendorid,
|
||||
RTRIM([DOCNUMBR]) AS docnumbr,
|
||||
RTRIM([TRXSORCE]) AS trxsorce,
|
||||
RTRIM([CHEKBKID]) AS chekbkid,
|
||||
[DUEDATE] AS duedate,
|
||||
[DISCDATE] AS discdate,
|
||||
RTRIM([BCHSOURC]) AS bchsourc,
|
||||
[DOCDATE] AS docdate,
|
||||
RTRIM([USERID]) AS userid,
|
||||
[DEX_ROW_ID] AS dex_row_id
|
||||
FROM [GPSERVER].[CHG].[dbo].[PM00400]
|
||||
268
config/modules/pm10100.json
Normal file
268
config/modules/pm10100.json
Normal file
@ -0,0 +1,268 @@
|
||||
{
|
||||
"name": "pm10100",
|
||||
"source_connection": "sqlserver",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "gp.pm10100",
|
||||
"staging_table": "pipekit_staging.pm10100",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Dynamics GP payables GL distributions for open vouchers",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "VCHRNMBR",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "vchrnmbr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DSTSQNUM",
|
||||
"source_type": "INT",
|
||||
"dest_name": "dstsqnum",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CNTRLTYP",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "cntrltyp",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CRDTAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "crdtamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEBITAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "debitamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DSTINDX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "dstindx",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISTTYPE",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "disttype",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CHANGED",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "changed",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "USERID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "userid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PSTGSTUS",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "pstgstus",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VENDORID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vendorid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TRXSORCE",
|
||||
"source_type": "CHAR(13)",
|
||||
"dest_name": "trxsorce",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PSTGDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "pstgdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "INTERID",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "interid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CURNCYID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "curncyid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CURRNIDX",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "currnidx",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORCRDAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "orcrdamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORDBTAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ordbtamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTVCHNM",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "aptvchnm",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTODCTY",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "aptodcty",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "SPCLDIST",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "spcldist",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DistRef",
|
||||
"source_type": "CHAR(31)",
|
||||
"dest_name": "distref",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "RATETPID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "ratetpid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "EXGTBLID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "exgtblid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "XCHGRATE",
|
||||
"source_type": "NUMERIC(19,7)",
|
||||
"dest_name": "xchgrate",
|
||||
"dest_type": "numeric(19,7)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "EXCHDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "exchdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TIME1",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "time1",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "RTCLCMTD",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "rtclcmtd",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DECPLACS",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "decplacs",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "EXPNDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "expndate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ICCURRID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "iccurrid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ICCURRIX",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "iccurrix",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DENXRATE",
|
||||
"source_type": "NUMERIC(19,7)",
|
||||
"dest_name": "denxrate",
|
||||
"dest_type": "numeric(19,7)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MCTRXSTT",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "mctrxstt",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CorrespondingUnit",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "correspondingunit",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEX_ROW_ID",
|
||||
"source_type": "INT",
|
||||
"dest_name": "dex_row_id",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": [],
|
||||
"description": "Dynamics GP payables GL distributions for open vouchers"
|
||||
}
|
||||
38
config/modules/pm10100.sql
Normal file
38
config/modules/pm10100.sql
Normal file
@ -0,0 +1,38 @@
|
||||
SELECT
|
||||
RTRIM([VCHRNMBR]) AS vchrnmbr,
|
||||
[DSTSQNUM] AS dstsqnum,
|
||||
[CNTRLTYP] AS cntrltyp,
|
||||
[CRDTAMNT] AS crdtamnt,
|
||||
[DEBITAMT] AS debitamt,
|
||||
[DSTINDX] AS dstindx,
|
||||
[DISTTYPE] AS disttype,
|
||||
[CHANGED] AS changed,
|
||||
RTRIM([USERID]) AS userid,
|
||||
[PSTGSTUS] AS pstgstus,
|
||||
RTRIM([VENDORID]) AS vendorid,
|
||||
RTRIM([TRXSORCE]) AS trxsorce,
|
||||
[PSTGDATE] AS pstgdate,
|
||||
RTRIM([INTERID]) AS interid,
|
||||
RTRIM([CURNCYID]) AS curncyid,
|
||||
[CURRNIDX] AS currnidx,
|
||||
[ORCRDAMT] AS orcrdamt,
|
||||
[ORDBTAMT] AS ordbtamt,
|
||||
RTRIM([APTVCHNM]) AS aptvchnm,
|
||||
[APTODCTY] AS aptodcty,
|
||||
[SPCLDIST] AS spcldist,
|
||||
RTRIM([DistRef]) AS distref,
|
||||
RTRIM([RATETPID]) AS ratetpid,
|
||||
RTRIM([EXGTBLID]) AS exgtblid,
|
||||
[XCHGRATE] AS xchgrate,
|
||||
[EXCHDATE] AS exchdate,
|
||||
[TIME1] AS time1,
|
||||
[RTCLCMTD] AS rtclcmtd,
|
||||
[DECPLACS] AS decplacs,
|
||||
[EXPNDATE] AS expndate,
|
||||
RTRIM([ICCURRID]) AS iccurrid,
|
||||
[ICCURRIX] AS iccurrix,
|
||||
[DENXRATE] AS denxrate,
|
||||
[MCTRXSTT] AS mctrxstt,
|
||||
RTRIM([CorrespondingUnit]) AS correspondingunit,
|
||||
[DEX_ROW_ID] AS dex_row_id
|
||||
FROM [GPSERVER].[CHG].[dbo].[PM10100]
|
||||
562
config/modules/pm20000.json
Normal file
562
config/modules/pm20000.json
Normal file
@ -0,0 +1,562 @@
|
||||
{
|
||||
"name": "pm20000",
|
||||
"source_connection": "sqlserver",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "gp.pm20000",
|
||||
"staging_table": "pipekit_staging.pm20000",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Dynamics GP open payables transactions",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "VCHRNMBR",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "vchrnmbr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VENDORID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vendorid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DOCTYPE",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "doctype",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DOCDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "docdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DOCNUMBR",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "docnumbr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DOCAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "docamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CURTRXAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "curtrxam",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISTKNAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "distknam",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISCAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "discamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DSCDLRAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "dscdlram",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BACHNUMB",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "bachnumb",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TRXSORCE",
|
||||
"source_type": "CHAR(13)",
|
||||
"dest_name": "trxsorce",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BCHSOURC",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "bchsourc",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISCDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "discdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DUEDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "duedate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PORDNMBR",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "pordnmbr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TEN99AMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ten99amnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "WROFAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "wrofamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISAMTAV",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "disamtav",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TRXDSCRN",
|
||||
"source_type": "CHAR(31)",
|
||||
"dest_name": "trxdscrn",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "UN1099AM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "un1099am",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BKTPURAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "bktpuram",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BKTFRTAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "bktfrtam",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BKTMSCAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "bktmscam",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VOIDED",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "voided",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "HOLD",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "hold",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CHEKBKID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "chekbkid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DINVPDOF",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "dinvpdof",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PPSAMDED",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ppsamded",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PPSTAXRT",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "ppstaxrt",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PGRAMSBJ",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "pgramsbj",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "GSTDSAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "gstdsamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "POSTEDDT",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "posteddt",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PTDUSRID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "ptdusrid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MODIFDT",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "modifdt",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MDFUSRID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "mdfusrid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PYENTTYP",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "pyenttyp",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CARDNAME",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "cardname",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PRCHAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "prchamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TRDISAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "trdisamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MSCCHAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "mscchamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "FRTAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "frtamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TAXAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "taxamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TTLPYMTS",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ttlpymts",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CURNCYID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "curncyid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PYMTRMID",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "pymtrmid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "SHIPMTHD",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "shipmthd",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TAXSCHID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "taxschid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PCHSCHID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "pchschid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "FRTSCHID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "frtschid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MSCSCHID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "mscschid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PSTGDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "pstgdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISAVTKN",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "disavtkn",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CNTRLTYP",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "cntrltyp",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "NOTEINDX",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "noteindx",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PRCTDISC",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "prctdisc",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "RETNAGAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "retnagam",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ICTRX",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "ictrx",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Tax_Date",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "tax_date",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PRCHDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "prchdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CORRCTN",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "corrctn",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "SIMPLIFD",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "simplifd",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BNKRCAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "bnkrcamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APLYWITH",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "aplywith",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Electronic",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "electronic",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ECTRX",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "ectrx",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DocPrinted",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "docprinted",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TaxInvReqd",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "taxinvreqd",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VNDCHKNM",
|
||||
"source_type": "CHAR(65)",
|
||||
"dest_name": "vndchknm",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BackoutTradeDisc",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "backouttradedisc",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CBVAT",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "cbvat",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VADCDTRO",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vadcdtro",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TEN99TYPE",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "ten99type",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TEN99BOXNUMBER",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "ten99boxnumber",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PONUMBER",
|
||||
"source_type": "CHAR(17)",
|
||||
"dest_name": "ponumber",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Workflow_Status",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "workflow_status",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEX_ROW_TS",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "dex_row_ts",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEX_ROW_ID",
|
||||
"source_type": "INT",
|
||||
"dest_name": "dex_row_id",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": [],
|
||||
"description": "Dynamics GP open payables transactions"
|
||||
}
|
||||
80
config/modules/pm20000.sql
Normal file
80
config/modules/pm20000.sql
Normal file
@ -0,0 +1,80 @@
|
||||
SELECT
|
||||
RTRIM([VCHRNMBR]) AS vchrnmbr,
|
||||
RTRIM([VENDORID]) AS vendorid,
|
||||
[DOCTYPE] AS doctype,
|
||||
[DOCDATE] AS docdate,
|
||||
RTRIM([DOCNUMBR]) AS docnumbr,
|
||||
[DOCAMNT] AS docamnt,
|
||||
[CURTRXAM] AS curtrxam,
|
||||
[DISTKNAM] AS distknam,
|
||||
[DISCAMNT] AS discamnt,
|
||||
[DSCDLRAM] AS dscdlram,
|
||||
RTRIM([BACHNUMB]) AS bachnumb,
|
||||
RTRIM([TRXSORCE]) AS trxsorce,
|
||||
RTRIM([BCHSOURC]) AS bchsourc,
|
||||
[DISCDATE] AS discdate,
|
||||
[DUEDATE] AS duedate,
|
||||
RTRIM([PORDNMBR]) AS pordnmbr,
|
||||
[TEN99AMNT] AS ten99amnt,
|
||||
[WROFAMNT] AS wrofamnt,
|
||||
[DISAMTAV] AS disamtav,
|
||||
RTRIM([TRXDSCRN]) AS trxdscrn,
|
||||
[UN1099AM] AS un1099am,
|
||||
[BKTPURAM] AS bktpuram,
|
||||
[BKTFRTAM] AS bktfrtam,
|
||||
[BKTMSCAM] AS bktmscam,
|
||||
[VOIDED] AS voided,
|
||||
[HOLD] AS hold,
|
||||
RTRIM([CHEKBKID]) AS chekbkid,
|
||||
[DINVPDOF] AS dinvpdof,
|
||||
[PPSAMDED] AS ppsamded,
|
||||
[PPSTAXRT] AS ppstaxrt,
|
||||
[PGRAMSBJ] AS pgramsbj,
|
||||
[GSTDSAMT] AS gstdsamt,
|
||||
[POSTEDDT] AS posteddt,
|
||||
RTRIM([PTDUSRID]) AS ptdusrid,
|
||||
[MODIFDT] AS modifdt,
|
||||
RTRIM([MDFUSRID]) AS mdfusrid,
|
||||
[PYENTTYP] AS pyenttyp,
|
||||
RTRIM([CARDNAME]) AS cardname,
|
||||
[PRCHAMNT] AS prchamnt,
|
||||
[TRDISAMT] AS trdisamt,
|
||||
[MSCCHAMT] AS mscchamt,
|
||||
[FRTAMNT] AS frtamnt,
|
||||
[TAXAMNT] AS taxamnt,
|
||||
[TTLPYMTS] AS ttlpymts,
|
||||
RTRIM([CURNCYID]) AS curncyid,
|
||||
RTRIM([PYMTRMID]) AS pymtrmid,
|
||||
RTRIM([SHIPMTHD]) AS shipmthd,
|
||||
RTRIM([TAXSCHID]) AS taxschid,
|
||||
RTRIM([PCHSCHID]) AS pchschid,
|
||||
RTRIM([FRTSCHID]) AS frtschid,
|
||||
RTRIM([MSCSCHID]) AS mscschid,
|
||||
[PSTGDATE] AS pstgdate,
|
||||
[DISAVTKN] AS disavtkn,
|
||||
[CNTRLTYP] AS cntrltyp,
|
||||
[NOTEINDX] AS noteindx,
|
||||
[PRCTDISC] AS prctdisc,
|
||||
[RETNAGAM] AS retnagam,
|
||||
[ICTRX] AS ictrx,
|
||||
[Tax_Date] AS tax_date,
|
||||
[PRCHDATE] AS prchdate,
|
||||
[CORRCTN] AS corrctn,
|
||||
[SIMPLIFD] AS simplifd,
|
||||
[BNKRCAMT] AS bnkrcamt,
|
||||
[APLYWITH] AS aplywith,
|
||||
[Electronic] AS electronic,
|
||||
[ECTRX] AS ectrx,
|
||||
[DocPrinted] AS docprinted,
|
||||
[TaxInvReqd] AS taxinvreqd,
|
||||
RTRIM([VNDCHKNM]) AS vndchknm,
|
||||
[BackoutTradeDisc] AS backouttradedisc,
|
||||
[CBVAT] AS cbvat,
|
||||
RTRIM([VADCDTRO]) AS vadcdtro,
|
||||
[TEN99TYPE] AS ten99type,
|
||||
[TEN99BOXNUMBER] AS ten99boxnumber,
|
||||
RTRIM([PONUMBER]) AS ponumber,
|
||||
[Workflow_Status] AS workflow_status,
|
||||
[DEX_ROW_TS] AS dex_row_ts,
|
||||
[DEX_ROW_ID] AS dex_row_id
|
||||
FROM [GPSERVER].[CHG].[dbo].[PM20000]
|
||||
632
config/modules/pm20100.json
Normal file
632
config/modules/pm20100.json
Normal file
@ -0,0 +1,632 @@
|
||||
{
|
||||
"name": "pm20100",
|
||||
"source_connection": "sqlserver",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "gp.pm20100",
|
||||
"staging_table": "pipekit_staging.pm20100",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Dynamics GP open payables apply detail",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "KEYSOURC",
|
||||
"source_type": "CHAR(41)",
|
||||
"dest_name": "keysourc",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DOCDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "docdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TIME1",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "time1",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VENDORID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vendorid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "POSTED",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "posted",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BCHSOURC",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "bchsourc",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "USERID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "userid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTVCHNM",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "aptvchnm",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTODCTY",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "aptodcty",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTODCDT",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "aptodcdt",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTODCNM",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "aptodcnm",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APPLDAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "appldamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISTKNAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "distknam",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISAVTKN",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "disavtkn",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "WROFAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "wrofamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CURNCYID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "curncyid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CURRNIDX",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "currnidx",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORAPPAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "orappamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORDISTKN",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ordistkn",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORDATKN",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ordatkn",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORWROFAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "orwrofam",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Apply_To_Document_Amount",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apply_to_document_amount",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Apply_To_Orig_Doc_Amount",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apply_to_orig_doc_amount",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Apply_To_Discount_Date",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "apply_to_discount_date",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Apply_To_Due_Date",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "apply_to_due_date",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Apply_To_Description",
|
||||
"source_type": "CHAR(31)",
|
||||
"dest_name": "apply_to_description",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Apply_To_IS_MC_Trx",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "apply_to_is_mc_trx",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ApplyToGLPostDate",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "applytoglpostdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTOEXRATE",
|
||||
"source_type": "NUMERIC(19,7)",
|
||||
"dest_name": "aptoexrate",
|
||||
"dest_type": "numeric(19,7)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTODENRATE",
|
||||
"source_type": "NUMERIC(19,7)",
|
||||
"dest_name": "aptodenrate",
|
||||
"dest_type": "numeric(19,7)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTORTCLCMETH",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "aptortclcmeth",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTOMCTRXSTT",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "aptomctrxstt",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ISMCTRX",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "ismctrx",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VCHRNMBR",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "vchrnmbr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DOCTYPE",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "doctype",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRDCNM",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "apfrdcnm",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "FROMCURR",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "fromcurr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Apply_From_Document_Amou",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apply_from_document_amou",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Apply_From_Orig_Doc_Amou",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apply_from_orig_doc_amou",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRMAPLYAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apfrmaplyamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRMDISCTAKEN",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apfrmdisctaken",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRMDISCAVAIL",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apfrmdiscavail",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRMWROFAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apfrmwrofamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ActualApplyToAmount",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "actualapplytoamount",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ActualDiscTakenAmount",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "actualdisctakenamount",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ActualDiscAvailTaken",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "actualdiscavailtaken",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ActualWriteOffAmount",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "actualwriteoffamount",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRMEXRATE",
|
||||
"source_type": "NUMERIC(19,7)",
|
||||
"dest_name": "apfrmexrate",
|
||||
"dest_type": "numeric(19,7)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRMDENRATE",
|
||||
"source_type": "NUMERIC(19,7)",
|
||||
"dest_name": "apfrmdenrate",
|
||||
"dest_type": "numeric(19,7)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRMRTCLCMETH",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "apfrmrtclcmeth",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRMMCTRXSTT",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "apfrmmctrxstt",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Apply_From_Description",
|
||||
"source_type": "CHAR(31)",
|
||||
"dest_name": "apply_from_description",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Apply_From_IS_MC_Trx",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "apply_from_is_mc_trx",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PPSAMDED",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ppsamded",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "GSTDSAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "gstdsamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TAXDTLID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "taxdtlid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "UPDTKNAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "updtknam",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "UPGSTDAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "upgstdam",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "UNPPPSAD",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "unpppsad",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "UPWROFAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "upwrofam",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PMDSTMSG",
|
||||
"source_type": "BINARY",
|
||||
"dest_name": "pmdstmsg",
|
||||
"dest_type": "bytea",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MODIFDT",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "modifdt",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MDFUSRID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "mdfusrid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "POSTEDDT",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "posteddt",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PTDUSRID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "ptdusrid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TEN99AMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ten99amnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "RLGANLOS",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "rlganlos",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APYFRMRNDAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apyfrmrndamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APYTORNDAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apytorndamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APYTORNDDISC",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apytornddisc",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "XCHGRATE",
|
||||
"source_type": "NUMERIC(19,7)",
|
||||
"dest_name": "xchgrate",
|
||||
"dest_type": "numeric(19,7)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DECPLCUR",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "decplcur",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "RATECALC",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "ratecalc",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Payment_To_Print_On_Stub",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "payment_to_print_on_stub",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "OAPYFRMRNDAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "oapyfrmrndamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "OAPYTORNDAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "oapytorndamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "OAPYTORNDDISC",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "oapytornddisc",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Settled_Gain_CreditCurrT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "settled_gain_creditcurrt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Settled_Loss_CreditCurrT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "settled_loss_creditcurrt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Settled_Gain_DebitCurrTr",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "settled_gain_debitcurrtr",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Settled_Loss_DebitCurrTr",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "settled_loss_debitcurrtr",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Settled_Gain_DebitDiscAv",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "settled_gain_debitdiscav",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Settled_Loss_DebitDiscAv",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "settled_loss_debitdiscav",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VADCDTRO",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vadcdtro",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Credit1099Amount",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "credit1099amount",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEFTEN99TYPE",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "deften99type",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEFTEN99BOXNUMBER",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "deften99boxnumber",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEX_ROW_ID",
|
||||
"source_type": "INT",
|
||||
"dest_name": "dex_row_id",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": [],
|
||||
"description": "Dynamics GP open payables apply detail"
|
||||
}
|
||||
90
config/modules/pm20100.sql
Normal file
90
config/modules/pm20100.sql
Normal file
@ -0,0 +1,90 @@
|
||||
SELECT
|
||||
RTRIM([KEYSOURC]) AS keysourc,
|
||||
[DOCDATE] AS docdate,
|
||||
[TIME1] AS time1,
|
||||
RTRIM([VENDORID]) AS vendorid,
|
||||
[POSTED] AS posted,
|
||||
RTRIM([BCHSOURC]) AS bchsourc,
|
||||
RTRIM([USERID]) AS userid,
|
||||
RTRIM([APTVCHNM]) AS aptvchnm,
|
||||
[APTODCTY] AS aptodcty,
|
||||
[APTODCDT] AS aptodcdt,
|
||||
RTRIM([APTODCNM]) AS aptodcnm,
|
||||
[APPLDAMT] AS appldamt,
|
||||
[DISTKNAM] AS distknam,
|
||||
[DISAVTKN] AS disavtkn,
|
||||
[WROFAMNT] AS wrofamnt,
|
||||
RTRIM([CURNCYID]) AS curncyid,
|
||||
[CURRNIDX] AS currnidx,
|
||||
[ORAPPAMT] AS orappamt,
|
||||
[ORDISTKN] AS ordistkn,
|
||||
[ORDATKN] AS ordatkn,
|
||||
[ORWROFAM] AS orwrofam,
|
||||
[Apply_To_Document_Amount] AS apply_to_document_amount,
|
||||
[Apply_To_Orig_Doc_Amount] AS apply_to_orig_doc_amount,
|
||||
[Apply_To_Discount_Date] AS apply_to_discount_date,
|
||||
[Apply_To_Due_Date] AS apply_to_due_date,
|
||||
RTRIM([Apply_To_Description]) AS apply_to_description,
|
||||
[Apply_To_IS_MC_Trx] AS apply_to_is_mc_trx,
|
||||
[ApplyToGLPostDate] AS applytoglpostdate,
|
||||
[APTOEXRATE] AS aptoexrate,
|
||||
[APTODENRATE] AS aptodenrate,
|
||||
[APTORTCLCMETH] AS aptortclcmeth,
|
||||
[APTOMCTRXSTT] AS aptomctrxstt,
|
||||
[ISMCTRX] AS ismctrx,
|
||||
RTRIM([VCHRNMBR]) AS vchrnmbr,
|
||||
[DOCTYPE] AS doctype,
|
||||
RTRIM([APFRDCNM]) AS apfrdcnm,
|
||||
RTRIM([FROMCURR]) AS fromcurr,
|
||||
[Apply_From_Document_Amou] AS apply_from_document_amou,
|
||||
[Apply_From_Orig_Doc_Amou] AS apply_from_orig_doc_amou,
|
||||
[APFRMAPLYAMT] AS apfrmaplyamt,
|
||||
[APFRMDISCTAKEN] AS apfrmdisctaken,
|
||||
[APFRMDISCAVAIL] AS apfrmdiscavail,
|
||||
[APFRMWROFAMT] AS apfrmwrofamt,
|
||||
[ActualApplyToAmount] AS actualapplytoamount,
|
||||
[ActualDiscTakenAmount] AS actualdisctakenamount,
|
||||
[ActualDiscAvailTaken] AS actualdiscavailtaken,
|
||||
[ActualWriteOffAmount] AS actualwriteoffamount,
|
||||
[APFRMEXRATE] AS apfrmexrate,
|
||||
[APFRMDENRATE] AS apfrmdenrate,
|
||||
[APFRMRTCLCMETH] AS apfrmrtclcmeth,
|
||||
[APFRMMCTRXSTT] AS apfrmmctrxstt,
|
||||
RTRIM([Apply_From_Description]) AS apply_from_description,
|
||||
[Apply_From_IS_MC_Trx] AS apply_from_is_mc_trx,
|
||||
[PPSAMDED] AS ppsamded,
|
||||
[GSTDSAMT] AS gstdsamt,
|
||||
RTRIM([TAXDTLID]) AS taxdtlid,
|
||||
[UPDTKNAM] AS updtknam,
|
||||
[UPGSTDAM] AS upgstdam,
|
||||
[UNPPPSAD] AS unpppsad,
|
||||
[UPWROFAM] AS upwrofam,
|
||||
[PMDSTMSG] AS pmdstmsg,
|
||||
[MODIFDT] AS modifdt,
|
||||
RTRIM([MDFUSRID]) AS mdfusrid,
|
||||
[POSTEDDT] AS posteddt,
|
||||
RTRIM([PTDUSRID]) AS ptdusrid,
|
||||
[TEN99AMNT] AS ten99amnt,
|
||||
[RLGANLOS] AS rlganlos,
|
||||
[APYFRMRNDAMT] AS apyfrmrndamt,
|
||||
[APYTORNDAMT] AS apytorndamt,
|
||||
[APYTORNDDISC] AS apytornddisc,
|
||||
[XCHGRATE] AS xchgrate,
|
||||
[DECPLCUR] AS decplcur,
|
||||
[RATECALC] AS ratecalc,
|
||||
RTRIM([Payment_To_Print_On_Stub]) AS payment_to_print_on_stub,
|
||||
[OAPYFRMRNDAMT] AS oapyfrmrndamt,
|
||||
[OAPYTORNDAMT] AS oapytorndamt,
|
||||
[OAPYTORNDDISC] AS oapytornddisc,
|
||||
[Settled_Gain_CreditCurrT] AS settled_gain_creditcurrt,
|
||||
[Settled_Loss_CreditCurrT] AS settled_loss_creditcurrt,
|
||||
[Settled_Gain_DebitCurrTr] AS settled_gain_debitcurrtr,
|
||||
[Settled_Loss_DebitCurrTr] AS settled_loss_debitcurrtr,
|
||||
[Settled_Gain_DebitDiscAv] AS settled_gain_debitdiscav,
|
||||
[Settled_Loss_DebitDiscAv] AS settled_loss_debitdiscav,
|
||||
RTRIM([VADCDTRO]) AS vadcdtro,
|
||||
[Credit1099Amount] AS credit1099amount,
|
||||
[DEFTEN99TYPE] AS deften99type,
|
||||
[DEFTEN99BOXNUMBER] AS deften99boxnumber,
|
||||
[DEX_ROW_ID] AS dex_row_id
|
||||
FROM [GPSERVER].[CHG].[dbo].[PM20100]
|
||||
562
config/modules/pm30200.json
Normal file
562
config/modules/pm30200.json
Normal file
@ -0,0 +1,562 @@
|
||||
{
|
||||
"name": "pm30200",
|
||||
"source_connection": "sqlserver",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "gp.pm30200",
|
||||
"staging_table": "pipekit_staging.pm30200",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Dynamics GP payables history",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "VCHRNMBR",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "vchrnmbr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VENDORID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vendorid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DOCTYPE",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "doctype",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DOCDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "docdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DOCNUMBR",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "docnumbr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DOCAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "docamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CURTRXAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "curtrxam",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISTKNAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "distknam",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISCAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "discamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DSCDLRAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "dscdlram",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BACHNUMB",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "bachnumb",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TRXSORCE",
|
||||
"source_type": "CHAR(13)",
|
||||
"dest_name": "trxsorce",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BCHSOURC",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "bchsourc",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISCDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "discdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DUEDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "duedate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PORDNMBR",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "pordnmbr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TEN99AMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ten99amnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "WROFAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "wrofamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISAMTAV",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "disamtav",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TRXDSCRN",
|
||||
"source_type": "CHAR(31)",
|
||||
"dest_name": "trxdscrn",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "UN1099AM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "un1099am",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BKTPURAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "bktpuram",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BKTFRTAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "bktfrtam",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BKTMSCAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "bktmscam",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VOIDED",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "voided",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "HOLD",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "hold",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CHEKBKID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "chekbkid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DINVPDOF",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "dinvpdof",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PPSAMDED",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ppsamded",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PPSTAXRT",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "ppstaxrt",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PGRAMSBJ",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "pgramsbj",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "GSTDSAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "gstdsamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "POSTEDDT",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "posteddt",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PTDUSRID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "ptdusrid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MODIFDT",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "modifdt",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MDFUSRID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "mdfusrid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PYENTTYP",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "pyenttyp",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CARDNAME",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "cardname",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PRCHAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "prchamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TRDISAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "trdisamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MSCCHAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "mscchamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "FRTAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "frtamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TAXAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "taxamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TTLPYMTS",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ttlpymts",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CURNCYID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "curncyid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PYMTRMID",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "pymtrmid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "SHIPMTHD",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "shipmthd",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TAXSCHID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "taxschid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PCHSCHID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "pchschid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "FRTSCHID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "frtschid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MSCSCHID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "mscschid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PSTGDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "pstgdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISAVTKN",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "disavtkn",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CNTRLTYP",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "cntrltyp",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "NOTEINDX",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "noteindx",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PRCTDISC",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "prctdisc",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "RETNAGAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "retnagam",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VOIDPDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "voidpdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ICTRX",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "ictrx",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Tax_Date",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "tax_date",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PRCHDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "prchdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CORRCTN",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "corrctn",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "SIMPLIFD",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "simplifd",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APLYWITH",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "aplywith",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Electronic",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "electronic",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ECTRX",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "ectrx",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DocPrinted",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "docprinted",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TaxInvReqd",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "taxinvreqd",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VNDCHKNM",
|
||||
"source_type": "CHAR(65)",
|
||||
"dest_name": "vndchknm",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BackoutTradeDisc",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "backouttradedisc",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CBVAT",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "cbvat",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VADCDTRO",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vadcdtro",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TEN99TYPE",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "ten99type",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TEN99BOXNUMBER",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "ten99boxnumber",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PONUMBER",
|
||||
"source_type": "CHAR(17)",
|
||||
"dest_name": "ponumber",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Workflow_Status",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "workflow_status",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEX_ROW_TS",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "dex_row_ts",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEX_ROW_ID",
|
||||
"source_type": "INT",
|
||||
"dest_name": "dex_row_id",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": [],
|
||||
"description": "Dynamics GP payables history"
|
||||
}
|
||||
80
config/modules/pm30200.sql
Normal file
80
config/modules/pm30200.sql
Normal file
@ -0,0 +1,80 @@
|
||||
SELECT
|
||||
RTRIM([VCHRNMBR]) AS vchrnmbr,
|
||||
RTRIM([VENDORID]) AS vendorid,
|
||||
[DOCTYPE] AS doctype,
|
||||
[DOCDATE] AS docdate,
|
||||
RTRIM([DOCNUMBR]) AS docnumbr,
|
||||
[DOCAMNT] AS docamnt,
|
||||
[CURTRXAM] AS curtrxam,
|
||||
[DISTKNAM] AS distknam,
|
||||
[DISCAMNT] AS discamnt,
|
||||
[DSCDLRAM] AS dscdlram,
|
||||
RTRIM([BACHNUMB]) AS bachnumb,
|
||||
RTRIM([TRXSORCE]) AS trxsorce,
|
||||
RTRIM([BCHSOURC]) AS bchsourc,
|
||||
[DISCDATE] AS discdate,
|
||||
[DUEDATE] AS duedate,
|
||||
RTRIM([PORDNMBR]) AS pordnmbr,
|
||||
[TEN99AMNT] AS ten99amnt,
|
||||
[WROFAMNT] AS wrofamnt,
|
||||
[DISAMTAV] AS disamtav,
|
||||
RTRIM([TRXDSCRN]) AS trxdscrn,
|
||||
[UN1099AM] AS un1099am,
|
||||
[BKTPURAM] AS bktpuram,
|
||||
[BKTFRTAM] AS bktfrtam,
|
||||
[BKTMSCAM] AS bktmscam,
|
||||
[VOIDED] AS voided,
|
||||
[HOLD] AS hold,
|
||||
RTRIM([CHEKBKID]) AS chekbkid,
|
||||
[DINVPDOF] AS dinvpdof,
|
||||
[PPSAMDED] AS ppsamded,
|
||||
[PPSTAXRT] AS ppstaxrt,
|
||||
[PGRAMSBJ] AS pgramsbj,
|
||||
[GSTDSAMT] AS gstdsamt,
|
||||
[POSTEDDT] AS posteddt,
|
||||
RTRIM([PTDUSRID]) AS ptdusrid,
|
||||
[MODIFDT] AS modifdt,
|
||||
RTRIM([MDFUSRID]) AS mdfusrid,
|
||||
[PYENTTYP] AS pyenttyp,
|
||||
RTRIM([CARDNAME]) AS cardname,
|
||||
[PRCHAMNT] AS prchamnt,
|
||||
[TRDISAMT] AS trdisamt,
|
||||
[MSCCHAMT] AS mscchamt,
|
||||
[FRTAMNT] AS frtamnt,
|
||||
[TAXAMNT] AS taxamnt,
|
||||
[TTLPYMTS] AS ttlpymts,
|
||||
RTRIM([CURNCYID]) AS curncyid,
|
||||
RTRIM([PYMTRMID]) AS pymtrmid,
|
||||
RTRIM([SHIPMTHD]) AS shipmthd,
|
||||
RTRIM([TAXSCHID]) AS taxschid,
|
||||
RTRIM([PCHSCHID]) AS pchschid,
|
||||
RTRIM([FRTSCHID]) AS frtschid,
|
||||
RTRIM([MSCSCHID]) AS mscschid,
|
||||
[PSTGDATE] AS pstgdate,
|
||||
[DISAVTKN] AS disavtkn,
|
||||
[CNTRLTYP] AS cntrltyp,
|
||||
[NOTEINDX] AS noteindx,
|
||||
[PRCTDISC] AS prctdisc,
|
||||
[RETNAGAM] AS retnagam,
|
||||
[VOIDPDATE] AS voidpdate,
|
||||
[ICTRX] AS ictrx,
|
||||
[Tax_Date] AS tax_date,
|
||||
[PRCHDATE] AS prchdate,
|
||||
[CORRCTN] AS corrctn,
|
||||
[SIMPLIFD] AS simplifd,
|
||||
[APLYWITH] AS aplywith,
|
||||
[Electronic] AS electronic,
|
||||
[ECTRX] AS ectrx,
|
||||
[DocPrinted] AS docprinted,
|
||||
[TaxInvReqd] AS taxinvreqd,
|
||||
RTRIM([VNDCHKNM]) AS vndchknm,
|
||||
[BackoutTradeDisc] AS backouttradedisc,
|
||||
[CBVAT] AS cbvat,
|
||||
RTRIM([VADCDTRO]) AS vadcdtro,
|
||||
[TEN99TYPE] AS ten99type,
|
||||
[TEN99BOXNUMBER] AS ten99boxnumber,
|
||||
RTRIM([PONUMBER]) AS ponumber,
|
||||
[Workflow_Status] AS workflow_status,
|
||||
[DEX_ROW_TS] AS dex_row_ts,
|
||||
[DEX_ROW_ID] AS dex_row_id
|
||||
FROM [GPSERVER].[CHG].[dbo].[PM30200]
|
||||
464
config/modules/pm30300.json
Normal file
464
config/modules/pm30300.json
Normal file
@ -0,0 +1,464 @@
|
||||
{
|
||||
"name": "pm30300",
|
||||
"source_connection": "sqlserver",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "gp.pm30300",
|
||||
"staging_table": "pipekit_staging.pm30300",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Dynamics GP payables apply history",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "VENDORID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vendorid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DOCDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "docdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DATE1",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "date1",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "GLPOSTDT",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "glpostdt",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TIME1",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "time1",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VCHRNMBR",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "vchrnmbr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DOCTYPE",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "doctype",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRDCNM",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "apfrdcnm",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ApplyFromGLPostDate",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "applyfromglpostdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "FROMCURR",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "fromcurr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRMAPLYAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apfrmaplyamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRMDISCTAKEN",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apfrmdisctaken",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRMDISCAVAIL",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apfrmdiscavail",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRMWROFAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apfrmwrofamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ActualApplyToAmount",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "actualapplytoamount",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ActualDiscTakenAmount",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "actualdisctakenamount",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ActualDiscAvailTaken",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "actualdiscavailtaken",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ActualWriteOffAmount",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "actualwriteoffamount",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRMEXRATE",
|
||||
"source_type": "NUMERIC(19,7)",
|
||||
"dest_name": "apfrmexrate",
|
||||
"dest_type": "numeric(19,7)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRMDENRATE",
|
||||
"source_type": "NUMERIC(19,7)",
|
||||
"dest_name": "apfrmdenrate",
|
||||
"dest_type": "numeric(19,7)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRMRTCLCMETH",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "apfrmrtclcmeth",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APFRMMCTRXSTT",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "apfrmmctrxstt",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTVCHNM",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "aptvchnm",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTODCTY",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "aptodcty",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTODCNM",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "aptodcnm",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTODCDT",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "aptodcdt",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ApplyToGLPostDate",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "applytoglpostdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CURNCYID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "curncyid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CURRNIDX",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "currnidx",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APPLDAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "appldamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISTKNAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "distknam",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISAVTKN",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "disavtkn",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "WROFAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "wrofamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORAPPAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "orappamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORDISTKN",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ordistkn",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORDATKN",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ordatkn",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORWROFAM",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "orwrofam",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTOEXRATE",
|
||||
"source_type": "NUMERIC(19,7)",
|
||||
"dest_name": "aptoexrate",
|
||||
"dest_type": "numeric(19,7)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTODENRATE",
|
||||
"source_type": "NUMERIC(19,7)",
|
||||
"dest_name": "aptodenrate",
|
||||
"dest_type": "numeric(19,7)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTORTCLCMETH",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "aptortclcmeth",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTOMCTRXSTT",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "aptomctrxstt",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PPSAMDED",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ppsamded",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "GSTDSAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "gstdsamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TAXDTLID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "taxdtlid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "POSTED",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "posted",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TEN99AMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ten99amnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "RLGANLOS",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "rlganlos",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APYFRMRNDAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apyfrmrndamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APYTORNDAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apytorndamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APYTORNDDISC",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "apytornddisc",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "OAPYFRMRNDAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "oapyfrmrndamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "OAPYTORNDAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "oapytorndamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "OAPYTORNDDISC",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "oapytornddisc",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Settled_Gain_CreditCurrT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "settled_gain_creditcurrt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Settled_Loss_CreditCurrT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "settled_loss_creditcurrt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Settled_Gain_DebitCurrTr",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "settled_gain_debitcurrtr",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Settled_Loss_DebitCurrTr",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "settled_loss_debitcurrtr",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Settled_Gain_DebitDiscAv",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "settled_gain_debitdiscav",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Settled_Loss_DebitDiscAv",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "settled_loss_debitdiscav",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Revaluation_Status",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "revaluation_status",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Credit1099Amount",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "credit1099amount",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEFTEN99TYPE",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "deften99type",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEFTEN99BOXNUMBER",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "deften99boxnumber",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEX_ROW_ID",
|
||||
"source_type": "INT",
|
||||
"dest_name": "dex_row_id",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": [],
|
||||
"description": "Dynamics GP payables apply history"
|
||||
}
|
||||
66
config/modules/pm30300.sql
Normal file
66
config/modules/pm30300.sql
Normal file
@ -0,0 +1,66 @@
|
||||
SELECT
|
||||
RTRIM([VENDORID]) AS vendorid,
|
||||
[DOCDATE] AS docdate,
|
||||
[DATE1] AS date1,
|
||||
[GLPOSTDT] AS glpostdt,
|
||||
[TIME1] AS time1,
|
||||
RTRIM([VCHRNMBR]) AS vchrnmbr,
|
||||
[DOCTYPE] AS doctype,
|
||||
RTRIM([APFRDCNM]) AS apfrdcnm,
|
||||
[ApplyFromGLPostDate] AS applyfromglpostdate,
|
||||
RTRIM([FROMCURR]) AS fromcurr,
|
||||
[APFRMAPLYAMT] AS apfrmaplyamt,
|
||||
[APFRMDISCTAKEN] AS apfrmdisctaken,
|
||||
[APFRMDISCAVAIL] AS apfrmdiscavail,
|
||||
[APFRMWROFAMT] AS apfrmwrofamt,
|
||||
[ActualApplyToAmount] AS actualapplytoamount,
|
||||
[ActualDiscTakenAmount] AS actualdisctakenamount,
|
||||
[ActualDiscAvailTaken] AS actualdiscavailtaken,
|
||||
[ActualWriteOffAmount] AS actualwriteoffamount,
|
||||
[APFRMEXRATE] AS apfrmexrate,
|
||||
[APFRMDENRATE] AS apfrmdenrate,
|
||||
[APFRMRTCLCMETH] AS apfrmrtclcmeth,
|
||||
[APFRMMCTRXSTT] AS apfrmmctrxstt,
|
||||
RTRIM([APTVCHNM]) AS aptvchnm,
|
||||
[APTODCTY] AS aptodcty,
|
||||
RTRIM([APTODCNM]) AS aptodcnm,
|
||||
[APTODCDT] AS aptodcdt,
|
||||
[ApplyToGLPostDate] AS applytoglpostdate,
|
||||
RTRIM([CURNCYID]) AS curncyid,
|
||||
[CURRNIDX] AS currnidx,
|
||||
[APPLDAMT] AS appldamt,
|
||||
[DISTKNAM] AS distknam,
|
||||
[DISAVTKN] AS disavtkn,
|
||||
[WROFAMNT] AS wrofamnt,
|
||||
[ORAPPAMT] AS orappamt,
|
||||
[ORDISTKN] AS ordistkn,
|
||||
[ORDATKN] AS ordatkn,
|
||||
[ORWROFAM] AS orwrofam,
|
||||
[APTOEXRATE] AS aptoexrate,
|
||||
[APTODENRATE] AS aptodenrate,
|
||||
[APTORTCLCMETH] AS aptortclcmeth,
|
||||
[APTOMCTRXSTT] AS aptomctrxstt,
|
||||
[PPSAMDED] AS ppsamded,
|
||||
[GSTDSAMT] AS gstdsamt,
|
||||
RTRIM([TAXDTLID]) AS taxdtlid,
|
||||
[POSTED] AS posted,
|
||||
[TEN99AMNT] AS ten99amnt,
|
||||
[RLGANLOS] AS rlganlos,
|
||||
[APYFRMRNDAMT] AS apyfrmrndamt,
|
||||
[APYTORNDAMT] AS apytorndamt,
|
||||
[APYTORNDDISC] AS apytornddisc,
|
||||
[OAPYFRMRNDAMT] AS oapyfrmrndamt,
|
||||
[OAPYTORNDAMT] AS oapytorndamt,
|
||||
[OAPYTORNDDISC] AS oapytornddisc,
|
||||
[Settled_Gain_CreditCurrT] AS settled_gain_creditcurrt,
|
||||
[Settled_Loss_CreditCurrT] AS settled_loss_creditcurrt,
|
||||
[Settled_Gain_DebitCurrTr] AS settled_gain_debitcurrtr,
|
||||
[Settled_Loss_DebitCurrTr] AS settled_loss_debitcurrtr,
|
||||
[Settled_Gain_DebitDiscAv] AS settled_gain_debitdiscav,
|
||||
[Settled_Loss_DebitDiscAv] AS settled_loss_debitdiscav,
|
||||
[Revaluation_Status] AS revaluation_status,
|
||||
[Credit1099Amount] AS credit1099amount,
|
||||
[DEFTEN99TYPE] AS deften99type,
|
||||
[DEFTEN99BOXNUMBER] AS deften99boxnumber,
|
||||
[DEX_ROW_ID] AS dex_row_id
|
||||
FROM [GPSERVER].[CHG].[dbo].[PM30300]
|
||||
177
config/modules/pm30600.json
Normal file
177
config/modules/pm30600.json
Normal file
@ -0,0 +1,177 @@
|
||||
{
|
||||
"name": "pm30600",
|
||||
"source_connection": "sqlserver",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "gp.pm30600",
|
||||
"staging_table": "pipekit_staging.pm30600",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Dynamics GP payables GL distribution history",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "DOCTYPE",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "doctype",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VCHRNMBR",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "vchrnmbr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DSTSQNUM",
|
||||
"source_type": "INT",
|
||||
"dest_name": "dstsqnum",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CNTRLTYP",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "cntrltyp",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CRDTAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "crdtamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEBITAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "debitamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DSTINDX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "dstindx",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISTTYPE",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "disttype",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CHANGED",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "changed",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "USERID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "userid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PSTGSTUS",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "pstgstus",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VENDORID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vendorid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TRXSORCE",
|
||||
"source_type": "CHAR(13)",
|
||||
"dest_name": "trxsorce",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PSTGDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "pstgdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CURNCYID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "curncyid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CURRNIDX",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "currnidx",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORCRDAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "orcrdamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORDBTAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ordbtamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTVCHNM",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "aptvchnm",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "APTODCTY",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "aptodcty",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "SPCLDIST",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "spcldist",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DistRef",
|
||||
"source_type": "CHAR(31)",
|
||||
"dest_name": "distref",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEX_ROW_ID",
|
||||
"source_type": "INT",
|
||||
"dest_name": "dex_row_id",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": [],
|
||||
"description": "Dynamics GP payables GL distribution history"
|
||||
}
|
||||
25
config/modules/pm30600.sql
Normal file
25
config/modules/pm30600.sql
Normal file
@ -0,0 +1,25 @@
|
||||
SELECT
|
||||
[DOCTYPE] AS doctype,
|
||||
RTRIM([VCHRNMBR]) AS vchrnmbr,
|
||||
[DSTSQNUM] AS dstsqnum,
|
||||
[CNTRLTYP] AS cntrltyp,
|
||||
[CRDTAMNT] AS crdtamnt,
|
||||
[DEBITAMT] AS debitamt,
|
||||
[DSTINDX] AS dstindx,
|
||||
[DISTTYPE] AS disttype,
|
||||
[CHANGED] AS changed,
|
||||
RTRIM([USERID]) AS userid,
|
||||
[PSTGSTUS] AS pstgstus,
|
||||
RTRIM([VENDORID]) AS vendorid,
|
||||
RTRIM([TRXSORCE]) AS trxsorce,
|
||||
[PSTGDATE] AS pstgdate,
|
||||
RTRIM([CURNCYID]) AS curncyid,
|
||||
[CURRNIDX] AS currnidx,
|
||||
[ORCRDAMT] AS orcrdamt,
|
||||
[ORDBTAMT] AS ordbtamt,
|
||||
RTRIM([APTVCHNM]) AS aptvchnm,
|
||||
[APTODCTY] AS aptodcty,
|
||||
[SPCLDIST] AS spcldist,
|
||||
RTRIM([DistRef]) AS distref,
|
||||
[DEX_ROW_ID] AS dex_row_id
|
||||
FROM [GPSERVER].[CHG].[dbo].[PM30600]
|
||||
170
config/modules/pm30700.json
Normal file
170
config/modules/pm30700.json
Normal file
@ -0,0 +1,170 @@
|
||||
{
|
||||
"name": "pm30700",
|
||||
"source_connection": "sqlserver",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "gp.pm30700",
|
||||
"staging_table": "pipekit_staging.pm30700",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Dynamics GP payables tax history",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "VENDORID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vendorid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VCHRNMBR",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "vchrnmbr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DOCTYPE",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "doctype",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BACHNUMB",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "bachnumb",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TAXDTLID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "taxdtlid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BKOUTTAX",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "bkouttax",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TAXAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "taxamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORTAXAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ortaxamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PCTAXAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "pctaxamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORPURTAX",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "orpurtax",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "FRTTXAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "frttxamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORFRTTAX",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "orfrttax",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MSCTXAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "msctxamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORMSCTAX",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ormsctax",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ACTINDX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "actindx",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TRXSORCE",
|
||||
"source_type": "CHAR(13)",
|
||||
"dest_name": "trxsorce",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TDTTXPUR",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "tdttxpur",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORTXBPUR",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ortxbpur",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TXDTTPUR",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "txdttpur",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORTOTPUR",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "ortotpur",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CURRNIDX",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "currnidx",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEX_ROW_ID",
|
||||
"source_type": "INT",
|
||||
"dest_name": "dex_row_id",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": [],
|
||||
"description": "Dynamics GP payables tax history"
|
||||
}
|
||||
24
config/modules/pm30700.sql
Normal file
24
config/modules/pm30700.sql
Normal file
@ -0,0 +1,24 @@
|
||||
SELECT
|
||||
RTRIM([VENDORID]) AS vendorid,
|
||||
RTRIM([VCHRNMBR]) AS vchrnmbr,
|
||||
[DOCTYPE] AS doctype,
|
||||
RTRIM([BACHNUMB]) AS bachnumb,
|
||||
RTRIM([TAXDTLID]) AS taxdtlid,
|
||||
[BKOUTTAX] AS bkouttax,
|
||||
[TAXAMNT] AS taxamnt,
|
||||
[ORTAXAMT] AS ortaxamt,
|
||||
[PCTAXAMT] AS pctaxamt,
|
||||
[ORPURTAX] AS orpurtax,
|
||||
[FRTTXAMT] AS frttxamt,
|
||||
[ORFRTTAX] AS orfrttax,
|
||||
[MSCTXAMT] AS msctxamt,
|
||||
[ORMSCTAX] AS ormsctax,
|
||||
[ACTINDX] AS actindx,
|
||||
RTRIM([TRXSORCE]) AS trxsorce,
|
||||
[TDTTXPUR] AS tdttxpur,
|
||||
[ORTXBPUR] AS ortxbpur,
|
||||
[TXDTTPUR] AS txdttpur,
|
||||
[ORTOTPUR] AS ortotpur,
|
||||
[CURRNIDX] AS currnidx,
|
||||
[DEX_ROW_ID] AS dex_row_id
|
||||
FROM [GPSERVER].[CHG].[dbo].[PM30700]
|
||||
Loading…
Reference in New Issue
Block a user