Compare commits
12 Commits
feat/dest-
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 890f10cbab | |||
| 7921ebb7e1 | |||
| 002de48bba | |||
| e5c1ed37f4 | |||
| 38e490aaaf | |||
| 0db719c835 | |||
| 560056c39c | |||
| 85c2295f63 | |||
| a9742c8a38 | |||
| 6a3ac0e436 | |||
| c073e70114 | |||
| 515bfce37c |
212
README.md
Normal file
212
README.md
Normal file
@ -0,0 +1,212 @@
|
||||
# Pipekit
|
||||
|
||||
A database sync tool with a web UI. A **module** defines one job — a source
|
||||
query against one database, merged into a destination table on another. Pipekit
|
||||
resolves watermarks, runs the extract, stages the rows, merges them, and records
|
||||
what happened. Modules can be grouped, ordered, and scheduled with cron.
|
||||
|
||||
It is an orchestration layer over [`jrunner`](#requirements), an external Java
|
||||
CLI that does all the actual JDBC work. Pipekit never talks to a remote database
|
||||
directly — it shells out. What it adds is the state, history, and UI that a
|
||||
directory of shell scripts can't provide: run logs with timings and row counts,
|
||||
live output while a job runs, a wizard for authoring new modules, and a
|
||||
scheduler.
|
||||
|
||||
---
|
||||
|
||||
## Install
|
||||
|
||||
### Requirements
|
||||
|
||||
- **Python 3.10+**
|
||||
- **jrunner** on `PATH`, with `JAVA_HOME` set — the Java CLI that performs every
|
||||
JDBC read and write. Install `/opt/jrunner` first; `deploy.sh` refuses to run
|
||||
without it and injects the detected `JAVA_HOME` into the systemd unit.
|
||||
- **sudo** — the deploy creates a system user, writes to `/etc/pipekit`, and
|
||||
installs a systemd unit.
|
||||
|
||||
### Deploy
|
||||
|
||||
```bash
|
||||
./deploy.sh
|
||||
```
|
||||
|
||||
Idempotent — re-run it after any code update. It creates the `pipekit` system
|
||||
user and group, adds you to that group, builds the venv at `.venv`, installs the
|
||||
`/usr/local/bin/pipekit` launcher, creates `/etc/pipekit/secrets.env` (mode
|
||||
0640), initialises the SQLite schema, registers a JDBC driver row for every jar
|
||||
shipped with jrunner, and installs the systemd unit. It does **not** start the
|
||||
service.
|
||||
|
||||
Then add your connection passwords and start it:
|
||||
|
||||
```bash
|
||||
sudo pipekit secrets set MYDB_PW # prompts if the value is omitted
|
||||
sudo systemctl start pipekit
|
||||
```
|
||||
|
||||
The web UI is on `api_port` from `config.yaml` — **8200** by default.
|
||||
|
||||
### Service management
|
||||
|
||||
```bash
|
||||
sudo systemctl status pipekit
|
||||
sudo systemctl restart pipekit # after any code change
|
||||
sudo journalctl -u pipekit -f # follow logs
|
||||
```
|
||||
|
||||
### Running outside the service
|
||||
|
||||
```bash
|
||||
pipekit serve # host/port from config.yaml
|
||||
pipekit serve --host 0.0.0.0 --port 8080 --reload # dev, auto-reload
|
||||
```
|
||||
|
||||
### CLI
|
||||
|
||||
```bash
|
||||
pipekit init # create/upgrade the SQLite schema
|
||||
pipekit doctor # health check: config, jrunner, DB
|
||||
pipekit run <module_name> # run one module synchronously
|
||||
pipekit set-password <user> # HTTP Basic Auth credentials for /api/*
|
||||
pipekit secrets set KEY [VALUE] # add/update a secret
|
||||
pipekit secrets list # show stored keys, never values
|
||||
pipekit drivers list # registered driver kinds
|
||||
```
|
||||
|
||||
Configuration also round-trips to plain text, so modules can be diffed and
|
||||
version-controlled rather than living only in the database:
|
||||
|
||||
```bash
|
||||
pipekit export # dump drivers/connections/modules/groups to <repo>/config
|
||||
pipekit apply --dry-run # print the change plan without touching the DB
|
||||
pipekit apply # rehydrate from those files, matching by name
|
||||
pipekit apply --prune # also delete rows absent from the files
|
||||
```
|
||||
|
||||
### Configuration
|
||||
|
||||
`config.yaml` in the repo root holds the database path, jrunner path, driver
|
||||
directory, API host/port, and an optional SMTP block. Two environment variables
|
||||
override the defaults: `PIPEKIT_CONFIG` for the config file and
|
||||
`PIPEKIT_SECRETS` for the secrets file.
|
||||
|
||||
---
|
||||
|
||||
## About the project
|
||||
|
||||
### Tech stack
|
||||
|
||||
- **Python 3.10+** — no ORM, no migrations framework, no task queue
|
||||
- **FastAPI + Uvicorn** for both the JSON API and the HTML pages
|
||||
- **Jinja2** templates; **HTMX** (from CDN) plus vanilla JS for interactivity.
|
||||
There is no build step and no frontend toolchain. Alpine.js is named in some
|
||||
older docs but is not loaded.
|
||||
- **SQLite** (stdlib `sqlite3`) — a single `pipekit.db` file holds all state
|
||||
- **PyYAML** for config, **croniter** for schedule evaluation
|
||||
- **python-multipart** — required for HTML form POSTs; it is not a transitive
|
||||
dependency of the FastAPI base wheel, and form posts return 500 without it
|
||||
- **jrunner** — a separate Java tool, the only thing that speaks JDBC
|
||||
|
||||
Deployed as the `pipekit` system user, venv at `/opt/pipekit/.venv`, secrets at
|
||||
`/etc/pipekit/secrets.env`.
|
||||
|
||||
### Architecture
|
||||
|
||||
Five layers, bottom to top:
|
||||
|
||||
1. **SQLite** — one file, all state
|
||||
2. **`repo.py`** — every CRUD operation for every table; the only module that
|
||||
touches the database
|
||||
3. **`engine/`** — runs a module: acquires the lock, resolves watermarks, calls
|
||||
jrunner, builds and runs the merge, fires hooks, writes the run log, releases
|
||||
the lock
|
||||
4. **`api/`** — JSON REST under `/api/*`, HTTP Basic Auth (except `/health`)
|
||||
5. **`web/`** — HTML pages at `/`, currently unauthenticated
|
||||
|
||||
### Data model
|
||||
|
||||
- **driver** — a registered JDBC driver (kind, jar, class, URL template)
|
||||
- **connection** — a named database (JDBC URL, username, password)
|
||||
- **module** — one sync job: source and dest connection, source query, merge
|
||||
strategy and key, column map, enabled flag, running lock
|
||||
- **watermark** — a named placeholder with its own resolver SQL. The first cell
|
||||
of the first row is substituted for `{watermark_name}` in the source query.
|
||||
- **hook** — post-merge SQL, ordered, fired on success / failure / always
|
||||
- **run_log** — immutable history: resolved SQL, merge SQL, watermark values,
|
||||
stdout/stderr, timings, and the live log streamed during the run
|
||||
- **grp** / **group_member** / **group_run** — named, ordered sets of modules
|
||||
and their executions
|
||||
- **schedule** — a cron expression bound to a group, evaluated in **local server
|
||||
time**
|
||||
|
||||
### How a run works
|
||||
|
||||
```
|
||||
run_module(module_id)
|
||||
→ atomic UPDATE module SET running=1 WHERE running=0 # fails if already locked
|
||||
→ resolve each watermark via jrunner # always live, even on dry runs
|
||||
→ substitute {name} tokens into the source query
|
||||
→ build the merge SQL
|
||||
→ if dry_run: write the run_log and stop — no data moves
|
||||
→ DROP + CREATE pipekit_staging.{module_name} # self-heals schema drift
|
||||
→ jrunner migrate: source → staging # stdout streamed to live_log
|
||||
→ run the merge, then the hooks in order
|
||||
→ write run_log; UPDATE module SET running=0 (in finally)
|
||||
```
|
||||
|
||||
A group run creates a `group_run` row and calls `run_module` for each enabled
|
||||
member in order. It continues past individual failures — every member runs — and
|
||||
the group's final status reflects the worst outcome.
|
||||
|
||||
Run statuses: `running`, `success`, `dry_run`, `error`, `cancelled`.
|
||||
|
||||
### Merge strategies
|
||||
|
||||
- **full** — `TRUNCATE` the dest, then insert everything
|
||||
- **incremental** — delete the rows matching `merge_key`, then insert. The key is
|
||||
stored comma-separated and expands to a multi-column predicate.
|
||||
- **append** — insert only
|
||||
|
||||
The staging table is recreated on every run and exists only for the duration of
|
||||
that run.
|
||||
|
||||
### Credentials
|
||||
|
||||
Connection passwords are stored as `$VAR_NAME` references, never as values. They
|
||||
resolve at run time from `/etc/pipekit/secrets.env`. Secrets never reach the
|
||||
database, and never appear on a command line.
|
||||
|
||||
### Performance note
|
||||
|
||||
When the destination is SQL Server or Postgres, jrunner is invoked with `-b` so
|
||||
the load uses the native bulk path — `SQLServerBulkCopy` over TDS, or
|
||||
`COPY … FROM STDIN`. This is automatic, per-destination, with nothing to
|
||||
configure, and the difference is large: one 1.27M-row SQL Server load went from
|
||||
~111 minutes to ~4. DB2 destinations keep the ordinary INSERT path.
|
||||
|
||||
### Reconciliation
|
||||
|
||||
`reconcile.py` compares a module's live source against its synced destination
|
||||
using column-wise aggregates — counts, sums, min/max, summed lengths. These rely
|
||||
only on arithmetic and ordering, which every backend computes identically, so no
|
||||
shared hash function or byte-identical row serialisation is needed.
|
||||
|
||||
```bash
|
||||
PIPEKIT_SECRETS=/etc/pipekit/secrets.env .venv/bin/python reconcile.py <module> [--quick]
|
||||
```
|
||||
|
||||
Three depths: the default compares every column; `--quick` drops min/max and
|
||||
length sums; `--super-quick` compares only row counts, which takes seconds even
|
||||
on millions of rows and still catches missing or duplicated rows. Exit status is
|
||||
non-zero when anything diverges. Note that it compares whole tables against a
|
||||
live source, so an incremental module will always show drift proportional to the
|
||||
time since its last run.
|
||||
|
||||
---
|
||||
|
||||
## Further reading
|
||||
|
||||
- **`SPEC.md`** — the authoritative design document, and the rationale behind
|
||||
every architectural decision here
|
||||
- **`CLAUDE.md`** — orientation for AI coding agents working in this repo
|
||||
@ -2,7 +2,7 @@
|
||||
{
|
||||
"name": "S78030956",
|
||||
"driver": "db2-jt400",
|
||||
"jdbc_url": "jdbc:as400://S7830956;libraries=RLARP,LGDAT,LGPGM",
|
||||
"jdbc_url": "jdbc:as400://S7830956;libraries=RLARP,LGDAT,LGPGM;block size=512",
|
||||
"username": "ptrowbridg",
|
||||
"password": "$DB2PW",
|
||||
"default_dest_connection": "usmidsap02",
|
||||
@ -16,8 +16,8 @@
|
||||
"username": "Pricing",
|
||||
"password": "$SQLCMDPASSWORD",
|
||||
"default_dest_connection": "usmidsap02",
|
||||
"default_dest_schema": null,
|
||||
"notes": null
|
||||
"default_dest_schema": "gp",
|
||||
"notes": "None"
|
||||
},
|
||||
{
|
||||
"name": "usmidsap02",
|
||||
|
||||
@ -23,7 +23,12 @@
|
||||
"run_order": 0
|
||||
}
|
||||
],
|
||||
"schedules": []
|
||||
"schedules": [
|
||||
{
|
||||
"cron_expr": "0 1 * * *",
|
||||
"enabled": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Codes",
|
||||
@ -32,14 +37,66 @@
|
||||
"module": "code",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "color",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "colorb",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "colortier",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "cret",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "ffcret",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "glie",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "irea",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "macgrp",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "majg",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "mmgp",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "mmsl",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "name",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "plnt",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "sach",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "sscc",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "sy03300",
|
||||
"run_order": 0
|
||||
@ -47,17 +104,53 @@
|
||||
{
|
||||
"module": "terms",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "usrd",
|
||||
"run_order": 0
|
||||
}
|
||||
],
|
||||
"schedules": []
|
||||
"schedules": [
|
||||
{
|
||||
"cron_expr": "0 1 * * *",
|
||||
"enabled": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Cost History",
|
||||
"members": [
|
||||
{
|
||||
"module": "icstt",
|
||||
"run_order": 0
|
||||
}
|
||||
],
|
||||
"schedules": [
|
||||
{
|
||||
"cron_expr": "30 3 * * *",
|
||||
"enabled": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Customer",
|
||||
"members": [
|
||||
{
|
||||
"module": "adrs",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "cust",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "usrcust",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "vend",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "rm00101",
|
||||
"run_order": 1
|
||||
@ -77,6 +170,10 @@
|
||||
{
|
||||
"name": "Fiscal",
|
||||
"members": [
|
||||
{
|
||||
"module": "armasc",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "coa_map",
|
||||
"run_order": 0
|
||||
@ -109,10 +206,6 @@
|
||||
"module": "sy40100",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "tb_addbacks",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "fgrp",
|
||||
"run_order": 1
|
||||
@ -149,6 +242,28 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Future",
|
||||
"members": [
|
||||
{
|
||||
"module": "fresre",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "ftcstm",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "ftcstp",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "ftcstr",
|
||||
"run_order": 0
|
||||
}
|
||||
],
|
||||
"schedules": []
|
||||
},
|
||||
{
|
||||
"name": "Inventory Master",
|
||||
"members": [
|
||||
@ -211,6 +326,121 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Price Lists",
|
||||
"members": [
|
||||
{
|
||||
"module": "iprca",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "iprcb",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "iprcbhc",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "iprcc",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "iprcct",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "iprcctn",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "iprccto",
|
||||
"run_order": 0
|
||||
}
|
||||
],
|
||||
"schedules": [
|
||||
{
|
||||
"cron_expr": "0 3 * * *",
|
||||
"enabled": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Product Structure",
|
||||
"members": [
|
||||
{
|
||||
"module": "depts",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "icstm",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "icstp",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "icstr",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "methh",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "opcode",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "punit",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "stka",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "stkmm",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "stkmp",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "methdm",
|
||||
"run_order": 1
|
||||
},
|
||||
{
|
||||
"module": "methdo",
|
||||
"run_order": 1
|
||||
},
|
||||
{
|
||||
"module": "methdr",
|
||||
"run_order": 1
|
||||
},
|
||||
{
|
||||
"module": "resre",
|
||||
"run_order": 1
|
||||
}
|
||||
],
|
||||
"schedules": []
|
||||
},
|
||||
{
|
||||
"name": "Production",
|
||||
"members": [
|
||||
{
|
||||
"module": "rprh",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "ffpdglr1",
|
||||
"run_order": 1
|
||||
}
|
||||
],
|
||||
"schedules": []
|
||||
},
|
||||
{
|
||||
"name": "Quote Review",
|
||||
"members": [
|
||||
@ -226,6 +456,33 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Quotes",
|
||||
"members": [
|
||||
{
|
||||
"module": "qcrs",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "qcrh",
|
||||
"run_order": 1
|
||||
},
|
||||
{
|
||||
"module": "qcri",
|
||||
"run_order": 2
|
||||
},
|
||||
{
|
||||
"module": "qtnote",
|
||||
"run_order": 3
|
||||
}
|
||||
],
|
||||
"schedules": [
|
||||
{
|
||||
"cron_expr": "55 * * * *",
|
||||
"enabled": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Sales Matrix",
|
||||
"members": [
|
||||
@ -248,6 +505,10 @@
|
||||
"module": "sop10100",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "sop10102",
|
||||
"run_order": 0
|
||||
},
|
||||
{
|
||||
"module": "sop10200",
|
||||
"run_order": 0
|
||||
@ -293,7 +554,12 @@
|
||||
"run_order": 3
|
||||
}
|
||||
],
|
||||
"schedules": []
|
||||
"schedules": [
|
||||
{
|
||||
"cron_expr": "0 * * * *",
|
||||
"enabled": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Surcharges",
|
||||
|
||||
@ -96,7 +96,7 @@
|
||||
{
|
||||
"source_name": "_HD_Grower",
|
||||
"source_type": "VARCHAR(5)",
|
||||
"dest_name": "_hd_grower",
|
||||
"dest_name": "hd_grower",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
@ -187,7 +187,7 @@
|
||||
{
|
||||
"source_name": "Ext. Price",
|
||||
"source_type": "NUMERIC(38,7)",
|
||||
"dest_name": "ext._price",
|
||||
"dest_name": "ext_price",
|
||||
"dest_type": "numeric(38,7)",
|
||||
"description": null
|
||||
},
|
||||
@ -201,7 +201,7 @@
|
||||
{
|
||||
"source_name": "Ext. Cost",
|
||||
"source_type": "NUMERIC(38,9)",
|
||||
"dest_name": "ext._cost",
|
||||
"dest_name": "ext_cost",
|
||||
"dest_type": "numeric(38,9)",
|
||||
"description": null
|
||||
},
|
||||
@ -215,14 +215,14 @@
|
||||
{
|
||||
"source_name": "Ext. Margin Dollar",
|
||||
"source_type": "NUMERIC(38,7)",
|
||||
"dest_name": "ext._margin_dollar",
|
||||
"dest_name": "ext_margin_dollar",
|
||||
"dest_type": "numeric(38,7)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Margin %",
|
||||
"source_type": "NVARCHAR(4000)",
|
||||
"dest_name": "margin__",
|
||||
"dest_name": "margin_pct",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
|
||||
162
config/modules/adrs.json
Normal file
162
config/modules/adrs.json
Normal file
@ -0,0 +1,162 @@
|
||||
{
|
||||
"name": "adrs",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.adrs",
|
||||
"staging_table": "pipekit_staging.adrs",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Address Master 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "QZADR",
|
||||
"source_type": "NUMERIC(8,0)",
|
||||
"dest_name": "qzadr",
|
||||
"dest_type": "numeric(8,0)",
|
||||
"description": "Address Number"
|
||||
},
|
||||
{
|
||||
"source_name": "QZNAME",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "qzname",
|
||||
"dest_type": "text",
|
||||
"description": "Name"
|
||||
},
|
||||
{
|
||||
"source_name": "QZADR1",
|
||||
"source_type": "CHAR(35)",
|
||||
"dest_name": "qzadr1",
|
||||
"dest_type": "text",
|
||||
"description": "Address 1"
|
||||
},
|
||||
{
|
||||
"source_name": "QZADR2",
|
||||
"source_type": "CHAR(35)",
|
||||
"dest_name": "qzadr2",
|
||||
"dest_type": "text",
|
||||
"description": "Address 2"
|
||||
},
|
||||
{
|
||||
"source_name": "QZADR3",
|
||||
"source_type": "CHAR(35)",
|
||||
"dest_name": "qzadr3",
|
||||
"dest_type": "text",
|
||||
"description": "Address 3"
|
||||
},
|
||||
{
|
||||
"source_name": "QZADR4",
|
||||
"source_type": "CHAR(35)",
|
||||
"dest_name": "qzadr4",
|
||||
"dest_type": "text",
|
||||
"description": "Address 4"
|
||||
},
|
||||
{
|
||||
"source_name": "QZADR5",
|
||||
"source_type": "CHAR(35)",
|
||||
"dest_name": "qzadr5",
|
||||
"dest_type": "text",
|
||||
"description": "Address 5"
|
||||
},
|
||||
{
|
||||
"source_name": "QZADR6",
|
||||
"source_type": "CHAR(35)",
|
||||
"dest_name": "qzadr6",
|
||||
"dest_type": "text",
|
||||
"description": "Address 6"
|
||||
},
|
||||
{
|
||||
"source_name": "QZADR7",
|
||||
"source_type": "CHAR(35)",
|
||||
"dest_name": "qzadr7",
|
||||
"dest_type": "text",
|
||||
"description": "Address 7"
|
||||
},
|
||||
{
|
||||
"source_name": "QZADR8",
|
||||
"source_type": "CHAR(35)",
|
||||
"dest_name": "qzadr8",
|
||||
"dest_type": "text",
|
||||
"description": "Address 8"
|
||||
},
|
||||
{
|
||||
"source_name": "QZADR9",
|
||||
"source_type": "CHAR(35)",
|
||||
"dest_name": "qzadr9",
|
||||
"dest_type": "text",
|
||||
"description": "Address 9"
|
||||
},
|
||||
{
|
||||
"source_name": "QZADR10",
|
||||
"source_type": "CHAR(35)",
|
||||
"dest_name": "qzadr10",
|
||||
"dest_type": "text",
|
||||
"description": "Address 10"
|
||||
},
|
||||
{
|
||||
"source_name": "QZCITY",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "qzcity",
|
||||
"dest_type": "text",
|
||||
"description": "City"
|
||||
},
|
||||
{
|
||||
"source_name": "QZPROV",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "qzprov",
|
||||
"dest_type": "text",
|
||||
"description": "Province /State Code"
|
||||
},
|
||||
{
|
||||
"source_name": "QZPOST",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "qzpost",
|
||||
"dest_type": "text",
|
||||
"description": "Postal Code/ZIP"
|
||||
},
|
||||
{
|
||||
"source_name": "QZCRYC",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "qzcryc",
|
||||
"dest_type": "text",
|
||||
"description": "Country Code"
|
||||
},
|
||||
{
|
||||
"source_name": "QZCTRY",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "qzctry",
|
||||
"dest_type": "text",
|
||||
"description": "Obsoleted"
|
||||
},
|
||||
{
|
||||
"source_name": "QZPOOL",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "qzpool",
|
||||
"dest_type": "text",
|
||||
"description": "Pool Point"
|
||||
},
|
||||
{
|
||||
"source_name": "QZPHON",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "qzphon",
|
||||
"dest_type": "text",
|
||||
"description": "Phone Number"
|
||||
},
|
||||
{
|
||||
"source_name": "QZFAX",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "qzfax",
|
||||
"dest_type": "text",
|
||||
"description": "Fax Number"
|
||||
},
|
||||
{
|
||||
"source_name": "QZEMAIL",
|
||||
"source_type": "CHAR(253)",
|
||||
"dest_name": "qzemail",
|
||||
"dest_type": "text",
|
||||
"description": "Email Address"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
23
config/modules/adrs.sql
Normal file
23
config/modules/adrs.sql
Normal file
@ -0,0 +1,23 @@
|
||||
SELECT
|
||||
QZADR AS qzadr,
|
||||
RTRIM(QZNAME) AS qzname,
|
||||
RTRIM(QZADR1) AS qzadr1,
|
||||
RTRIM(QZADR2) AS qzadr2,
|
||||
RTRIM(QZADR3) AS qzadr3,
|
||||
RTRIM(QZADR4) AS qzadr4,
|
||||
RTRIM(QZADR5) AS qzadr5,
|
||||
RTRIM(QZADR6) AS qzadr6,
|
||||
RTRIM(QZADR7) AS qzadr7,
|
||||
RTRIM(QZADR8) AS qzadr8,
|
||||
RTRIM(QZADR9) AS qzadr9,
|
||||
RTRIM(QZADR10) AS qzadr10,
|
||||
RTRIM(QZCITY) AS qzcity,
|
||||
RTRIM(QZPROV) AS qzprov,
|
||||
RTRIM(QZPOST) AS qzpost,
|
||||
RTRIM(QZCRYC) AS qzcryc,
|
||||
RTRIM(QZCTRY) AS qzctry,
|
||||
RTRIM(QZPOOL) AS qzpool,
|
||||
RTRIM(QZPHON) AS qzphon,
|
||||
RTRIM(QZFAX) AS qzfax,
|
||||
RTRIM(QZEMAIL) AS qzemail
|
||||
FROM LGDAT.ADRS
|
||||
141
config/modules/armasc.json
Normal file
141
config/modules/armasc.json
Normal file
@ -0,0 +1,141 @@
|
||||
{
|
||||
"name": "armasc",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.armasc",
|
||||
"staging_table": "pipekit_staging.armasc",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "A/R Master Codes File - Sales Codes 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "ZWCODE",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "zwcode",
|
||||
"dest_type": "text",
|
||||
"description": "Record C"
|
||||
},
|
||||
{
|
||||
"source_name": "ZWCOMP",
|
||||
"source_type": "NUMERIC(2,0)",
|
||||
"dest_name": "zwcomp",
|
||||
"dest_type": "numeric(2,0)",
|
||||
"description": "Company Number"
|
||||
},
|
||||
{
|
||||
"source_name": "ZWKEY1",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "zwkey1",
|
||||
"dest_type": "text",
|
||||
"description": "A/R Bank Code"
|
||||
},
|
||||
{
|
||||
"source_name": "ZWKEY2",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "zwkey2",
|
||||
"dest_type": "text",
|
||||
"description": "G/L Sales Code"
|
||||
},
|
||||
{
|
||||
"source_name": "ZWFIL1",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "zwfil1",
|
||||
"dest_type": "text",
|
||||
"description": "Fill"
|
||||
},
|
||||
{
|
||||
"source_name": "ZWSAL#",
|
||||
"source_type": "NUMERIC(12,0)",
|
||||
"dest_name": "zwsal#",
|
||||
"dest_type": "numeric(12,0)",
|
||||
"description": "Sale G/L Account"
|
||||
},
|
||||
{
|
||||
"source_name": "ZWELB#",
|
||||
"source_type": "NUMERIC(12,0)",
|
||||
"dest_name": "zwelb#",
|
||||
"dest_type": "numeric(12,0)",
|
||||
"description": "COS Labour"
|
||||
},
|
||||
{
|
||||
"source_name": "ZWINV#",
|
||||
"source_type": "NUMERIC(12,0)",
|
||||
"dest_name": "zwinv#",
|
||||
"dest_type": "numeric(12,0)",
|
||||
"description": "Short Term Deferred Service Sales"
|
||||
},
|
||||
{
|
||||
"source_name": "ZWDSC#",
|
||||
"source_type": "NUMERIC(12,0)",
|
||||
"dest_name": "zwdsc#",
|
||||
"dest_type": "numeric(12,0)",
|
||||
"description": "Discount G/L Account"
|
||||
},
|
||||
{
|
||||
"source_name": "ZWEXB#",
|
||||
"source_type": "NUMERIC(12,0)",
|
||||
"dest_name": "zwexb#",
|
||||
"dest_type": "numeric(12,0)",
|
||||
"description": "COS Burden (Var)"
|
||||
},
|
||||
{
|
||||
"source_name": "ZWEXM#",
|
||||
"source_type": "NUMERIC(12,0)",
|
||||
"dest_name": "zwexm#",
|
||||
"dest_type": "numeric(12,0)",
|
||||
"description": "COS Material"
|
||||
},
|
||||
{
|
||||
"source_name": "ZWEXO#",
|
||||
"source_type": "NUMERIC(12,0)",
|
||||
"dest_name": "zwexo#",
|
||||
"dest_type": "numeric(12,0)",
|
||||
"description": "COS Other"
|
||||
},
|
||||
{
|
||||
"source_name": "ZWFRT#",
|
||||
"source_type": "NUMERIC(12,0)",
|
||||
"dest_name": "zwfrt#",
|
||||
"dest_type": "numeric(12,0)",
|
||||
"description": "Prepaid Freight"
|
||||
},
|
||||
{
|
||||
"source_name": "ZWDEP#",
|
||||
"source_type": "NUMERIC(12,0)",
|
||||
"dest_name": "zwdep#",
|
||||
"dest_type": "numeric(12,0)",
|
||||
"description": "Long Term Deferred Service Sales"
|
||||
},
|
||||
{
|
||||
"source_name": "ZWFIL2",
|
||||
"source_type": "CHAR(394)",
|
||||
"dest_name": "zwfil2",
|
||||
"dest_type": "text",
|
||||
"description": "Not Used"
|
||||
},
|
||||
{
|
||||
"source_name": "ZWEXBF",
|
||||
"source_type": "NUMERIC(12,0)",
|
||||
"dest_name": "zwexbf",
|
||||
"dest_type": "numeric(12,0)",
|
||||
"description": "COS Burden (Fixed)"
|
||||
},
|
||||
{
|
||||
"source_name": "ZWWCOS",
|
||||
"source_type": "NUMERIC(12,0)",
|
||||
"dest_name": "zwwcos",
|
||||
"dest_type": "numeric(12,0)",
|
||||
"description": "Deferred Sales (Bill By Order)"
|
||||
},
|
||||
{
|
||||
"source_name": "ZWPLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "zwplnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
20
config/modules/armasc.sql
Normal file
20
config/modules/armasc.sql
Normal file
@ -0,0 +1,20 @@
|
||||
SELECT
|
||||
RTRIM(ZWCODE) AS zwcode,
|
||||
ZWCOMP AS zwcomp,
|
||||
RTRIM(ZWKEY1) AS zwkey1,
|
||||
RTRIM(ZWKEY2) AS zwkey2,
|
||||
RTRIM(ZWFIL1) AS zwfil1,
|
||||
"ZWSAL#" AS "zwsal#",
|
||||
"ZWELB#" AS "zwelb#",
|
||||
"ZWINV#" AS "zwinv#",
|
||||
"ZWDSC#" AS "zwdsc#",
|
||||
"ZWEXB#" AS "zwexb#",
|
||||
"ZWEXM#" AS "zwexm#",
|
||||
"ZWEXO#" AS "zwexo#",
|
||||
"ZWFRT#" AS "zwfrt#",
|
||||
"ZWDEP#" AS "zwdep#",
|
||||
RTRIM(ZWFIL2) AS zwfil2,
|
||||
ZWEXBF AS zwexbf,
|
||||
ZWWCOS AS zwwcos,
|
||||
RTRIM(ZWPLNT) AS zwplnt
|
||||
FROM LGDAT.ARMASC
|
||||
92
config/modules/color.json
Normal file
92
config/modules/color.json
Normal file
@ -0,0 +1,92 @@
|
||||
{
|
||||
"name": "color",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.color",
|
||||
"staging_table": "pipekit_staging.color",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "color descriptions",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "COLCODE",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "colcode",
|
||||
"dest_type": "text",
|
||||
"description": "COLCODE"
|
||||
},
|
||||
{
|
||||
"source_name": "COLDESC",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "coldesc",
|
||||
"dest_type": "text",
|
||||
"description": "COLDESC"
|
||||
},
|
||||
{
|
||||
"source_name": "COLPANT",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "colpant",
|
||||
"dest_type": "text",
|
||||
"description": "COLPANT"
|
||||
},
|
||||
{
|
||||
"source_name": "COLOREF",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "coloref",
|
||||
"dest_type": "text",
|
||||
"description": "COLOREF"
|
||||
},
|
||||
{
|
||||
"source_name": "COLFTRN",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "colftrn",
|
||||
"dest_type": "text",
|
||||
"description": "COLFTRN"
|
||||
},
|
||||
{
|
||||
"source_name": "COLSTAT",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "colstat",
|
||||
"dest_type": "text",
|
||||
"description": "COLSTAT"
|
||||
},
|
||||
{
|
||||
"source_name": "COLTIER",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "coltier",
|
||||
"dest_type": "text",
|
||||
"description": "COLTIER"
|
||||
},
|
||||
{
|
||||
"source_name": "COLGRP",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "colgrp",
|
||||
"dest_type": "text",
|
||||
"description": "COLGRP"
|
||||
},
|
||||
{
|
||||
"source_name": "COLRETL",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "colretl",
|
||||
"dest_type": "text",
|
||||
"description": "COLRETL"
|
||||
},
|
||||
{
|
||||
"source_name": "COLRGB",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "colrgb",
|
||||
"dest_type": "text",
|
||||
"description": "COLRGB"
|
||||
},
|
||||
{
|
||||
"source_name": "COLRHX",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "colrhx",
|
||||
"dest_type": "text",
|
||||
"description": "COLRHX"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
13
config/modules/color.sql
Normal file
13
config/modules/color.sql
Normal file
@ -0,0 +1,13 @@
|
||||
SELECT
|
||||
RTRIM(COLCODE) AS colcode,
|
||||
RTRIM(COLDESC) AS coldesc,
|
||||
RTRIM(COLPANT) AS colpant,
|
||||
RTRIM(COLOREF) AS coloref,
|
||||
RTRIM(COLFTRN) AS colftrn,
|
||||
RTRIM(COLSTAT) AS colstat,
|
||||
RTRIM(COLTIER) AS coltier,
|
||||
RTRIM(COLGRP) AS colgrp,
|
||||
RTRIM(COLRETL) AS colretl,
|
||||
RTRIM(COLRGB) AS colrgb,
|
||||
RTRIM(COLRHX) AS colrhx
|
||||
FROM "CMS.CUSLG".COLOR
|
||||
50
config/modules/colorb.json
Normal file
50
config/modules/colorb.json
Normal file
@ -0,0 +1,50 @@
|
||||
{
|
||||
"name": "colorb",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.colorb",
|
||||
"staging_table": "pipekit_staging.colorb",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Used in UPDblendr",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "CLPLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "clplnt",
|
||||
"dest_type": "text",
|
||||
"description": "CLPLNT"
|
||||
},
|
||||
{
|
||||
"source_name": "CLCOLOR",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "clcolor",
|
||||
"dest_type": "text",
|
||||
"description": "CLCOLOR"
|
||||
},
|
||||
{
|
||||
"source_name": "CLDEPT",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "cldept",
|
||||
"dest_type": "text",
|
||||
"description": "CLDEPT"
|
||||
},
|
||||
{
|
||||
"source_name": "CLPART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "clpart",
|
||||
"dest_type": "text",
|
||||
"description": "CLPART"
|
||||
},
|
||||
{
|
||||
"source_name": "CLPERC",
|
||||
"source_type": "DECIMAL(2,0)",
|
||||
"dest_name": "clperc",
|
||||
"dest_type": "numeric(2,0)",
|
||||
"description": "CLPERC"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
7
config/modules/colorb.sql
Normal file
7
config/modules/colorb.sql
Normal file
@ -0,0 +1,7 @@
|
||||
SELECT
|
||||
RTRIM(CLPLNT) AS clplnt,
|
||||
RTRIM(CLCOLOR) AS clcolor,
|
||||
RTRIM(CLDEPT) AS cldept,
|
||||
RTRIM(CLPART) AS clpart,
|
||||
CLPERC AS clperc
|
||||
FROM "CMS.CUSLG".COLORB
|
||||
29
config/modules/colortier.json
Normal file
29
config/modules/colortier.json
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "colortier",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.colortier",
|
||||
"staging_table": "pipekit_staging.colortier",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Color Tier",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "CLTIER",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "cltier",
|
||||
"dest_type": "text",
|
||||
"description": "CLTIER"
|
||||
},
|
||||
{
|
||||
"source_name": "CLDESC",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "cldesc",
|
||||
"dest_type": "text",
|
||||
"description": "CLDESC"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
4
config/modules/colortier.sql
Normal file
4
config/modules/colortier.sql
Normal file
@ -0,0 +1,4 @@
|
||||
SELECT
|
||||
RTRIM(CLTIER) AS cltier,
|
||||
RTRIM(CLDESC) AS cldesc
|
||||
FROM "CMS.CUSLG".COLORTIER
|
||||
211
config/modules/cret.json
Normal file
211
config/modules/cret.json
Normal file
@ -0,0 +1,211 @@
|
||||
{
|
||||
"name": "cret",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.cret",
|
||||
"staging_table": "pipekit_staging.cret",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Currency Exchange Master 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "B86COMN",
|
||||
"source_type": "NUMERIC(2,0)",
|
||||
"dest_name": "b86comn",
|
||||
"dest_type": "numeric(2,0)",
|
||||
"description": "Company Number"
|
||||
},
|
||||
{
|
||||
"source_name": "B86CURC",
|
||||
"source_type": "CHAR(2)",
|
||||
"dest_name": "b86curc",
|
||||
"dest_type": "text",
|
||||
"description": "Currency Code"
|
||||
},
|
||||
{
|
||||
"source_name": "B86RTTY",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "b86rtty",
|
||||
"dest_type": "text",
|
||||
"description": "Rate Type"
|
||||
},
|
||||
{
|
||||
"source_name": "B86EFYY",
|
||||
"source_type": "NUMERIC(4,0)",
|
||||
"dest_name": "b86efyy",
|
||||
"dest_type": "numeric(4,0)",
|
||||
"description": "Effective From Fiscal Year"
|
||||
},
|
||||
{
|
||||
"source_name": "B86EFPP",
|
||||
"source_type": "NUMERIC(2,0)",
|
||||
"dest_name": "b86efpp",
|
||||
"dest_type": "numeric(2,0)",
|
||||
"description": "Effective From Fiscal Period"
|
||||
},
|
||||
{
|
||||
"source_name": "B86EDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "b86edat",
|
||||
"dest_type": "date",
|
||||
"description": "Effective From Calendar Date"
|
||||
},
|
||||
{
|
||||
"source_name": "B86SRTE",
|
||||
"source_type": "NUMERIC(11,6)",
|
||||
"dest_name": "b86srte",
|
||||
"dest_type": "numeric(11,6)",
|
||||
"description": "Currency Exchange Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "B86CUSR",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "b86cusr",
|
||||
"dest_type": "text",
|
||||
"description": "Created By User"
|
||||
},
|
||||
{
|
||||
"source_name": "B86CDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "b86cdat",
|
||||
"dest_type": "date",
|
||||
"description": "Date Created"
|
||||
},
|
||||
{
|
||||
"source_name": "B86CTME",
|
||||
"source_type": "TIME",
|
||||
"dest_name": "b86ctme",
|
||||
"dest_type": "time",
|
||||
"description": "Time Created"
|
||||
},
|
||||
{
|
||||
"source_name": "B86UUSR",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "b86uusr",
|
||||
"dest_type": "text",
|
||||
"description": "Updated By User"
|
||||
},
|
||||
{
|
||||
"source_name": "B86UDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "b86udat",
|
||||
"dest_type": "date",
|
||||
"description": "Date Updated"
|
||||
},
|
||||
{
|
||||
"source_name": "B86UTME",
|
||||
"source_type": "TIME",
|
||||
"dest_name": "b86utme",
|
||||
"dest_type": "time",
|
||||
"description": "Time Updated"
|
||||
},
|
||||
{
|
||||
"source_name": "B86FUT1",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "b86fut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "B86FUT2",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "b86fut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "B86FUT3",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "b86fut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "B86FUT4",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "b86fut4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "B86FUT5",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "b86fut5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "B86FUT6",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "b86fut6",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "B86FUT7",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "b86fut7",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "B86FUT8",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "b86fut8",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "B86FUT9",
|
||||
"source_type": "NUMERIC(11,6)",
|
||||
"dest_name": "b86fut9",
|
||||
"dest_type": "numeric(11,6)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "B86FUTA",
|
||||
"source_type": "NUMERIC(11,6)",
|
||||
"dest_name": "b86futa",
|
||||
"dest_type": "numeric(11,6)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "B86FLG1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "b86flg1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "B86FLG2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "b86flg2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "B86FLG3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "b86flg3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "B86FLG4",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "b86flg4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "B86FLG5",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "b86flg5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
30
config/modules/cret.sql
Normal file
30
config/modules/cret.sql
Normal file
@ -0,0 +1,30 @@
|
||||
SELECT
|
||||
B86COMN AS b86comn,
|
||||
RTRIM(B86CURC) AS b86curc,
|
||||
RTRIM(B86RTTY) AS b86rtty,
|
||||
B86EFYY AS b86efyy,
|
||||
B86EFPP AS b86efpp,
|
||||
CASE WHEN B86EDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE B86EDAT END AS b86edat,
|
||||
B86SRTE AS b86srte,
|
||||
RTRIM(B86CUSR) AS b86cusr,
|
||||
CASE WHEN B86CDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE B86CDAT END AS b86cdat,
|
||||
B86CTME AS b86ctme,
|
||||
RTRIM(B86UUSR) AS b86uusr,
|
||||
CASE WHEN B86UDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE B86UDAT END AS b86udat,
|
||||
B86UTME AS b86utme,
|
||||
RTRIM(B86FUT1) AS b86fut1,
|
||||
RTRIM(B86FUT2) AS b86fut2,
|
||||
RTRIM(B86FUT3) AS b86fut3,
|
||||
RTRIM(B86FUT4) AS b86fut4,
|
||||
RTRIM(B86FUT5) AS b86fut5,
|
||||
RTRIM(B86FUT6) AS b86fut6,
|
||||
B86FUT7 AS b86fut7,
|
||||
B86FUT8 AS b86fut8,
|
||||
B86FUT9 AS b86fut9,
|
||||
B86FUTA AS b86futa,
|
||||
RTRIM(B86FLG1) AS b86flg1,
|
||||
RTRIM(B86FLG2) AS b86flg2,
|
||||
RTRIM(B86FLG3) AS b86flg3,
|
||||
RTRIM(B86FLG4) AS b86flg4,
|
||||
RTRIM(B86FLG5) AS b86flg5
|
||||
FROM LGDAT.CRET
|
||||
309
config/modules/depts.json
Normal file
309
config/modules/depts.json
Normal file
@ -0,0 +1,309 @@
|
||||
{
|
||||
"name": "depts",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.depts",
|
||||
"staging_table": "pipekit_staging.depts",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Department Master File 6.1",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "AADEPT",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "aadept",
|
||||
"dest_type": "text",
|
||||
"description": "Production Department Code"
|
||||
},
|
||||
{
|
||||
"source_name": "AABLNK",
|
||||
"source_type": "CHAR(8)",
|
||||
"dest_name": "aablnk",
|
||||
"dest_type": "text",
|
||||
"description": "AABLNK"
|
||||
},
|
||||
{
|
||||
"source_name": "AADNME",
|
||||
"source_type": "CHAR(25)",
|
||||
"dest_name": "aadnme",
|
||||
"dest_type": "text",
|
||||
"description": "Department Name"
|
||||
},
|
||||
{
|
||||
"source_name": "AASTDR",
|
||||
"source_type": "NUMERIC(8,2)",
|
||||
"dest_name": "aastdr",
|
||||
"dest_type": "numeric(8,2)",
|
||||
"description": "Default Labour Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "AABRDR",
|
||||
"source_type": "NUMERIC(8,2)",
|
||||
"dest_name": "aabrdr",
|
||||
"dest_type": "numeric(8,2)",
|
||||
"description": "Default Fixed Burden Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "AAMACH",
|
||||
"source_type": "NUMERIC(2,0)",
|
||||
"dest_name": "aamach",
|
||||
"dest_type": "numeric(2,0)",
|
||||
"description": "Default # of Mach."
|
||||
},
|
||||
{
|
||||
"source_name": "AABRDP",
|
||||
"source_type": "NUMERIC(4,0)",
|
||||
"dest_name": "aabrdp",
|
||||
"dest_type": "numeric(4,0)",
|
||||
"description": "Default Fixed Burden %"
|
||||
},
|
||||
{
|
||||
"source_name": "AADFTC",
|
||||
"source_type": "NUMERIC(4,2)",
|
||||
"dest_name": "aadftc",
|
||||
"dest_type": "numeric(4,2)",
|
||||
"description": "Default Capacity"
|
||||
},
|
||||
{
|
||||
"source_name": "AASTIM",
|
||||
"source_type": "TIME",
|
||||
"dest_name": "aastim",
|
||||
"dest_type": "time",
|
||||
"description": "Starting Time"
|
||||
},
|
||||
{
|
||||
"source_name": "AAVBRD",
|
||||
"source_type": "NUMERIC(8,2)",
|
||||
"dest_name": "aavbrd",
|
||||
"dest_type": "numeric(8,2)",
|
||||
"description": "Default Variable Burden Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "AAFRML",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "aafrml",
|
||||
"dest_type": "text",
|
||||
"description": "Draw Loc."
|
||||
},
|
||||
{
|
||||
"source_name": "AARCVL",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "aarcvl",
|
||||
"dest_type": "text",
|
||||
"description": "Receive Loc."
|
||||
},
|
||||
{
|
||||
"source_name": "AAINSP",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "aainsp",
|
||||
"dest_type": "text",
|
||||
"description": "Default Inspector Code"
|
||||
},
|
||||
{
|
||||
"source_name": "AAPLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "aaplnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
},
|
||||
{
|
||||
"source_name": "AAOSRV",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aaosrv",
|
||||
"dest_type": "text",
|
||||
"description": "Outside Service"
|
||||
},
|
||||
{
|
||||
"source_name": "AAVBRP",
|
||||
"source_type": "NUMERIC(4,0)",
|
||||
"dest_name": "aavbrp",
|
||||
"dest_type": "numeric(4,0)",
|
||||
"description": "Default Variable Burden %"
|
||||
},
|
||||
{
|
||||
"source_name": "AAWPDR",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "aawpdr",
|
||||
"dest_type": "text",
|
||||
"description": "WIP Draw From"
|
||||
},
|
||||
{
|
||||
"source_name": "AAWPRV",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "aawprv",
|
||||
"dest_type": "text",
|
||||
"description": "WIP Receive To"
|
||||
},
|
||||
{
|
||||
"source_name": "AAMAXH",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "aamaxh",
|
||||
"dest_type": "numeric(3,0)",
|
||||
"description": "Maximum Hours /Day"
|
||||
},
|
||||
{
|
||||
"source_name": "AAUSLF",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aauslf",
|
||||
"dest_type": "text",
|
||||
"description": "Use Labour Fixed"
|
||||
},
|
||||
{
|
||||
"source_name": "AAUSLV",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aauslv",
|
||||
"dest_type": "text",
|
||||
"description": "Use Labour Variable"
|
||||
},
|
||||
{
|
||||
"source_name": "AACUSR",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "aacusr",
|
||||
"dest_type": "text",
|
||||
"description": "Created By User"
|
||||
},
|
||||
{
|
||||
"source_name": "AACDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "aacdat",
|
||||
"dest_type": "date",
|
||||
"description": "Date Created"
|
||||
},
|
||||
{
|
||||
"source_name": "AACTIM",
|
||||
"source_type": "TIME",
|
||||
"dest_name": "aactim",
|
||||
"dest_type": "time",
|
||||
"description": "Time Created"
|
||||
},
|
||||
{
|
||||
"source_name": "AAUUSR",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "aauusr",
|
||||
"dest_type": "text",
|
||||
"description": "Updated By User"
|
||||
},
|
||||
{
|
||||
"source_name": "AAUDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "aaudat",
|
||||
"dest_type": "date",
|
||||
"description": "Date Updated"
|
||||
},
|
||||
{
|
||||
"source_name": "AAUTIM",
|
||||
"source_type": "TIME",
|
||||
"dest_name": "aautim",
|
||||
"dest_type": "time",
|
||||
"description": "Time Updated"
|
||||
},
|
||||
{
|
||||
"source_name": "AAFUT1",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "aafut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AAFUT2",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "aafut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AAFUT3",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "aafut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AAFUT4",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "aafut4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AAFUT5",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "aafut5",
|
||||
"dest_type": "text",
|
||||
"description": "Mattec Dept code"
|
||||
},
|
||||
{
|
||||
"source_name": "AAFUT6",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "aafut6",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AAFUT7",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "aafut7",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AAFLG1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aaflg1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AAFLG2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aaflg2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AAFLG3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aaflg3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AAFLG4",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aaflg4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AAFLG5",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aaflg5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AAVCOD",
|
||||
"source_type": "CHAR(2)",
|
||||
"dest_name": "aavcod",
|
||||
"dest_type": "text",
|
||||
"description": "Visible Dept"
|
||||
},
|
||||
{
|
||||
"source_name": "AALBPST",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aalbpst",
|
||||
"dest_type": "text",
|
||||
"description": "Auto Post Labour centric Batches"
|
||||
},
|
||||
{
|
||||
"source_name": "AAVRPR",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aavrpr",
|
||||
"dest_type": "text",
|
||||
"description": "Vendor Reports Prod."
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
44
config/modules/depts.sql
Normal file
44
config/modules/depts.sql
Normal file
@ -0,0 +1,44 @@
|
||||
SELECT
|
||||
RTRIM(AADEPT) AS aadept,
|
||||
RTRIM(AABLNK) AS aablnk,
|
||||
RTRIM(AADNME) AS aadnme,
|
||||
AASTDR AS aastdr,
|
||||
AABRDR AS aabrdr,
|
||||
AAMACH AS aamach,
|
||||
AABRDP AS aabrdp,
|
||||
AADFTC AS aadftc,
|
||||
AASTIM AS aastim,
|
||||
AAVBRD AS aavbrd,
|
||||
RTRIM(AAFRML) AS aafrml,
|
||||
RTRIM(AARCVL) AS aarcvl,
|
||||
RTRIM(AAINSP) AS aainsp,
|
||||
RTRIM(AAPLNT) AS aaplnt,
|
||||
RTRIM(AAOSRV) AS aaosrv,
|
||||
AAVBRP AS aavbrp,
|
||||
RTRIM(AAWPDR) AS aawpdr,
|
||||
RTRIM(AAWPRV) AS aawprv,
|
||||
AAMAXH AS aamaxh,
|
||||
RTRIM(AAUSLF) AS aauslf,
|
||||
RTRIM(AAUSLV) AS aauslv,
|
||||
RTRIM(AACUSR) AS aacusr,
|
||||
CASE WHEN AACDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AACDAT END AS aacdat,
|
||||
AACTIM AS aactim,
|
||||
RTRIM(AAUUSR) AS aauusr,
|
||||
CASE WHEN AAUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AAUDAT END AS aaudat,
|
||||
AAUTIM AS aautim,
|
||||
RTRIM(AAFUT1) AS aafut1,
|
||||
RTRIM(AAFUT2) AS aafut2,
|
||||
RTRIM(AAFUT3) AS aafut3,
|
||||
RTRIM(AAFUT4) AS aafut4,
|
||||
RTRIM(AAFUT5) AS aafut5,
|
||||
RTRIM(AAFUT6) AS aafut6,
|
||||
AAFUT7 AS aafut7,
|
||||
RTRIM(AAFLG1) AS aaflg1,
|
||||
RTRIM(AAFLG2) AS aaflg2,
|
||||
RTRIM(AAFLG3) AS aaflg3,
|
||||
RTRIM(AAFLG4) AS aaflg4,
|
||||
RTRIM(AAFLG5) AS aaflg5,
|
||||
RTRIM(AAVCOD) AS aavcod,
|
||||
RTRIM(AALBPST) AS aalbpst,
|
||||
RTRIM(AAVRPR) AS aavrpr
|
||||
FROM LGDAT.DEPTS
|
||||
162
config/modules/ffpdglr1.json
Normal file
162
config/modules/ffpdglr1.json
Normal file
@ -0,0 +1,162 @@
|
||||
{
|
||||
"name": "ffpdglr1",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.ffpdglr1",
|
||||
"staging_table": "pipekit_staging.ffpdglr1",
|
||||
"merge_strategy": "incremental",
|
||||
"merge_key": "btid",
|
||||
"enabled": 1,
|
||||
"dest_description": "",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "SRCE",
|
||||
"source_type": "CHAR(4)",
|
||||
"dest_name": "srce",
|
||||
"dest_type": "text",
|
||||
"description": "SRCE"
|
||||
},
|
||||
{
|
||||
"source_name": "WRKO",
|
||||
"source_type": "VARCHAR(10)",
|
||||
"dest_name": "wrko",
|
||||
"dest_type": "text",
|
||||
"description": "WRKO"
|
||||
},
|
||||
{
|
||||
"source_name": "BTID",
|
||||
"source_type": "INTEGER",
|
||||
"dest_name": "btid",
|
||||
"dest_type": "integer",
|
||||
"description": "BTID"
|
||||
},
|
||||
{
|
||||
"source_name": "ENT#",
|
||||
"source_type": "INTEGER",
|
||||
"dest_name": "ent#",
|
||||
"dest_type": "integer",
|
||||
"description": "ENT#"
|
||||
},
|
||||
{
|
||||
"source_name": "SEQ#",
|
||||
"source_type": "INTEGER",
|
||||
"dest_name": "seq#",
|
||||
"dest_type": "integer",
|
||||
"description": "SEQ#"
|
||||
},
|
||||
{
|
||||
"source_name": "PART",
|
||||
"source_type": "VARCHAR(20)",
|
||||
"dest_name": "part",
|
||||
"dest_type": "text",
|
||||
"description": "PART"
|
||||
},
|
||||
{
|
||||
"source_name": "RPLN",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "rpln",
|
||||
"dest_type": "text",
|
||||
"description": "RPLN"
|
||||
},
|
||||
{
|
||||
"source_name": "PQTY",
|
||||
"source_type": "DECIMAL(20,5)",
|
||||
"dest_name": "pqty",
|
||||
"dest_type": "numeric(20,5)",
|
||||
"description": "PQTY"
|
||||
},
|
||||
{
|
||||
"source_name": "ARSC",
|
||||
"source_type": "VARCHAR(5)",
|
||||
"dest_name": "arsc",
|
||||
"dest_type": "text",
|
||||
"description": "ARSC"
|
||||
},
|
||||
{
|
||||
"source_name": "ADEP",
|
||||
"source_type": "VARCHAR(5)",
|
||||
"dest_name": "adep",
|
||||
"dest_type": "text",
|
||||
"description": "ADEP"
|
||||
},
|
||||
{
|
||||
"source_name": "ACTN",
|
||||
"source_type": "VARCHAR(10)",
|
||||
"dest_name": "actn",
|
||||
"dest_type": "text",
|
||||
"description": "ACTN"
|
||||
},
|
||||
{
|
||||
"source_name": "ACCT",
|
||||
"source_type": "CHAR(12)",
|
||||
"dest_name": "acct",
|
||||
"dest_type": "text",
|
||||
"description": "ACCT"
|
||||
},
|
||||
{
|
||||
"source_name": "AMNT",
|
||||
"source_type": "DECIMAL(20,2)",
|
||||
"dest_name": "amnt",
|
||||
"dest_type": "numeric(20,2)",
|
||||
"description": "AMNT"
|
||||
},
|
||||
{
|
||||
"source_name": "SRSC",
|
||||
"source_type": "VARCHAR(5)",
|
||||
"dest_name": "srsc",
|
||||
"dest_type": "text",
|
||||
"description": "SRSC"
|
||||
},
|
||||
{
|
||||
"source_name": "RHRS",
|
||||
"source_type": "DECIMAL(20,5)",
|
||||
"dest_name": "rhrs",
|
||||
"dest_type": "numeric(20,5)",
|
||||
"description": "RHRS"
|
||||
},
|
||||
{
|
||||
"source_name": "RCRW",
|
||||
"source_type": "DECIMAL(20,5)",
|
||||
"dest_name": "rcrw",
|
||||
"dest_type": "numeric(20,5)",
|
||||
"description": "RCRW"
|
||||
},
|
||||
{
|
||||
"source_name": "SHRS",
|
||||
"source_type": "DECIMAL(20,5)",
|
||||
"dest_name": "shrs",
|
||||
"dest_type": "numeric(20,5)",
|
||||
"description": "SHRS"
|
||||
},
|
||||
{
|
||||
"source_name": "SCRW",
|
||||
"source_type": "DECIMAL(20,5)",
|
||||
"dest_name": "scrw",
|
||||
"dest_type": "numeric(20,5)",
|
||||
"description": "SCRW"
|
||||
},
|
||||
{
|
||||
"source_name": "RRAT",
|
||||
"source_type": "DECIMAL(20,5)",
|
||||
"dest_name": "rrat",
|
||||
"dest_type": "numeric(20,5)",
|
||||
"description": "RRAT"
|
||||
},
|
||||
{
|
||||
"source_name": "RSIZ",
|
||||
"source_type": "DECIMAL(20,5)",
|
||||
"dest_name": "rsiz",
|
||||
"dest_type": "numeric(20,5)",
|
||||
"description": "RSIZ"
|
||||
}
|
||||
],
|
||||
"watermarks": [
|
||||
{
|
||||
"name": "ffpdglr1_wm",
|
||||
"connection": "usmidsap02",
|
||||
"resolver_sql": "SELECT COALESCE(format('%L', MAX(to_char(nwfsyy,'00FM')||to_char(nwfspp,'00FM'))), '''1501''') FROM cms.rprh",
|
||||
"default_value": "'1501'"
|
||||
}
|
||||
],
|
||||
"hooks": []
|
||||
}
|
||||
24
config/modules/ffpdglr1.sql
Normal file
24
config/modules/ffpdglr1.sql
Normal file
@ -0,0 +1,24 @@
|
||||
SELECT
|
||||
RTRIM(SRCE) AS srce,
|
||||
RTRIM(WRKO) AS wrko,
|
||||
BTID AS btid,
|
||||
"ENT#" AS "ent#",
|
||||
"SEQ#" AS "seq#",
|
||||
RTRIM(PART) AS part,
|
||||
RTRIM(RPLN) AS rpln,
|
||||
PQTY AS pqty,
|
||||
RTRIM(ARSC) AS arsc,
|
||||
RTRIM(ADEP) AS adep,
|
||||
RTRIM(ACTN) AS actn,
|
||||
RTRIM(ACCT) AS acct,
|
||||
AMNT AS amnt,
|
||||
RTRIM(SRSC) AS srsc,
|
||||
RHRS AS rhrs,
|
||||
RCRW AS rcrw,
|
||||
SHRS AS shrs,
|
||||
SCRW AS scrw,
|
||||
RRAT AS rrat,
|
||||
RSIZ AS rsiz
|
||||
FROM FANALDEV.FFPDGLR1
|
||||
INNER JOIN LGDAT.RPRH ON NWBTID = BTID
|
||||
WHERE DIGITS(NWFSYY)||DIGITS(NWFSPP) >= {ffpdglr1_wm}
|
||||
225
config/modules/fresre.json
Normal file
225
config/modules/fresre.json
Normal file
@ -0,0 +1,225 @@
|
||||
{
|
||||
"name": "fresre",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.fresre",
|
||||
"staging_table": "pipekit_staging.fresre",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Resource equipment Master-Future costs 6.1",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "R9DEPT",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "r9dept",
|
||||
"dest_type": "text",
|
||||
"description": "Production Department Code"
|
||||
},
|
||||
{
|
||||
"source_name": "R9RESC",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "r9resc",
|
||||
"dest_type": "text",
|
||||
"description": "Resource Code"
|
||||
},
|
||||
{
|
||||
"source_name": "R9BRDR",
|
||||
"source_type": "NUMERIC(8,2)",
|
||||
"dest_name": "r9brdr",
|
||||
"dest_type": "numeric(8,2)",
|
||||
"description": "Fixed Burden Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "R9CREW",
|
||||
"source_type": "NUMERIC(2,0)",
|
||||
"dest_name": "r9crew",
|
||||
"dest_type": "numeric(2,0)",
|
||||
"description": "Default Crew Size"
|
||||
},
|
||||
{
|
||||
"source_name": "R9BRDP",
|
||||
"source_type": "NUMERIC(4,0)",
|
||||
"dest_name": "r9brdp",
|
||||
"dest_type": "numeric(4,0)",
|
||||
"description": "Fixed Burden %"
|
||||
},
|
||||
{
|
||||
"source_name": "R9LABS",
|
||||
"source_type": "NUMERIC(8,2)",
|
||||
"dest_name": "r9labs",
|
||||
"dest_type": "numeric(8,2)",
|
||||
"description": "Set-up Labour Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "R9LABR",
|
||||
"source_type": "NUMERIC(8,2)",
|
||||
"dest_name": "r9labr",
|
||||
"dest_type": "numeric(8,2)",
|
||||
"description": "Run Labour Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "R9VBRD",
|
||||
"source_type": "NUMERIC(8,2)",
|
||||
"dest_name": "r9vbrd",
|
||||
"dest_type": "numeric(8,2)",
|
||||
"description": "Variable Burden Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "R9BDVP",
|
||||
"source_type": "NUMERIC(4,0)",
|
||||
"dest_name": "r9bdvp",
|
||||
"dest_type": "numeric(4,0)",
|
||||
"description": "Variable Burden %"
|
||||
},
|
||||
{
|
||||
"source_name": "R9CDRC",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "r9cdrc",
|
||||
"dest_type": "text",
|
||||
"description": "Burden Cost Driver Code"
|
||||
},
|
||||
{
|
||||
"source_name": "R9CDRF",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "r9cdrf",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Driver Rate Fixed Burden"
|
||||
},
|
||||
{
|
||||
"source_name": "R9CDRV",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "r9cdrv",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Driver Rate Variable Burden"
|
||||
},
|
||||
{
|
||||
"source_name": "R9CDUM",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "r9cdum",
|
||||
"dest_type": "text",
|
||||
"description": "Driver Rate Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "R9USLF",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "r9uslf",
|
||||
"dest_type": "text",
|
||||
"description": "Use Labour Fixed"
|
||||
},
|
||||
{
|
||||
"source_name": "R9USLV",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "r9uslv",
|
||||
"dest_type": "text",
|
||||
"description": "Use Labour Variable"
|
||||
},
|
||||
{
|
||||
"source_name": "R9PLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "r9plnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
},
|
||||
{
|
||||
"source_name": "R9FUT1",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "r9fut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "R9FUT2",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "r9fut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "R9FUT3",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "r9fut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "R9FUT4",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "r9fut4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "R9FUT5",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "r9fut5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "R9FUT6",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "r9fut6",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "R9FUT7",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "r9fut7",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "R9FUT8",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "r9fut8",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "R9FUT9",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "r9fut9",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "R9FUTA",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "r9futa",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "R9FUTB",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "r9futb",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "R9FUTC",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "r9futc",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "R9VKTR",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "r9vktr",
|
||||
"dest_type": "text",
|
||||
"description": "Virtual Kanban Time-On-Hand Range Code"
|
||||
},
|
||||
{
|
||||
"source_name": "R9VKTY",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "r9vkty",
|
||||
"dest_type": "text",
|
||||
"description": "Virtual Kanban Type"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
32
config/modules/fresre.sql
Normal file
32
config/modules/fresre.sql
Normal file
@ -0,0 +1,32 @@
|
||||
SELECT
|
||||
RTRIM(R9DEPT) AS r9dept,
|
||||
RTRIM(R9RESC) AS r9resc,
|
||||
R9BRDR AS r9brdr,
|
||||
R9CREW AS r9crew,
|
||||
R9BRDP AS r9brdp,
|
||||
R9LABS AS r9labs,
|
||||
R9LABR AS r9labr,
|
||||
R9VBRD AS r9vbrd,
|
||||
R9BDVP AS r9bdvp,
|
||||
RTRIM(R9CDRC) AS r9cdrc,
|
||||
R9CDRF AS r9cdrf,
|
||||
R9CDRV AS r9cdrv,
|
||||
RTRIM(R9CDUM) AS r9cdum,
|
||||
RTRIM(R9USLF) AS r9uslf,
|
||||
RTRIM(R9USLV) AS r9uslv,
|
||||
RTRIM(R9PLNT) AS r9plnt,
|
||||
RTRIM(R9FUT1) AS r9fut1,
|
||||
RTRIM(R9FUT2) AS r9fut2,
|
||||
RTRIM(R9FUT3) AS r9fut3,
|
||||
RTRIM(R9FUT4) AS r9fut4,
|
||||
RTRIM(R9FUT5) AS r9fut5,
|
||||
R9FUT6 AS r9fut6,
|
||||
RTRIM(R9FUT7) AS r9fut7,
|
||||
RTRIM(R9FUT8) AS r9fut8,
|
||||
RTRIM(R9FUT9) AS r9fut9,
|
||||
RTRIM(R9FUTA) AS r9futa,
|
||||
RTRIM(R9FUTB) AS r9futb,
|
||||
RTRIM(R9FUTC) AS r9futc,
|
||||
RTRIM(R9VKTR) AS r9vktr,
|
||||
RTRIM(R9VKTY) AS r9vkty
|
||||
FROM LGDAT.FRESRE
|
||||
267
config/modules/ftcstm.json
Normal file
267
config/modules/ftcstm.json
Normal file
@ -0,0 +1,267 @@
|
||||
{
|
||||
"name": "ftcstm",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.ftcstm",
|
||||
"staging_table": "pipekit_staging.ftcstm",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Future Inventory Cost - manufactured 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "CNPART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "cnpart",
|
||||
"dest_type": "text",
|
||||
"description": "Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "CNLABS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnlabs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Labour Standard"
|
||||
},
|
||||
{
|
||||
"source_name": "CNMATS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnmats",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Material Standard"
|
||||
},
|
||||
{
|
||||
"source_name": "CNBURS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnburs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Standard"
|
||||
},
|
||||
{
|
||||
"source_name": "CNLABA",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnlaba",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Labour Actual"
|
||||
},
|
||||
{
|
||||
"source_name": "CNMATA",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnmata",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Material Actual"
|
||||
},
|
||||
{
|
||||
"source_name": "CNBURA",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnbura",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Actual"
|
||||
},
|
||||
{
|
||||
"source_name": "CNLABV",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnlabv",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Labour Average"
|
||||
},
|
||||
{
|
||||
"source_name": "CNMATV",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnmatv",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Material Average"
|
||||
},
|
||||
{
|
||||
"source_name": "CNBURV",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnburv",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Average"
|
||||
},
|
||||
{
|
||||
"source_name": "CNTPTD",
|
||||
"source_type": "DECIMAL(11,0)",
|
||||
"dest_name": "cntptd",
|
||||
"dest_type": "numeric(11,0)",
|
||||
"description": "Total Prod. To Date"
|
||||
},
|
||||
{
|
||||
"source_name": "CNSDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "cnsdat",
|
||||
"dest_type": "date",
|
||||
"description": "Standard Date"
|
||||
},
|
||||
{
|
||||
"source_name": "CNSTCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnstcs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CNACCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnaccs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Actual Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CNAVCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnavcs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CNSTOC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnstoc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Other Costs (Standard)"
|
||||
},
|
||||
{
|
||||
"source_name": "CNACOC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnacoc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Other Costs (Actual)"
|
||||
},
|
||||
{
|
||||
"source_name": "CNAVOC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnavoc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Other Costs (Average)"
|
||||
},
|
||||
{
|
||||
"source_name": "CNSQTY",
|
||||
"source_type": "NUMERIC(8,0)",
|
||||
"dest_name": "cnsqty",
|
||||
"dest_type": "numeric(8,0)",
|
||||
"description": "Standard Quantity"
|
||||
},
|
||||
{
|
||||
"source_name": "CNAQTY",
|
||||
"source_type": "NUMERIC(8,0)",
|
||||
"dest_name": "cnaqty",
|
||||
"dest_type": "numeric(8,0)",
|
||||
"description": "Actual Quantity"
|
||||
},
|
||||
{
|
||||
"source_name": "CNPTYP",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "cnptyp",
|
||||
"dest_type": "text",
|
||||
"description": "Part Type M"
|
||||
},
|
||||
{
|
||||
"source_name": "CNBRFS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnbrfs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Standard (Fixed)"
|
||||
},
|
||||
{
|
||||
"source_name": "CNBRVS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnbrvs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Standard (Var)"
|
||||
},
|
||||
{
|
||||
"source_name": "CNBRFA",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnbrfa",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Actual (Fixed)"
|
||||
},
|
||||
{
|
||||
"source_name": "CNBRVA",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnbrva",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Actual (Var)"
|
||||
},
|
||||
{
|
||||
"source_name": "CNBRFV",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnbrfv",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Average (Fixed)"
|
||||
},
|
||||
{
|
||||
"source_name": "CNBRVV",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cnbrvv",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Average (Var)"
|
||||
},
|
||||
{
|
||||
"source_name": "CNPLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "cnplnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
},
|
||||
{
|
||||
"source_name": "CNFUT1",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "cnfut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CNFUT2",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "cnfut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CNFUT3",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "cnfut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CNFUT4",
|
||||
"source_type": "NUMERIC(15,0)",
|
||||
"dest_name": "cnfut4",
|
||||
"dest_type": "numeric(15,0)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CNFUT5",
|
||||
"source_type": "NUMERIC(15,0)",
|
||||
"dest_name": "cnfut5",
|
||||
"dest_type": "numeric(15,0)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CNFLG1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "cnflg1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CNFLG2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "cnflg2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CNFLG3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "cnflg3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
38
config/modules/ftcstm.sql
Normal file
38
config/modules/ftcstm.sql
Normal file
@ -0,0 +1,38 @@
|
||||
SELECT
|
||||
RTRIM(CNPART) AS cnpart,
|
||||
CNLABS AS cnlabs,
|
||||
CNMATS AS cnmats,
|
||||
CNBURS AS cnburs,
|
||||
CNLABA AS cnlaba,
|
||||
CNMATA AS cnmata,
|
||||
CNBURA AS cnbura,
|
||||
CNLABV AS cnlabv,
|
||||
CNMATV AS cnmatv,
|
||||
CNBURV AS cnburv,
|
||||
CNTPTD AS cntptd,
|
||||
CASE WHEN CNSDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE CNSDAT END AS cnsdat,
|
||||
CNSTCS AS cnstcs,
|
||||
CNACCS AS cnaccs,
|
||||
CNAVCS AS cnavcs,
|
||||
CNSTOC AS cnstoc,
|
||||
CNACOC AS cnacoc,
|
||||
CNAVOC AS cnavoc,
|
||||
CNSQTY AS cnsqty,
|
||||
CNAQTY AS cnaqty,
|
||||
RTRIM(CNPTYP) AS cnptyp,
|
||||
CNBRFS AS cnbrfs,
|
||||
CNBRVS AS cnbrvs,
|
||||
CNBRFA AS cnbrfa,
|
||||
CNBRVA AS cnbrva,
|
||||
CNBRFV AS cnbrfv,
|
||||
CNBRVV AS cnbrvv,
|
||||
RTRIM(CNPLNT) AS cnplnt,
|
||||
RTRIM(CNFUT1) AS cnfut1,
|
||||
RTRIM(CNFUT2) AS cnfut2,
|
||||
RTRIM(CNFUT3) AS cnfut3,
|
||||
CNFUT4 AS cnfut4,
|
||||
CNFUT5 AS cnfut5,
|
||||
RTRIM(CNFLG1) AS cnflg1,
|
||||
RTRIM(CNFLG2) AS cnflg2,
|
||||
RTRIM(CNFLG3) AS cnflg3
|
||||
FROM LGDAT.FTCSTM
|
||||
358
config/modules/ftcstp.json
Normal file
358
config/modules/ftcstp.json
Normal file
@ -0,0 +1,358 @@
|
||||
{
|
||||
"name": "ftcstp",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.ftcstp",
|
||||
"staging_table": "pipekit_staging.ftcstp",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Future Inventory Cost - Purchased Parts 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "COPART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "copart",
|
||||
"dest_type": "text",
|
||||
"description": "Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "COLUC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "coluc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Unit Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COLCC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "colcc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Currency Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COLFC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "colfc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Freight Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COLDC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "coldc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Duty Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COL1C",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "col1c",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Multiplier-1 Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COL2C",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "col2c",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Multiplier-2 Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COSUC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cosuc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Unit Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COSCC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "coscc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Currency Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COSFC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cosfc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Freight Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COSDC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cosdc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Duty Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COS1C",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cos1c",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Multiplier-1 Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COS2C",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cos2c",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Multiplier-2 Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COSCR",
|
||||
"source_type": "DECIMAL(11,6)",
|
||||
"dest_name": "coscr",
|
||||
"dest_type": "numeric(11,6)",
|
||||
"description": "Standard Currency Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "COLCR",
|
||||
"source_type": "DECIMAL(11,6)",
|
||||
"dest_name": "colcr",
|
||||
"dest_type": "numeric(11,6)",
|
||||
"description": "Last Currency Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "COSDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "cosdat",
|
||||
"dest_type": "date",
|
||||
"description": "Standard Date"
|
||||
},
|
||||
{
|
||||
"source_name": "COSTCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "costcs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COACCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "coaccs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Actual Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COAVCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "coavcs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COSDR",
|
||||
"source_type": "NUMERIC(8,4)",
|
||||
"dest_name": "cosdr",
|
||||
"dest_type": "numeric(8,4)",
|
||||
"description": "Standard Duty Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "COS1R",
|
||||
"source_type": "NUMERIC(8,4)",
|
||||
"dest_name": "cos1r",
|
||||
"dest_type": "numeric(8,4)",
|
||||
"description": "Standard Multiplier-1 Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "COS2R",
|
||||
"source_type": "NUMERIC(8,4)",
|
||||
"dest_name": "cos2r",
|
||||
"dest_type": "numeric(8,4)",
|
||||
"description": "Standard Multiplier-2 Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "COLDR",
|
||||
"source_type": "NUMERIC(8,4)",
|
||||
"dest_name": "coldr",
|
||||
"dest_type": "numeric(8,4)",
|
||||
"description": "Last Duty Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "COL1R",
|
||||
"source_type": "NUMERIC(8,4)",
|
||||
"dest_name": "col1r",
|
||||
"dest_type": "numeric(8,4)",
|
||||
"description": "Last Multiplier-1 Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "COL2R",
|
||||
"source_type": "NUMERIC(8,4)",
|
||||
"dest_name": "col2r",
|
||||
"dest_type": "numeric(8,4)",
|
||||
"description": "Last Multiplier-2 Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "COSQTY",
|
||||
"source_type": "NUMERIC(8,0)",
|
||||
"dest_name": "cosqty",
|
||||
"dest_type": "numeric(8,0)",
|
||||
"description": "Standard Quantity"
|
||||
},
|
||||
{
|
||||
"source_name": "COAQTY",
|
||||
"source_type": "NUMERIC(8,0)",
|
||||
"dest_name": "coaqty",
|
||||
"dest_type": "numeric(8,0)",
|
||||
"description": "Actual Quantity"
|
||||
},
|
||||
{
|
||||
"source_name": "COTYPE",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "cotype",
|
||||
"dest_type": "text",
|
||||
"description": "Part Type R"
|
||||
},
|
||||
{
|
||||
"source_name": "COCURR",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "cocurr",
|
||||
"dest_type": "text",
|
||||
"description": "Currency Code"
|
||||
},
|
||||
{
|
||||
"source_name": "COPLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "coplnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
},
|
||||
{
|
||||
"source_name": "COAVUC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "coavuc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Unit cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COAVXC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "coavxc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Xchg cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COAVDC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "coavdc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Duty cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COAV1C",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "coav1c",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Multiplier-1 Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COAV2C",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "coav2c",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Multiplier-2 Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COAVFC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "coavfc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Freight cost"
|
||||
},
|
||||
{
|
||||
"source_name": "COFUT1",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "cofut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "COFUT2",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "cofut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "COFUT3",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "cofut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "COFUT4",
|
||||
"source_type": "NUMERIC(15,0)",
|
||||
"dest_name": "cofut4",
|
||||
"dest_type": "numeric(15,0)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "COFUT5",
|
||||
"source_type": "NUMERIC(15,0)",
|
||||
"dest_name": "cofut5",
|
||||
"dest_type": "numeric(15,0)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "COFLG1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "coflg1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "COFLG2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "coflg2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "COFLG3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "coflg3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "COFLG4",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "coflg4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "COFLG5",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "coflg5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "COFLG6",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "coflg6",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "COFLG7",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "coflg7",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "COCRCD",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "cocrcd",
|
||||
"dest_type": "text",
|
||||
"description": "Last Actual Currency"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
51
config/modules/ftcstp.sql
Normal file
51
config/modules/ftcstp.sql
Normal file
@ -0,0 +1,51 @@
|
||||
SELECT
|
||||
RTRIM(COPART) AS copart,
|
||||
COLUC AS coluc,
|
||||
COLCC AS colcc,
|
||||
COLFC AS colfc,
|
||||
COLDC AS coldc,
|
||||
COL1C AS col1c,
|
||||
COL2C AS col2c,
|
||||
COSUC AS cosuc,
|
||||
COSCC AS coscc,
|
||||
COSFC AS cosfc,
|
||||
COSDC AS cosdc,
|
||||
COS1C AS cos1c,
|
||||
COS2C AS cos2c,
|
||||
COSCR AS coscr,
|
||||
COLCR AS colcr,
|
||||
CASE WHEN COSDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE COSDAT END AS cosdat,
|
||||
COSTCS AS costcs,
|
||||
COACCS AS coaccs,
|
||||
COAVCS AS coavcs,
|
||||
COSDR AS cosdr,
|
||||
COS1R AS cos1r,
|
||||
COS2R AS cos2r,
|
||||
COLDR AS coldr,
|
||||
COL1R AS col1r,
|
||||
COL2R AS col2r,
|
||||
COSQTY AS cosqty,
|
||||
COAQTY AS coaqty,
|
||||
RTRIM(COTYPE) AS cotype,
|
||||
RTRIM(COCURR) AS cocurr,
|
||||
RTRIM(COPLNT) AS coplnt,
|
||||
COAVUC AS coavuc,
|
||||
COAVXC AS coavxc,
|
||||
COAVDC AS coavdc,
|
||||
COAV1C AS coav1c,
|
||||
COAV2C AS coav2c,
|
||||
COAVFC AS coavfc,
|
||||
RTRIM(COFUT1) AS cofut1,
|
||||
RTRIM(COFUT2) AS cofut2,
|
||||
RTRIM(COFUT3) AS cofut3,
|
||||
COFUT4 AS cofut4,
|
||||
COFUT5 AS cofut5,
|
||||
RTRIM(COFLG1) AS coflg1,
|
||||
RTRIM(COFLG2) AS coflg2,
|
||||
RTRIM(COFLG3) AS coflg3,
|
||||
RTRIM(COFLG4) AS coflg4,
|
||||
RTRIM(COFLG5) AS coflg5,
|
||||
RTRIM(COFLG6) AS coflg6,
|
||||
RTRIM(COFLG7) AS coflg7,
|
||||
RTRIM(COCRCD) AS cocrcd
|
||||
FROM LGDAT.FTCSTP
|
||||
330
config/modules/ftcstr.json
Normal file
330
config/modules/ftcstr.json
Normal file
@ -0,0 +1,330 @@
|
||||
{
|
||||
"name": "ftcstr",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.ftcstr",
|
||||
"staging_table": "pipekit_staging.ftcstr",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Future Cost Master - Transferred Parts 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "Y3PART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "y3part",
|
||||
"dest_type": "text",
|
||||
"description": "Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3PLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "y3plnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3STCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3stcs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3ACCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3accs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Actual Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3AVCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3avcs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3SUC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3suc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Unit Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3SSHR",
|
||||
"source_type": "DECIMAL(9,5)",
|
||||
"dest_name": "y3sshr",
|
||||
"dest_type": "numeric(9,5)",
|
||||
"description": "Standard S & H Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3SSHC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3sshc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard S & H Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3SOC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3soc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Currency Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3SDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "y3sdat",
|
||||
"dest_type": "date",
|
||||
"description": "Standard Date"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3SQTY",
|
||||
"source_type": "NUMERIC(8,0)",
|
||||
"dest_name": "y3sqty",
|
||||
"dest_type": "numeric(8,0)",
|
||||
"description": "Standard Quantity"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3LUC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3luc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Unit Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3LSHC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3lshc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last S & H Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3LOC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3loc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Currency Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3AQTY",
|
||||
"source_type": "NUMERIC(8,0)",
|
||||
"dest_name": "y3aqty",
|
||||
"dest_type": "numeric(8,0)",
|
||||
"description": "Actual Quantity"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3TYPE",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "y3type",
|
||||
"dest_type": "text",
|
||||
"description": "Part Type T"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3SMAT",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3smat",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Material Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3SLAB",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3slab",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Labour Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3SVBR",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3svbr",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Variable Burden Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3SFBR",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3sfbr",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Fixed Burden Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3SOTC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3sotc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Other Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3LMAT",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3lmat",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Actual Material Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3LLAB",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3llab",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Actual Labour Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3LVBR",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3lvbr",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Actual Variable Burden Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3LFBR",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3lfbr",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Actual Fixed Burden Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3LOTC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3lotc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Actual Other Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3AMAT",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3amat",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Material Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3ALAB",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3alab",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Labour Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3AVBR",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3avbr",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Variable Burden Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3AFBR",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3afbr",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Fixed Burden Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3AOTC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3aotc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Other Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3AUNC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3aunc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Unit Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3ASHC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3ashc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average S & H Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3ACRC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y3acrc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Currency Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3FUT1",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "y3fut1",
|
||||
"dest_type": "text",
|
||||
"description": "Currency Code"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3FUT2",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "y3fut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3FUT3",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "y3fut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3FUT4",
|
||||
"source_type": "NUMERIC(11,6)",
|
||||
"dest_name": "y3fut4",
|
||||
"dest_type": "numeric(11,6)",
|
||||
"description": "Standard Currency Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3FUT5",
|
||||
"source_type": "NUMERIC(11,6)",
|
||||
"dest_name": "y3fut5",
|
||||
"dest_type": "numeric(11,6)",
|
||||
"description": "Last Currency Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3FLG1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "y3flg1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3FLG2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "y3flg2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3FLG3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "y3flg3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3CRCD",
|
||||
"source_type": "CHAR(2)",
|
||||
"dest_name": "y3crcd",
|
||||
"dest_type": "text",
|
||||
"description": "Currency Code"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3STCR",
|
||||
"source_type": "NUMERIC(11,6)",
|
||||
"dest_name": "y3stcr",
|
||||
"dest_type": "numeric(11,6)",
|
||||
"description": "Standard Currency Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "Y3LSCR",
|
||||
"source_type": "NUMERIC(11,6)",
|
||||
"dest_name": "y3lscr",
|
||||
"dest_type": "numeric(11,6)",
|
||||
"description": "Last Currency Rate"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
47
config/modules/ftcstr.sql
Normal file
47
config/modules/ftcstr.sql
Normal file
@ -0,0 +1,47 @@
|
||||
SELECT
|
||||
RTRIM(Y3PART) AS y3part,
|
||||
RTRIM(Y3PLNT) AS y3plnt,
|
||||
Y3STCS AS y3stcs,
|
||||
Y3ACCS AS y3accs,
|
||||
Y3AVCS AS y3avcs,
|
||||
Y3SUC AS y3suc,
|
||||
Y3SSHR AS y3sshr,
|
||||
Y3SSHC AS y3sshc,
|
||||
Y3SOC AS y3soc,
|
||||
CASE WHEN Y3SDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE Y3SDAT END AS y3sdat,
|
||||
Y3SQTY AS y3sqty,
|
||||
Y3LUC AS y3luc,
|
||||
Y3LSHC AS y3lshc,
|
||||
Y3LOC AS y3loc,
|
||||
Y3AQTY AS y3aqty,
|
||||
RTRIM(Y3TYPE) AS y3type,
|
||||
Y3SMAT AS y3smat,
|
||||
Y3SLAB AS y3slab,
|
||||
Y3SVBR AS y3svbr,
|
||||
Y3SFBR AS y3sfbr,
|
||||
Y3SOTC AS y3sotc,
|
||||
Y3LMAT AS y3lmat,
|
||||
Y3LLAB AS y3llab,
|
||||
Y3LVBR AS y3lvbr,
|
||||
Y3LFBR AS y3lfbr,
|
||||
Y3LOTC AS y3lotc,
|
||||
Y3AMAT AS y3amat,
|
||||
Y3ALAB AS y3alab,
|
||||
Y3AVBR AS y3avbr,
|
||||
Y3AFBR AS y3afbr,
|
||||
Y3AOTC AS y3aotc,
|
||||
Y3AUNC AS y3aunc,
|
||||
Y3ASHC AS y3ashc,
|
||||
Y3ACRC AS y3acrc,
|
||||
RTRIM(Y3FUT1) AS y3fut1,
|
||||
RTRIM(Y3FUT2) AS y3fut2,
|
||||
RTRIM(Y3FUT3) AS y3fut3,
|
||||
Y3FUT4 AS y3fut4,
|
||||
Y3FUT5 AS y3fut5,
|
||||
RTRIM(Y3FLG1) AS y3flg1,
|
||||
RTRIM(Y3FLG2) AS y3flg2,
|
||||
RTRIM(Y3FLG3) AS y3flg3,
|
||||
RTRIM(Y3CRCD) AS y3crcd,
|
||||
Y3STCR AS y3stcr,
|
||||
Y3LSCR AS y3lscr
|
||||
FROM LGDAT.FTCSTR
|
||||
92
config/modules/gl00105.json
Normal file
92
config/modules/gl00105.json
Normal file
@ -0,0 +1,92 @@
|
||||
{
|
||||
"name": "gl00105",
|
||||
"source_connection": "sqlserver",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "gp.gl00105",
|
||||
"staging_table": "pipekit_staging.gl00105",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": null,
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "ACTINDX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "actindx",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ACTNUMBR_1",
|
||||
"source_type": "CHAR(7)",
|
||||
"dest_name": "actnumbr_1",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ACTNUMBR_2",
|
||||
"source_type": "CHAR(7)",
|
||||
"dest_name": "actnumbr_2",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ACTNUMBR_3",
|
||||
"source_type": "CHAR(9)",
|
||||
"dest_name": "actnumbr_3",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ACTNUMBR_4",
|
||||
"source_type": "CHAR(9)",
|
||||
"dest_name": "actnumbr_4",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ACTNUMBR_5",
|
||||
"source_type": "CHAR(9)",
|
||||
"dest_name": "actnumbr_5",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ACTNUMBR_6",
|
||||
"source_type": "CHAR(9)",
|
||||
"dest_name": "actnumbr_6",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ACTNUMBR_7",
|
||||
"source_type": "CHAR(11)",
|
||||
"dest_name": "actnumbr_7",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ACTNUMBR_8",
|
||||
"source_type": "CHAR(11)",
|
||||
"dest_name": "actnumbr_8",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ACTNUMST",
|
||||
"source_type": "CHAR(129)",
|
||||
"dest_name": "actnumst",
|
||||
"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": []
|
||||
}
|
||||
13
config/modules/gl00105.sql
Normal file
13
config/modules/gl00105.sql
Normal file
@ -0,0 +1,13 @@
|
||||
SELECT
|
||||
[ACTINDX] AS [actindx],
|
||||
RTRIM([ACTNUMBR_1]) AS [actnumbr_1],
|
||||
RTRIM([ACTNUMBR_2]) AS [actnumbr_2],
|
||||
RTRIM([ACTNUMBR_3]) AS [actnumbr_3],
|
||||
RTRIM([ACTNUMBR_4]) AS [actnumbr_4],
|
||||
RTRIM([ACTNUMBR_5]) AS [actnumbr_5],
|
||||
RTRIM([ACTNUMBR_6]) AS [actnumbr_6],
|
||||
RTRIM([ACTNUMBR_7]) AS [actnumbr_7],
|
||||
RTRIM([ACTNUMBR_8]) AS [actnumbr_8],
|
||||
RTRIM([ACTNUMST]) AS [actnumst],
|
||||
[DEX_ROW_ID] AS [dex_row_id]
|
||||
FROM [GPSERVER].[CHG].[dbo].[GL00105]
|
||||
281
config/modules/glie.json
Normal file
281
config/modules/glie.json
Normal file
@ -0,0 +1,281 @@
|
||||
{
|
||||
"name": "glie",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.glie",
|
||||
"staging_table": "pipekit_staging.glie",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "G/L Inventory Expense Accounts 6.1",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "Y1PLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "y1plnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1GLEC",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "y1glec",
|
||||
"dest_type": "text",
|
||||
"description": "G/L Expense Code"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1INVA",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1inva",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "G/L Inventory Account"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1PRVR",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1prvr",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "G/L Price Variance"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1USVR",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1usvr",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "G/L Usage Variance"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1PADJ",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1padj",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "G/L Physical Adjustment"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1RVAL",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1rval",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "G/L Inventory Revaluation"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1INTP",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1intp",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "G/L Interplant Variance"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1FUT1",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1fut1",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1FUT2",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "y1fut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1FUT3",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "y1fut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1FUT4",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "y1fut4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1FUT5",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "y1fut5",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1FUT6",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "y1fut6",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1FLG1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "y1flg1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1FLG2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "y1flg2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1FLG3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "y1flg3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1FREX",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1frex",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "BOL Freight Expense Acct#"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1SREX",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1srex",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "BOL Freight Sur- charge Expense Acc#"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1FRVR",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1frvr",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "BOL Freight Variance Acct#"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1SRVR",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1srvr",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "BOL Freight Sur- charge Variance Acc#"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1NEGA",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1nega",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Negative Inventory Adjustment"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1RPIR",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1rpir",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Repair GL Account"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1GLM1",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1glm1",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "G/L Clearing Account for Multiplier-1"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1GLM2",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1glm2",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "G/L Clearing Account for Multiplier-2"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1CLAC",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1clac",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Work Order Option Clearing"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1FUT7",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1fut7",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1FUT8",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1fut8",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1FUT9",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1fut9",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1FUT10",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1fut10",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1FUT11",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1fut11",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1SAAC",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1saac",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Month-End Option Serial Adj"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1BHCL",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1bhcl",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Bill-And-Hold Clearing"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1CBMX",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1cbmx",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Container BOM Part Expense"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1UVLB",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1uvlb",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "G/L Usage Variance Labour"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1UVFB",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1uvfb",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "G/L Usage Variance Fix Burden"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1UVVB",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1uvvb",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "G/L Usage Variance Var Burden"
|
||||
},
|
||||
{
|
||||
"source_name": "Y1UVOTH",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "y1uvoth",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "G/L Usage Variance Other"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
40
config/modules/glie.sql
Normal file
40
config/modules/glie.sql
Normal file
@ -0,0 +1,40 @@
|
||||
SELECT
|
||||
RTRIM(Y1PLNT) AS y1plnt,
|
||||
RTRIM(Y1GLEC) AS y1glec,
|
||||
Y1INVA AS y1inva,
|
||||
Y1PRVR AS y1prvr,
|
||||
Y1USVR AS y1usvr,
|
||||
Y1PADJ AS y1padj,
|
||||
Y1RVAL AS y1rval,
|
||||
Y1INTP AS y1intp,
|
||||
Y1FUT1 AS y1fut1,
|
||||
RTRIM(Y1FUT2) AS y1fut2,
|
||||
RTRIM(Y1FUT3) AS y1fut3,
|
||||
RTRIM(Y1FUT4) AS y1fut4,
|
||||
Y1FUT5 AS y1fut5,
|
||||
Y1FUT6 AS y1fut6,
|
||||
RTRIM(Y1FLG1) AS y1flg1,
|
||||
RTRIM(Y1FLG2) AS y1flg2,
|
||||
RTRIM(Y1FLG3) AS y1flg3,
|
||||
Y1FREX AS y1frex,
|
||||
Y1SREX AS y1srex,
|
||||
Y1FRVR AS y1frvr,
|
||||
Y1SRVR AS y1srvr,
|
||||
Y1NEGA AS y1nega,
|
||||
Y1RPIR AS y1rpir,
|
||||
Y1GLM1 AS y1glm1,
|
||||
Y1GLM2 AS y1glm2,
|
||||
Y1CLAC AS y1clac,
|
||||
Y1FUT7 AS y1fut7,
|
||||
Y1FUT8 AS y1fut8,
|
||||
Y1FUT9 AS y1fut9,
|
||||
Y1FUT10 AS y1fut10,
|
||||
Y1FUT11 AS y1fut11,
|
||||
Y1SAAC AS y1saac,
|
||||
Y1BHCL AS y1bhcl,
|
||||
Y1CBMX AS y1cbmx,
|
||||
Y1UVLB AS y1uvlb,
|
||||
Y1UVFB AS y1uvfb,
|
||||
Y1UVVB AS y1uvvb,
|
||||
Y1UVOTH AS y1uvoth
|
||||
FROM LGDAT.GLIE
|
||||
351
config/modules/icstm.json
Normal file
351
config/modules/icstm.json
Normal file
@ -0,0 +1,351 @@
|
||||
{
|
||||
"name": "icstm",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.icstm",
|
||||
"staging_table": "pipekit_staging.icstm",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Inventory Costs - Manufactured parts 6.1",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "CGPART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "cgpart",
|
||||
"dest_type": "text",
|
||||
"description": "Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "CGLABS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cglabs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Labour Standard"
|
||||
},
|
||||
{
|
||||
"source_name": "CGMATS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgmats",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Material Standard"
|
||||
},
|
||||
{
|
||||
"source_name": "CGBURS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgburs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Standard"
|
||||
},
|
||||
{
|
||||
"source_name": "CGLABA",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cglaba",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Labour Actual"
|
||||
},
|
||||
{
|
||||
"source_name": "CGMATA",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgmata",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Material Actual"
|
||||
},
|
||||
{
|
||||
"source_name": "CGBURA",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgbura",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Actual"
|
||||
},
|
||||
{
|
||||
"source_name": "CGLABV",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cglabv",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Labour Average"
|
||||
},
|
||||
{
|
||||
"source_name": "CGMATV",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgmatv",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Material Average"
|
||||
},
|
||||
{
|
||||
"source_name": "CGBURV",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgburv",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Average"
|
||||
},
|
||||
{
|
||||
"source_name": "CGTPTD",
|
||||
"source_type": "DECIMAL(11,0)",
|
||||
"dest_name": "cgtptd",
|
||||
"dest_type": "numeric(11,0)",
|
||||
"description": "Total Prod. To Date"
|
||||
},
|
||||
{
|
||||
"source_name": "CGSDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "cgsdat",
|
||||
"dest_type": "date",
|
||||
"description": "Standard Date"
|
||||
},
|
||||
{
|
||||
"source_name": "CGSTCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgstcs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CGACCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgaccs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Actual Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CGAVCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgavcs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CGSTOC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgstoc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Other Costs (Standard)"
|
||||
},
|
||||
{
|
||||
"source_name": "CGACOC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgacoc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Other Costs (Actual)"
|
||||
},
|
||||
{
|
||||
"source_name": "CGAVOC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgavoc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Other Costs (Average)"
|
||||
},
|
||||
{
|
||||
"source_name": "CGSQTY",
|
||||
"source_type": "NUMERIC(8,0)",
|
||||
"dest_name": "cgsqty",
|
||||
"dest_type": "numeric(8,0)",
|
||||
"description": "Standard Quantity"
|
||||
},
|
||||
{
|
||||
"source_name": "CGAQTY",
|
||||
"source_type": "NUMERIC(8,0)",
|
||||
"dest_name": "cgaqty",
|
||||
"dest_type": "numeric(8,0)",
|
||||
"description": "Actual Quantity"
|
||||
},
|
||||
{
|
||||
"source_name": "CGTYPE",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "cgtype",
|
||||
"dest_type": "text",
|
||||
"description": "Part Type M"
|
||||
},
|
||||
{
|
||||
"source_name": "CGBRFS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgbrfs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Standard Fixed"
|
||||
},
|
||||
{
|
||||
"source_name": "CGBRVS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgbrvs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Standard Variable"
|
||||
},
|
||||
{
|
||||
"source_name": "CGBRFA",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgbrfa",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Actual Fixed"
|
||||
},
|
||||
{
|
||||
"source_name": "CGBRVA",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgbrva",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Actual Variable"
|
||||
},
|
||||
{
|
||||
"source_name": "CGBRFV",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgbrfv",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Average Fixed"
|
||||
},
|
||||
{
|
||||
"source_name": "CGBRVV",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgbrvv",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Burden Average Variable"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFUTS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgfuts",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Future Standard"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFUTA",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgfuta",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Future Actual"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFUTV",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "cgfutv",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Future Average"
|
||||
},
|
||||
{
|
||||
"source_name": "CGPLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "cgplnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFUT1",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "cgfut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFUT2",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "cgfut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFUT3",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "cgfut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFUT4",
|
||||
"source_type": "NUMERIC(15,0)",
|
||||
"dest_name": "cgfut4",
|
||||
"dest_type": "numeric(15,0)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFUT5",
|
||||
"source_type": "NUMERIC(15,0)",
|
||||
"dest_name": "cgfut5",
|
||||
"dest_type": "numeric(15,0)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFLG1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "cgflg1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFLG2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "cgflg2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFLG3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "cgflg3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFUT6",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "cgfut6",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFUT7",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "cgfut7",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFUT8",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "cgfut8",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFUT9",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "cgfut9",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFUT10",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "cgfut10",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFUT11",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "cgfut11",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFUT12",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "cgfut12",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFUT13",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "cgfut13",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CGFUT14",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "cgfut14",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
50
config/modules/icstm.sql
Normal file
50
config/modules/icstm.sql
Normal file
@ -0,0 +1,50 @@
|
||||
SELECT
|
||||
RTRIM(CGPART) AS cgpart,
|
||||
CGLABS AS cglabs,
|
||||
CGMATS AS cgmats,
|
||||
CGBURS AS cgburs,
|
||||
CGLABA AS cglaba,
|
||||
CGMATA AS cgmata,
|
||||
CGBURA AS cgbura,
|
||||
CGLABV AS cglabv,
|
||||
CGMATV AS cgmatv,
|
||||
CGBURV AS cgburv,
|
||||
CGTPTD AS cgtptd,
|
||||
CASE WHEN CGSDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE CGSDAT END AS cgsdat,
|
||||
CGSTCS AS cgstcs,
|
||||
CGACCS AS cgaccs,
|
||||
CGAVCS AS cgavcs,
|
||||
CGSTOC AS cgstoc,
|
||||
CGACOC AS cgacoc,
|
||||
CGAVOC AS cgavoc,
|
||||
CGSQTY AS cgsqty,
|
||||
CGAQTY AS cgaqty,
|
||||
RTRIM(CGTYPE) AS cgtype,
|
||||
CGBRFS AS cgbrfs,
|
||||
CGBRVS AS cgbrvs,
|
||||
CGBRFA AS cgbrfa,
|
||||
CGBRVA AS cgbrva,
|
||||
CGBRFV AS cgbrfv,
|
||||
CGBRVV AS cgbrvv,
|
||||
CGFUTS AS cgfuts,
|
||||
CGFUTA AS cgfuta,
|
||||
CGFUTV AS cgfutv,
|
||||
RTRIM(CGPLNT) AS cgplnt,
|
||||
RTRIM(CGFUT1) AS cgfut1,
|
||||
RTRIM(CGFUT2) AS cgfut2,
|
||||
RTRIM(CGFUT3) AS cgfut3,
|
||||
CGFUT4 AS cgfut4,
|
||||
CGFUT5 AS cgfut5,
|
||||
RTRIM(CGFLG1) AS cgflg1,
|
||||
RTRIM(CGFLG2) AS cgflg2,
|
||||
RTRIM(CGFLG3) AS cgflg3,
|
||||
RTRIM(CGFUT6) AS cgfut6,
|
||||
RTRIM(CGFUT7) AS cgfut7,
|
||||
RTRIM(CGFUT8) AS cgfut8,
|
||||
RTRIM(CGFUT9) AS cgfut9,
|
||||
RTRIM(CGFUT10) AS cgfut10,
|
||||
RTRIM(CGFUT11) AS cgfut11,
|
||||
CGFUT12 AS cgfut12,
|
||||
CGFUT13 AS cgfut13,
|
||||
CGFUT14 AS cgfut14
|
||||
FROM LGDAT.ICSTM
|
||||
435
config/modules/icstp.json
Normal file
435
config/modules/icstp.json
Normal file
@ -0,0 +1,435 @@
|
||||
{
|
||||
"name": "icstp",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.icstp",
|
||||
"staging_table": "pipekit_staging.icstp",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Inventory Cost Master - Purchased Parts 6.1",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "CHPART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "chpart",
|
||||
"dest_type": "text",
|
||||
"description": "Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "CHLUC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chluc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Unit Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHLCC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chlcc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Currency Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHLFC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chlfc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Freight Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHLDC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chldc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Duty Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHL1C",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chl1c",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Multiplier-1 Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHL2C",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chl2c",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Multiplier-2 Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHSUC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chsuc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Unit Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHSCC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chscc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Currency Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHSFC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chsfc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Freight Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHSDC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chsdc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Duty Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHS1C",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chs1c",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Multiplier-1 Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHS2C",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chs2c",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Multiplier-2 Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHSCR",
|
||||
"source_type": "DECIMAL(11,6)",
|
||||
"dest_name": "chscr",
|
||||
"dest_type": "numeric(11,6)",
|
||||
"description": "Standard Currency Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "CHLCR",
|
||||
"source_type": "DECIMAL(11,6)",
|
||||
"dest_name": "chlcr",
|
||||
"dest_type": "numeric(11,6)",
|
||||
"description": "Last Currency Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "CHSDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "chsdat",
|
||||
"dest_type": "date",
|
||||
"description": "Standard Date"
|
||||
},
|
||||
{
|
||||
"source_name": "CHSTCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chstcs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHACCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chaccs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Actual Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHAVCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chavcs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHSDR",
|
||||
"source_type": "NUMERIC(8,4)",
|
||||
"dest_name": "chsdr",
|
||||
"dest_type": "numeric(8,4)",
|
||||
"description": "Standard Duty Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "CHS1R",
|
||||
"source_type": "NUMERIC(8,4)",
|
||||
"dest_name": "chs1r",
|
||||
"dest_type": "numeric(8,4)",
|
||||
"description": "Standard Multiplier-1"
|
||||
},
|
||||
{
|
||||
"source_name": "CHS2R",
|
||||
"source_type": "NUMERIC(8,4)",
|
||||
"dest_name": "chs2r",
|
||||
"dest_type": "numeric(8,4)",
|
||||
"description": "Standard Multiplier-2"
|
||||
},
|
||||
{
|
||||
"source_name": "CHLDR",
|
||||
"source_type": "NUMERIC(8,4)",
|
||||
"dest_name": "chldr",
|
||||
"dest_type": "numeric(8,4)",
|
||||
"description": "Last Duty Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "CHL1R",
|
||||
"source_type": "NUMERIC(8,4)",
|
||||
"dest_name": "chl1r",
|
||||
"dest_type": "numeric(8,4)",
|
||||
"description": "Last Multiplier-1"
|
||||
},
|
||||
{
|
||||
"source_name": "CHL2R",
|
||||
"source_type": "NUMERIC(8,4)",
|
||||
"dest_name": "chl2r",
|
||||
"dest_type": "numeric(8,4)",
|
||||
"description": "Last Multiplier-2"
|
||||
},
|
||||
{
|
||||
"source_name": "CHSQTY",
|
||||
"source_type": "NUMERIC(8,0)",
|
||||
"dest_name": "chsqty",
|
||||
"dest_type": "numeric(8,0)",
|
||||
"description": "Standard Quantity"
|
||||
},
|
||||
{
|
||||
"source_name": "CHAQTY",
|
||||
"source_type": "NUMERIC(8,0)",
|
||||
"dest_name": "chaqty",
|
||||
"dest_type": "numeric(8,0)",
|
||||
"description": "Actual Quantity"
|
||||
},
|
||||
{
|
||||
"source_name": "CHTYPE",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "chtype",
|
||||
"dest_type": "text",
|
||||
"description": "Part Type R"
|
||||
},
|
||||
{
|
||||
"source_name": "CHCURR",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "chcurr",
|
||||
"dest_type": "text",
|
||||
"description": "Currency Code"
|
||||
},
|
||||
{
|
||||
"source_name": "CHSDWC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chsdwc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Warehouse Cha rge"
|
||||
},
|
||||
{
|
||||
"source_name": "CHACWC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chacwc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Warehouse Charge"
|
||||
},
|
||||
{
|
||||
"source_name": "CHPLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "chplnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
},
|
||||
{
|
||||
"source_name": "CHAVUC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chavuc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Unit cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHAVXC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chavxc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Xchg cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHAVDC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chavdc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Duty cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHAV1C",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chav1c",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Multiplier-1 Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHAV2C",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chav2c",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Multiplier-2 Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHAVFC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "chavfc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Freight cost"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFUT1",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "chfut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFUT2",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "chfut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFUT3",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "chfut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFUT4",
|
||||
"source_type": "NUMERIC(15,0)",
|
||||
"dest_name": "chfut4",
|
||||
"dest_type": "numeric(15,0)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFUT5",
|
||||
"source_type": "NUMERIC(15,0)",
|
||||
"dest_name": "chfut5",
|
||||
"dest_type": "numeric(15,0)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFLG1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "chflg1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFLG2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "chflg2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFLG3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "chflg3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFLG4",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "chflg4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFLG5",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "chflg5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFLG6",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "chflg6",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFLG7",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "chflg7",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHCRCD",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "chcrcd",
|
||||
"dest_type": "text",
|
||||
"description": "Last Actual Currency"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFUT6",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "chfut6",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFUT7",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "chfut7",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFUT8",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "chfut8",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFUT9",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "chfut9",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFUT10",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "chfut10",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFUT11",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "chfut11",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFUT12",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "chfut12",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFUT13",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "chfut13",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "CHFUT14",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "chfut14",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
62
config/modules/icstp.sql
Normal file
62
config/modules/icstp.sql
Normal file
@ -0,0 +1,62 @@
|
||||
SELECT
|
||||
RTRIM(CHPART) AS chpart,
|
||||
CHLUC AS chluc,
|
||||
CHLCC AS chlcc,
|
||||
CHLFC AS chlfc,
|
||||
CHLDC AS chldc,
|
||||
CHL1C AS chl1c,
|
||||
CHL2C AS chl2c,
|
||||
CHSUC AS chsuc,
|
||||
CHSCC AS chscc,
|
||||
CHSFC AS chsfc,
|
||||
CHSDC AS chsdc,
|
||||
CHS1C AS chs1c,
|
||||
CHS2C AS chs2c,
|
||||
CHSCR AS chscr,
|
||||
CHLCR AS chlcr,
|
||||
CASE WHEN CHSDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE CHSDAT END AS chsdat,
|
||||
CHSTCS AS chstcs,
|
||||
CHACCS AS chaccs,
|
||||
CHAVCS AS chavcs,
|
||||
CHSDR AS chsdr,
|
||||
CHS1R AS chs1r,
|
||||
CHS2R AS chs2r,
|
||||
CHLDR AS chldr,
|
||||
CHL1R AS chl1r,
|
||||
CHL2R AS chl2r,
|
||||
CHSQTY AS chsqty,
|
||||
CHAQTY AS chaqty,
|
||||
RTRIM(CHTYPE) AS chtype,
|
||||
RTRIM(CHCURR) AS chcurr,
|
||||
CHSDWC AS chsdwc,
|
||||
CHACWC AS chacwc,
|
||||
RTRIM(CHPLNT) AS chplnt,
|
||||
CHAVUC AS chavuc,
|
||||
CHAVXC AS chavxc,
|
||||
CHAVDC AS chavdc,
|
||||
CHAV1C AS chav1c,
|
||||
CHAV2C AS chav2c,
|
||||
CHAVFC AS chavfc,
|
||||
RTRIM(CHFUT1) AS chfut1,
|
||||
RTRIM(CHFUT2) AS chfut2,
|
||||
RTRIM(CHFUT3) AS chfut3,
|
||||
CHFUT4 AS chfut4,
|
||||
CHFUT5 AS chfut5,
|
||||
RTRIM(CHFLG1) AS chflg1,
|
||||
RTRIM(CHFLG2) AS chflg2,
|
||||
RTRIM(CHFLG3) AS chflg3,
|
||||
RTRIM(CHFLG4) AS chflg4,
|
||||
RTRIM(CHFLG5) AS chflg5,
|
||||
RTRIM(CHFLG6) AS chflg6,
|
||||
RTRIM(CHFLG7) AS chflg7,
|
||||
RTRIM(CHCRCD) AS chcrcd,
|
||||
RTRIM(CHFUT6) AS chfut6,
|
||||
RTRIM(CHFUT7) AS chfut7,
|
||||
RTRIM(CHFUT8) AS chfut8,
|
||||
RTRIM(CHFUT9) AS chfut9,
|
||||
RTRIM(CHFUT10) AS chfut10,
|
||||
RTRIM(CHFUT11) AS chfut11,
|
||||
CHFUT12 AS chfut12,
|
||||
CHFUT13 AS chfut13,
|
||||
CHFUT14 AS chfut14
|
||||
FROM LGDAT.ICSTP
|
||||
393
config/modules/icstr.json
Normal file
393
config/modules/icstr.json
Normal file
@ -0,0 +1,393 @@
|
||||
{
|
||||
"name": "icstr",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.icstr",
|
||||
"staging_table": "pipekit_staging.icstr",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Inventory Cost Master-Transferred Parts6.1",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "Y0PART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "y0part",
|
||||
"dest_type": "text",
|
||||
"description": "Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0PLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "y0plnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0STCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0stcs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0ACCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0accs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Actual Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0AVCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0avcs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0SUC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0suc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Unit Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0SSHR",
|
||||
"source_type": "DECIMAL(9,5)",
|
||||
"dest_name": "y0sshr",
|
||||
"dest_type": "numeric(9,5)",
|
||||
"description": "Standard S & H Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0SSHC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0sshc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard S & H Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0SOC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0soc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Currency Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0SDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "y0sdat",
|
||||
"dest_type": "date",
|
||||
"description": "Standard Date"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0SQTY",
|
||||
"source_type": "NUMERIC(8,0)",
|
||||
"dest_name": "y0sqty",
|
||||
"dest_type": "numeric(8,0)",
|
||||
"description": "Standard Quantity"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0LUC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0luc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Unit Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0LSHC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0lshc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last S & H Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0LOC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0loc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Currency Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0AQTY",
|
||||
"source_type": "NUMERIC(8,0)",
|
||||
"dest_name": "y0aqty",
|
||||
"dest_type": "numeric(8,0)",
|
||||
"description": "Actual Quantity"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0TYPE",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "y0type",
|
||||
"dest_type": "text",
|
||||
"description": "Part Type T"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0SMAT",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0smat",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Material Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0SLAB",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0slab",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Labour Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0SVBR",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0svbr",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Variable Burden Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0SFBR",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0sfbr",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Fixed Burden Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0SOTC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0sotc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Standard Other Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0LMAT",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0lmat",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Actual Material Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0LLAB",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0llab",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Actual Labour Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0LVBR",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0lvbr",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Actual Variable Burden Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0LFBR",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0lfbr",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Actual Fixed Burden Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0LOTC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0lotc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Last Actual Other Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0AMAT",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0amat",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Material Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0ALAB",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0alab",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Labour Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0AVBR",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0avbr",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Variable Burden Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0AFBR",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0afbr",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Fixed Burden Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0AOTC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0aotc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Other Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0AUNC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0aunc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Unit Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0ASHC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0ashc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average S & H Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0ACRC",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "y0acrc",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Average Currency Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0FUT1",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "y0fut1",
|
||||
"dest_type": "text",
|
||||
"description": "Currency Code"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0FUT2",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "y0fut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0FUT3",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "y0fut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0FUT4",
|
||||
"source_type": "NUMERIC(11,6)",
|
||||
"dest_name": "y0fut4",
|
||||
"dest_type": "numeric(11,6)",
|
||||
"description": "Standard Currency Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0FUT5",
|
||||
"source_type": "NUMERIC(11,6)",
|
||||
"dest_name": "y0fut5",
|
||||
"dest_type": "numeric(11,6)",
|
||||
"description": "Last Currency Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0FLG1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "y0flg1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0FLG2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "y0flg2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0FLG3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "y0flg3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0CRCD",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "y0crcd",
|
||||
"dest_type": "text",
|
||||
"description": "Currency Code"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0STCR",
|
||||
"source_type": "NUMERIC(11,6)",
|
||||
"dest_name": "y0stcr",
|
||||
"dest_type": "numeric(11,6)",
|
||||
"description": "Standard Currency Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0LSCR",
|
||||
"source_type": "NUMERIC(11,6)",
|
||||
"dest_name": "y0lscr",
|
||||
"dest_type": "numeric(11,6)",
|
||||
"description": "Last Currency Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0FUT6",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "y0fut6",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0FUT7",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "y0fut7",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0FUT8",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "y0fut8",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0FUT9",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "y0fut9",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0FUT10",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "y0fut10",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0FUT11",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "y0fut11",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0FUT12",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "y0fut12",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0FUT13",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "y0fut13",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "Y0FUT14",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "y0fut14",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
56
config/modules/icstr.sql
Normal file
56
config/modules/icstr.sql
Normal file
@ -0,0 +1,56 @@
|
||||
SELECT
|
||||
RTRIM(Y0PART) AS y0part,
|
||||
RTRIM(Y0PLNT) AS y0plnt,
|
||||
Y0STCS AS y0stcs,
|
||||
Y0ACCS AS y0accs,
|
||||
Y0AVCS AS y0avcs,
|
||||
Y0SUC AS y0suc,
|
||||
Y0SSHR AS y0sshr,
|
||||
Y0SSHC AS y0sshc,
|
||||
Y0SOC AS y0soc,
|
||||
CASE WHEN Y0SDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE Y0SDAT END AS y0sdat,
|
||||
Y0SQTY AS y0sqty,
|
||||
Y0LUC AS y0luc,
|
||||
Y0LSHC AS y0lshc,
|
||||
Y0LOC AS y0loc,
|
||||
Y0AQTY AS y0aqty,
|
||||
RTRIM(Y0TYPE) AS y0type,
|
||||
Y0SMAT AS y0smat,
|
||||
Y0SLAB AS y0slab,
|
||||
Y0SVBR AS y0svbr,
|
||||
Y0SFBR AS y0sfbr,
|
||||
Y0SOTC AS y0sotc,
|
||||
Y0LMAT AS y0lmat,
|
||||
Y0LLAB AS y0llab,
|
||||
Y0LVBR AS y0lvbr,
|
||||
Y0LFBR AS y0lfbr,
|
||||
Y0LOTC AS y0lotc,
|
||||
Y0AMAT AS y0amat,
|
||||
Y0ALAB AS y0alab,
|
||||
Y0AVBR AS y0avbr,
|
||||
Y0AFBR AS y0afbr,
|
||||
Y0AOTC AS y0aotc,
|
||||
Y0AUNC AS y0aunc,
|
||||
Y0ASHC AS y0ashc,
|
||||
Y0ACRC AS y0acrc,
|
||||
RTRIM(Y0FUT1) AS y0fut1,
|
||||
RTRIM(Y0FUT2) AS y0fut2,
|
||||
RTRIM(Y0FUT3) AS y0fut3,
|
||||
Y0FUT4 AS y0fut4,
|
||||
Y0FUT5 AS y0fut5,
|
||||
RTRIM(Y0FLG1) AS y0flg1,
|
||||
RTRIM(Y0FLG2) AS y0flg2,
|
||||
RTRIM(Y0FLG3) AS y0flg3,
|
||||
RTRIM(Y0CRCD) AS y0crcd,
|
||||
Y0STCR AS y0stcr,
|
||||
Y0LSCR AS y0lscr,
|
||||
RTRIM(Y0FUT6) AS y0fut6,
|
||||
RTRIM(Y0FUT7) AS y0fut7,
|
||||
RTRIM(Y0FUT8) AS y0fut8,
|
||||
RTRIM(Y0FUT9) AS y0fut9,
|
||||
RTRIM(Y0FUT10) AS y0fut10,
|
||||
RTRIM(Y0FUT11) AS y0fut11,
|
||||
Y0FUT12 AS y0fut12,
|
||||
Y0FUT13 AS y0fut13,
|
||||
Y0FUT14 AS y0fut14
|
||||
FROM LGDAT.ICSTR
|
||||
386
config/modules/icstt.json
Normal file
386
config/modules/icstt.json
Normal file
@ -0,0 +1,386 @@
|
||||
{
|
||||
"name": "icstt",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.icstt",
|
||||
"staging_table": "pipekit_staging.icstt",
|
||||
"merge_strategy": "incremental",
|
||||
"merge_key": "jhdate",
|
||||
"enabled": 1,
|
||||
"dest_description": "Inventory Cost Transaction Log 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "JHPART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "jhpart",
|
||||
"dest_type": "text",
|
||||
"description": "Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "JHDATE",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "jhdate",
|
||||
"dest_type": "date",
|
||||
"description": "Transaction Date"
|
||||
},
|
||||
{
|
||||
"source_name": "JHTIME",
|
||||
"source_type": "TIME",
|
||||
"dest_name": "jhtime",
|
||||
"dest_type": "time without time zone",
|
||||
"description": "Transaction Time"
|
||||
},
|
||||
{
|
||||
"source_name": "JHJOB#",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "jhjob#",
|
||||
"dest_type": "text",
|
||||
"description": "Job Number"
|
||||
},
|
||||
{
|
||||
"source_name": "JHPONR",
|
||||
"source_type": "DECIMAL(9,0)",
|
||||
"dest_name": "jhponr",
|
||||
"dest_type": "numeric",
|
||||
"description": "Purchase Order Number"
|
||||
},
|
||||
{
|
||||
"source_name": "JHPITM",
|
||||
"source_type": "DECIMAL(3,0)",
|
||||
"dest_name": "jhpitm",
|
||||
"dest_type": "numeric",
|
||||
"description": "Purchase Order Item"
|
||||
},
|
||||
{
|
||||
"source_name": "JHUSER",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "jhuser",
|
||||
"dest_type": "text",
|
||||
"description": "User ID"
|
||||
},
|
||||
{
|
||||
"source_name": "JHPROG",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "jhprog",
|
||||
"dest_type": "text",
|
||||
"description": "Program Number"
|
||||
},
|
||||
{
|
||||
"source_name": "JHCQTY",
|
||||
"source_type": "DECIMAL(15,5)",
|
||||
"dest_name": "jhcqty",
|
||||
"dest_type": "numeric",
|
||||
"description": "Quantity in Units of Issue"
|
||||
},
|
||||
{
|
||||
"source_name": "JHCTYP",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jhctyp",
|
||||
"dest_type": "text",
|
||||
"description": "Standard or Actual Cost (A/S)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHMATO",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhmato",
|
||||
"dest_type": "numeric",
|
||||
"description": "Material Unit Cost (old)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHLABO",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhlabo",
|
||||
"dest_type": "numeric",
|
||||
"description": "Labour Unit Cost (old)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHBURO",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhburo",
|
||||
"dest_type": "numeric",
|
||||
"description": "Burden Unit Cost (old)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHOTHO",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhotho",
|
||||
"dest_type": "numeric",
|
||||
"description": "Other Unit Cost (old)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHTOTO",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhtoto",
|
||||
"dest_type": "numeric",
|
||||
"description": "Total Unit Cost (old)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHMATN",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhmatn",
|
||||
"dest_type": "numeric",
|
||||
"description": "Material Unit Cost (new)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHLABN",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhlabn",
|
||||
"dest_type": "numeric",
|
||||
"description": "Labour Unit Cost (new)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHBURN",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhburn",
|
||||
"dest_type": "numeric",
|
||||
"description": "Burden Unit Cost (new)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHOTHN",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhothn",
|
||||
"dest_type": "numeric",
|
||||
"description": "Other Unit Cost (new)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHTOTN",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhtotn",
|
||||
"dest_type": "numeric",
|
||||
"description": "Total Unit Cost (new)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHBRFO",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhbrfo",
|
||||
"dest_type": "numeric",
|
||||
"description": "Burden Unit Cost (Old Fixed)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHBRVO",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhbrvo",
|
||||
"dest_type": "numeric",
|
||||
"description": "Burden Unit Cost (Old Var)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHBRFN",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhbrfn",
|
||||
"dest_type": "numeric",
|
||||
"description": "Burden Unit Cost (New Fixed)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHBRVN",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhbrvn",
|
||||
"dest_type": "numeric",
|
||||
"description": "Burden Unit Cost (New Variable)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHSHCO",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhshco",
|
||||
"dest_type": "numeric",
|
||||
"description": "S & H Cost (old)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHCRCO",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhcrco",
|
||||
"dest_type": "numeric",
|
||||
"description": "Currency Cost (old)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHSHCN",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhshcn",
|
||||
"dest_type": "numeric",
|
||||
"description": "S & H Cost (new)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHCRCN",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhcrcn",
|
||||
"dest_type": "numeric",
|
||||
"description": "Currency Cost (new)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHPLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "jhplnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
},
|
||||
{
|
||||
"source_name": "JHABSO",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jhabso",
|
||||
"dest_type": "text",
|
||||
"description": "Absorbed or NonAbsorbed Cost (1/2)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHBOML",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jhboml",
|
||||
"dest_type": "text",
|
||||
"description": "BOM Levels Recalculated (1=Yes,2=No)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHLLPT",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jhllpt",
|
||||
"dest_type": "text",
|
||||
"description": "Lower Level Parts Recalculated (1=Yes,2=No)"
|
||||
},
|
||||
{
|
||||
"source_name": "JHCONQ",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "jhconq",
|
||||
"dest_type": "numeric",
|
||||
"description": "Issued quantity Against this receipt"
|
||||
},
|
||||
{
|
||||
"source_name": "JHCSTS",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jhcsts",
|
||||
"dest_type": "text",
|
||||
"description": "Quantity issued record status"
|
||||
},
|
||||
{
|
||||
"source_name": "JHAVDN",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhavdn",
|
||||
"dest_type": "numeric",
|
||||
"description": "Duty cost New"
|
||||
},
|
||||
{
|
||||
"source_name": "JHAVDO",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhavdo",
|
||||
"dest_type": "numeric",
|
||||
"description": "Duty cost Old"
|
||||
},
|
||||
{
|
||||
"source_name": "JHAV1N",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhav1n",
|
||||
"dest_type": "numeric",
|
||||
"description": "Multiplier-1 Cost New"
|
||||
},
|
||||
{
|
||||
"source_name": "JHAV1O",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhav1o",
|
||||
"dest_type": "numeric",
|
||||
"description": "Multiplier-1 Cost Old"
|
||||
},
|
||||
{
|
||||
"source_name": "JHAV2N",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhav2n",
|
||||
"dest_type": "numeric",
|
||||
"description": "Multiplier-2 Cost New"
|
||||
},
|
||||
{
|
||||
"source_name": "JHAV2O",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "jhav2o",
|
||||
"dest_type": "numeric",
|
||||
"description": "Multiplier-2 Cost Old"
|
||||
},
|
||||
{
|
||||
"source_name": "JHFUT1",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "jhfut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JHFUT2",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "jhfut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JHFUT3",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "jhfut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JHFUT4",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "jhfut4",
|
||||
"dest_type": "numeric",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JHFUT5",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "jhfut5",
|
||||
"dest_type": "numeric",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JHFLG1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jhflg1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JHFLG2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jhflg2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JHFLG3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jhflg3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JHRCID",
|
||||
"source_type": "CHAR(12)",
|
||||
"dest_name": "jhrcid",
|
||||
"dest_type": "text",
|
||||
"description": "Record ID"
|
||||
},
|
||||
{
|
||||
"source_name": "JHCRCD",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "jhcrcd",
|
||||
"dest_type": "text",
|
||||
"description": "Last Actual Currency"
|
||||
},
|
||||
{
|
||||
"source_name": "JHOHQT",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "jhohqt",
|
||||
"dest_type": "numeric",
|
||||
"description": "Current On-Hand Qty"
|
||||
},
|
||||
{
|
||||
"source_name": "JHOQTA",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "jhoqta",
|
||||
"dest_type": "numeric",
|
||||
"description": "Cost On-Hand Qty"
|
||||
}
|
||||
],
|
||||
"watermarks": [
|
||||
{
|
||||
"name": "icstt_wm",
|
||||
"connection": "usmidsap02",
|
||||
"resolver_sql": "SELECT COALESCE(MAX(jhdate), DATE '2000-01-01') - 7 FROM cms.icstt WHERE jhdate <= current_date",
|
||||
"default_value": null
|
||||
}
|
||||
],
|
||||
"hooks": []
|
||||
}
|
||||
55
config/modules/icstt.sql
Normal file
55
config/modules/icstt.sql
Normal file
@ -0,0 +1,55 @@
|
||||
SELECT
|
||||
RTRIM(JHPART) AS jhpart,
|
||||
CASE WHEN JHDATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JHDATE END AS jhdate,
|
||||
JHTIME AS jhtime,
|
||||
RTRIM("JHJOB#") AS "jhjob#",
|
||||
JHPONR AS jhponr,
|
||||
JHPITM AS jhpitm,
|
||||
RTRIM(JHUSER) AS jhuser,
|
||||
RTRIM(JHPROG) AS jhprog,
|
||||
JHCQTY AS jhcqty,
|
||||
RTRIM(JHCTYP) AS jhctyp,
|
||||
JHMATO AS jhmato,
|
||||
JHLABO AS jhlabo,
|
||||
JHBURO AS jhburo,
|
||||
JHOTHO AS jhotho,
|
||||
JHTOTO AS jhtoto,
|
||||
JHMATN AS jhmatn,
|
||||
JHLABN AS jhlabn,
|
||||
JHBURN AS jhburn,
|
||||
JHOTHN AS jhothn,
|
||||
JHTOTN AS jhtotn,
|
||||
JHBRFO AS jhbrfo,
|
||||
JHBRVO AS jhbrvo,
|
||||
JHBRFN AS jhbrfn,
|
||||
JHBRVN AS jhbrvn,
|
||||
JHSHCO AS jhshco,
|
||||
JHCRCO AS jhcrco,
|
||||
JHSHCN AS jhshcn,
|
||||
JHCRCN AS jhcrcn,
|
||||
RTRIM(JHPLNT) AS jhplnt,
|
||||
RTRIM(JHABSO) AS jhabso,
|
||||
RTRIM(JHBOML) AS jhboml,
|
||||
RTRIM(JHLLPT) AS jhllpt,
|
||||
JHCONQ AS jhconq,
|
||||
RTRIM(JHCSTS) AS jhcsts,
|
||||
JHAVDN AS jhavdn,
|
||||
JHAVDO AS jhavdo,
|
||||
JHAV1N AS jhav1n,
|
||||
JHAV1O AS jhav1o,
|
||||
JHAV2N AS jhav2n,
|
||||
JHAV2O AS jhav2o,
|
||||
RTRIM(JHFUT1) AS jhfut1,
|
||||
RTRIM(JHFUT2) AS jhfut2,
|
||||
RTRIM(JHFUT3) AS jhfut3,
|
||||
JHFUT4 AS jhfut4,
|
||||
JHFUT5 AS jhfut5,
|
||||
RTRIM(JHFLG1) AS jhflg1,
|
||||
RTRIM(JHFLG2) AS jhflg2,
|
||||
RTRIM(JHFLG3) AS jhflg3,
|
||||
RTRIM(JHRCID) AS jhrcid,
|
||||
RTRIM(JHCRCD) AS jhcrcd,
|
||||
JHOHQT AS jhohqt,
|
||||
JHOQTA AS jhoqta
|
||||
FROM LGDAT.ICSTT
|
||||
WHERE JHDATE >= '{icstt_wm}'
|
||||
183
config/modules/iprca.json
Normal file
183
config/modules/iprca.json
Normal file
@ -0,0 +1,183 @@
|
||||
{
|
||||
"name": "iprca",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.iprca",
|
||||
"staging_table": "pipekit_staging.iprca",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Pricing - Price List Code Description 6.1",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "JAPLCD",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "japlcd",
|
||||
"dest_type": "text",
|
||||
"description": "Price List"
|
||||
},
|
||||
{
|
||||
"source_name": "JAPLDS",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "japlds",
|
||||
"dest_type": "text",
|
||||
"description": "Price List Description"
|
||||
},
|
||||
{
|
||||
"source_name": "JAPLD1",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "japld1",
|
||||
"dest_type": "text",
|
||||
"description": "Price List Description"
|
||||
},
|
||||
{
|
||||
"source_name": "JAPLD2",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "japld2",
|
||||
"dest_type": "text",
|
||||
"description": "Price List Description"
|
||||
},
|
||||
{
|
||||
"source_name": "JABQTP",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jabqtp",
|
||||
"dest_type": "text",
|
||||
"description": "Best Quantity Pricing"
|
||||
},
|
||||
{
|
||||
"source_name": "JABQGN",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jabqgn",
|
||||
"dest_type": "text",
|
||||
"description": "Allow Global Re-Price"
|
||||
},
|
||||
{
|
||||
"source_name": "JABQUN",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "jabqun",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Last Global Re-Price Run Date"
|
||||
},
|
||||
{
|
||||
"source_name": "JAPLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "japlnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
},
|
||||
{
|
||||
"source_name": "JABQUT",
|
||||
"source_type": "NUMERIC(6,0)",
|
||||
"dest_name": "jabqut",
|
||||
"dest_type": "numeric(6,0)",
|
||||
"description": "Last Global Re-Price Run Time"
|
||||
},
|
||||
{
|
||||
"source_name": "JALQUN",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "jalqun",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Last Global Re-Run Run Date"
|
||||
},
|
||||
{
|
||||
"source_name": "JALQUT",
|
||||
"source_type": "NUMERIC(6,0)",
|
||||
"dest_name": "jalqut",
|
||||
"dest_type": "numeric(6,0)",
|
||||
"description": "Last Global Re-Run Run Time"
|
||||
},
|
||||
{
|
||||
"source_name": "JAADISC",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jaadisc",
|
||||
"dest_type": "text",
|
||||
"description": "Apply Disc/Charge to Standard Sales Order"
|
||||
},
|
||||
{
|
||||
"source_name": "JAHREAS",
|
||||
"source_type": "CHAR(2)",
|
||||
"dest_name": "jahreas",
|
||||
"dest_type": "text",
|
||||
"description": "Hold Reason"
|
||||
},
|
||||
{
|
||||
"source_name": "JAFUT1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jafut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JAFUT2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jafut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JAFUT3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jafut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JAFUT4",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jafut4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JAFUT5",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jafut5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JAFUT6",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "jafut6",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JAFUT7",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "jafut7",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JAFUT8",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "jafut8",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JAFUT9",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "jafut9",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JAFUT10",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "jafut10",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "JAFUT11",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "jafut11",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
26
config/modules/iprca.sql
Normal file
26
config/modules/iprca.sql
Normal file
@ -0,0 +1,26 @@
|
||||
SELECT
|
||||
RTRIM(JAPLCD) AS japlcd,
|
||||
RTRIM(JAPLDS) AS japlds,
|
||||
RTRIM(JAPLD1) AS japld1,
|
||||
RTRIM(JAPLD2) AS japld2,
|
||||
RTRIM(JABQTP) AS jabqtp,
|
||||
RTRIM(JABQGN) AS jabqgn,
|
||||
JABQUN AS jabqun,
|
||||
RTRIM(JAPLNT) AS japlnt,
|
||||
JABQUT AS jabqut,
|
||||
JALQUN AS jalqun,
|
||||
JALQUT AS jalqut,
|
||||
RTRIM(JAADISC) AS jaadisc,
|
||||
RTRIM(JAHREAS) AS jahreas,
|
||||
RTRIM(JAFUT1) AS jafut1,
|
||||
RTRIM(JAFUT2) AS jafut2,
|
||||
RTRIM(JAFUT3) AS jafut3,
|
||||
RTRIM(JAFUT4) AS jafut4,
|
||||
RTRIM(JAFUT5) AS jafut5,
|
||||
RTRIM(JAFUT6) AS jafut6,
|
||||
RTRIM(JAFUT7) AS jafut7,
|
||||
RTRIM(JAFUT8) AS jafut8,
|
||||
RTRIM(JAFUT9) AS jafut9,
|
||||
JAFUT10 AS jafut10,
|
||||
JAFUT11 AS jafut11
|
||||
FROM LGDAT.IPRCA
|
||||
351
config/modules/iprcb.json
Normal file
351
config/modules/iprcb.json
Normal file
@ -0,0 +1,351 @@
|
||||
{
|
||||
"name": "iprcb",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.iprcb",
|
||||
"staging_table": "pipekit_staging.iprcb",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Pricing - PriceLlist Assignment",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "JBTYPE",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jbtype",
|
||||
"dest_type": "text",
|
||||
"description": "Assignment Type"
|
||||
},
|
||||
{
|
||||
"source_name": "JBCODE",
|
||||
"source_type": "CHAR(8)",
|
||||
"dest_name": "jbcode",
|
||||
"dest_type": "text",
|
||||
"description": "Customer /Class"
|
||||
},
|
||||
{
|
||||
"source_name": "JBPLCD",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "jbplcd",
|
||||
"dest_type": "text",
|
||||
"description": "Price List"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "jbfdat",
|
||||
"dest_type": "date",
|
||||
"description": "Valid from"
|
||||
},
|
||||
{
|
||||
"source_name": "JBTDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "jbtdat",
|
||||
"dest_type": "date",
|
||||
"description": "Valid to"
|
||||
},
|
||||
{
|
||||
"source_name": "JBDISC",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "jbdisc",
|
||||
"dest_type": "text",
|
||||
"description": "Discount Code"
|
||||
},
|
||||
{
|
||||
"source_name": "JBDIST",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jbdist",
|
||||
"dest_type": "text",
|
||||
"description": "Discount Type"
|
||||
},
|
||||
{
|
||||
"source_name": "JBUSEG",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jbuseg",
|
||||
"dest_type": "text",
|
||||
"description": "Assignment Usage"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFLG1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jbflg1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Flag 1"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFLG2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jbflg2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Flag 2"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFLG3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jbflg3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Flag 3"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFLG4",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jbflg4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Flag 4"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFLG5",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jbflg5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Flag 5"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT1",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "jbfut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 1"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT2",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "jbfut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 2"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT3",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "jbfut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 3"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT4",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "jbfut4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 4"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT5",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "jbfut5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 5"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT6",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "jbfut6",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 6"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT7",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "jbfut7",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 7"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT8",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "jbfut8",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 8"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT9",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "jbfut9",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 9"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT10",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "jbfut10",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 10"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT11",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "jbfut11",
|
||||
"dest_type": "text",
|
||||
"description": "Last Update Date"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT12",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "jbfut12",
|
||||
"dest_type": "text",
|
||||
"description": "Update By User ID"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT13",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "jbfut13",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 13"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT14",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "jbfut14",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 14"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT15",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "jbfut15",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 15"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT16",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "jbfut16",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 16"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT17",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "jbfut17",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 17"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT18",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "jbfut18",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 18"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT19",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "jbfut19",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 19"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT20",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "jbfut20",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 20"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT21",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "jbfut21",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 21"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT22",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "jbfut22",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 22"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT23",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "jbfut23",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 23"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT24",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "jbfut24",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 24"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT25",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "jbfut25",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 25"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT26",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "jbfut26",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Future Use 26"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT27",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "jbfut27",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Future Use 27"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT28",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "jbfut28",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Future Use 28"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT29",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "jbfut29",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Future Use 29"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT30",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "jbfut30",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Future Use 30"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT31",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "jbfut31",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use 31"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT32",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "jbfut32",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use 32"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT33",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "jbfut33",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use 33"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT34",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "jbfut34",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use 34"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFUT35",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "jbfut35",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use 35"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
50
config/modules/iprcb.sql
Normal file
50
config/modules/iprcb.sql
Normal file
@ -0,0 +1,50 @@
|
||||
SELECT
|
||||
RTRIM(JBTYPE) AS jbtype,
|
||||
RTRIM(JBCODE) AS jbcode,
|
||||
RTRIM(JBPLCD) AS jbplcd,
|
||||
CASE WHEN JBFDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBFDAT END AS jbfdat,
|
||||
CASE WHEN JBTDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBTDAT END AS jbtdat,
|
||||
RTRIM(JBDISC) AS jbdisc,
|
||||
RTRIM(JBDIST) AS jbdist,
|
||||
RTRIM(JBUSEG) AS jbuseg,
|
||||
RTRIM(JBFLG1) AS jbflg1,
|
||||
RTRIM(JBFLG2) AS jbflg2,
|
||||
RTRIM(JBFLG3) AS jbflg3,
|
||||
RTRIM(JBFLG4) AS jbflg4,
|
||||
RTRIM(JBFLG5) AS jbflg5,
|
||||
RTRIM(JBFUT1) AS jbfut1,
|
||||
RTRIM(JBFUT2) AS jbfut2,
|
||||
RTRIM(JBFUT3) AS jbfut3,
|
||||
RTRIM(JBFUT4) AS jbfut4,
|
||||
RTRIM(JBFUT5) AS jbfut5,
|
||||
RTRIM(JBFUT6) AS jbfut6,
|
||||
RTRIM(JBFUT7) AS jbfut7,
|
||||
RTRIM(JBFUT8) AS jbfut8,
|
||||
RTRIM(JBFUT9) AS jbfut9,
|
||||
RTRIM(JBFUT10) AS jbfut10,
|
||||
RTRIM(JBFUT11) AS jbfut11,
|
||||
RTRIM(JBFUT12) AS jbfut12,
|
||||
RTRIM(JBFUT13) AS jbfut13,
|
||||
RTRIM(JBFUT14) AS jbfut14,
|
||||
RTRIM(JBFUT15) AS jbfut15,
|
||||
RTRIM(JBFUT16) AS jbfut16,
|
||||
RTRIM(JBFUT17) AS jbfut17,
|
||||
RTRIM(JBFUT18) AS jbfut18,
|
||||
RTRIM(JBFUT19) AS jbfut19,
|
||||
RTRIM(JBFUT20) AS jbfut20,
|
||||
RTRIM(JBFUT21) AS jbfut21,
|
||||
RTRIM(JBFUT22) AS jbfut22,
|
||||
RTRIM(JBFUT23) AS jbfut23,
|
||||
RTRIM(JBFUT24) AS jbfut24,
|
||||
RTRIM(JBFUT25) AS jbfut25,
|
||||
JBFUT26 AS jbfut26,
|
||||
JBFUT27 AS jbfut27,
|
||||
JBFUT28 AS jbfut28,
|
||||
JBFUT29 AS jbfut29,
|
||||
JBFUT30 AS jbfut30,
|
||||
JBFUT31 AS jbfut31,
|
||||
JBFUT32 AS jbfut32,
|
||||
JBFUT33 AS jbfut33,
|
||||
JBFUT34 AS jbfut34,
|
||||
JBFUT35 AS jbfut35
|
||||
FROM LGDAT.IPRCB
|
||||
64
config/modules/iprcbhc.json
Normal file
64
config/modules/iprcbhc.json
Normal file
@ -0,0 +1,64 @@
|
||||
{
|
||||
"name": "iprcbhc",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.iprcbhc",
|
||||
"staging_table": "pipekit_staging.iprcbhc",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "HC Modified Price List Assignment",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "JBPLVL",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "jbplvl",
|
||||
"dest_type": "text",
|
||||
"description": "Price Level"
|
||||
},
|
||||
{
|
||||
"source_name": "JBPLCD",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "jbplcd",
|
||||
"dest_type": "text",
|
||||
"description": "Price List"
|
||||
},
|
||||
{
|
||||
"source_name": "JBFDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "jbfdat",
|
||||
"dest_type": "date",
|
||||
"description": "Valid from"
|
||||
},
|
||||
{
|
||||
"source_name": "JBTDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "jbtdat",
|
||||
"dest_type": "date",
|
||||
"description": "Valid to"
|
||||
},
|
||||
{
|
||||
"source_name": "JBDISC",
|
||||
"source_type": "DECIMAL(6,5)",
|
||||
"dest_name": "jbdisc",
|
||||
"dest_type": "numeric(6,5)",
|
||||
"description": "Discount %"
|
||||
},
|
||||
{
|
||||
"source_name": "JBMDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "jbmdat",
|
||||
"dest_type": "date",
|
||||
"description": "Last Maintained"
|
||||
},
|
||||
{
|
||||
"source_name": "JBMUSR",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "jbmusr",
|
||||
"dest_type": "text",
|
||||
"description": "Last Maintained By"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
9
config/modules/iprcbhc.sql
Normal file
9
config/modules/iprcbhc.sql
Normal file
@ -0,0 +1,9 @@
|
||||
SELECT
|
||||
RTRIM(JBPLVL) AS jbplvl,
|
||||
RTRIM(JBPLCD) AS jbplcd,
|
||||
CASE WHEN JBFDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBFDAT END AS jbfdat,
|
||||
CASE WHEN JBTDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBTDAT END AS jbtdat,
|
||||
JBDISC AS jbdisc,
|
||||
CASE WHEN JBMDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBMDAT END AS jbmdat,
|
||||
RTRIM(JBMUSR) AS jbmusr
|
||||
FROM "CMS.CUSLG".IPRCBHC
|
||||
148
config/modules/iprcc.json
Normal file
148
config/modules/iprcc.json
Normal file
@ -0,0 +1,148 @@
|
||||
{
|
||||
"name": "iprcc",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.iprcc",
|
||||
"staging_table": "pipekit_staging.iprcc",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Price list file 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "JCPLCD",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "jcplcd",
|
||||
"dest_type": "text",
|
||||
"description": "Price List Code"
|
||||
},
|
||||
{
|
||||
"source_name": "JCPART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "jcpart",
|
||||
"dest_type": "text",
|
||||
"description": "Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "JCUNIT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "jcunit",
|
||||
"dest_type": "text",
|
||||
"description": "Pricing Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "JCVOLL",
|
||||
"source_type": "DECIMAL(12,5)",
|
||||
"dest_name": "jcvoll",
|
||||
"dest_type": "numeric(12,5)",
|
||||
"description": "Volume"
|
||||
},
|
||||
{
|
||||
"source_name": "JCPRIC",
|
||||
"source_type": "DECIMAL(12,5)",
|
||||
"dest_name": "jcpric",
|
||||
"dest_type": "numeric(12,5)",
|
||||
"description": "Price"
|
||||
},
|
||||
{
|
||||
"source_name": "JCDISC",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "jcdisc",
|
||||
"dest_type": "text",
|
||||
"description": "Discount Code"
|
||||
},
|
||||
{
|
||||
"source_name": "JCDISF",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jcdisf",
|
||||
"dest_type": "text",
|
||||
"description": "Discount Flag"
|
||||
},
|
||||
{
|
||||
"source_name": "JCCPCT",
|
||||
"source_type": "NUMERIC(4,2)",
|
||||
"dest_name": "jccpct",
|
||||
"dest_type": "numeric(4,2)",
|
||||
"description": "Commission %"
|
||||
},
|
||||
{
|
||||
"source_name": "JCCRAT",
|
||||
"source_type": "NUMERIC(5,2)",
|
||||
"dest_name": "jccrat",
|
||||
"dest_type": "numeric(5,2)",
|
||||
"description": "Commission Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "JCF0CM",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jcf0cm",
|
||||
"dest_type": "text",
|
||||
"description": "Force 0 Commission Flag"
|
||||
},
|
||||
{
|
||||
"source_name": "JCFUT1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jcfut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "JCFUT2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jcfut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "JCFUT3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "jcfut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "JCFUT4",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "jcfut4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "JCFUT5",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "jcfut5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "JCFUT6",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "jcfut6",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "JCFUT7",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "jcfut7",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "JCFUT8",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "jcfut8",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "JCFUT9",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "jcfut9",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
21
config/modules/iprcc.sql
Normal file
21
config/modules/iprcc.sql
Normal file
@ -0,0 +1,21 @@
|
||||
SELECT
|
||||
RTRIM(JCPLCD) AS jcplcd,
|
||||
RTRIM(JCPART) AS jcpart,
|
||||
RTRIM(JCUNIT) AS jcunit,
|
||||
JCVOLL AS jcvoll,
|
||||
JCPRIC AS jcpric,
|
||||
RTRIM(JCDISC) AS jcdisc,
|
||||
RTRIM(JCDISF) AS jcdisf,
|
||||
JCCPCT AS jccpct,
|
||||
JCCRAT AS jccrat,
|
||||
RTRIM(JCF0CM) AS jcf0cm,
|
||||
RTRIM(JCFUT1) AS jcfut1,
|
||||
RTRIM(JCFUT2) AS jcfut2,
|
||||
RTRIM(JCFUT3) AS jcfut3,
|
||||
RTRIM(JCFUT4) AS jcfut4,
|
||||
RTRIM(JCFUT5) AS jcfut5,
|
||||
RTRIM(JCFUT6) AS jcfut6,
|
||||
RTRIM(JCFUT7) AS jcfut7,
|
||||
RTRIM(JCFUT8) AS jcfut8,
|
||||
RTRIM(JCFUT9) AS jcfut9
|
||||
FROM LGDAT.IPRCC
|
||||
71
config/modules/iprcct.json
Normal file
71
config/modules/iprcct.json
Normal file
@ -0,0 +1,71 @@
|
||||
{
|
||||
"name": "iprcct",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.iprcct",
|
||||
"staging_table": "pipekit_staging.iprcct",
|
||||
"merge_strategy": "incremental",
|
||||
"merge_key": "tadate",
|
||||
"enabled": 1,
|
||||
"dest_description": "Price List Trans Log Headers 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "TAPLCD",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "taplcd",
|
||||
"dest_type": "text",
|
||||
"description": "Price List Code"
|
||||
},
|
||||
{
|
||||
"source_name": "TAPART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "tapart",
|
||||
"dest_type": "text",
|
||||
"description": "Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "TAUNIT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "taunit",
|
||||
"dest_type": "text",
|
||||
"description": "Pricing Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "TADATE",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "tadate",
|
||||
"dest_type": "date",
|
||||
"description": "Transaction Date"
|
||||
},
|
||||
{
|
||||
"source_name": "TATIME",
|
||||
"source_type": "TIME",
|
||||
"dest_name": "tatime",
|
||||
"dest_type": "time without time zone",
|
||||
"description": "Transaction Time"
|
||||
},
|
||||
{
|
||||
"source_name": "TAUSER",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "tauser",
|
||||
"dest_type": "text",
|
||||
"description": "User ID"
|
||||
},
|
||||
{
|
||||
"source_name": "TAPROG",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "taprog",
|
||||
"dest_type": "text",
|
||||
"description": "Program Number"
|
||||
}
|
||||
],
|
||||
"watermarks": [
|
||||
{
|
||||
"name": "iprcct_wm",
|
||||
"connection": "usmidsap02",
|
||||
"resolver_sql": "SELECT COALESCE(MAX(tadate), DATE '2000-01-01') - 7 FROM cms.iprcct WHERE tadate <= current_date",
|
||||
"default_value": null
|
||||
}
|
||||
],
|
||||
"hooks": []
|
||||
}
|
||||
10
config/modules/iprcct.sql
Normal file
10
config/modules/iprcct.sql
Normal file
@ -0,0 +1,10 @@
|
||||
SELECT
|
||||
RTRIM(TAPLCD) AS taplcd,
|
||||
RTRIM(TAPART) AS tapart,
|
||||
RTRIM(TAUNIT) AS taunit,
|
||||
CASE WHEN TADATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE TADATE END AS tadate,
|
||||
TATIME AS tatime,
|
||||
RTRIM(TAUSER) AS tauser,
|
||||
RTRIM(TAPROG) AS taprog
|
||||
FROM LGDAT.IPRCCT
|
||||
WHERE TADATE BETWEEN '{iprcct_wm}' AND DATE('9998-12-31')
|
||||
169
config/modules/iprcctn.json
Normal file
169
config/modules/iprcctn.json
Normal file
@ -0,0 +1,169 @@
|
||||
{
|
||||
"name": "iprcctn",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.iprcctn",
|
||||
"staging_table": "pipekit_staging.iprcctn",
|
||||
"merge_strategy": "incremental",
|
||||
"merge_key": "t8date",
|
||||
"enabled": 1,
|
||||
"dest_description": "Price List Trans New Price Detail 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "T8PLCD",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "t8plcd",
|
||||
"dest_type": "text",
|
||||
"description": "Price List Code"
|
||||
},
|
||||
{
|
||||
"source_name": "T8PART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "t8part",
|
||||
"dest_type": "text",
|
||||
"description": "Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "T8UNIT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "t8unit",
|
||||
"dest_type": "text",
|
||||
"description": "Pricing Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "T8DATE",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "t8date",
|
||||
"dest_type": "date",
|
||||
"description": "Transaction Date"
|
||||
},
|
||||
{
|
||||
"source_name": "T8TIME",
|
||||
"source_type": "TIME",
|
||||
"dest_name": "t8time",
|
||||
"dest_type": "time",
|
||||
"description": "Transaction Time"
|
||||
},
|
||||
{
|
||||
"source_name": "T8VOLL",
|
||||
"source_type": "DECIMAL(12,5)",
|
||||
"dest_name": "t8voll",
|
||||
"dest_type": "numeric(12,5)",
|
||||
"description": "New Volume"
|
||||
},
|
||||
{
|
||||
"source_name": "T8PRIC",
|
||||
"source_type": "DECIMAL(12,5)",
|
||||
"dest_name": "t8pric",
|
||||
"dest_type": "numeric(12,5)",
|
||||
"description": "New Price"
|
||||
},
|
||||
{
|
||||
"source_name": "T8DISC",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "t8disc",
|
||||
"dest_type": "text",
|
||||
"description": "New Discount Code"
|
||||
},
|
||||
{
|
||||
"source_name": "T8DISF",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "t8disf",
|
||||
"dest_type": "text",
|
||||
"description": "New Discount Flag"
|
||||
},
|
||||
{
|
||||
"source_name": "T8CPCT",
|
||||
"source_type": "NUMERIC(4,2)",
|
||||
"dest_name": "t8cpct",
|
||||
"dest_type": "numeric(4,2)",
|
||||
"description": "New Commission %"
|
||||
},
|
||||
{
|
||||
"source_name": "T8CRAT",
|
||||
"source_type": "NUMERIC(5,2)",
|
||||
"dest_name": "t8crat",
|
||||
"dest_type": "numeric(5,2)",
|
||||
"description": "New Comm. Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "T8F0CM",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "t8f0cm",
|
||||
"dest_type": "text",
|
||||
"description": "New Force 0 Commission Flag"
|
||||
},
|
||||
{
|
||||
"source_name": "T8FUT1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "t8fut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "T8FUT2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "t8fut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "T8FUT3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "t8fut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "T8FUT4",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "t8fut4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "T8FUT5",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "t8fut5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "T8FUT6",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "t8fut6",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "T8FUT7",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "t8fut7",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "T8FUT8",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "t8fut8",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "T8FUT9",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "t8fut9",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
}
|
||||
],
|
||||
"watermarks": [
|
||||
{
|
||||
"name": "iprcctn_wm",
|
||||
"connection": "usmidsap02",
|
||||
"resolver_sql": "SELECT COALESCE(MAX(t8date), DATE '2000-01-01') - 7 FROM cms.iprcctn WHERE t8date <= current_date",
|
||||
"default_value": null
|
||||
}
|
||||
],
|
||||
"hooks": []
|
||||
}
|
||||
24
config/modules/iprcctn.sql
Normal file
24
config/modules/iprcctn.sql
Normal file
@ -0,0 +1,24 @@
|
||||
SELECT
|
||||
RTRIM(T8PLCD) AS t8plcd,
|
||||
RTRIM(T8PART) AS t8part,
|
||||
RTRIM(T8UNIT) AS t8unit,
|
||||
CASE WHEN T8DATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE T8DATE END AS t8date,
|
||||
T8TIME AS t8time,
|
||||
T8VOLL AS t8voll,
|
||||
T8PRIC AS t8pric,
|
||||
RTRIM(T8DISC) AS t8disc,
|
||||
RTRIM(T8DISF) AS t8disf,
|
||||
T8CPCT AS t8cpct,
|
||||
T8CRAT AS t8crat,
|
||||
RTRIM(T8F0CM) AS t8f0cm,
|
||||
RTRIM(T8FUT1) AS t8fut1,
|
||||
RTRIM(T8FUT2) AS t8fut2,
|
||||
RTRIM(T8FUT3) AS t8fut3,
|
||||
RTRIM(T8FUT4) AS t8fut4,
|
||||
RTRIM(T8FUT5) AS t8fut5,
|
||||
RTRIM(T8FUT6) AS t8fut6,
|
||||
RTRIM(T8FUT7) AS t8fut7,
|
||||
RTRIM(T8FUT8) AS t8fut8,
|
||||
RTRIM(T8FUT9) AS t8fut9
|
||||
FROM LGDAT.IPRCCTN
|
||||
WHERE T8DATE BETWEEN '{iprcctn_wm}' AND DATE('9998-12-31')
|
||||
169
config/modules/iprccto.json
Normal file
169
config/modules/iprccto.json
Normal file
@ -0,0 +1,169 @@
|
||||
{
|
||||
"name": "iprccto",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.iprccto",
|
||||
"staging_table": "pipekit_staging.iprccto",
|
||||
"merge_strategy": "incremental",
|
||||
"merge_key": "t7date",
|
||||
"enabled": 1,
|
||||
"dest_description": "Price List Old Price Details 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "T7PLCD",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "t7plcd",
|
||||
"dest_type": "text",
|
||||
"description": "Price List Code"
|
||||
},
|
||||
{
|
||||
"source_name": "T7PART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "t7part",
|
||||
"dest_type": "text",
|
||||
"description": "Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "T7UNIT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "t7unit",
|
||||
"dest_type": "text",
|
||||
"description": "Pricing Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "T7DATE",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "t7date",
|
||||
"dest_type": "date",
|
||||
"description": "Transaction Date"
|
||||
},
|
||||
{
|
||||
"source_name": "T7TIME",
|
||||
"source_type": "TIME",
|
||||
"dest_name": "t7time",
|
||||
"dest_type": "time",
|
||||
"description": "Transaction Time"
|
||||
},
|
||||
{
|
||||
"source_name": "T7VOLL",
|
||||
"source_type": "DECIMAL(12,5)",
|
||||
"dest_name": "t7voll",
|
||||
"dest_type": "numeric(12,5)",
|
||||
"description": "Old Volume"
|
||||
},
|
||||
{
|
||||
"source_name": "T7PRIC",
|
||||
"source_type": "DECIMAL(12,5)",
|
||||
"dest_name": "t7pric",
|
||||
"dest_type": "numeric(12,5)",
|
||||
"description": "Old Price"
|
||||
},
|
||||
{
|
||||
"source_name": "T7DISC",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "t7disc",
|
||||
"dest_type": "text",
|
||||
"description": "Old Discount Code"
|
||||
},
|
||||
{
|
||||
"source_name": "T7DISF",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "t7disf",
|
||||
"dest_type": "text",
|
||||
"description": "Old Discount Flag"
|
||||
},
|
||||
{
|
||||
"source_name": "T7CPCT",
|
||||
"source_type": "NUMERIC(4,2)",
|
||||
"dest_name": "t7cpct",
|
||||
"dest_type": "numeric(4,2)",
|
||||
"description": "Old Commission %"
|
||||
},
|
||||
{
|
||||
"source_name": "T7CRAT",
|
||||
"source_type": "NUMERIC(5,2)",
|
||||
"dest_name": "t7crat",
|
||||
"dest_type": "numeric(5,2)",
|
||||
"description": "Old Comm. Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "T7F0CM",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "t7f0cm",
|
||||
"dest_type": "text",
|
||||
"description": "Old Force 0 Commission Flag"
|
||||
},
|
||||
{
|
||||
"source_name": "T7FUT1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "t7fut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "T7FUT2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "t7fut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "T7FUT3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "t7fut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "T7FUT4",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "t7fut4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "T7FUT5",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "t7fut5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "T7FUT6",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "t7fut6",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "T7FUT7",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "t7fut7",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "T7FUT8",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "t7fut8",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
},
|
||||
{
|
||||
"source_name": "T7FUT9",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "t7fut9",
|
||||
"dest_type": "text",
|
||||
"description": "Future Field"
|
||||
}
|
||||
],
|
||||
"watermarks": [
|
||||
{
|
||||
"name": "iprccto_wm",
|
||||
"connection": "usmidsap02",
|
||||
"resolver_sql": "SELECT COALESCE(MAX(t7date), DATE '2000-01-01') - 7 FROM cms.iprccto WHERE t7date <= current_date",
|
||||
"default_value": null
|
||||
}
|
||||
],
|
||||
"hooks": []
|
||||
}
|
||||
24
config/modules/iprccto.sql
Normal file
24
config/modules/iprccto.sql
Normal file
@ -0,0 +1,24 @@
|
||||
SELECT
|
||||
RTRIM(T7PLCD) AS t7plcd,
|
||||
RTRIM(T7PART) AS t7part,
|
||||
RTRIM(T7UNIT) AS t7unit,
|
||||
CASE WHEN T7DATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE T7DATE END AS t7date,
|
||||
T7TIME AS t7time,
|
||||
T7VOLL AS t7voll,
|
||||
T7PRIC AS t7pric,
|
||||
RTRIM(T7DISC) AS t7disc,
|
||||
RTRIM(T7DISF) AS t7disf,
|
||||
T7CPCT AS t7cpct,
|
||||
T7CRAT AS t7crat,
|
||||
RTRIM(T7F0CM) AS t7f0cm,
|
||||
RTRIM(T7FUT1) AS t7fut1,
|
||||
RTRIM(T7FUT2) AS t7fut2,
|
||||
RTRIM(T7FUT3) AS t7fut3,
|
||||
RTRIM(T7FUT4) AS t7fut4,
|
||||
RTRIM(T7FUT5) AS t7fut5,
|
||||
RTRIM(T7FUT6) AS t7fut6,
|
||||
RTRIM(T7FUT7) AS t7fut7,
|
||||
RTRIM(T7FUT8) AS t7fut8,
|
||||
RTRIM(T7FUT9) AS t7fut9
|
||||
FROM LGDAT.IPRCCTO
|
||||
WHERE T7DATE BETWEEN '{iprccto_wm}' AND DATE('9998-12-31')
|
||||
43
config/modules/irea.json
Normal file
43
config/modules/irea.json
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"name": "irea",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.irea",
|
||||
"staging_table": "pipekit_staging.irea",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Inactive Reason Master File",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "WETYPE",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "wetype",
|
||||
"dest_type": "numeric(3,0)",
|
||||
"description": "File Type"
|
||||
},
|
||||
{
|
||||
"source_name": "WEREAS",
|
||||
"source_type": "CHAR(2)",
|
||||
"dest_name": "wereas",
|
||||
"dest_type": "text",
|
||||
"description": "Reason Code"
|
||||
},
|
||||
{
|
||||
"source_name": "WEDESC",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "wedesc",
|
||||
"dest_type": "text",
|
||||
"description": "Reason Description"
|
||||
},
|
||||
{
|
||||
"source_name": "WEFLAG",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "weflag",
|
||||
"dest_type": "text",
|
||||
"description": "Default Control"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
6
config/modules/irea.sql
Normal file
6
config/modules/irea.sql
Normal file
@ -0,0 +1,6 @@
|
||||
SELECT
|
||||
WETYPE AS wetype,
|
||||
RTRIM(WEREAS) AS wereas,
|
||||
RTRIM(WEDESC) AS wedesc,
|
||||
RTRIM(WEFLAG) AS weflag
|
||||
FROM LGDAT.IREA
|
||||
36
config/modules/macgrp.json
Normal file
36
config/modules/macgrp.json
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
"name": "macgrp",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.macgrp",
|
||||
"staging_table": "pipekit_staging.macgrp",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Machine Group File",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "ADMACG",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "admacg",
|
||||
"dest_type": "text",
|
||||
"description": "Machine Group"
|
||||
},
|
||||
{
|
||||
"source_name": "ADMDES",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "admdes",
|
||||
"dest_type": "text",
|
||||
"description": "Description"
|
||||
},
|
||||
{
|
||||
"source_name": "ADBK01",
|
||||
"source_type": "CHAR(31)",
|
||||
"dest_name": "adbk01",
|
||||
"dest_type": "text",
|
||||
"description": "ADBK01"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
5
config/modules/macgrp.sql
Normal file
5
config/modules/macgrp.sql
Normal file
@ -0,0 +1,5 @@
|
||||
SELECT
|
||||
RTRIM(ADMACG) AS admacg,
|
||||
RTRIM(ADMDES) AS admdes,
|
||||
RTRIM(ADBK01) AS adbk01
|
||||
FROM LGDAT.MACGRP
|
||||
29
config/modules/majg.json
Normal file
29
config/modules/majg.json
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "majg",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.majg",
|
||||
"staging_table": "pipekit_staging.majg",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Major Group Codes 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "BQGRP",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "bqgrp",
|
||||
"dest_type": "text",
|
||||
"description": "Major Group Code"
|
||||
},
|
||||
{
|
||||
"source_name": "BQDES",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "bqdes",
|
||||
"dest_type": "text",
|
||||
"description": "Description"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
4
config/modules/majg.sql
Normal file
4
config/modules/majg.sql
Normal file
@ -0,0 +1,4 @@
|
||||
SELECT
|
||||
RTRIM(BQGRP) AS bqgrp,
|
||||
RTRIM(BQDES) AS bqdes
|
||||
FROM LGDAT.MAJG
|
||||
71
config/modules/mc00200.json
Normal file
71
config/modules/mc00200.json
Normal file
@ -0,0 +1,71 @@
|
||||
{
|
||||
"name": "mc00200",
|
||||
"source_connection": "sqlserver",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "gp.mc00200",
|
||||
"staging_table": "pipekit_staging.mc00200",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": null,
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "ACTINDX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "actindx",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CURNCYID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "curncyid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "REVALUE",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "revalue",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "REVLUHOW",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "revluhow",
|
||||
"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": "CurrencyTranslationType",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "currencytranslationtype",
|
||||
"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": []
|
||||
}
|
||||
10
config/modules/mc00200.sql
Normal file
10
config/modules/mc00200.sql
Normal file
@ -0,0 +1,10 @@
|
||||
SELECT
|
||||
[ACTINDX] AS [actindx],
|
||||
RTRIM([CURNCYID]) AS [curncyid],
|
||||
[REVALUE] AS [revalue],
|
||||
[REVLUHOW] AS [revluhow],
|
||||
[Post_Results_To] AS [post_results_to],
|
||||
[CurrencyTranslationType] AS [currencytranslationtype],
|
||||
[DEX_ROW_TS] AS [dex_row_ts],
|
||||
[DEX_ROW_ID] AS [dex_row_id]
|
||||
FROM [GPSERVER].[CHG].[dbo].[MC00200]
|
||||
386
config/modules/methdm.json
Normal file
386
config/modules/methdm.json
Normal file
@ -0,0 +1,386 @@
|
||||
{
|
||||
"name": "methdm",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.methdm",
|
||||
"staging_table": "pipekit_staging.methdm",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Method Detail - Material (M-Record) 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "AQTYPE",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aqtype",
|
||||
"dest_type": "text",
|
||||
"description": "Record Type"
|
||||
},
|
||||
{
|
||||
"source_name": "AQPART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "aqpart",
|
||||
"dest_type": "text",
|
||||
"description": "Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "AQSEQ#",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "aqseq#",
|
||||
"dest_type": "numeric(3,0)",
|
||||
"description": "Sequence Number"
|
||||
},
|
||||
{
|
||||
"source_name": "AQLIN#",
|
||||
"source_type": "NUMERIC(4,0)",
|
||||
"dest_name": "aqlin#",
|
||||
"dest_type": "numeric(4,0)",
|
||||
"description": "Line #"
|
||||
},
|
||||
{
|
||||
"source_name": "AQMTLP",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "aqmtlp",
|
||||
"dest_type": "text",
|
||||
"description": "Material Part #"
|
||||
},
|
||||
{
|
||||
"source_name": "AQMTLD",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "aqmtld",
|
||||
"dest_type": "text",
|
||||
"description": "Material Description"
|
||||
},
|
||||
{
|
||||
"source_name": "AQQPPC",
|
||||
"source_type": "NUMERIC(10,5)",
|
||||
"dest_name": "aqqppc",
|
||||
"dest_type": "numeric(10,5)",
|
||||
"description": "Quantity per AQQTYM fld"
|
||||
},
|
||||
{
|
||||
"source_name": "AQUNIT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "aqunit",
|
||||
"dest_type": "text",
|
||||
"description": "Unit of Measure"
|
||||
},
|
||||
{
|
||||
"source_name": "AQSQTY",
|
||||
"source_type": "NUMERIC(8,4)",
|
||||
"dest_name": "aqsqty",
|
||||
"dest_type": "numeric(8,4)",
|
||||
"description": "Spare Parts Quantity"
|
||||
},
|
||||
{
|
||||
"source_name": "AQQTYM",
|
||||
"source_type": "NUMERIC(6,2)",
|
||||
"dest_name": "aqqtym",
|
||||
"dest_type": "numeric(6,2)",
|
||||
"description": "Quantity Multiplier"
|
||||
},
|
||||
{
|
||||
"source_name": "AQBLWT",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aqblwt",
|
||||
"dest_type": "text",
|
||||
"description": "Blow Through Part"
|
||||
},
|
||||
{
|
||||
"source_name": "AQBK01",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "aqbk01",
|
||||
"dest_type": "text",
|
||||
"description": "AQBK01"
|
||||
},
|
||||
{
|
||||
"source_name": "AQSTYP",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aqstyp",
|
||||
"dest_type": "text",
|
||||
"description": "Stock Type"
|
||||
},
|
||||
{
|
||||
"source_name": "AQLEAD",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "aqlead",
|
||||
"dest_type": "numeric(3,0)",
|
||||
"description": "Lead Time"
|
||||
},
|
||||
{
|
||||
"source_name": "AQMAJG",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "aqmajg",
|
||||
"dest_type": "text",
|
||||
"description": "Major Group Code"
|
||||
},
|
||||
{
|
||||
"source_name": "AQITM",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "aqitm",
|
||||
"dest_type": "numeric(3,0)",
|
||||
"description": "Item Number"
|
||||
},
|
||||
{
|
||||
"source_name": "AQITMX",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aqitmx",
|
||||
"dest_type": "text",
|
||||
"description": "Item Number Extension"
|
||||
},
|
||||
{
|
||||
"source_name": "AQBK02",
|
||||
"source_type": "CHAR(14)",
|
||||
"dest_name": "aqbk02",
|
||||
"dest_type": "text",
|
||||
"description": "AQBK02"
|
||||
},
|
||||
{
|
||||
"source_name": "AQALLC",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aqallc",
|
||||
"dest_type": "text",
|
||||
"description": "Allocation"
|
||||
},
|
||||
{
|
||||
"source_name": "AQBACK",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aqback",
|
||||
"dest_type": "text",
|
||||
"description": "Back Flush"
|
||||
},
|
||||
{
|
||||
"source_name": "AQSCRP",
|
||||
"source_type": "NUMERIC(3,1)",
|
||||
"dest_name": "aqscrp",
|
||||
"dest_type": "numeric(3,1)",
|
||||
"description": "Scrap %"
|
||||
},
|
||||
{
|
||||
"source_name": "AQRQBY",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aqrqby",
|
||||
"dest_type": "text",
|
||||
"description": "Requirement By-product"
|
||||
},
|
||||
{
|
||||
"source_name": "AQSTKL",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "aqstkl",
|
||||
"dest_type": "text",
|
||||
"description": "Stock Location"
|
||||
},
|
||||
{
|
||||
"source_name": "AQBK03",
|
||||
"source_type": "CHAR(9)",
|
||||
"dest_name": "aqbk03",
|
||||
"dest_type": "text",
|
||||
"description": "AQBK03"
|
||||
},
|
||||
{
|
||||
"source_name": "AQDRAW",
|
||||
"source_type": "CHAR(9)",
|
||||
"dest_name": "aqdraw",
|
||||
"dest_type": "text",
|
||||
"description": "Drawing Number"
|
||||
},
|
||||
{
|
||||
"source_name": "AQDFLC",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aqdflc",
|
||||
"dest_type": "text",
|
||||
"description": "Draw From Loc As Defined"
|
||||
},
|
||||
{
|
||||
"source_name": "AQFUT1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aqfut1",
|
||||
"dest_type": "text",
|
||||
"description": "Support Sub- Aassembly Dual Reporting"
|
||||
},
|
||||
{
|
||||
"source_name": "AQFUT2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aqfut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AQFUT3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aqfut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AQFUT4",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aqfut4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AQFUT5",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aqfut5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AQFUT6",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "aqfut6",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AQFUT7",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "aqfut7",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AQFUT8",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "aqfut8",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AQFUT9",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "aqfut9",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AQFUTA",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "aqfuta",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AQFUTB",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "aqfutb",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AQFUTC",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "aqfutc",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AQFUTD",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "aqfutd",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AQFUTE",
|
||||
"source_type": "NUMERIC(9,0)",
|
||||
"dest_name": "aqfute",
|
||||
"dest_type": "numeric(9,0)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "AQDEPT",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "aqdept",
|
||||
"dest_type": "text",
|
||||
"description": "Production Department Code"
|
||||
},
|
||||
{
|
||||
"source_name": "AQRESC",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "aqresc",
|
||||
"dest_type": "text",
|
||||
"description": "Resource Code"
|
||||
},
|
||||
{
|
||||
"source_name": "AQPLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "aqplnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
},
|
||||
{
|
||||
"source_name": "AQMJCM",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aqmjcm",
|
||||
"dest_type": "text",
|
||||
"description": "Major Component"
|
||||
},
|
||||
{
|
||||
"source_name": "AQECND",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "aqecnd",
|
||||
"dest_type": "numeric(3,0)",
|
||||
"description": "last applied ECN dtl#"
|
||||
},
|
||||
{
|
||||
"source_name": "AQECNL",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "aqecnl",
|
||||
"dest_type": "numeric(3,0)",
|
||||
"description": "last applied ECN line#"
|
||||
},
|
||||
{
|
||||
"source_name": "AQLDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "aqldat",
|
||||
"dest_type": "date",
|
||||
"description": "last applied ECN date"
|
||||
},
|
||||
{
|
||||
"source_name": "AQLECN",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "aqlecn",
|
||||
"dest_type": "text",
|
||||
"description": "last applied ECN#"
|
||||
},
|
||||
{
|
||||
"source_name": "AQLEDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "aqledat",
|
||||
"dest_type": "date",
|
||||
"description": "ECN Effective Date"
|
||||
},
|
||||
{
|
||||
"source_name": "AQLETME",
|
||||
"source_type": "NUMERIC(6,0)",
|
||||
"dest_name": "aqletme",
|
||||
"dest_type": "numeric(6,0)",
|
||||
"description": "last applied ECN time"
|
||||
},
|
||||
{
|
||||
"source_name": "AQFUSG",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aqfusg",
|
||||
"dest_type": "text",
|
||||
"description": "Fix Usage Flag"
|
||||
},
|
||||
{
|
||||
"source_name": "AQWUCM",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aqwucm",
|
||||
"dest_type": "text",
|
||||
"description": "Whole Unit Consumption Flag"
|
||||
},
|
||||
{
|
||||
"source_name": "AQRDCF",
|
||||
"source_type": "NUMERIC(5,5)",
|
||||
"dest_name": "aqrdcf",
|
||||
"dest_type": "numeric(5,5)",
|
||||
"description": "Rounding Cutoff Decimal Value"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
55
config/modules/methdm.sql
Normal file
55
config/modules/methdm.sql
Normal file
@ -0,0 +1,55 @@
|
||||
SELECT
|
||||
RTRIM(AQTYPE) AS aqtype,
|
||||
RTRIM(AQPART) AS aqpart,
|
||||
"AQSEQ#" AS "aqseq#",
|
||||
"AQLIN#" AS "aqlin#",
|
||||
RTRIM(AQMTLP) AS aqmtlp,
|
||||
RTRIM(AQMTLD) AS aqmtld,
|
||||
AQQPPC AS aqqppc,
|
||||
RTRIM(AQUNIT) AS aqunit,
|
||||
AQSQTY AS aqsqty,
|
||||
AQQTYM AS aqqtym,
|
||||
RTRIM(AQBLWT) AS aqblwt,
|
||||
RTRIM(AQBK01) AS aqbk01,
|
||||
RTRIM(AQSTYP) AS aqstyp,
|
||||
AQLEAD AS aqlead,
|
||||
RTRIM(AQMAJG) AS aqmajg,
|
||||
AQITM AS aqitm,
|
||||
RTRIM(AQITMX) AS aqitmx,
|
||||
RTRIM(AQBK02) AS aqbk02,
|
||||
RTRIM(AQALLC) AS aqallc,
|
||||
RTRIM(AQBACK) AS aqback,
|
||||
AQSCRP AS aqscrp,
|
||||
RTRIM(AQRQBY) AS aqrqby,
|
||||
RTRIM(AQSTKL) AS aqstkl,
|
||||
RTRIM(AQBK03) AS aqbk03,
|
||||
RTRIM(AQDRAW) AS aqdraw,
|
||||
RTRIM(AQDFLC) AS aqdflc,
|
||||
RTRIM(AQFUT1) AS aqfut1,
|
||||
RTRIM(AQFUT2) AS aqfut2,
|
||||
RTRIM(AQFUT3) AS aqfut3,
|
||||
RTRIM(AQFUT4) AS aqfut4,
|
||||
RTRIM(AQFUT5) AS aqfut5,
|
||||
RTRIM(AQFUT6) AS aqfut6,
|
||||
RTRIM(AQFUT7) AS aqfut7,
|
||||
RTRIM(AQFUT8) AS aqfut8,
|
||||
RTRIM(AQFUT9) AS aqfut9,
|
||||
RTRIM(AQFUTA) AS aqfuta,
|
||||
AQFUTB AS aqfutb,
|
||||
AQFUTC AS aqfutc,
|
||||
AQFUTD AS aqfutd,
|
||||
AQFUTE AS aqfute,
|
||||
RTRIM(AQDEPT) AS aqdept,
|
||||
RTRIM(AQRESC) AS aqresc,
|
||||
RTRIM(AQPLNT) AS aqplnt,
|
||||
RTRIM(AQMJCM) AS aqmjcm,
|
||||
AQECND AS aqecnd,
|
||||
AQECNL AS aqecnl,
|
||||
CASE WHEN AQLDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AQLDAT END AS aqldat,
|
||||
RTRIM(AQLECN) AS aqlecn,
|
||||
CASE WHEN AQLEDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AQLEDAT END AS aqledat,
|
||||
AQLETME AS aqletme,
|
||||
RTRIM(AQFUSG) AS aqfusg,
|
||||
RTRIM(AQWUCM) AS aqwucm,
|
||||
AQRDCF AS aqrdcf
|
||||
FROM LGDAT.METHDM
|
||||
218
config/modules/methdo.json
Normal file
218
config/modules/methdo.json
Normal file
@ -0,0 +1,218 @@
|
||||
{
|
||||
"name": "methdo",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.methdo",
|
||||
"staging_table": "pipekit_staging.methdo",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Method Detail-Outside Service (O-Record)6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "APTYPE",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aptype",
|
||||
"dest_type": "text",
|
||||
"description": "Record Type"
|
||||
},
|
||||
{
|
||||
"source_name": "APPART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "appart",
|
||||
"dest_type": "text",
|
||||
"description": "Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "APSEQ#",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "apseq#",
|
||||
"dest_type": "numeric(3,0)",
|
||||
"description": "Sequence Number"
|
||||
},
|
||||
{
|
||||
"source_name": "APLIN#",
|
||||
"source_type": "NUMERIC(2,0)",
|
||||
"dest_name": "aplin#",
|
||||
"dest_type": "numeric(2,0)",
|
||||
"description": "Line #"
|
||||
},
|
||||
{
|
||||
"source_name": "APVEND",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "apvend",
|
||||
"dest_type": "text",
|
||||
"description": "Vendor Code"
|
||||
},
|
||||
{
|
||||
"source_name": "APODES",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "apodes",
|
||||
"dest_type": "text",
|
||||
"description": "O/S Description"
|
||||
},
|
||||
{
|
||||
"source_name": "APBQTY",
|
||||
"source_type": "NUMERIC(8,0)",
|
||||
"dest_name": "apbqty",
|
||||
"dest_type": "numeric(8,0)",
|
||||
"description": "Quantity Based On"
|
||||
},
|
||||
{
|
||||
"source_name": "APTIME",
|
||||
"source_type": "NUMERIC(5,2)",
|
||||
"dest_name": "aptime",
|
||||
"dest_type": "numeric(5,2)",
|
||||
"description": "Estimated Time"
|
||||
},
|
||||
{
|
||||
"source_name": "APCOST",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "apcost",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Total Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "APFCSI",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "apfcsi",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Freight In Cost/Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "APFCSO",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "apfcso",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Freight Out Cost/Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "APUNCS",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "apuncs",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "O/S Unit Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "APDEPT",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "apdept",
|
||||
"dest_type": "text",
|
||||
"description": "Production Department Code"
|
||||
},
|
||||
{
|
||||
"source_name": "APRESC",
|
||||
"source_type": "CHAR(2)",
|
||||
"dest_name": "apresc",
|
||||
"dest_type": "text",
|
||||
"description": "Resource"
|
||||
},
|
||||
{
|
||||
"source_name": "APFUT1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "apfut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "APFUT2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "apfut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "APFUT3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "apfut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "APFUT4",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "apfut4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "APFUT5",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "apfut5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "APFUT6",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "apfut6",
|
||||
"dest_type": "text",
|
||||
"description": "Pricing Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "APFUT7",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "apfut7",
|
||||
"dest_type": "text",
|
||||
"description": "Order Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "APFUT8",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "apfut8",
|
||||
"dest_type": "text",
|
||||
"description": "O/S Currency Code"
|
||||
},
|
||||
{
|
||||
"source_name": "APFUT9",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "apfut9",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "APFUTA",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "apfuta",
|
||||
"dest_type": "text",
|
||||
"description": "Exchange Rate on OS Cost"
|
||||
},
|
||||
{
|
||||
"source_name": "APFUTB",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "apfutb",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "APFUTC",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "apfutc",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "APFUTD",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "apfutd",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "APFUTE",
|
||||
"source_type": "NUMERIC(9,0)",
|
||||
"dest_name": "apfute",
|
||||
"dest_type": "numeric(9,0)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "APPLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "applnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
31
config/modules/methdo.sql
Normal file
31
config/modules/methdo.sql
Normal file
@ -0,0 +1,31 @@
|
||||
SELECT
|
||||
RTRIM(APTYPE) AS aptype,
|
||||
RTRIM(APPART) AS appart,
|
||||
"APSEQ#" AS "apseq#",
|
||||
"APLIN#" AS "aplin#",
|
||||
RTRIM(APVEND) AS apvend,
|
||||
RTRIM(APODES) AS apodes,
|
||||
APBQTY AS apbqty,
|
||||
APTIME AS aptime,
|
||||
APCOST AS apcost,
|
||||
APFCSI AS apfcsi,
|
||||
APFCSO AS apfcso,
|
||||
APUNCS AS apuncs,
|
||||
RTRIM(APDEPT) AS apdept,
|
||||
RTRIM(APRESC) AS apresc,
|
||||
RTRIM(APFUT1) AS apfut1,
|
||||
RTRIM(APFUT2) AS apfut2,
|
||||
RTRIM(APFUT3) AS apfut3,
|
||||
RTRIM(APFUT4) AS apfut4,
|
||||
RTRIM(APFUT5) AS apfut5,
|
||||
RTRIM(APFUT6) AS apfut6,
|
||||
RTRIM(APFUT7) AS apfut7,
|
||||
RTRIM(APFUT8) AS apfut8,
|
||||
RTRIM(APFUT9) AS apfut9,
|
||||
RTRIM(APFUTA) AS apfuta,
|
||||
APFUTB AS apfutb,
|
||||
APFUTC AS apfutc,
|
||||
APFUTD AS apfutd,
|
||||
APFUTE AS apfute,
|
||||
RTRIM(APPLNT) AS applnt
|
||||
FROM LGDAT.METHDO
|
||||
323
config/modules/methdr.json
Normal file
323
config/modules/methdr.json
Normal file
@ -0,0 +1,323 @@
|
||||
{
|
||||
"name": "methdr",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.methdr",
|
||||
"staging_table": "pipekit_staging.methdr",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Method Detail - Routings (R-Record) 6.1",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "AOTYPE",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aotype",
|
||||
"dest_type": "text",
|
||||
"description": "Record Type"
|
||||
},
|
||||
{
|
||||
"source_name": "AOPART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "aopart",
|
||||
"dest_type": "text",
|
||||
"description": "Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "AOSEQ#",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "aoseq#",
|
||||
"dest_type": "numeric(3,0)",
|
||||
"description": "Sequence Number"
|
||||
},
|
||||
{
|
||||
"source_name": "AOLIN#",
|
||||
"source_type": "NUMERIC(2,0)",
|
||||
"dest_name": "aolin#",
|
||||
"dest_type": "numeric(2,0)",
|
||||
"description": "Line #"
|
||||
},
|
||||
{
|
||||
"source_name": "AODEPT",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "aodept",
|
||||
"dest_type": "text",
|
||||
"description": "Production Department Code"
|
||||
},
|
||||
{
|
||||
"source_name": "AORESC",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "aoresc",
|
||||
"dest_type": "text",
|
||||
"description": "Resource Code"
|
||||
},
|
||||
{
|
||||
"source_name": "AOOPNM",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "aoopnm",
|
||||
"dest_type": "text",
|
||||
"description": "Operation Code"
|
||||
},
|
||||
{
|
||||
"source_name": "AOSETP",
|
||||
"source_type": "NUMERIC(8,2)",
|
||||
"dest_name": "aosetp",
|
||||
"dest_type": "numeric(8,2)",
|
||||
"description": "Setup Standard"
|
||||
},
|
||||
{
|
||||
"source_name": "AORUNS",
|
||||
"source_type": "NUMERIC(10,4)",
|
||||
"dest_name": "aoruns",
|
||||
"dest_type": "numeric(10,4)",
|
||||
"description": "Schedule Run Standard"
|
||||
},
|
||||
{
|
||||
"source_name": "AORTYP",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aortyp",
|
||||
"dest_type": "text",
|
||||
"description": "Run Type"
|
||||
},
|
||||
{
|
||||
"source_name": "AOSCRW",
|
||||
"source_type": "NUMERIC(2,0)",
|
||||
"dest_name": "aoscrw",
|
||||
"dest_type": "numeric(2,0)",
|
||||
"description": "Setup Crew"
|
||||
},
|
||||
{
|
||||
"source_name": "AOREPP",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aorepp",
|
||||
"dest_type": "text",
|
||||
"description": "Reporting Point"
|
||||
},
|
||||
{
|
||||
"source_name": "AOLAGT",
|
||||
"source_type": "NUMERIC(8,2)",
|
||||
"dest_name": "aolagt",
|
||||
"dest_type": "numeric(8,2)",
|
||||
"description": "Lag Time"
|
||||
},
|
||||
{
|
||||
"source_name": "AOTBTH",
|
||||
"source_type": "NUMERIC(8,0)",
|
||||
"dest_name": "aotbth",
|
||||
"dest_type": "numeric(8,0)",
|
||||
"description": "Transfer Batch"
|
||||
},
|
||||
{
|
||||
"source_name": "AOUNIT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "aounit",
|
||||
"dest_type": "text",
|
||||
"description": "Std. Units"
|
||||
},
|
||||
{
|
||||
"source_name": "AOPRC#",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "aoprc#",
|
||||
"dest_type": "text",
|
||||
"description": "Process #"
|
||||
},
|
||||
{
|
||||
"source_name": "AOEFF",
|
||||
"source_type": "NUMERIC(5,2)",
|
||||
"dest_name": "aoeff",
|
||||
"dest_type": "numeric(5,2)",
|
||||
"description": "Efficiency Percentage"
|
||||
},
|
||||
{
|
||||
"source_name": "AOBK03",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "aobk03",
|
||||
"dest_type": "text",
|
||||
"description": "Sched Priority Group"
|
||||
},
|
||||
{
|
||||
"source_name": "AO#MEN",
|
||||
"source_type": "NUMERIC(2,0)",
|
||||
"dest_name": "ao#men",
|
||||
"dest_type": "numeric(2,0)",
|
||||
"description": "Number Of Men"
|
||||
},
|
||||
{
|
||||
"source_name": "AO#MCH",
|
||||
"source_type": "NUMERIC(2,0)",
|
||||
"dest_name": "ao#mch",
|
||||
"dest_type": "numeric(2,0)",
|
||||
"description": "Number Of Machines"
|
||||
},
|
||||
{
|
||||
"source_name": "AOEFC1",
|
||||
"source_type": "NUMERIC(15,9)",
|
||||
"dest_name": "aoefc1",
|
||||
"dest_type": "numeric(15,9)",
|
||||
"description": "Efficiency Factor Before Seq"
|
||||
},
|
||||
{
|
||||
"source_name": "AOEFC2",
|
||||
"source_type": "NUMERIC(15,9)",
|
||||
"dest_name": "aoefc2",
|
||||
"dest_type": "numeric(15,9)",
|
||||
"description": "Efficiency Factor After Seq"
|
||||
},
|
||||
{
|
||||
"source_name": "AOBK04",
|
||||
"source_type": "CHAR(8)",
|
||||
"dest_name": "aobk04",
|
||||
"dest_type": "text",
|
||||
"description": "AOBK04"
|
||||
},
|
||||
{
|
||||
"source_name": "AOCTME",
|
||||
"source_type": "NUMERIC(5,2)",
|
||||
"dest_name": "aoctme",
|
||||
"dest_type": "numeric(5,2)",
|
||||
"description": "Cycle Time (Sec/Part)"
|
||||
},
|
||||
{
|
||||
"source_name": "AOMULT",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "aomult",
|
||||
"dest_type": "numeric(3,0)",
|
||||
"description": "Multiple Parts"
|
||||
},
|
||||
{
|
||||
"source_name": "AOCNOR",
|
||||
"source_type": "NUMERIC(5,0)",
|
||||
"dest_name": "aocnor",
|
||||
"dest_type": "numeric(5,0)",
|
||||
"description": "Concurrent Resources"
|
||||
},
|
||||
{
|
||||
"source_name": "AOBCDR",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "aobcdr",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Burden Rate Factor"
|
||||
},
|
||||
{
|
||||
"source_name": "AOFUT1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aofut1",
|
||||
"dest_type": "text",
|
||||
"description": "(MRP) Create REPP By Tfr Batch Qty"
|
||||
},
|
||||
{
|
||||
"source_name": "AOFUT2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aofut2",
|
||||
"dest_type": "text",
|
||||
"description": "Standard Cost Rollup By Tfr Batch Qty"
|
||||
},
|
||||
{
|
||||
"source_name": "AOFUT3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "aofut3",
|
||||
"dest_type": "text",
|
||||
"description": "Expected Receipt Created By Trf Batch & Run Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "AOFUT4",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "aofut4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 4"
|
||||
},
|
||||
{
|
||||
"source_name": "AOFUT5",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "aofut5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 5"
|
||||
},
|
||||
{
|
||||
"source_name": "AOFUT6",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "aofut6",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 6"
|
||||
},
|
||||
{
|
||||
"source_name": "AOFUT7",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "aofut7",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 7"
|
||||
},
|
||||
{
|
||||
"source_name": "AOFUT8",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "aofut8",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 8"
|
||||
},
|
||||
{
|
||||
"source_name": "AOFUT9",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "aofut9",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 9"
|
||||
},
|
||||
{
|
||||
"source_name": "AOFUTA",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "aofuta",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use A"
|
||||
},
|
||||
{
|
||||
"source_name": "AOFUTB",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "aofutb",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use B"
|
||||
},
|
||||
{
|
||||
"source_name": "AOFUTC",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "aofutc",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Costing Run Standard"
|
||||
},
|
||||
{
|
||||
"source_name": "AOFUTD",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "aofutd",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Theoretical Run Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "AOFUTE",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "aofute",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use E"
|
||||
},
|
||||
{
|
||||
"source_name": "AOFUTF",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "aofutf",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use F"
|
||||
},
|
||||
{
|
||||
"source_name": "AOPLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "aoplnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
},
|
||||
{
|
||||
"source_name": "AOSMCH",
|
||||
"source_type": "NUMERIC(2,0)",
|
||||
"dest_name": "aosmch",
|
||||
"dest_type": "numeric(2,0)",
|
||||
"description": "SetUp Number Machine"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
46
config/modules/methdr.sql
Normal file
46
config/modules/methdr.sql
Normal file
@ -0,0 +1,46 @@
|
||||
SELECT
|
||||
RTRIM(AOTYPE) AS aotype,
|
||||
RTRIM(AOPART) AS aopart,
|
||||
"AOSEQ#" AS "aoseq#",
|
||||
"AOLIN#" AS "aolin#",
|
||||
RTRIM(AODEPT) AS aodept,
|
||||
RTRIM(AORESC) AS aoresc,
|
||||
RTRIM(AOOPNM) AS aoopnm,
|
||||
AOSETP AS aosetp,
|
||||
AORUNS AS aoruns,
|
||||
RTRIM(AORTYP) AS aortyp,
|
||||
AOSCRW AS aoscrw,
|
||||
RTRIM(AOREPP) AS aorepp,
|
||||
AOLAGT AS aolagt,
|
||||
AOTBTH AS aotbth,
|
||||
RTRIM(AOUNIT) AS aounit,
|
||||
RTRIM("AOPRC#") AS "aoprc#",
|
||||
AOEFF AS aoeff,
|
||||
RTRIM(AOBK03) AS aobk03,
|
||||
"AO#MEN" AS "ao#men",
|
||||
"AO#MCH" AS "ao#mch",
|
||||
AOEFC1 AS aoefc1,
|
||||
AOEFC2 AS aoefc2,
|
||||
RTRIM(AOBK04) AS aobk04,
|
||||
AOCTME AS aoctme,
|
||||
AOMULT AS aomult,
|
||||
AOCNOR AS aocnor,
|
||||
AOBCDR AS aobcdr,
|
||||
RTRIM(AOFUT1) AS aofut1,
|
||||
RTRIM(AOFUT2) AS aofut2,
|
||||
RTRIM(AOFUT3) AS aofut3,
|
||||
RTRIM(AOFUT4) AS aofut4,
|
||||
RTRIM(AOFUT5) AS aofut5,
|
||||
RTRIM(AOFUT6) AS aofut6,
|
||||
RTRIM(AOFUT7) AS aofut7,
|
||||
RTRIM(AOFUT8) AS aofut8,
|
||||
RTRIM(AOFUT9) AS aofut9,
|
||||
RTRIM(AOFUTA) AS aofuta,
|
||||
RTRIM(AOFUTB) AS aofutb,
|
||||
AOFUTC AS aofutc,
|
||||
AOFUTD AS aofutd,
|
||||
AOFUTE AS aofute,
|
||||
AOFUTF AS aofutf,
|
||||
RTRIM(AOPLNT) AS aoplnt,
|
||||
AOSMCH AS aosmch
|
||||
FROM LGDAT.METHDR
|
||||
176
config/modules/methh.json
Normal file
176
config/modules/methh.json
Normal file
@ -0,0 +1,176 @@
|
||||
{
|
||||
"name": "methh",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.methh",
|
||||
"staging_table": "pipekit_staging.methh",
|
||||
"merge_strategy": "incremental",
|
||||
"merge_key": "anpart, anplnt",
|
||||
"enabled": 1,
|
||||
"dest_description": "Method Header File 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "ANPART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "anpart",
|
||||
"dest_type": "text",
|
||||
"description": "Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "ANPREF",
|
||||
"source_type": "DECIMAL(3,0)",
|
||||
"dest_name": "anpref",
|
||||
"dest_type": "numeric",
|
||||
"description": "Production Preference"
|
||||
},
|
||||
{
|
||||
"source_name": "ANDATE",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "andate",
|
||||
"dest_type": "date",
|
||||
"description": "Last Updated"
|
||||
},
|
||||
{
|
||||
"source_name": "ANMATL",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "anmatl",
|
||||
"dest_type": "numeric",
|
||||
"description": "Material Records"
|
||||
},
|
||||
{
|
||||
"source_name": "ANOSDE",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "anosde",
|
||||
"dest_type": "numeric",
|
||||
"description": "O/S Records"
|
||||
},
|
||||
{
|
||||
"source_name": "ANROUT",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "anrout",
|
||||
"dest_type": "numeric",
|
||||
"description": "Routing Records"
|
||||
},
|
||||
{
|
||||
"source_name": "ANTOOL",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "antool",
|
||||
"dest_type": "numeric",
|
||||
"description": "Tooling Records"
|
||||
},
|
||||
{
|
||||
"source_name": "ANENGC",
|
||||
"source_type": "CHAR(11)",
|
||||
"dest_name": "anengc",
|
||||
"dest_type": "text",
|
||||
"description": "Engineering Change #"
|
||||
},
|
||||
{
|
||||
"source_name": "ANREVL",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "anrevl",
|
||||
"dest_type": "text",
|
||||
"description": "Revision Level"
|
||||
},
|
||||
{
|
||||
"source_name": "ANRDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "anrdat",
|
||||
"dest_type": "date",
|
||||
"description": "Revision Date"
|
||||
},
|
||||
{
|
||||
"source_name": "ANPLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "anplnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
},
|
||||
{
|
||||
"source_name": "ANFU01",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "anfu01",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ANFU02",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "anfu02",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ANFU03",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "anfu03",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ANFU04",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "anfu04",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ANFU05",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "anfu05",
|
||||
"dest_type": "numeric",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ANFU06",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "anfu06",
|
||||
"dest_type": "numeric",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ANFU07",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "anfu07",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ANFU08",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "anfu08",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ANFU09",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "anfu09",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ANFU10",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "anfu10",
|
||||
"dest_type": "date",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ANFU11",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "anfu11",
|
||||
"dest_type": "date",
|
||||
"description": "Future Use"
|
||||
}
|
||||
],
|
||||
"watermarks": [
|
||||
{
|
||||
"name": "methh_wm",
|
||||
"connection": "usmidsap02",
|
||||
"resolver_sql": "SELECT COALESCE(MAX(andate), DATE '0001-01-01') FROM cms.methh",
|
||||
"default_value": null
|
||||
}
|
||||
],
|
||||
"hooks": []
|
||||
}
|
||||
25
config/modules/methh.sql
Normal file
25
config/modules/methh.sql
Normal file
@ -0,0 +1,25 @@
|
||||
SELECT
|
||||
RTRIM(ANPART) AS anpart,
|
||||
ANPREF AS anpref,
|
||||
CASE WHEN ANDATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE ANDATE END AS andate,
|
||||
ANMATL AS anmatl,
|
||||
ANOSDE AS anosde,
|
||||
ANROUT AS anrout,
|
||||
ANTOOL AS antool,
|
||||
RTRIM(ANENGC) AS anengc,
|
||||
RTRIM(ANREVL) AS anrevl,
|
||||
CASE WHEN ANRDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE ANRDAT END AS anrdat,
|
||||
RTRIM(ANPLNT) AS anplnt,
|
||||
RTRIM(ANFU01) AS anfu01,
|
||||
RTRIM(ANFU02) AS anfu02,
|
||||
RTRIM(ANFU03) AS anfu03,
|
||||
RTRIM(ANFU04) AS anfu04,
|
||||
ANFU05 AS anfu05,
|
||||
ANFU06 AS anfu06,
|
||||
RTRIM(ANFU07) AS anfu07,
|
||||
RTRIM(ANFU08) AS anfu08,
|
||||
RTRIM(ANFU09) AS anfu09,
|
||||
CASE WHEN ANFU10 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE ANFU10 END AS anfu10,
|
||||
CASE WHEN ANFU11 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE ANFU11 END AS anfu11
|
||||
FROM LGDAT.METHH
|
||||
WHERE ANDATE >= '{methh_wm}'
|
||||
43
config/modules/mmgp.json
Normal file
43
config/modules/mmgp.json
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"name": "mmgp",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.mmgp",
|
||||
"staging_table": "pipekit_staging.mmgp",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Minor Group Codes 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "BRMGRP",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "brmgrp",
|
||||
"dest_type": "text",
|
||||
"description": "Minor Group Code"
|
||||
},
|
||||
{
|
||||
"source_name": "BRDES",
|
||||
"source_type": "CHAR(18)",
|
||||
"dest_name": "brdes",
|
||||
"dest_type": "text",
|
||||
"description": "Description"
|
||||
},
|
||||
{
|
||||
"source_name": "BR2",
|
||||
"source_type": "CHAR(2)",
|
||||
"dest_name": "br2",
|
||||
"dest_type": "text",
|
||||
"description": "NOT USED"
|
||||
},
|
||||
{
|
||||
"source_name": "BRGRP",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "brgrp",
|
||||
"dest_type": "text",
|
||||
"description": "Major Group Code"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
6
config/modules/mmgp.sql
Normal file
6
config/modules/mmgp.sql
Normal file
@ -0,0 +1,6 @@
|
||||
SELECT
|
||||
RTRIM(BRMGRP) AS brmgrp,
|
||||
RTRIM(BRDES) AS brdes,
|
||||
RTRIM(BR2) AS br2,
|
||||
RTRIM(BRGRP) AS brgrp
|
||||
FROM LGDAT.MMGP
|
||||
50
config/modules/mmsl.json
Normal file
50
config/modules/mmsl.json
Normal file
@ -0,0 +1,50 @@
|
||||
{
|
||||
"name": "mmsl",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.mmsl",
|
||||
"staging_table": "pipekit_staging.mmsl",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Sales Codes Master 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "BSMJCD",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "bsmjcd",
|
||||
"dest_type": "text",
|
||||
"description": "Major Sales Code"
|
||||
},
|
||||
{
|
||||
"source_name": "BSMNCD",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "bsmncd",
|
||||
"dest_type": "text",
|
||||
"description": "Minor Sales Code"
|
||||
},
|
||||
{
|
||||
"source_name": "BSDES1",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "bsdes1",
|
||||
"dest_type": "text",
|
||||
"description": "Description line 1"
|
||||
},
|
||||
{
|
||||
"source_name": "BSDES2",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "bsdes2",
|
||||
"dest_type": "text",
|
||||
"description": "Description line 2"
|
||||
},
|
||||
{
|
||||
"source_name": "BSDATE",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "bsdate",
|
||||
"dest_type": "date",
|
||||
"description": "Last update date"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
7
config/modules/mmsl.sql
Normal file
7
config/modules/mmsl.sql
Normal file
@ -0,0 +1,7 @@
|
||||
SELECT
|
||||
RTRIM(BSMJCD) AS bsmjcd,
|
||||
RTRIM(BSMNCD) AS bsmncd,
|
||||
RTRIM(BSDES1) AS bsdes1,
|
||||
RTRIM(BSDES2) AS bsdes2,
|
||||
CASE WHEN BSDATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE BSDATE END AS bsdate
|
||||
FROM LGDAT.MMSL
|
||||
@ -178,4 +178,13 @@ WHERE
|
||||
(dcudat BETWEEN '{ocrh_wm}' AND CURRENT_DATE)
|
||||
OR (dcodat BETWEEN '{ocrh_wm}' AND CURRENT_DATE)
|
||||
OR (dccdat BETWEEN '{ocrh_wm}' AND CURRENT_DATE)
|
||||
-- Hold / release and other status flips rewrite DCSTAT and DCHREA and
|
||||
-- touch no date column at all, so no watermark can see them. Open orders
|
||||
-- are ~2k rows out of 469k -- cheap to re-pull in full on every run.
|
||||
OR RTRIM(DCSTAT) <> 'C'
|
||||
-- No invoice-driven branch here on purpose: measured 2026-08-11 against
|
||||
-- LGDAT.OCRHT (CMS's header change log) over the live watermark window,
|
||||
-- the two predicates above already catch 100% of changed headers, and a
|
||||
-- 5- or 30-day invoiced-orders branch added exactly 0. Closing an order
|
||||
-- writes dcudat/dccdat, so the date window covers the flip to 'C'.
|
||||
|
||||
|
||||
@ -4,6 +4,14 @@ WITH changed AS (
|
||||
SELECT dcord# FROM lgdat.ocrh WHERE dcodat BETWEEN '{ocri_wm}' AND CURRENT_DATE
|
||||
UNION
|
||||
SELECT dcord# FROM lgdat.ocrh WHERE dccdat BETWEEN '{ocri_wm}' AND CURRENT_DATE
|
||||
UNION
|
||||
-- Hold / release and other status flips rewrite DCSTAT and DCHREA and
|
||||
-- move no date column, so no watermark can see them. Only ~2k orders are
|
||||
-- open, so re-pulling the whole open set every run is cheap.
|
||||
-- Checked 2026-08-11 against LGDAT.OCRIT (CMS's own order-line change
|
||||
-- log): OCRIT reports 0 changed orders that are not already caught here,
|
||||
-- at ~12x the predicate cost -- this branch is a proven superset.
|
||||
SELECT dcord# FROM lgdat.ocrh WHERE RTRIM(DCSTAT) <> 'C'
|
||||
)
|
||||
SELECT
|
||||
"DDORD#" AS "ddord#",
|
||||
|
||||
@ -2,6 +2,11 @@ WITH changed AS (
|
||||
SELECT dcord# FROM lgdat.ocrh WHERE dcudat BETWEEN '{ocrs_wm}' AND CURRENT_DATE
|
||||
UNION SELECT dcord# FROM lgdat.ocrh WHERE dcodat BETWEEN '{ocrs_wm}' AND CURRENT_DATE
|
||||
UNION SELECT dcord# FROM lgdat.ocrh WHERE dccdat BETWEEN '{ocrs_wm}' AND CURRENT_DATE
|
||||
UNION
|
||||
-- status flips (hold/release) move no date column; ~2k open orders
|
||||
SELECT dcord# FROM lgdat.ocrh WHERE RTRIM(DCSTAT) <> 'C'
|
||||
-- No invoice-driven branch on purpose -- see ocrh. Measured against
|
||||
-- LGDAT.OCRHT: the two predicates above catch 100% of changed headers.
|
||||
)
|
||||
SELECT
|
||||
"FFORD#" AS "fford#",
|
||||
|
||||
78
config/modules/opcode.json
Normal file
78
config/modules/opcode.json
Normal file
@ -0,0 +1,78 @@
|
||||
{
|
||||
"name": "opcode",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.opcode",
|
||||
"staging_table": "pipekit_staging.opcode",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Method Operation Codes 6.1",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "AECODE",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "aecode",
|
||||
"dest_type": "text",
|
||||
"description": "Operation Code"
|
||||
},
|
||||
{
|
||||
"source_name": "AEDES1",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "aedes1",
|
||||
"dest_type": "text",
|
||||
"description": "Description 1"
|
||||
},
|
||||
{
|
||||
"source_name": "AEDES2",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "aedes2",
|
||||
"dest_type": "text",
|
||||
"description": "Description 2"
|
||||
},
|
||||
{
|
||||
"source_name": "AEDES3",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "aedes3",
|
||||
"dest_type": "text",
|
||||
"description": "Description 3"
|
||||
},
|
||||
{
|
||||
"source_name": "AEDES4",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "aedes4",
|
||||
"dest_type": "text",
|
||||
"description": "Description 4"
|
||||
},
|
||||
{
|
||||
"source_name": "AEDATE",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "aedate",
|
||||
"dest_type": "date",
|
||||
"description": "Last Updated"
|
||||
},
|
||||
{
|
||||
"source_name": "AELABR",
|
||||
"source_type": "NUMERIC(8,2)",
|
||||
"dest_name": "aelabr",
|
||||
"dest_type": "numeric(8,2)",
|
||||
"description": "Operation Labour Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "AEBK01",
|
||||
"source_type": "CHAR(16)",
|
||||
"dest_name": "aebk01",
|
||||
"dest_type": "text",
|
||||
"description": "AEBK01"
|
||||
},
|
||||
{
|
||||
"source_name": "AEPLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "aeplnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
11
config/modules/opcode.sql
Normal file
11
config/modules/opcode.sql
Normal file
@ -0,0 +1,11 @@
|
||||
SELECT
|
||||
RTRIM(AECODE) AS aecode,
|
||||
RTRIM(AEDES1) AS aedes1,
|
||||
RTRIM(AEDES2) AS aedes2,
|
||||
RTRIM(AEDES3) AS aedes3,
|
||||
RTRIM(AEDES4) AS aedes4,
|
||||
CASE WHEN AEDATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AEDATE END AS aedate,
|
||||
AELABR AS aelabr,
|
||||
RTRIM(AEBK01) AS aebk01,
|
||||
RTRIM(AEPLNT) AS aeplnt
|
||||
FROM LGDAT.OPCODE
|
||||
596
config/modules/plnt.json
Normal file
596
config/modules/plnt.json
Normal file
@ -0,0 +1,596 @@
|
||||
{
|
||||
"name": "plnt",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.plnt",
|
||||
"staging_table": "pipekit_staging.plnt",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Plant Master File 6.1",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "YAPLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "yaplnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
},
|
||||
{
|
||||
"source_name": "YAPNME",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "yapnme",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Name"
|
||||
},
|
||||
{
|
||||
"source_name": "YAADR#",
|
||||
"source_type": "NUMERIC(8,0)",
|
||||
"dest_name": "yaadr#",
|
||||
"dest_type": "numeric(8,0)",
|
||||
"description": "Address Number"
|
||||
},
|
||||
{
|
||||
"source_name": "YASLOC",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yasloc",
|
||||
"dest_type": "text",
|
||||
"description": "Ship From Loc."
|
||||
},
|
||||
{
|
||||
"source_name": "YARLOC",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yarloc",
|
||||
"dest_type": "text",
|
||||
"description": "Recv To Loc."
|
||||
},
|
||||
{
|
||||
"source_name": "YATLOC",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yatloc",
|
||||
"dest_type": "text",
|
||||
"description": "In-Transit Loc."
|
||||
},
|
||||
{
|
||||
"source_name": "YATMZN",
|
||||
"source_type": "CHAR(2)",
|
||||
"dest_name": "yatmzn",
|
||||
"dest_type": "text",
|
||||
"description": "Time Zone"
|
||||
},
|
||||
{
|
||||
"source_name": "YAMRPS",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "yamrps",
|
||||
"dest_type": "numeric(3,0)",
|
||||
"description": "MRP Sequence"
|
||||
},
|
||||
{
|
||||
"source_name": "YAMTHC",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "yamthc",
|
||||
"dest_type": "numeric(3,0)",
|
||||
"description": "5.1 Data"
|
||||
},
|
||||
{
|
||||
"source_name": "YASLSF",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "yaslsf",
|
||||
"dest_type": "text",
|
||||
"description": "Sales Forecast"
|
||||
},
|
||||
{
|
||||
"source_name": "YACUSR",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "yacusr",
|
||||
"dest_type": "text",
|
||||
"description": "Created By User"
|
||||
},
|
||||
{
|
||||
"source_name": "YACDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "yacdat",
|
||||
"dest_type": "date",
|
||||
"description": "Date Created"
|
||||
},
|
||||
{
|
||||
"source_name": "YACTME",
|
||||
"source_type": "TIME",
|
||||
"dest_name": "yactme",
|
||||
"dest_type": "time",
|
||||
"description": "Time Created"
|
||||
},
|
||||
{
|
||||
"source_name": "YAUUSR",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "yauusr",
|
||||
"dest_type": "text",
|
||||
"description": "Updated By User"
|
||||
},
|
||||
{
|
||||
"source_name": "YAUDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "yaudat",
|
||||
"dest_type": "date",
|
||||
"description": "Date Updated"
|
||||
},
|
||||
{
|
||||
"source_name": "YAUTME",
|
||||
"source_type": "TIME",
|
||||
"dest_name": "yautme",
|
||||
"dest_type": "time",
|
||||
"description": "Time Updated"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT1",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yafut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT2",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yafut2",
|
||||
"dest_type": "text",
|
||||
"description": "WTR In-Trn Rcv Fail-Scan (Bonded)"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT3",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yafut3",
|
||||
"dest_type": "text",
|
||||
"description": "WTR In-Trn Rcv Fail-Scan"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT4",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "yafut4",
|
||||
"dest_type": "text",
|
||||
"description": "5.1 Data"
|
||||
},
|
||||
{
|
||||
"source_name": "YAWIPF",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yawipf",
|
||||
"dest_type": "text",
|
||||
"description": "WIP From Loc"
|
||||
},
|
||||
{
|
||||
"source_name": "YAWIPT",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yawipt",
|
||||
"dest_type": "text",
|
||||
"description": "WIP To Loc"
|
||||
},
|
||||
{
|
||||
"source_name": "YASCPF",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yascpf",
|
||||
"dest_type": "text",
|
||||
"description": "Scrap Recovery Loc"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT5",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "yafut5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YACOMP",
|
||||
"source_type": "NUMERIC(2,0)",
|
||||
"dest_name": "yacomp",
|
||||
"dest_type": "numeric(2,0)",
|
||||
"description": "Company Number"
|
||||
},
|
||||
{
|
||||
"source_name": "YAACRL",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "yaacrl",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "A/P Accrual G/L Account"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT6",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "yafut6",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT7",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "yafut7",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT8",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "yafut8",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT9",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "yafut9",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFLG1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "yaflg1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFLG2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "yaflg2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFLG3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "yaflg3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFLG4",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "yaflg4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFLG5",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "yaflg5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAPRCV",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yaprcv",
|
||||
"dest_type": "text",
|
||||
"description": "F/G Receive Loc"
|
||||
},
|
||||
{
|
||||
"source_name": "YAPRTN",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yaprtn",
|
||||
"dest_type": "text",
|
||||
"description": "P/O Return Loc"
|
||||
},
|
||||
{
|
||||
"source_name": "YACONT",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "yacont",
|
||||
"dest_type": "text",
|
||||
"description": "Contact Person"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT10",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yafut10",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT11",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yafut11",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT12",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yafut12",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT13",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "yafut13",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT14",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "yafut14",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAMDFL",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yamdfl",
|
||||
"dest_type": "text",
|
||||
"description": "Material Draw From Loc"
|
||||
},
|
||||
{
|
||||
"source_name": "YACCSL",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yaccsl",
|
||||
"dest_type": "text",
|
||||
"description": "Customer Con. Loc"
|
||||
},
|
||||
{
|
||||
"source_name": "YAVCSL",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yavcsl",
|
||||
"dest_type": "text",
|
||||
"description": "Vendor Con. Loc"
|
||||
},
|
||||
{
|
||||
"source_name": "YAOSSL",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yaossl",
|
||||
"dest_type": "text",
|
||||
"description": "Dft O/S Loc"
|
||||
},
|
||||
{
|
||||
"source_name": "YATMZC",
|
||||
"source_type": "CHAR(4)",
|
||||
"dest_name": "yatmzc",
|
||||
"dest_type": "text",
|
||||
"description": "Time Zone Code"
|
||||
},
|
||||
{
|
||||
"source_name": "YARTSI",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "yartsi",
|
||||
"dest_type": "text",
|
||||
"description": "NOT USED"
|
||||
},
|
||||
{
|
||||
"source_name": "YAWSFSL",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yawsfsl",
|
||||
"dest_type": "text",
|
||||
"description": "Warranty Ship From Loc"
|
||||
},
|
||||
{
|
||||
"source_name": "YAEMAL",
|
||||
"source_type": "CHAR(50)",
|
||||
"dest_name": "yaemal",
|
||||
"dest_type": "text",
|
||||
"description": "Email Address"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFACRL",
|
||||
"source_type": "NUMERIC(10,0)",
|
||||
"dest_name": "yafacrl",
|
||||
"dest_type": "numeric(10,0)",
|
||||
"description": "Freight Accrual Acct"
|
||||
},
|
||||
{
|
||||
"source_name": "YASCDL",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yascdl",
|
||||
"dest_type": "text",
|
||||
"description": "SCD-Part Location"
|
||||
},
|
||||
{
|
||||
"source_name": "YASCPLT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "yascplt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code of Service Charge Part"
|
||||
},
|
||||
{
|
||||
"source_name": "YAPCKLT",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "yapcklt",
|
||||
"dest_type": "numeric(3,0)",
|
||||
"description": "Picking Lead Time"
|
||||
},
|
||||
{
|
||||
"source_name": "YASTER",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "yaster",
|
||||
"dest_type": "text",
|
||||
"description": "Field Service Territory Code"
|
||||
},
|
||||
{
|
||||
"source_name": "YARPRL",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yarprl",
|
||||
"dest_type": "text",
|
||||
"description": "Repair Type Location"
|
||||
},
|
||||
{
|
||||
"source_name": "YARSLC",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yarslc",
|
||||
"dest_type": "text",
|
||||
"description": "Repair Ship From Location"
|
||||
},
|
||||
{
|
||||
"source_name": "YAHIN",
|
||||
"source_type": "CHAR(9)",
|
||||
"dest_name": "yahin",
|
||||
"dest_type": "text",
|
||||
"description": "Health Industry Number"
|
||||
},
|
||||
{
|
||||
"source_name": "YADPVT",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "yadpvt",
|
||||
"dest_type": "text",
|
||||
"description": "Dept USRDEF verification template"
|
||||
},
|
||||
{
|
||||
"source_name": "YARSVT",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "yarsvt",
|
||||
"dest_type": "text",
|
||||
"description": "Resc USRDEF verification template"
|
||||
},
|
||||
{
|
||||
"source_name": "YAAPSB",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "yaapsb",
|
||||
"dest_type": "text",
|
||||
"description": "Auto Post SCD BOL"
|
||||
},
|
||||
{
|
||||
"source_name": "YAITBL",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "yaitbl",
|
||||
"dest_type": "text",
|
||||
"description": "In Transit Bonded Location"
|
||||
},
|
||||
{
|
||||
"source_name": "YASPLT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "yasplt",
|
||||
"dest_type": "text",
|
||||
"description": "Service Plant"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT15",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "yafut15",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT16",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "yafut16",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT17",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "yafut17",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT18",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "yafut18",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT19",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "yafut19",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT20",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "yafut20",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT21",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "yafut21",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT22",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "yafut22",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT23",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "yafut23",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT24",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "yafut24",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT25",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "yafut25",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT26",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "yafut26",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT27",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "yafut27",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT28",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "yafut28",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT29",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "yafut29",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT30",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "yafut30",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT31",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "yafut31",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT32",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "yafut32",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "YAFUT33",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "yafut33",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
85
config/modules/plnt.sql
Normal file
85
config/modules/plnt.sql
Normal file
@ -0,0 +1,85 @@
|
||||
SELECT
|
||||
RTRIM(YAPLNT) AS yaplnt,
|
||||
RTRIM(YAPNME) AS yapnme,
|
||||
"YAADR#" AS "yaadr#",
|
||||
RTRIM(YASLOC) AS yasloc,
|
||||
RTRIM(YARLOC) AS yarloc,
|
||||
RTRIM(YATLOC) AS yatloc,
|
||||
RTRIM(YATMZN) AS yatmzn,
|
||||
YAMRPS AS yamrps,
|
||||
YAMTHC AS yamthc,
|
||||
RTRIM(YASLSF) AS yaslsf,
|
||||
RTRIM(YACUSR) AS yacusr,
|
||||
CASE WHEN YACDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE YACDAT END AS yacdat,
|
||||
YACTME AS yactme,
|
||||
RTRIM(YAUUSR) AS yauusr,
|
||||
CASE WHEN YAUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE YAUDAT END AS yaudat,
|
||||
YAUTME AS yautme,
|
||||
RTRIM(YAFUT1) AS yafut1,
|
||||
RTRIM(YAFUT2) AS yafut2,
|
||||
RTRIM(YAFUT3) AS yafut3,
|
||||
RTRIM(YAFUT4) AS yafut4,
|
||||
RTRIM(YAWIPF) AS yawipf,
|
||||
RTRIM(YAWIPT) AS yawipt,
|
||||
RTRIM(YASCPF) AS yascpf,
|
||||
RTRIM(YAFUT5) AS yafut5,
|
||||
YACOMP AS yacomp,
|
||||
YAACRL AS yaacrl,
|
||||
RTRIM(YAFUT6) AS yafut6,
|
||||
RTRIM(YAFUT7) AS yafut7,
|
||||
RTRIM(YAFUT8) AS yafut8,
|
||||
YAFUT9 AS yafut9,
|
||||
RTRIM(YAFLG1) AS yaflg1,
|
||||
RTRIM(YAFLG2) AS yaflg2,
|
||||
RTRIM(YAFLG3) AS yaflg3,
|
||||
RTRIM(YAFLG4) AS yaflg4,
|
||||
RTRIM(YAFLG5) AS yaflg5,
|
||||
RTRIM(YAPRCV) AS yaprcv,
|
||||
RTRIM(YAPRTN) AS yaprtn,
|
||||
RTRIM(YACONT) AS yacont,
|
||||
RTRIM(YAFUT10) AS yafut10,
|
||||
RTRIM(YAFUT11) AS yafut11,
|
||||
RTRIM(YAFUT12) AS yafut12,
|
||||
RTRIM(YAFUT13) AS yafut13,
|
||||
RTRIM(YAFUT14) AS yafut14,
|
||||
RTRIM(YAMDFL) AS yamdfl,
|
||||
RTRIM(YACCSL) AS yaccsl,
|
||||
RTRIM(YAVCSL) AS yavcsl,
|
||||
RTRIM(YAOSSL) AS yaossl,
|
||||
RTRIM(YATMZC) AS yatmzc,
|
||||
RTRIM(YARTSI) AS yartsi,
|
||||
RTRIM(YAWSFSL) AS yawsfsl,
|
||||
RTRIM(YAEMAL) AS yaemal,
|
||||
YAFACRL AS yafacrl,
|
||||
RTRIM(YASCDL) AS yascdl,
|
||||
RTRIM(YASCPLT) AS yascplt,
|
||||
YAPCKLT AS yapcklt,
|
||||
RTRIM(YASTER) AS yaster,
|
||||
RTRIM(YARPRL) AS yarprl,
|
||||
RTRIM(YARSLC) AS yarslc,
|
||||
RTRIM(YAHIN) AS yahin,
|
||||
RTRIM(YADPVT) AS yadpvt,
|
||||
RTRIM(YARSVT) AS yarsvt,
|
||||
RTRIM(YAAPSB) AS yaapsb,
|
||||
RTRIM(YAITBL) AS yaitbl,
|
||||
RTRIM(YASPLT) AS yasplt,
|
||||
RTRIM(YAFUT15) AS yafut15,
|
||||
RTRIM(YAFUT16) AS yafut16,
|
||||
RTRIM(YAFUT17) AS yafut17,
|
||||
RTRIM(YAFUT18) AS yafut18,
|
||||
YAFUT19 AS yafut19,
|
||||
YAFUT20 AS yafut20,
|
||||
RTRIM(YAFUT21) AS yafut21,
|
||||
RTRIM(YAFUT22) AS yafut22,
|
||||
RTRIM(YAFUT23) AS yafut23,
|
||||
RTRIM(YAFUT24) AS yafut24,
|
||||
RTRIM(YAFUT25) AS yafut25,
|
||||
RTRIM(YAFUT26) AS yafut26,
|
||||
RTRIM(YAFUT27) AS yafut27,
|
||||
RTRIM(YAFUT28) AS yafut28,
|
||||
RTRIM(YAFUT29) AS yafut29,
|
||||
RTRIM(YAFUT30) AS yafut30,
|
||||
YAFUT31 AS yafut31,
|
||||
YAFUT32 AS yafut32,
|
||||
YAFUT33 AS yafut33
|
||||
FROM LGDAT.PLNT
|
||||
764
config/modules/pm00200.json
Normal file
764
config/modules/pm00200.json
Normal file
@ -0,0 +1,764 @@
|
||||
{
|
||||
"name": "pm00200",
|
||||
"source_connection": "sqlserver",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "gp.pm00200",
|
||||
"staging_table": "pipekit_staging.pm00200",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": null,
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "VENDORID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vendorid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VENDNAME",
|
||||
"source_type": "CHAR(65)",
|
||||
"dest_name": "vendname",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VNDCHKNM",
|
||||
"source_type": "CHAR(65)",
|
||||
"dest_name": "vndchknm",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VENDSHNM",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vendshnm",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VADDCDPR",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vaddcdpr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VADCDPAD",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vadcdpad",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VADCDSFR",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vadcdsfr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VADCDTRO",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vadcdtro",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VNDCLSID",
|
||||
"source_type": "CHAR(11)",
|
||||
"dest_name": "vndclsid",
|
||||
"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": "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": "UPSZONE",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "upszone",
|
||||
"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": "ACNMVNDR",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "acnmvndr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TXIDNMBR",
|
||||
"source_type": "CHAR(11)",
|
||||
"dest_name": "txidnmbr",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VENDSTTS",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "vendstts",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CURNCYID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "curncyid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TXRGNNUM",
|
||||
"source_type": "CHAR(25)",
|
||||
"dest_name": "txrgnnum",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PARVENID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "parvenid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TRDDISCT",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "trddisct",
|
||||
"dest_type": "smallint",
|
||||
"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": "MINORDER",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "minorder",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"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": "MINPYPCT",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "minpypct",
|
||||
"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": "MXIAFVND",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "mxiafvnd",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "MAXINDLR",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "maxindlr",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "COMMENT1",
|
||||
"source_type": "CHAR(31)",
|
||||
"dest_name": "comment1",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "COMMENT2",
|
||||
"source_type": "CHAR(31)",
|
||||
"dest_name": "comment2",
|
||||
"dest_type": "text",
|
||||
"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": "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": "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": "HOLD",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "hold",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PTCSHACF",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "ptcshacf",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CREDTLMT",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "credtlmt",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "WRITEOFF",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "writeoff",
|
||||
"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": "SBPPSDED",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "sbppsded",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PPSTAXRT",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "ppstaxrt",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DXVARNUM",
|
||||
"source_type": "CHAR(25)",
|
||||
"dest_name": "dxvarnum",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CRTCOMDT",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "crtcomdt",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CRTEXPDT",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "crtexpdt",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "RTOBUTKN",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "rtobutkn",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "XPDTOBLG",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "xpdtoblg",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "PRSPAYEE",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "prspayee",
|
||||
"dest_type": "smallint",
|
||||
"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": "NOTEINDX",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "noteindx",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"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": "GOVCRPID",
|
||||
"source_type": "CHAR(31)",
|
||||
"dest_name": "govcrpid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "GOVINDID",
|
||||
"source_type": "CHAR(31)",
|
||||
"dest_name": "govindid",
|
||||
"dest_type": "text",
|
||||
"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": "DOCFMTID",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "docfmtid",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TaxInvRecvd",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "taxinvrecvd",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "USERLANG",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "userlang",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "WithholdingType",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "withholdingtype",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "WithholdingFormType",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "withholdingformtype",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "WithholdingEntityType",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "withholdingentitytype",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TaxFileNumMode",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "taxfilenummode",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "BRTHDATE",
|
||||
"source_type": "DATETIME",
|
||||
"dest_name": "brthdate",
|
||||
"dest_type": "timestamp",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "LaborPmtType",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "laborpmttype",
|
||||
"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": "CBVAT",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "cbvat",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Workflow_Approval_Status",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "workflow_approval_status",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Workflow_Priority",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "workflow_priority",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Workflow_Status",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "workflow_status",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "VADCD1099",
|
||||
"source_type": "CHAR(15)",
|
||||
"dest_name": "vadcd1099",
|
||||
"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": []
|
||||
}
|
||||
109
config/modules/pm00200.sql
Normal file
109
config/modules/pm00200.sql
Normal file
@ -0,0 +1,109 @@
|
||||
SELECT
|
||||
RTRIM([VENDORID]) AS [vendorid],
|
||||
RTRIM([VENDNAME]) AS [vendname],
|
||||
RTRIM([VNDCHKNM]) AS [vndchknm],
|
||||
RTRIM([VENDSHNM]) AS [vendshnm],
|
||||
RTRIM([VADDCDPR]) AS [vaddcdpr],
|
||||
RTRIM([VADCDPAD]) AS [vadcdpad],
|
||||
RTRIM([VADCDSFR]) AS [vadcdsfr],
|
||||
RTRIM([VADCDTRO]) AS [vadcdtro],
|
||||
RTRIM([VNDCLSID]) AS [vndclsid],
|
||||
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([PHNUMBR1]) AS [phnumbr1],
|
||||
RTRIM([PHNUMBR2]) AS [phnumbr2],
|
||||
RTRIM([PHONE3]) AS [phone3],
|
||||
RTRIM([FAXNUMBR]) AS [faxnumbr],
|
||||
RTRIM([UPSZONE]) AS [upszone],
|
||||
RTRIM([SHIPMTHD]) AS [shipmthd],
|
||||
RTRIM([TAXSCHID]) AS [taxschid],
|
||||
RTRIM([ACNMVNDR]) AS [acnmvndr],
|
||||
RTRIM([TXIDNMBR]) AS [txidnmbr],
|
||||
[VENDSTTS] AS [vendstts],
|
||||
RTRIM([CURNCYID]) AS [curncyid],
|
||||
RTRIM([TXRGNNUM]) AS [txrgnnum],
|
||||
RTRIM([PARVENID]) AS [parvenid],
|
||||
[TRDDISCT] AS [trddisct],
|
||||
[TEN99TYPE] AS [ten99type],
|
||||
[TEN99BOXNUMBER] AS [ten99boxnumber],
|
||||
[MINORDER] AS [minorder],
|
||||
RTRIM([PYMTRMID]) AS [pymtrmid],
|
||||
[MINPYTYP] AS [minpytyp],
|
||||
[MINPYPCT] AS [minpypct],
|
||||
[MINPYDLR] AS [minpydlr],
|
||||
[MXIAFVND] AS [mxiafvnd],
|
||||
[MAXINDLR] AS [maxindlr],
|
||||
RTRIM([COMMENT1]) AS [comment1],
|
||||
RTRIM([COMMENT2]) AS [comment2],
|
||||
RTRIM([USERDEF1]) AS [userdef1],
|
||||
RTRIM([USERDEF2]) AS [userdef2],
|
||||
[CRLMTDLR] AS [crlmtdlr],
|
||||
RTRIM([PYMNTPRI]) AS [pymntpri],
|
||||
[KPCALHST] AS [kpcalhst],
|
||||
[KGLDSTHS] AS [kgldsths],
|
||||
[KPERHIST] AS [kperhist],
|
||||
[KPTRXHST] AS [kptrxhst],
|
||||
[HOLD] AS [hold],
|
||||
[PTCSHACF] AS [ptcshacf],
|
||||
[CREDTLMT] AS [credtlmt],
|
||||
[WRITEOFF] AS [writeoff],
|
||||
[MXWOFAMT] AS [mxwofamt],
|
||||
[SBPPSDED] AS [sbppsded],
|
||||
[PPSTAXRT] AS [ppstaxrt],
|
||||
RTRIM([DXVARNUM]) AS [dxvarnum],
|
||||
[CRTCOMDT] AS [crtcomdt],
|
||||
[CRTEXPDT] AS [crtexpdt],
|
||||
[RTOBUTKN] AS [rtobutkn],
|
||||
[XPDTOBLG] AS [xpdtoblg],
|
||||
[PRSPAYEE] AS [prspayee],
|
||||
[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],
|
||||
[NOTEINDX] AS [noteindx],
|
||||
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],
|
||||
RTRIM([GOVCRPID]) AS [govcrpid],
|
||||
RTRIM([GOVINDID]) AS [govindid],
|
||||
[DISGRPER] AS [disgrper],
|
||||
[DUEGRPER] AS [duegrper],
|
||||
RTRIM([DOCFMTID]) AS [docfmtid],
|
||||
[TaxInvRecvd] AS [taxinvrecvd],
|
||||
[USERLANG] AS [userlang],
|
||||
[WithholdingType] AS [withholdingtype],
|
||||
[WithholdingFormType] AS [withholdingformtype],
|
||||
[WithholdingEntityType] AS [withholdingentitytype],
|
||||
[TaxFileNumMode] AS [taxfilenummode],
|
||||
[BRTHDATE] AS [brthdate],
|
||||
[LaborPmtType] AS [laborpmttype],
|
||||
RTRIM([CCode]) AS [ccode],
|
||||
RTRIM([DECLID]) AS [declid],
|
||||
[CBVAT] AS [cbvat],
|
||||
[Workflow_Approval_Status] AS [workflow_approval_status],
|
||||
[Workflow_Priority] AS [workflow_priority],
|
||||
[Workflow_Status] AS [workflow_status],
|
||||
RTRIM([VADCD1099]) AS [vadcd1099],
|
||||
[DEX_ROW_TS] AS [dex_row_ts],
|
||||
[DEX_ROW_ID] AS [dex_row_id]
|
||||
FROM [GPSERVER].[CHG].[dbo].[PM00200]
|
||||
78
config/modules/punit.json
Normal file
78
config/modules/punit.json
Normal file
@ -0,0 +1,78 @@
|
||||
{
|
||||
"name": "punit",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.punit",
|
||||
"staging_table": "pipekit_staging.punit",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Part/Unit Conversion File 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "IHPART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "ihpart",
|
||||
"dest_type": "text",
|
||||
"description": "Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "IHUNT1",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "ihunt1",
|
||||
"dest_type": "text",
|
||||
"description": "Unit1"
|
||||
},
|
||||
{
|
||||
"source_name": "IHUNT2",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "ihunt2",
|
||||
"dest_type": "text",
|
||||
"description": "Unit2"
|
||||
},
|
||||
{
|
||||
"source_name": "IHCNV1",
|
||||
"source_type": "NUMERIC(10,5)",
|
||||
"dest_name": "ihcnv1",
|
||||
"dest_type": "numeric(10,5)",
|
||||
"description": "Conversion 1"
|
||||
},
|
||||
{
|
||||
"source_name": "IHCNV2",
|
||||
"source_type": "NUMERIC(10,5)",
|
||||
"dest_name": "ihcnv2",
|
||||
"dest_type": "numeric(10,5)",
|
||||
"description": "Conversion 2"
|
||||
},
|
||||
{
|
||||
"source_name": "IHCDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "ihcdat",
|
||||
"dest_type": "date",
|
||||
"description": "Date Created"
|
||||
},
|
||||
{
|
||||
"source_name": "IHCUSR",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "ihcusr",
|
||||
"dest_type": "text",
|
||||
"description": "Created By"
|
||||
},
|
||||
{
|
||||
"source_name": "IHUDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "ihudat",
|
||||
"dest_type": "date",
|
||||
"description": "Date Updated"
|
||||
},
|
||||
{
|
||||
"source_name": "IHUUSR",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "ihuusr",
|
||||
"dest_type": "text",
|
||||
"description": "Updated By"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
11
config/modules/punit.sql
Normal file
11
config/modules/punit.sql
Normal file
@ -0,0 +1,11 @@
|
||||
SELECT
|
||||
RTRIM(IHPART) AS ihpart,
|
||||
RTRIM(IHUNT1) AS ihunt1,
|
||||
RTRIM(IHUNT2) AS ihunt2,
|
||||
IHCNV1 AS ihcnv1,
|
||||
IHCNV2 AS ihcnv2,
|
||||
CASE WHEN IHCDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE IHCDAT END AS ihcdat,
|
||||
RTRIM(IHCUSR) AS ihcusr,
|
||||
CASE WHEN IHUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE IHUDAT END AS ihudat,
|
||||
RTRIM(IHUUSR) AS ihuusr
|
||||
FROM LGDAT.PUNIT
|
||||
1107
config/modules/qcrh.json
Normal file
1107
config/modules/qcrh.json
Normal file
File diff suppressed because it is too large
Load Diff
161
config/modules/qcrh.sql
Normal file
161
config/modules/qcrh.sql
Normal file
@ -0,0 +1,161 @@
|
||||
SELECT
|
||||
"DCORD#" AS "dcord#",
|
||||
CASE WHEN DCODAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DCODAT END AS dcodat,
|
||||
RTRIM(DCOTYP) AS dcotyp,
|
||||
RTRIM(DCIUSE) AS dciuse,
|
||||
RTRIM(DCBCUS) AS dcbcus,
|
||||
RTRIM(DCBNAM) AS dcbnam,
|
||||
RTRIM(DCBAD1) AS dcbad1,
|
||||
RTRIM(DCBATT) AS dcbatt,
|
||||
RTRIM(DCBPHO) AS dcbpho,
|
||||
RTRIM(DCTRCD) AS dctrcd,
|
||||
RTRIM(DCNU28) AS dcnu28,
|
||||
RTRIM(DCSHVI) AS dcshvi,
|
||||
RTRIM(DCSCUS) AS dcscus,
|
||||
RTRIM(DCSNAM) AS dcsnam,
|
||||
RTRIM(DCSAD1) AS dcsad1,
|
||||
RTRIM(DCSAD2) AS dcsad2,
|
||||
RTRIM(DCSAD3) AS dcsad3,
|
||||
RTRIM(DCSAD4) AS dcsad4,
|
||||
RTRIM(DCSAD5) AS dcsad5,
|
||||
RTRIM(DCSAD6) AS dcsad6,
|
||||
RTRIM(DCSAD7) AS dcsad7,
|
||||
RTRIM(DCSAD8) AS dcsad8,
|
||||
RTRIM(DCSAD9) AS dcsad9,
|
||||
RTRIM(DCSAD10) AS dcsad10,
|
||||
RTRIM(DCSPOS) AS dcspos,
|
||||
RTRIM(DCPO) AS dcpo,
|
||||
RTRIM(DCQUOT) AS dcquot,
|
||||
RTRIM(DCCURR) AS dccurr,
|
||||
CASE WHEN DCMDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DCMDAT END AS dcmdat,
|
||||
RTRIM(DCSLMN) AS dcslmn,
|
||||
DCCPCT AS dccpct,
|
||||
DCCRAT AS dccrat,
|
||||
RTRIM(DCRES) AS dcres,
|
||||
RTRIM(DCFSTL) AS dcfstl,
|
||||
RTRIM(DCPSTL) AS dcpstl,
|
||||
RTRIM(DCPPCL) AS dcppcl,
|
||||
RTRIM(DCGDIS) AS dcgdis,
|
||||
RTRIM(DCGDSF) AS dcgdsf,
|
||||
RTRIM(DCSTAT) AS dcstat,
|
||||
RTRIM(DCWOPR) AS dcwopr,
|
||||
"DCNDL#" AS "dcndl#",
|
||||
DCTOTO AS dctoto,
|
||||
DCTDIS AS dctdis,
|
||||
DCTTAX AS dcttax,
|
||||
DCTFRT AS dctfrt,
|
||||
DCTWGT AS dctwgt,
|
||||
RTRIM(DCTWUN) AS dctwun,
|
||||
DCTVOL AS dctvol,
|
||||
RTRIM(DCTVUN) AS dctvun,
|
||||
RTRIM(DCAVPR) AS dcavpr,
|
||||
CASE WHEN DCUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DCUDAT END AS dcudat,
|
||||
RTRIM(DCUSRE) AS dcusre,
|
||||
RTRIM(DCUSRC) AS dcusrc,
|
||||
"DCINV#" AS "dcinv#",
|
||||
DCOBAL AS dcobal,
|
||||
RTRIM(DCARBK) AS dcarbk,
|
||||
RTRIM(DCSTKL) AS dcstkl,
|
||||
DCRFNO AS dcrfno,
|
||||
CASE WHEN DCXDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DCXDAT END AS dcxdat,
|
||||
RTRIM(DCTERR) AS dcterr,
|
||||
RTRIM(DCSLIP) AS dcslip,
|
||||
RTRIM(DCCARC) AS dccarc,
|
||||
RTRIM(DCSERC) AS dcserc,
|
||||
CASE WHEN DCSDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DCSDAT END AS dcsdat,
|
||||
CASE WHEN DCHDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DCHDAT END AS dchdat,
|
||||
CASE WHEN DCDDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DCDDAT END AS dcddat,
|
||||
CASE WHEN DCFDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DCFDAT END AS dcfdat,
|
||||
CASE WHEN DCRDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DCRDAT END AS dcrdat,
|
||||
CASE WHEN DCQDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DCQDAT END AS dcqdat,
|
||||
CASE WHEN DCCDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DCCDAT END AS dccdat,
|
||||
RTRIM(DCHREA) AS dchrea,
|
||||
RTRIM(DCBOFG) AS dcbofg,
|
||||
RTRIM(DCAPLG) AS dcaplg,
|
||||
RTRIM(DCFOBC) AS dcfobc,
|
||||
RTRIM(DCSCOM) AS dcscom,
|
||||
RTRIM(DCOSRC) AS dcosrc,
|
||||
RTRIM(DCOFXD) AS dcofxd,
|
||||
RTRIM(DCSLCS) AS dcslcs,
|
||||
RTRIM(DCCRTY) AS dccrty,
|
||||
RTRIM(DCCRDT) AS dccrdt,
|
||||
RTRIM("DCCRD#") AS "dccrd#",
|
||||
RTRIM(DCEXPR) AS dcexpr,
|
||||
RTRIM(DCHODR) AS dchodr,
|
||||
DCCRNM AS dccrnm,
|
||||
RTRIM(DCSHBF) AS dcshbf,
|
||||
RTRIM(DCCLEN) AS dcclen,
|
||||
DDFTTX AS ddfttx,
|
||||
RTRIM(DCFUT1) AS dcfut1,
|
||||
RTRIM(DCFUT2) AS dcfut2,
|
||||
RTRIM(DCFLG1) AS dcflg1,
|
||||
RTRIM(DCFLG2) AS dcflg2,
|
||||
RTRIM(DCREFN) AS dcrefn,
|
||||
RTRIM(DCPLNT) AS dcplnt,
|
||||
RTRIM(DCFUT3) AS dcfut3,
|
||||
RTRIM(DCFUT4) AS dcfut4,
|
||||
RTRIM(DCFUT5) AS dcfut5,
|
||||
RTRIM(DCFUT6) AS dcfut6,
|
||||
RTRIM(DCFUT7) AS dcfut7,
|
||||
RTRIM(DCFUT8) AS dcfut8,
|
||||
RTRIM(DCFUT9) AS dcfut9,
|
||||
CASE WHEN DCDAT1 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DCDAT1 END AS dcdat1,
|
||||
CASE WHEN DCDAT2 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DCDAT2 END AS dcdat2,
|
||||
RTRIM(DCFLG3) AS dcflg3,
|
||||
RTRIM(DCFLG4) AS dcflg4,
|
||||
RTRIM(DCFLG5) AS dcflg5,
|
||||
RTRIM(DCFLG6) AS dcflg6,
|
||||
RTRIM(DCFLG7) AS dcflg7,
|
||||
DCFUT10 AS dcfut10,
|
||||
DCFUT11 AS dcfut11,
|
||||
DCFUT12 AS dcfut12,
|
||||
DCFUT13 AS dcfut13,
|
||||
DCFUT14 AS dcfut14,
|
||||
DCFUT15 AS dcfut15,
|
||||
DCFUT16 AS dcfut16,
|
||||
DCFUT17 AS dcfut17,
|
||||
DCFUT18 AS dcfut18,
|
||||
DCFUT19 AS dcfut19,
|
||||
DCFUT20 AS dcfut20,
|
||||
RTRIM(DCDEPT) AS dcdept,
|
||||
RTRIM(DCPROM) AS dcprom,
|
||||
RTRIM(DCCLMO) AS dcclmo,
|
||||
RTRIM(DCTTMZ) AS dcttmz,
|
||||
RTRIM(DCCTMZ) AS dcctmz,
|
||||
RTRIM(DCOTMZ) AS dcotmz,
|
||||
RTRIM(DCMTMZ) AS dcmtmz,
|
||||
RTRIM(DCQTMZ) AS dcqtmz,
|
||||
RTRIM(DCSTMZ) AS dcstmz,
|
||||
DCMTME AS dcmtme,
|
||||
CASE WHEN DCMXDT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DCMXDT END AS dcmxdt,
|
||||
DCMXTM AS dcmxtm,
|
||||
RTRIM(DCR870) AS dcr870,
|
||||
RTRIM(DCS870) AS dcs870,
|
||||
RTRIM(DCFCHG) AS dcfchg,
|
||||
RTRIM(DCSTTP) AS dcsttp,
|
||||
RTRIM(DCSCNS) AS dcscns,
|
||||
RTRIM(DCOTMC) AS dcotmc,
|
||||
RTRIM(DCOFOM) AS dcofom,
|
||||
RTRIM(DCOFTM) AS dcoftm,
|
||||
RTRIM(DCAPPTM) AS dcapptm,
|
||||
RTRIM(DCEXPO) AS dcexpo,
|
||||
RTRIM(DCSDLV) AS dcsdlv,
|
||||
RTRIM(DCSPIC) AS dcspic,
|
||||
RTRIM(DCFRTC) AS dcfrtc,
|
||||
RTRIM(DCCPLT) AS dccplt,
|
||||
RTRIM(DCSDBC) AS dcsdbc,
|
||||
RTRIM(DCSDBS) AS dcsdbs,
|
||||
RTRIM(DCSDSC) AS dcsdsc,
|
||||
RTRIM(DCSDSS) AS dcsdss,
|
||||
RTRIM(DCSDCR) AS dcsdcr,
|
||||
RTRIM(DCSCPO) AS dcscpo,
|
||||
RTRIM(DCSCOR) AS dcscor,
|
||||
RTRIM(DCFROM) AS dcfrom,
|
||||
RTRIM(DCSCTY) AS dcscty,
|
||||
RTRIM(DCSPOV) AS dcspov,
|
||||
RTRIM(DCSCRY) AS dcscry
|
||||
FROM LGDAT.QCRH
|
||||
WHERE
|
||||
(dcudat BETWEEN '{qcrh_wm}' AND CURRENT_DATE)
|
||||
OR (dcodat BETWEEN '{qcrh_wm}' AND CURRENT_DATE)
|
||||
OR (dccdat BETWEEN '{qcrh_wm}' AND CURRENT_DATE)
|
||||
757
config/modules/qcri.json
Normal file
757
config/modules/qcri.json
Normal file
@ -0,0 +1,757 @@
|
||||
{
|
||||
"name": "qcri",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.qcri",
|
||||
"staging_table": "pipekit_staging.qcri",
|
||||
"merge_strategy": "incremental",
|
||||
"merge_key": "ddord#",
|
||||
"enabled": 1,
|
||||
"dest_description": "Customer Order Item 6.1",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "DDORD#",
|
||||
"source_type": "NUMERIC(9,0)",
|
||||
"dest_name": "ddord#",
|
||||
"dest_type": "numeric",
|
||||
"description": "Customer Order Number"
|
||||
},
|
||||
{
|
||||
"source_name": "DDITM#",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "dditm#",
|
||||
"dest_type": "numeric",
|
||||
"description": "Item Number"
|
||||
},
|
||||
{
|
||||
"source_name": "DDDES#",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "dddes#",
|
||||
"dest_type": "numeric",
|
||||
"description": "Description Number"
|
||||
},
|
||||
{
|
||||
"source_name": "DDQTOI",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "ddqtoi",
|
||||
"dest_type": "numeric",
|
||||
"description": "Quantity Ordered IU"
|
||||
},
|
||||
{
|
||||
"source_name": "DDQTBI",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "ddqtbi",
|
||||
"dest_type": "numeric",
|
||||
"description": "Quantity Backordered IU"
|
||||
},
|
||||
{
|
||||
"source_name": "DDQTSI",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "ddqtsi",
|
||||
"dest_type": "numeric",
|
||||
"description": "Quantity Shipped IU"
|
||||
},
|
||||
{
|
||||
"source_name": "DDUNIT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "ddunit",
|
||||
"dest_type": "text",
|
||||
"description": "Unit of Measure"
|
||||
},
|
||||
{
|
||||
"source_name": "DDUNPR",
|
||||
"source_type": "NUMERIC(12,5)",
|
||||
"dest_name": "ddunpr",
|
||||
"dest_type": "numeric",
|
||||
"description": "Unit Price"
|
||||
},
|
||||
{
|
||||
"source_name": "DDTOTI",
|
||||
"source_type": "NUMERIC(10,2)",
|
||||
"dest_name": "ddtoti",
|
||||
"dest_type": "numeric",
|
||||
"description": "Item Net Total"
|
||||
},
|
||||
{
|
||||
"source_name": "DDSLMN",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "ddslmn",
|
||||
"dest_type": "text",
|
||||
"description": "Salesman Code"
|
||||
},
|
||||
{
|
||||
"source_name": "DDCPCT",
|
||||
"source_type": "NUMERIC(4,2)",
|
||||
"dest_name": "ddcpct",
|
||||
"dest_type": "numeric",
|
||||
"description": "Comm. %"
|
||||
},
|
||||
{
|
||||
"source_name": "DDCRAT",
|
||||
"source_type": "NUMERIC(5,2)",
|
||||
"dest_name": "ddcrat",
|
||||
"dest_type": "numeric",
|
||||
"description": "Comm. Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "DDAIND",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ddaind",
|
||||
"dest_type": "text",
|
||||
"description": "Active Indicator"
|
||||
},
|
||||
{
|
||||
"source_name": "DDPTEX",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ddptex",
|
||||
"dest_type": "text",
|
||||
"description": "PST Exempt"
|
||||
},
|
||||
{
|
||||
"source_name": "DDFTCD",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "ddftcd",
|
||||
"dest_type": "text",
|
||||
"description": "FST Code"
|
||||
},
|
||||
{
|
||||
"source_name": "DDRDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "ddrdat",
|
||||
"dest_type": "date",
|
||||
"description": "Promise Date"
|
||||
},
|
||||
{
|
||||
"source_name": "DDMAJS",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "ddmajs",
|
||||
"dest_type": "text",
|
||||
"description": "Major Sales Code"
|
||||
},
|
||||
{
|
||||
"source_name": "DDMINS",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "ddmins",
|
||||
"dest_type": "text",
|
||||
"description": "Minor Sales Code"
|
||||
},
|
||||
{
|
||||
"source_name": "DDITST",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "dditst",
|
||||
"dest_type": "text",
|
||||
"description": "Status Open, B/o, Compl."
|
||||
},
|
||||
{
|
||||
"source_name": "DDPART",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "ddpart",
|
||||
"dest_type": "text",
|
||||
"description": "Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "DDGLC",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "ddglc",
|
||||
"dest_type": "text",
|
||||
"description": "G/L Sales Code"
|
||||
},
|
||||
{
|
||||
"source_name": "DDCRRS",
|
||||
"source_type": "CHAR(2)",
|
||||
"dest_name": "ddcrrs",
|
||||
"dest_type": "text",
|
||||
"description": "Credit Reason"
|
||||
},
|
||||
{
|
||||
"source_name": "DDSDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "ddsdat",
|
||||
"dest_type": "date",
|
||||
"description": "Ship Date"
|
||||
},
|
||||
{
|
||||
"source_name": "DDTXGR",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "ddtxgr",
|
||||
"dest_type": "text",
|
||||
"description": "Tax Group"
|
||||
},
|
||||
{
|
||||
"source_name": "DDTXRT",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ddtxrt",
|
||||
"dest_type": "text",
|
||||
"description": "Tax Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "DDNU07",
|
||||
"source_type": "CHAR(7)",
|
||||
"dest_name": "ddnu07",
|
||||
"dest_type": "text",
|
||||
"description": "Not used"
|
||||
},
|
||||
{
|
||||
"source_name": "DDTMPS",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ddtmps",
|
||||
"dest_type": "text",
|
||||
"description": "Temporary - Used by Release"
|
||||
},
|
||||
{
|
||||
"source_name": "DDTEMP",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "ddtemp",
|
||||
"dest_type": "numeric",
|
||||
"description": "Temporary - Used by Release"
|
||||
},
|
||||
{
|
||||
"source_name": "DDQTOO",
|
||||
"source_type": "NUMERIC(10,2)",
|
||||
"dest_name": "ddqtoo",
|
||||
"dest_type": "numeric",
|
||||
"description": "Quantity Ordered OU"
|
||||
},
|
||||
{
|
||||
"source_name": "DDQTBO",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "ddqtbo",
|
||||
"dest_type": "numeric",
|
||||
"description": "Quantity Backordered OU"
|
||||
},
|
||||
{
|
||||
"source_name": "DDQTSO",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "ddqtso",
|
||||
"dest_type": "numeric",
|
||||
"description": "Quantity Shipped OU"
|
||||
},
|
||||
{
|
||||
"source_name": "DDORUN",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "ddorun",
|
||||
"dest_type": "text",
|
||||
"description": "Order Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "DDQTSP",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "ddqtsp",
|
||||
"dest_type": "numeric",
|
||||
"description": "Quantity Shipped PU"
|
||||
},
|
||||
{
|
||||
"source_name": "DDPRUN",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "ddprun",
|
||||
"dest_type": "text",
|
||||
"description": "Pricing Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "DDTOTB",
|
||||
"source_type": "NUMERIC(10,2)",
|
||||
"dest_name": "ddtotb",
|
||||
"dest_type": "numeric",
|
||||
"description": "Base Total"
|
||||
},
|
||||
{
|
||||
"source_name": "DDTDIS",
|
||||
"source_type": "NUMERIC(10,2)",
|
||||
"dest_name": "ddtdis",
|
||||
"dest_type": "numeric",
|
||||
"description": "Total Discounts"
|
||||
},
|
||||
{
|
||||
"source_name": "DDTTAX",
|
||||
"source_type": "NUMERIC(10,2)",
|
||||
"dest_name": "ddttax",
|
||||
"dest_type": "numeric",
|
||||
"description": "Total Tax"
|
||||
},
|
||||
{
|
||||
"source_name": "DDTFRT",
|
||||
"source_type": "NUMERIC(10,2)",
|
||||
"dest_name": "ddtfrt",
|
||||
"dest_type": "numeric",
|
||||
"description": "Total Freight"
|
||||
},
|
||||
{
|
||||
"source_name": "DDTWGT",
|
||||
"source_type": "NUMERIC(10,2)",
|
||||
"dest_name": "ddtwgt",
|
||||
"dest_type": "numeric",
|
||||
"description": "Total Weight"
|
||||
},
|
||||
{
|
||||
"source_name": "DDTWUN",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "ddtwun",
|
||||
"dest_type": "text",
|
||||
"description": "Weight Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "DDTVOL",
|
||||
"source_type": "NUMERIC(10,2)",
|
||||
"dest_name": "ddtvol",
|
||||
"dest_type": "numeric",
|
||||
"description": "Total Volume"
|
||||
},
|
||||
{
|
||||
"source_name": "DDTVUN",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "ddtvun",
|
||||
"dest_type": "text",
|
||||
"description": "Volume Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "DDODAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "ddodat",
|
||||
"dest_type": "date",
|
||||
"description": "Original Date Requested"
|
||||
},
|
||||
{
|
||||
"source_name": "DDSTKL",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "ddstkl",
|
||||
"dest_type": "text",
|
||||
"description": "Stock Location"
|
||||
},
|
||||
{
|
||||
"source_name": "DDSTOR",
|
||||
"source_type": "CHAR(17)",
|
||||
"dest_name": "ddstor",
|
||||
"dest_type": "text",
|
||||
"description": "Store Number"
|
||||
},
|
||||
{
|
||||
"source_name": "DDDDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "ddddat",
|
||||
"dest_type": "date",
|
||||
"description": "Don't Ship Before"
|
||||
},
|
||||
{
|
||||
"source_name": "DDFDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "ddfdat",
|
||||
"dest_type": "date",
|
||||
"description": "Confirm Ship Date NOT USE"
|
||||
},
|
||||
{
|
||||
"source_name": "DDHDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "ddhdat",
|
||||
"dest_type": "date",
|
||||
"description": "Reschedule Date NOT USE"
|
||||
},
|
||||
{
|
||||
"source_name": "DDQDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "ddqdat",
|
||||
"dest_type": "date",
|
||||
"description": "Request Date"
|
||||
},
|
||||
{
|
||||
"source_name": "DDCDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "ddcdat",
|
||||
"dest_type": "date",
|
||||
"description": "Cancel Date"
|
||||
},
|
||||
{
|
||||
"source_name": "DDOLST",
|
||||
"source_type": "NUMERIC(7,0)",
|
||||
"dest_name": "ddolst",
|
||||
"dest_type": "numeric",
|
||||
"description": "Option List"
|
||||
},
|
||||
{
|
||||
"source_name": "DDCTMS",
|
||||
"source_type": "TIMESTMP",
|
||||
"dest_name": "ddctms",
|
||||
"dest_type": "time without time zone",
|
||||
"description": "Item Created Timestamp"
|
||||
},
|
||||
{
|
||||
"source_name": "DDCUSR",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "ddcusr",
|
||||
"dest_type": "text",
|
||||
"description": "Created By User"
|
||||
},
|
||||
{
|
||||
"source_name": "DDDBUY",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "dddbuy",
|
||||
"dest_type": "text",
|
||||
"description": "Direct Buy"
|
||||
},
|
||||
{
|
||||
"source_name": "DDREQ#",
|
||||
"source_type": "NUMERIC(9,0)",
|
||||
"dest_name": "ddreq#",
|
||||
"dest_type": "numeric",
|
||||
"description": "P/O Requisition Number"
|
||||
},
|
||||
{
|
||||
"source_name": "DDPJNM",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "ddpjnm",
|
||||
"dest_type": "text",
|
||||
"description": "Project Number"
|
||||
},
|
||||
{
|
||||
"source_name": "DDFUT1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ddfut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "DDFUT2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ddfut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "DDFUT3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ddfut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "DDFUT4",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "ddfut4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "DDFUT5",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "ddfut5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "DDFUT6",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "ddfut6",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "DDFUT7",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "ddfut7",
|
||||
"dest_type": "numeric",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "DDFUT8",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "ddfut8",
|
||||
"dest_type": "numeric",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "DDFUT9",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "ddfut9",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "DDFUTA",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "ddfuta",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "DDFUTB",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "ddfutb",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "DDFUTC",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "ddfutc",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "DDFUTD",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "ddfutd",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "DDWTCH",
|
||||
"source_type": "NUMERIC(9,0)",
|
||||
"dest_name": "ddwtch",
|
||||
"dest_type": "numeric",
|
||||
"description": "Warranty Claim Number"
|
||||
},
|
||||
{
|
||||
"source_name": "DDWTCI",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "ddwtci",
|
||||
"dest_type": "numeric",
|
||||
"description": "Warranty Claim Dtl #"
|
||||
},
|
||||
{
|
||||
"source_name": "DDLDSQ",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "ddldsq",
|
||||
"dest_type": "numeric",
|
||||
"description": "Load Sequence Number"
|
||||
},
|
||||
{
|
||||
"source_name": "DDRAN#",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "ddran#",
|
||||
"dest_type": "text",
|
||||
"description": "Customer RAN Number"
|
||||
},
|
||||
{
|
||||
"source_name": "DDCTMZ",
|
||||
"source_type": "CHAR(4)",
|
||||
"dest_name": "ddctmz",
|
||||
"dest_type": "text",
|
||||
"description": "Cancel Date Time Zone"
|
||||
},
|
||||
{
|
||||
"source_name": "DDOTMZ",
|
||||
"source_type": "CHAR(4)",
|
||||
"dest_name": "ddotmz",
|
||||
"dest_type": "text",
|
||||
"description": "Original Date Requested Time Zone"
|
||||
},
|
||||
{
|
||||
"source_name": "DDRTMZ",
|
||||
"source_type": "CHAR(4)",
|
||||
"dest_name": "ddrtmz",
|
||||
"dest_type": "text",
|
||||
"description": "Promise Date Time Zone"
|
||||
},
|
||||
{
|
||||
"source_name": "DDQTMZ",
|
||||
"source_type": "CHAR(4)",
|
||||
"dest_name": "ddqtmz",
|
||||
"dest_type": "text",
|
||||
"description": "Request Date Time Zone"
|
||||
},
|
||||
{
|
||||
"source_name": "DDSTMZ",
|
||||
"source_type": "CHAR(4)",
|
||||
"dest_name": "ddstmz",
|
||||
"dest_type": "text",
|
||||
"description": "Ship Date Time Zone"
|
||||
},
|
||||
{
|
||||
"source_name": "DDRTME",
|
||||
"source_type": "NUMERIC(4,0)",
|
||||
"dest_name": "ddrtme",
|
||||
"dest_type": "numeric",
|
||||
"description": "Promise Time"
|
||||
},
|
||||
{
|
||||
"source_name": "DDQTME",
|
||||
"source_type": "NUMERIC(4,0)",
|
||||
"dest_name": "ddqtme",
|
||||
"dest_type": "numeric",
|
||||
"description": "Request Time"
|
||||
},
|
||||
{
|
||||
"source_name": "DDSTME",
|
||||
"source_type": "NUMERIC(4,0)",
|
||||
"dest_name": "ddstme",
|
||||
"dest_type": "numeric",
|
||||
"description": "Ship Time"
|
||||
},
|
||||
{
|
||||
"source_name": "DDRXDT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "ddrxdt",
|
||||
"dest_type": "date",
|
||||
"description": "Promise Date Cust TM"
|
||||
},
|
||||
{
|
||||
"source_name": "DDRXTM",
|
||||
"source_type": "NUMERIC(4,0)",
|
||||
"dest_name": "ddrxtm",
|
||||
"dest_type": "numeric",
|
||||
"description": "Promise Time Cust TM"
|
||||
},
|
||||
{
|
||||
"source_name": "DDQXDT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "ddqxdt",
|
||||
"dest_type": "date",
|
||||
"description": "Request Date Cust TM"
|
||||
},
|
||||
{
|
||||
"source_name": "DDQXTM",
|
||||
"source_type": "NUMERIC(4,0)",
|
||||
"dest_name": "ddqxtm",
|
||||
"dest_type": "numeric",
|
||||
"description": "Request Time Cust TM"
|
||||
},
|
||||
{
|
||||
"source_name": "DDPTYP",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ddptyp",
|
||||
"dest_type": "text",
|
||||
"description": "Pick Type"
|
||||
},
|
||||
{
|
||||
"source_name": "DDAWLS",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ddawls",
|
||||
"dest_type": "text",
|
||||
"description": "Allow Late Shipment"
|
||||
},
|
||||
{
|
||||
"source_name": "DDPOIT",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "ddpoit",
|
||||
"dest_type": "numeric",
|
||||
"description": "Parent Order Item"
|
||||
},
|
||||
{
|
||||
"source_name": "DDSRVC",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ddsrvc",
|
||||
"dest_type": "text",
|
||||
"description": "Service Charge OCRI"
|
||||
},
|
||||
{
|
||||
"source_name": "DDPRCL",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ddprcl",
|
||||
"dest_type": "text",
|
||||
"description": "Price Lock"
|
||||
},
|
||||
{
|
||||
"source_name": "DDAVAC",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ddavac",
|
||||
"dest_type": "text",
|
||||
"description": "Availability Checked"
|
||||
},
|
||||
{
|
||||
"source_name": "DDDBAC",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "dddbac",
|
||||
"dest_type": "text",
|
||||
"description": "Direct Buy Action"
|
||||
},
|
||||
{
|
||||
"source_name": "DDSCDP",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ddscdp",
|
||||
"dest_type": "text",
|
||||
"description": "SCD Part"
|
||||
},
|
||||
{
|
||||
"source_name": "DDSOCP",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "ddsocp",
|
||||
"dest_type": "text",
|
||||
"description": "SCD Drop-Ship Orig. Cust. Part #"
|
||||
},
|
||||
{
|
||||
"source_name": "DDCSPI",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "ddcspi",
|
||||
"dest_type": "text",
|
||||
"description": "Customer Purchase Order Item"
|
||||
},
|
||||
{
|
||||
"source_name": "DDSCPI",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "ddscpi",
|
||||
"dest_type": "text",
|
||||
"description": "SCD Drop-Ship Customer PO Item #"
|
||||
},
|
||||
{
|
||||
"source_name": "DDSCOR",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "ddscor",
|
||||
"dest_type": "text",
|
||||
"description": "SCD Tier-1 Order #"
|
||||
},
|
||||
{
|
||||
"source_name": "DDSCIM",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "ddscim",
|
||||
"dest_type": "text",
|
||||
"description": "SCD Tier-1 Order Item #"
|
||||
},
|
||||
{
|
||||
"source_name": "DDREV#",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "ddrev#",
|
||||
"dest_type": "text",
|
||||
"description": "Customer Revision Number"
|
||||
},
|
||||
{
|
||||
"source_name": "DDCSPA",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "ddcspa",
|
||||
"dest_type": "text",
|
||||
"description": "Customer Alias Part Number"
|
||||
},
|
||||
{
|
||||
"source_name": "DDOITM",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "ddoitm",
|
||||
"dest_type": "numeric",
|
||||
"description": "Item Number"
|
||||
},
|
||||
{
|
||||
"source_name": "DDFROM",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ddfrom",
|
||||
"dest_type": "text",
|
||||
"description": "Order Origination"
|
||||
},
|
||||
{
|
||||
"source_name": "DDMMEL",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ddmmel",
|
||||
"dest_type": "text",
|
||||
"description": "Min/Max Lock"
|
||||
},
|
||||
{
|
||||
"source_name": "DDFEAT",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "ddfeat",
|
||||
"dest_type": "text",
|
||||
"description": "Feature"
|
||||
},
|
||||
{
|
||||
"source_name": "DDOPTN",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "ddoptn",
|
||||
"dest_type": "text",
|
||||
"description": "Option"
|
||||
}
|
||||
],
|
||||
"watermarks": [
|
||||
{
|
||||
"name": "qcri_wm",
|
||||
"connection": "usmidsap02",
|
||||
"resolver_sql": "SELECT COALESCE(MAX(dcudat), DATE '1900-01-01') - 7 FROM cms.qcrh WHERE dcudat <= current_date",
|
||||
"default_value": null
|
||||
}
|
||||
],
|
||||
"hooks": []
|
||||
}
|
||||
115
config/modules/qcri.sql
Normal file
115
config/modules/qcri.sql
Normal file
@ -0,0 +1,115 @@
|
||||
WITH changed AS (
|
||||
SELECT dcord# FROM lgdat.qcrh WHERE dcudat BETWEEN '{qcri_wm}' AND CURRENT_DATE
|
||||
UNION
|
||||
SELECT dcord# FROM lgdat.qcrh WHERE dcodat BETWEEN '{qcri_wm}' AND CURRENT_DATE
|
||||
UNION
|
||||
SELECT dcord# FROM lgdat.qcrh WHERE dccdat BETWEEN '{qcri_wm}' AND CURRENT_DATE
|
||||
)
|
||||
SELECT
|
||||
"DDORD#" AS "ddord#",
|
||||
"DDITM#" AS "dditm#",
|
||||
"DDDES#" AS "dddes#",
|
||||
DDQTOI AS ddqtoi,
|
||||
DDQTBI AS ddqtbi,
|
||||
DDQTSI AS ddqtsi,
|
||||
RTRIM(DDUNIT) AS ddunit,
|
||||
DDUNPR AS ddunpr,
|
||||
DDTOTI AS ddtoti,
|
||||
RTRIM(DDSLMN) AS ddslmn,
|
||||
DDCPCT AS ddcpct,
|
||||
DDCRAT AS ddcrat,
|
||||
RTRIM(DDAIND) AS ddaind,
|
||||
RTRIM(DDPTEX) AS ddptex,
|
||||
RTRIM(DDFTCD) AS ddftcd,
|
||||
CASE WHEN DDRDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DDRDAT END AS ddrdat,
|
||||
RTRIM(DDMAJS) AS ddmajs,
|
||||
RTRIM(DDMINS) AS ddmins,
|
||||
RTRIM(DDITST) AS dditst,
|
||||
RTRIM(DDPART) AS ddpart,
|
||||
RTRIM(DDGLC) AS ddglc,
|
||||
RTRIM(DDCRRS) AS ddcrrs,
|
||||
CASE WHEN DDSDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DDSDAT END AS ddsdat,
|
||||
RTRIM(DDTXGR) AS ddtxgr,
|
||||
RTRIM(DDTXRT) AS ddtxrt,
|
||||
RTRIM(DDNU07) AS ddnu07,
|
||||
RTRIM(DDTMPS) AS ddtmps,
|
||||
DDTEMP AS ddtemp,
|
||||
DDQTOO AS ddqtoo,
|
||||
DDQTBO AS ddqtbo,
|
||||
DDQTSO AS ddqtso,
|
||||
RTRIM(DDORUN) AS ddorun,
|
||||
DDQTSP AS ddqtsp,
|
||||
RTRIM(DDPRUN) AS ddprun,
|
||||
DDTOTB AS ddtotb,
|
||||
DDTDIS AS ddtdis,
|
||||
DDTTAX AS ddttax,
|
||||
DDTFRT AS ddtfrt,
|
||||
DDTWGT AS ddtwgt,
|
||||
RTRIM(DDTWUN) AS ddtwun,
|
||||
DDTVOL AS ddtvol,
|
||||
RTRIM(DDTVUN) AS ddtvun,
|
||||
CASE WHEN DDODAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DDODAT END AS ddodat,
|
||||
RTRIM(DDSTKL) AS ddstkl,
|
||||
RTRIM(DDSTOR) AS ddstor,
|
||||
CASE WHEN DDDDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DDDDAT END AS ddddat,
|
||||
CASE WHEN DDFDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DDFDAT END AS ddfdat,
|
||||
CASE WHEN DDHDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DDHDAT END AS ddhdat,
|
||||
CASE WHEN DDQDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DDQDAT END AS ddqdat,
|
||||
CASE WHEN DDCDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DDCDAT END AS ddcdat,
|
||||
DDOLST AS ddolst,
|
||||
DDCTMS AS ddctms,
|
||||
RTRIM(DDCUSR) AS ddcusr,
|
||||
RTRIM(DDDBUY) AS dddbuy,
|
||||
"DDREQ#" AS "ddreq#",
|
||||
RTRIM(DDPJNM) AS ddpjnm,
|
||||
RTRIM(DDFUT1) AS ddfut1,
|
||||
RTRIM(DDFUT2) AS ddfut2,
|
||||
RTRIM(DDFUT3) AS ddfut3,
|
||||
RTRIM(DDFUT4) AS ddfut4,
|
||||
RTRIM(DDFUT5) AS ddfut5,
|
||||
RTRIM(DDFUT6) AS ddfut6,
|
||||
DDFUT7 AS ddfut7,
|
||||
DDFUT8 AS ddfut8,
|
||||
RTRIM(DDFUT9) AS ddfut9,
|
||||
RTRIM(DDFUTA) AS ddfuta,
|
||||
RTRIM(DDFUTB) AS ddfutb,
|
||||
RTRIM(DDFUTC) AS ddfutc,
|
||||
RTRIM(DDFUTD) AS ddfutd,
|
||||
DDWTCH AS ddwtch,
|
||||
DDWTCI AS ddwtci,
|
||||
DDLDSQ AS ddldsq,
|
||||
RTRIM("DDRAN#") AS "ddran#",
|
||||
RTRIM(DDCTMZ) AS ddctmz,
|
||||
RTRIM(DDOTMZ) AS ddotmz,
|
||||
RTRIM(DDRTMZ) AS ddrtmz,
|
||||
RTRIM(DDQTMZ) AS ddqtmz,
|
||||
RTRIM(DDSTMZ) AS ddstmz,
|
||||
DDRTME AS ddrtme,
|
||||
DDQTME AS ddqtme,
|
||||
DDSTME AS ddstme,
|
||||
CASE WHEN DDRXDT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DDRXDT END AS ddrxdt,
|
||||
DDRXTM AS ddrxtm,
|
||||
CASE WHEN DDQXDT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE DDQXDT END AS ddqxdt,
|
||||
DDQXTM AS ddqxtm,
|
||||
RTRIM(DDPTYP) AS ddptyp,
|
||||
RTRIM(DDAWLS) AS ddawls,
|
||||
DDPOIT AS ddpoit,
|
||||
RTRIM(DDSRVC) AS ddsrvc,
|
||||
RTRIM(DDPRCL) AS ddprcl,
|
||||
RTRIM(DDAVAC) AS ddavac,
|
||||
RTRIM(DDDBAC) AS dddbac,
|
||||
RTRIM(DDSCDP) AS ddscdp,
|
||||
RTRIM(DDSOCP) AS ddsocp,
|
||||
RTRIM(DDCSPI) AS ddcspi,
|
||||
RTRIM(DDSCPI) AS ddscpi,
|
||||
RTRIM(DDSCOR) AS ddscor,
|
||||
RTRIM(DDSCIM) AS ddscim,
|
||||
RTRIM("DDREV#") AS "ddrev#",
|
||||
RTRIM(DDCSPA) AS ddcspa,
|
||||
DDOITM AS ddoitm,
|
||||
RTRIM(DDFROM) AS ddfrom,
|
||||
RTRIM(DDMMEL) AS ddmmel,
|
||||
RTRIM(DDFEAT) AS ddfeat,
|
||||
RTRIM(DDOPTN) AS ddoptn
|
||||
FROM LGDAT.QCRI i
|
||||
INNER JOIN changed c ON c.dcord# = i.ddord#
|
||||
120
config/modules/qcrs.json
Normal file
120
config/modules/qcrs.json
Normal file
@ -0,0 +1,120 @@
|
||||
{
|
||||
"name": "qcrs",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.qcrs",
|
||||
"staging_table": "pipekit_staging.qcrs",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Order Discounts/Charges 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "FFORD#",
|
||||
"source_type": "NUMERIC(9,0)",
|
||||
"dest_name": "fford#",
|
||||
"dest_type": "numeric(9,0)",
|
||||
"description": "Customer Order Number"
|
||||
},
|
||||
{
|
||||
"source_name": "FFITM#",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "ffitm#",
|
||||
"dest_type": "numeric(3,0)",
|
||||
"description": "Item Number"
|
||||
},
|
||||
{
|
||||
"source_name": "FFDIS#",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "ffdis#",
|
||||
"dest_type": "numeric(3,0)",
|
||||
"description": "Discount Number"
|
||||
},
|
||||
{
|
||||
"source_name": "FFDISC",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "ffdisc",
|
||||
"dest_type": "text",
|
||||
"description": "Discount Code"
|
||||
},
|
||||
{
|
||||
"source_name": "FFDDES",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "ffddes",
|
||||
"dest_type": "text",
|
||||
"description": "Discount Description"
|
||||
},
|
||||
{
|
||||
"source_name": "FFDRCR",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ffdrcr",
|
||||
"dest_type": "text",
|
||||
"description": "Debit Credit"
|
||||
},
|
||||
{
|
||||
"source_name": "FFBANT",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ffbant",
|
||||
"dest_type": "text",
|
||||
"description": "Rate Base"
|
||||
},
|
||||
{
|
||||
"source_name": "FFPERC",
|
||||
"source_type": "NUMERIC(8,5)",
|
||||
"dest_name": "ffperc",
|
||||
"dest_type": "numeric(8,5)",
|
||||
"description": "Discount Percent"
|
||||
},
|
||||
{
|
||||
"source_name": "FFDAMT",
|
||||
"source_type": "NUMERIC(13,5)",
|
||||
"dest_name": "ffdamt",
|
||||
"dest_type": "numeric(13,5)",
|
||||
"description": "Discount Amount"
|
||||
},
|
||||
{
|
||||
"source_name": "FFAPER",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ffaper",
|
||||
"dest_type": "text",
|
||||
"description": "Fixed or per Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "FFDEXT",
|
||||
"source_type": "NUMERIC(10,2)",
|
||||
"dest_name": "ffdext",
|
||||
"dest_type": "numeric(10,2)",
|
||||
"description": "Discount Extension"
|
||||
},
|
||||
{
|
||||
"source_name": "FFAUNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "ffaunt",
|
||||
"dest_type": "text",
|
||||
"description": "Amount Per-Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "FFRTEF",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ffrtef",
|
||||
"dest_type": "text",
|
||||
"description": "Rate Flag"
|
||||
},
|
||||
{
|
||||
"source_name": "FFRNDD",
|
||||
"source_type": "NUMERIC(2,0)",
|
||||
"dest_name": "ffrndd",
|
||||
"dest_type": "numeric(2,0)",
|
||||
"description": "Rounding # of Decimals"
|
||||
},
|
||||
{
|
||||
"source_name": "FFAPLY",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ffaply",
|
||||
"dest_type": "text",
|
||||
"description": "Fixed Discount Applied"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
17
config/modules/qcrs.sql
Normal file
17
config/modules/qcrs.sql
Normal file
@ -0,0 +1,17 @@
|
||||
SELECT
|
||||
"FFORD#" AS "fford#",
|
||||
"FFITM#" AS "ffitm#",
|
||||
"FFDIS#" AS "ffdis#",
|
||||
RTRIM(FFDISC) AS ffdisc,
|
||||
RTRIM(FFDDES) AS ffddes,
|
||||
RTRIM(FFDRCR) AS ffdrcr,
|
||||
RTRIM(FFBANT) AS ffbant,
|
||||
FFPERC AS ffperc,
|
||||
FFDAMT AS ffdamt,
|
||||
RTRIM(FFAPER) AS ffaper,
|
||||
FFDEXT AS ffdext,
|
||||
RTRIM(FFAUNT) AS ffaunt,
|
||||
RTRIM(FFRTEF) AS ffrtef,
|
||||
FFRNDD AS ffrndd,
|
||||
RTRIM(FFAPLY) AS ffaply
|
||||
FROM LGDAT.QCRS
|
||||
92
config/modules/qtnote.json
Normal file
92
config/modules/qtnote.json
Normal file
@ -0,0 +1,92 @@
|
||||
{
|
||||
"name": "qtnote",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.qtnote",
|
||||
"staging_table": "pipekit_staging.qtnote",
|
||||
"merge_strategy": "incremental",
|
||||
"merge_key": "ggord",
|
||||
"enabled": 1,
|
||||
"dest_description": "Note pad file 6.1",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "GGKEY",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "ggkey",
|
||||
"dest_type": "text",
|
||||
"description": "Alpha Key"
|
||||
},
|
||||
{
|
||||
"source_name": "GGPAG#",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "ggpag#",
|
||||
"dest_type": "numeric",
|
||||
"description": "Page Number"
|
||||
},
|
||||
{
|
||||
"source_name": "GGLIN#",
|
||||
"source_type": "NUMERIC(2,0)",
|
||||
"dest_name": "gglin#",
|
||||
"dest_type": "numeric",
|
||||
"description": "Line Number"
|
||||
},
|
||||
{
|
||||
"source_name": "GGTEXT",
|
||||
"source_type": "CHAR(75)",
|
||||
"dest_name": "ggtext",
|
||||
"dest_type": "text",
|
||||
"description": "Text"
|
||||
},
|
||||
{
|
||||
"source_name": "GGFUT1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ggfut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 1"
|
||||
},
|
||||
{
|
||||
"source_name": "GGFUT2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ggfut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 2"
|
||||
},
|
||||
{
|
||||
"source_name": "GGFUT3",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ggfut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 3"
|
||||
},
|
||||
{
|
||||
"source_name": "GGFUT4",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "ggfut4",
|
||||
"dest_type": "text",
|
||||
"description": "Create User ID"
|
||||
},
|
||||
{
|
||||
"source_name": "GGFUT5",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "ggfut5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use 5"
|
||||
},
|
||||
{
|
||||
"id": "c10",
|
||||
"source_name": "SUBSTR(GGKEY,1,9)",
|
||||
"source_type": "CHAR(9)",
|
||||
"dest_name": "ggord",
|
||||
"dest_type": "text"
|
||||
}
|
||||
],
|
||||
"watermarks": [
|
||||
{
|
||||
"name": "qtnote_wm",
|
||||
"connection": "usmidsap02",
|
||||
"resolver_sql": "SELECT COALESCE(MAX(dcudat), DATE '1900-01-01') - 7 FROM cms.qcrh WHERE dcudat <= current_date",
|
||||
"default_value": null
|
||||
}
|
||||
],
|
||||
"hooks": []
|
||||
}
|
||||
20
config/modules/qtnote.sql
Normal file
20
config/modules/qtnote.sql
Normal file
@ -0,0 +1,20 @@
|
||||
WITH changed AS (
|
||||
SELECT DIGITS(dcord#) AS ordkey FROM lgdat.qcrh WHERE dcudat BETWEEN '{qtnote_wm}' AND CURRENT_DATE
|
||||
UNION
|
||||
SELECT DIGITS(dcord#) AS ordkey FROM lgdat.qcrh WHERE dcodat BETWEEN '{qtnote_wm}' AND CURRENT_DATE
|
||||
UNION
|
||||
SELECT DIGITS(dcord#) AS ordkey FROM lgdat.qcrh WHERE dccdat BETWEEN '{qtnote_wm}' AND CURRENT_DATE
|
||||
)
|
||||
SELECT
|
||||
RTRIM(GGKEY) AS ggkey,
|
||||
"GGPAG#" AS "ggpag#",
|
||||
"GGLIN#" AS "gglin#",
|
||||
RTRIM(GGTEXT) AS ggtext,
|
||||
RTRIM(GGFUT1) AS ggfut1,
|
||||
RTRIM(GGFUT2) AS ggfut2,
|
||||
RTRIM(GGFUT3) AS ggfut3,
|
||||
RTRIM(GGFUT4) AS ggfut4,
|
||||
RTRIM(GGFUT5) AS ggfut5,
|
||||
SUBSTR(n.GGKEY, 1, 9) AS ggord
|
||||
FROM LGDAT.QTNOTE n
|
||||
INNER JOIN changed c ON SUBSTR(n.GGKEY, 1, 9) = c.ordkey
|
||||
456
config/modules/resre.json
Normal file
456
config/modules/resre.json
Normal file
@ -0,0 +1,456 @@
|
||||
{
|
||||
"name": "resre",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.resre",
|
||||
"staging_table": "pipekit_staging.resre",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Resource Master File (Equipment) 6.1",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "ABTYPE",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "abtype",
|
||||
"dest_type": "text",
|
||||
"description": "Always E"
|
||||
},
|
||||
{
|
||||
"source_name": "ABDEPT",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "abdept",
|
||||
"dest_type": "text",
|
||||
"description": "Production Department Code"
|
||||
},
|
||||
{
|
||||
"source_name": "ABRESC",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "abresc",
|
||||
"dest_type": "text",
|
||||
"description": "Resource Code"
|
||||
},
|
||||
{
|
||||
"source_name": "ABDES",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "abdes",
|
||||
"dest_type": "text",
|
||||
"description": "Resource Name"
|
||||
},
|
||||
{
|
||||
"source_name": "ABBRDR",
|
||||
"source_type": "NUMERIC(8,2)",
|
||||
"dest_name": "abbrdr",
|
||||
"dest_type": "numeric(8,2)",
|
||||
"description": "Fixed Burden Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "ABCAPT",
|
||||
"source_type": "NUMERIC(4,2)",
|
||||
"dest_name": "abcapt",
|
||||
"dest_type": "numeric(4,2)",
|
||||
"description": "Resource Capacity"
|
||||
},
|
||||
{
|
||||
"source_name": "ABCREW",
|
||||
"source_type": "NUMERIC(2,0)",
|
||||
"dest_name": "abcrew",
|
||||
"dest_type": "numeric(2,0)",
|
||||
"description": "Default Crew Size"
|
||||
},
|
||||
{
|
||||
"source_name": "ABBRDP",
|
||||
"source_type": "NUMERIC(4,0)",
|
||||
"dest_name": "abbrdp",
|
||||
"dest_type": "numeric(4,0)",
|
||||
"description": "Fixed Burden %"
|
||||
},
|
||||
{
|
||||
"source_name": "ABBLNK",
|
||||
"source_type": "CHAR(2)",
|
||||
"dest_name": "abblnk",
|
||||
"dest_type": "text",
|
||||
"description": "Not Used"
|
||||
},
|
||||
{
|
||||
"source_name": "ABSTIM",
|
||||
"source_type": "TIME",
|
||||
"dest_name": "abstim",
|
||||
"dest_type": "time",
|
||||
"description": "Starting Time"
|
||||
},
|
||||
{
|
||||
"source_name": "ABMACG",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "abmacg",
|
||||
"dest_type": "text",
|
||||
"description": "Machine Group"
|
||||
},
|
||||
{
|
||||
"source_name": "ABRDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "abrdat",
|
||||
"dest_type": "date",
|
||||
"description": "Last Report Date"
|
||||
},
|
||||
{
|
||||
"source_name": "ABRTIM",
|
||||
"source_type": "TIME",
|
||||
"dest_name": "abrtim",
|
||||
"dest_type": "time",
|
||||
"description": "Last Report Time"
|
||||
},
|
||||
{
|
||||
"source_name": "ABTMZN",
|
||||
"source_type": "CHAR(4)",
|
||||
"dest_name": "abtmzn",
|
||||
"dest_type": "text",
|
||||
"description": "Time Zone Code"
|
||||
},
|
||||
{
|
||||
"source_name": "ABSCHD",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "abschd",
|
||||
"dest_type": "text",
|
||||
"description": "Schedule Resc"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFINS",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "abfins",
|
||||
"dest_type": "text",
|
||||
"description": "Finitely Sched Type"
|
||||
},
|
||||
{
|
||||
"source_name": "ABLABS",
|
||||
"source_type": "NUMERIC(8,2)",
|
||||
"dest_name": "ablabs",
|
||||
"dest_type": "numeric(8,2)",
|
||||
"description": "Set-up Labour Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "ABLABR",
|
||||
"source_type": "NUMERIC(8,2)",
|
||||
"dest_name": "ablabr",
|
||||
"dest_type": "numeric(8,2)",
|
||||
"description": "Run Labour Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "ABVBRD",
|
||||
"source_type": "NUMERIC(8,2)",
|
||||
"dest_name": "abvbrd",
|
||||
"dest_type": "numeric(8,2)",
|
||||
"description": "Variable Burden Rate"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFRML",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "abfrml",
|
||||
"dest_type": "text",
|
||||
"description": "Def Loc To Draw Inv From"
|
||||
},
|
||||
{
|
||||
"source_name": "ABRCVL",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "abrcvl",
|
||||
"dest_type": "text",
|
||||
"description": "Def Loc To Recv Inv To"
|
||||
},
|
||||
{
|
||||
"source_name": "ABUTLP",
|
||||
"source_type": "NUMERIC(5,2)",
|
||||
"dest_name": "abutlp",
|
||||
"dest_type": "numeric(5,2)",
|
||||
"description": "Utilization Percentage"
|
||||
},
|
||||
{
|
||||
"source_name": "ABBDVP",
|
||||
"source_type": "NUMERIC(4,0)",
|
||||
"dest_name": "abbdvp",
|
||||
"dest_type": "numeric(4,0)",
|
||||
"description": "Variable Burden %"
|
||||
},
|
||||
{
|
||||
"source_name": "ABWPDR",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "abwpdr",
|
||||
"dest_type": "text",
|
||||
"description": "WIP Draw From"
|
||||
},
|
||||
{
|
||||
"source_name": "ABWPRV",
|
||||
"source_type": "CHAR(6)",
|
||||
"dest_name": "abwprv",
|
||||
"dest_type": "text",
|
||||
"description": "WIP Receive To"
|
||||
},
|
||||
{
|
||||
"source_name": "ABCDRC",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "abcdrc",
|
||||
"dest_type": "text",
|
||||
"description": "Cost Driver Code"
|
||||
},
|
||||
{
|
||||
"source_name": "ABCDRF",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "abcdrf",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Driver Rate Fixed Burden"
|
||||
},
|
||||
{
|
||||
"source_name": "ABCDRV",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "abcdrv",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Driver Rate Variable Burden"
|
||||
},
|
||||
{
|
||||
"source_name": "ABCDUM",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "abcdum",
|
||||
"dest_type": "text",
|
||||
"description": "Driver Rate Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "ABUSLF",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "abuslf",
|
||||
"dest_type": "text",
|
||||
"description": "Use Labour Fixed"
|
||||
},
|
||||
{
|
||||
"source_name": "ABUSLV",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "abuslv",
|
||||
"dest_type": "text",
|
||||
"description": "Use Labour Variable"
|
||||
},
|
||||
{
|
||||
"source_name": "ABPLNT",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "abplnt",
|
||||
"dest_type": "text",
|
||||
"description": "Plant Code"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT1",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "abfut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT2",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "abfut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ABWSFI",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "abwsfi",
|
||||
"dest_type": "text",
|
||||
"description": "HMI Event Feature Id"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT3",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "abfut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT4",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "abfut4",
|
||||
"dest_type": "text",
|
||||
"description": "Mattec Resource code"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT5",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "abfut5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT6",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "abfut6",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Maximum Size"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT7",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "abfut7",
|
||||
"dest_type": "text",
|
||||
"description": "Maximum Size Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT8",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "abfut8",
|
||||
"dest_type": "text",
|
||||
"description": "Mattec Resource"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT9",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "abfut9",
|
||||
"dest_type": "text",
|
||||
"description": "Constraint Type"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUTA",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "abfuta",
|
||||
"dest_type": "text",
|
||||
"description": "Mattec Speed Type"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUTB",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "abfutb",
|
||||
"dest_type": "text",
|
||||
"description": "Post Batch Reporting"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUTC",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "abfutc",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ABDBR",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "abdbr",
|
||||
"dest_type": "text",
|
||||
"description": "DBR Resource"
|
||||
},
|
||||
{
|
||||
"source_name": "ABDBUF",
|
||||
"source_type": "NUMERIC(5,2)",
|
||||
"dest_name": "abdbuf",
|
||||
"dest_type": "numeric(5,2)",
|
||||
"description": "DBR Safety Buffer"
|
||||
},
|
||||
{
|
||||
"source_name": "ABSLTP",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "absltp",
|
||||
"dest_type": "text",
|
||||
"description": "Spec. Tolerance Type"
|
||||
},
|
||||
{
|
||||
"source_name": "ABLSL",
|
||||
"source_type": "NUMERIC(5,2)",
|
||||
"dest_name": "ablsl",
|
||||
"dest_type": "numeric(5,2)",
|
||||
"description": "Lower Spec. Tolerance"
|
||||
},
|
||||
{
|
||||
"source_name": "ABUSL",
|
||||
"source_type": "NUMERIC(5,2)",
|
||||
"dest_name": "abusl",
|
||||
"dest_type": "numeric(5,2)",
|
||||
"description": "Upper Spec. Tolerance"
|
||||
},
|
||||
{
|
||||
"source_name": "ABNPF",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "abnpf",
|
||||
"dest_type": "numeric(3,0)",
|
||||
"description": "Non-production Limit Factor"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT10",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "abfut10",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT11",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "abfut11",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT12",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "abfut12",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT13",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "abfut13",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT14",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "abfut14",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT15",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "abfut15",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT16",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "abfut16",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT17",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "abfut17",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ABFUT18",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "abfut18",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "ABVKTR",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "abvktr",
|
||||
"dest_type": "text",
|
||||
"description": "Virtual Kanban Time-On-Hand Range Code"
|
||||
},
|
||||
{
|
||||
"source_name": "ABVKTY",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "abvkty",
|
||||
"dest_type": "text",
|
||||
"description": "Virtual Kanban Type"
|
||||
},
|
||||
{
|
||||
"source_name": "ABMCOA",
|
||||
"source_type": "NUMERIC(3,0)",
|
||||
"dest_name": "abmcoa",
|
||||
"dest_type": "numeric(3,0)",
|
||||
"description": "Machine Overall Efficiency"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
65
config/modules/resre.sql
Normal file
65
config/modules/resre.sql
Normal file
@ -0,0 +1,65 @@
|
||||
SELECT
|
||||
RTRIM(ABTYPE) AS abtype,
|
||||
RTRIM(ABDEPT) AS abdept,
|
||||
RTRIM(ABRESC) AS abresc,
|
||||
RTRIM(ABDES) AS abdes,
|
||||
ABBRDR AS abbrdr,
|
||||
ABCAPT AS abcapt,
|
||||
ABCREW AS abcrew,
|
||||
ABBRDP AS abbrdp,
|
||||
RTRIM(ABBLNK) AS abblnk,
|
||||
ABSTIM AS abstim,
|
||||
RTRIM(ABMACG) AS abmacg,
|
||||
CASE WHEN ABRDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE ABRDAT END AS abrdat,
|
||||
ABRTIM AS abrtim,
|
||||
RTRIM(ABTMZN) AS abtmzn,
|
||||
RTRIM(ABSCHD) AS abschd,
|
||||
RTRIM(ABFINS) AS abfins,
|
||||
ABLABS AS ablabs,
|
||||
ABLABR AS ablabr,
|
||||
ABVBRD AS abvbrd,
|
||||
RTRIM(ABFRML) AS abfrml,
|
||||
RTRIM(ABRCVL) AS abrcvl,
|
||||
ABUTLP AS abutlp,
|
||||
ABBDVP AS abbdvp,
|
||||
RTRIM(ABWPDR) AS abwpdr,
|
||||
RTRIM(ABWPRV) AS abwprv,
|
||||
RTRIM(ABCDRC) AS abcdrc,
|
||||
ABCDRF AS abcdrf,
|
||||
ABCDRV AS abcdrv,
|
||||
RTRIM(ABCDUM) AS abcdum,
|
||||
RTRIM(ABUSLF) AS abuslf,
|
||||
RTRIM(ABUSLV) AS abuslv,
|
||||
RTRIM(ABPLNT) AS abplnt,
|
||||
RTRIM(ABFUT1) AS abfut1,
|
||||
RTRIM(ABFUT2) AS abfut2,
|
||||
RTRIM(ABWSFI) AS abwsfi,
|
||||
RTRIM(ABFUT3) AS abfut3,
|
||||
RTRIM(ABFUT4) AS abfut4,
|
||||
RTRIM(ABFUT5) AS abfut5,
|
||||
ABFUT6 AS abfut6,
|
||||
RTRIM(ABFUT7) AS abfut7,
|
||||
RTRIM(ABFUT8) AS abfut8,
|
||||
RTRIM(ABFUT9) AS abfut9,
|
||||
RTRIM(ABFUTA) AS abfuta,
|
||||
RTRIM(ABFUTB) AS abfutb,
|
||||
RTRIM(ABFUTC) AS abfutc,
|
||||
RTRIM(ABDBR) AS abdbr,
|
||||
ABDBUF AS abdbuf,
|
||||
RTRIM(ABSLTP) AS absltp,
|
||||
ABLSL AS ablsl,
|
||||
ABUSL AS abusl,
|
||||
ABNPF AS abnpf,
|
||||
RTRIM(ABFUT10) AS abfut10,
|
||||
RTRIM(ABFUT11) AS abfut11,
|
||||
RTRIM(ABFUT12) AS abfut12,
|
||||
RTRIM(ABFUT13) AS abfut13,
|
||||
RTRIM(ABFUT14) AS abfut14,
|
||||
RTRIM(ABFUT15) AS abfut15,
|
||||
RTRIM(ABFUT16) AS abfut16,
|
||||
RTRIM(ABFUT17) AS abfut17,
|
||||
RTRIM(ABFUT18) AS abfut18,
|
||||
RTRIM(ABVKTR) AS abvktr,
|
||||
RTRIM(ABVKTY) AS abvkty,
|
||||
ABMCOA AS abmcoa
|
||||
FROM LGDAT.RESRE
|
||||
281
config/modules/sach.json
Normal file
281
config/modules/sach.json
Normal file
@ -0,0 +1,281 @@
|
||||
{
|
||||
"name": "sach",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.sach",
|
||||
"staging_table": "pipekit_staging.sach",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Sales Channel Master",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "BK7CODE",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "bk7code",
|
||||
"dest_type": "text",
|
||||
"description": "Sales Channel"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7DES1",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "bk7des1",
|
||||
"dest_type": "text",
|
||||
"description": "Sales Channel Description 1"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7DES2",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "bk7des2",
|
||||
"dest_type": "text",
|
||||
"description": "Sales Channel Description 2"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7DES3",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "bk7des3",
|
||||
"dest_type": "text",
|
||||
"description": "Sales Channel Description 3"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7TRAD",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "bk7trad",
|
||||
"dest_type": "text",
|
||||
"description": "Trading Company"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7CARC",
|
||||
"source_type": "CHAR(17)",
|
||||
"dest_name": "bk7carc",
|
||||
"dest_type": "text",
|
||||
"description": "Optional Default Carrier Code"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7SERC",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "bk7serc",
|
||||
"dest_type": "text",
|
||||
"description": "Optional Default Service Code"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7CUSR",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "bk7cusr",
|
||||
"dest_type": "text",
|
||||
"description": "Created By User"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7CDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "bk7cdat",
|
||||
"dest_type": "date",
|
||||
"description": "Date Created"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7CTME",
|
||||
"source_type": "TIME",
|
||||
"dest_name": "bk7ctme",
|
||||
"dest_type": "time",
|
||||
"description": "Time Created"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7UUSR",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "bk7uusr",
|
||||
"dest_type": "text",
|
||||
"description": "Updated By User"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7UDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "bk7udat",
|
||||
"dest_type": "date",
|
||||
"description": "Date Updated"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7UTME",
|
||||
"source_type": "TIME",
|
||||
"dest_name": "bk7utme",
|
||||
"dest_type": "time",
|
||||
"description": "Time Updated"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7SNDAT",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "bk7sndat",
|
||||
"dest_type": "text",
|
||||
"description": "Send Avatax"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7FUT01",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "bk7fut01",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7FUT02",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "bk7fut02",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7FUT03",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "bk7fut03",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7FUT04",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "bk7fut04",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7FUT05",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "bk7fut05",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7FUT06",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "bk7fut06",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7FUT07",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "bk7fut07",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7FUT08",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "bk7fut08",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7FUT09",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "bk7fut09",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7FUT10",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "bk7fut10",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7DBUY",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "bk7dbuy",
|
||||
"dest_type": "text",
|
||||
"description": "Default Direct Buy"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7DBAC",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "bk7dbac",
|
||||
"dest_type": "text",
|
||||
"description": "Default Direct Buy Action"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7PROM",
|
||||
"source_type": "CHAR(35)",
|
||||
"dest_name": "bk7prom",
|
||||
"dest_type": "text",
|
||||
"description": "Default Promotion Number"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7OTYP",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "bk7otyp",
|
||||
"dest_type": "text",
|
||||
"description": "Default Order Type"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7AVAC",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "bk7avac",
|
||||
"dest_type": "text",
|
||||
"description": "Check Available Quantity"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7QTHR",
|
||||
"source_type": "CHAR(2)",
|
||||
"dest_name": "bk7qthr",
|
||||
"dest_type": "text",
|
||||
"description": "Quantity Not Available Hold Reason"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7APPV",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "bk7appv",
|
||||
"dest_type": "text",
|
||||
"description": "Approval Required"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7APPD",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "bk7appd",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Pre-Approved Amount"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7APHR",
|
||||
"source_type": "CHAR(2)",
|
||||
"dest_name": "bk7aphr",
|
||||
"dest_type": "text",
|
||||
"description": "Pending Approval Hold Reason"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7PLCD",
|
||||
"source_type": "CHAR(5)",
|
||||
"dest_name": "bk7plcd",
|
||||
"dest_type": "text",
|
||||
"description": "Override Price List Code"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7EDIS",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "bk7edis",
|
||||
"dest_type": "text",
|
||||
"description": "Extra Discount/Charge Accepted"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7EXPO",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "bk7expo",
|
||||
"dest_type": "text",
|
||||
"description": "Default Expedited Order"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7F0PR",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "bk7f0pr",
|
||||
"dest_type": "text",
|
||||
"description": "Force 0 Price"
|
||||
},
|
||||
{
|
||||
"source_name": "BK7PRTY",
|
||||
"source_type": "NUMERIC(1,0)",
|
||||
"dest_name": "bk7prty",
|
||||
"dest_type": "numeric(1,0)",
|
||||
"description": "Default Priority"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
40
config/modules/sach.sql
Normal file
40
config/modules/sach.sql
Normal file
@ -0,0 +1,40 @@
|
||||
SELECT
|
||||
RTRIM(BK7CODE) AS bk7code,
|
||||
RTRIM(BK7DES1) AS bk7des1,
|
||||
RTRIM(BK7DES2) AS bk7des2,
|
||||
RTRIM(BK7DES3) AS bk7des3,
|
||||
RTRIM(BK7TRAD) AS bk7trad,
|
||||
RTRIM(BK7CARC) AS bk7carc,
|
||||
RTRIM(BK7SERC) AS bk7serc,
|
||||
RTRIM(BK7CUSR) AS bk7cusr,
|
||||
CASE WHEN BK7CDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE BK7CDAT END AS bk7cdat,
|
||||
BK7CTME AS bk7ctme,
|
||||
RTRIM(BK7UUSR) AS bk7uusr,
|
||||
CASE WHEN BK7UDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE BK7UDAT END AS bk7udat,
|
||||
BK7UTME AS bk7utme,
|
||||
RTRIM(BK7SNDAT) AS bk7sndat,
|
||||
RTRIM(BK7FUT01) AS bk7fut01,
|
||||
RTRIM(BK7FUT02) AS bk7fut02,
|
||||
RTRIM(BK7FUT03) AS bk7fut03,
|
||||
RTRIM(BK7FUT04) AS bk7fut04,
|
||||
RTRIM(BK7FUT05) AS bk7fut05,
|
||||
RTRIM(BK7FUT06) AS bk7fut06,
|
||||
BK7FUT07 AS bk7fut07,
|
||||
BK7FUT08 AS bk7fut08,
|
||||
BK7FUT09 AS bk7fut09,
|
||||
BK7FUT10 AS bk7fut10,
|
||||
RTRIM(BK7DBUY) AS bk7dbuy,
|
||||
RTRIM(BK7DBAC) AS bk7dbac,
|
||||
RTRIM(BK7PROM) AS bk7prom,
|
||||
RTRIM(BK7OTYP) AS bk7otyp,
|
||||
RTRIM(BK7AVAC) AS bk7avac,
|
||||
RTRIM(BK7QTHR) AS bk7qthr,
|
||||
RTRIM(BK7APPV) AS bk7appv,
|
||||
BK7APPD AS bk7appd,
|
||||
RTRIM(BK7APHR) AS bk7aphr,
|
||||
RTRIM(BK7PLCD) AS bk7plcd,
|
||||
RTRIM(BK7EDIS) AS bk7edis,
|
||||
RTRIM(BK7EXPO) AS bk7expo,
|
||||
RTRIM(BK7F0PR) AS bk7f0pr,
|
||||
BK7PRTY AS bk7prty
|
||||
FROM LGDAT.SACH
|
||||
127
config/modules/sop10102.json
Normal file
127
config/modules/sop10102.json
Normal file
@ -0,0 +1,127 @@
|
||||
{
|
||||
"name": "sop10102",
|
||||
"source_connection": "sqlserver",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "gp.sop10102",
|
||||
"staging_table": "pipekit_staging.sop10102",
|
||||
"merge_strategy": "incremental",
|
||||
"merge_key": "dex_row_id",
|
||||
"enabled": 1,
|
||||
"dest_description": null,
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "SOPTYPE",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "soptype",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "SOPNUMBE",
|
||||
"source_type": "CHAR(21)",
|
||||
"dest_name": "sopnumbe",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "SEQNUMBR",
|
||||
"source_type": "INT",
|
||||
"dest_name": "seqnumbr",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DISTTYPE",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "disttype",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DistRef",
|
||||
"source_type": "CHAR(31)",
|
||||
"dest_name": "distref",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ACTINDX",
|
||||
"source_type": "INT",
|
||||
"dest_name": "actindx",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEBITAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "debitamt",
|
||||
"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": "CRDTAMNT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "crdtamnt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "ORCRDAMT",
|
||||
"source_type": "NUMERIC(19,5)",
|
||||
"dest_name": "orcrdamt",
|
||||
"dest_type": "numeric(19,5)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "CURRNIDX",
|
||||
"source_type": "SMALLINT",
|
||||
"dest_name": "currnidx",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "TRXSORCE",
|
||||
"source_type": "CHAR(13)",
|
||||
"dest_name": "trxsorce",
|
||||
"dest_type": "text",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "POSTED",
|
||||
"source_type": "TINYINT",
|
||||
"dest_name": "posted",
|
||||
"dest_type": "smallint",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "Contract_Exchange_Rate",
|
||||
"source_type": "NUMERIC(19,7)",
|
||||
"dest_name": "contract_exchange_rate",
|
||||
"dest_type": "numeric(19,7)",
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"source_name": "DEX_ROW_ID",
|
||||
"source_type": "INT",
|
||||
"dest_name": "dex_row_id",
|
||||
"dest_type": "integer",
|
||||
"description": null
|
||||
}
|
||||
],
|
||||
"watermarks": [
|
||||
{
|
||||
"name": "row_id",
|
||||
"connection": "usmidsap02",
|
||||
"resolver_sql": "SELECT MAX(dex_row_id) FROM gp.sop10102",
|
||||
"default_value": null
|
||||
}
|
||||
],
|
||||
"hooks": []
|
||||
}
|
||||
19
config/modules/sop10102.sql
Normal file
19
config/modules/sop10102.sql
Normal file
@ -0,0 +1,19 @@
|
||||
SELECT
|
||||
SOPTYPE AS soptype,
|
||||
SOPNUMBE AS sopnumbe,
|
||||
SEQNUMBR AS seqnumbr,
|
||||
DISTTYPE AS disttype,
|
||||
DistRef AS distref,
|
||||
ACTINDX AS actindx,
|
||||
DEBITAMT AS debitamt,
|
||||
ORDBTAMT AS ordbtamt,
|
||||
CRDTAMNT AS crdtamnt,
|
||||
ORCRDAMT AS orcrdamt,
|
||||
CURRNIDX AS currnidx,
|
||||
TRXSORCE AS trxsorce,
|
||||
POSTED AS posted,
|
||||
Contract_Exchange_Rate AS contract_exchange_rate,
|
||||
DEX_ROW_ID AS dex_row_id
|
||||
FROM [GPSERVER].[CHG].[dbo].[SOP10102]
|
||||
WHERE
|
||||
DEX_ROW_ID >= {row_id}
|
||||
225
config/modules/sscc.json
Normal file
225
config/modules/sscc.json
Normal file
@ -0,0 +1,225 @@
|
||||
{
|
||||
"name": "sscc",
|
||||
"source_connection": "S78030956",
|
||||
"dest_connection": "usmidsap02",
|
||||
"dest_table": "cms.sscc",
|
||||
"staging_table": "pipekit_staging.sscc",
|
||||
"merge_strategy": "full",
|
||||
"merge_key": null,
|
||||
"enabled": 1,
|
||||
"dest_description": "Style/Size/Color Codes file 6.0",
|
||||
"columns": [
|
||||
{
|
||||
"source_name": "SSCTYP",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "ssctyp",
|
||||
"dest_type": "text",
|
||||
"description": "Type"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCCDE",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "ssccde",
|
||||
"dest_type": "text",
|
||||
"description": "Code"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCDE1",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "sscde1",
|
||||
"dest_type": "text",
|
||||
"description": "Desc. 1"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCDE2",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "sscde2",
|
||||
"dest_type": "text",
|
||||
"description": "Desc. 2"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCDE3",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "sscde3",
|
||||
"dest_type": "text",
|
||||
"description": "Desc. 3"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCCUSR",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "ssccusr",
|
||||
"dest_type": "text",
|
||||
"description": "Created By User"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCCDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "ssccdat",
|
||||
"dest_type": "date",
|
||||
"description": "Date Created"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCCTME",
|
||||
"source_type": "TIME",
|
||||
"dest_name": "sscctme",
|
||||
"dest_type": "time",
|
||||
"description": "Time Created"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCUUSR",
|
||||
"source_type": "CHAR(10)",
|
||||
"dest_name": "sscuusr",
|
||||
"dest_type": "text",
|
||||
"description": "Updated By User"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCUDAT",
|
||||
"source_type": "DATE",
|
||||
"dest_name": "sscudat",
|
||||
"dest_type": "date",
|
||||
"description": "Date Updated"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCUTME",
|
||||
"source_type": "TIME",
|
||||
"dest_name": "sscutme",
|
||||
"dest_type": "time",
|
||||
"description": "Time Updated"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCFUT1",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "sscfut1",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCFUT2",
|
||||
"source_type": "CHAR(1)",
|
||||
"dest_name": "sscfut2",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCFUT3",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "sscfut3",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCFUT4",
|
||||
"source_type": "CHAR(20)",
|
||||
"dest_name": "sscfut4",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCFUT5",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "sscfut5",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCFUT6",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "sscfut6",
|
||||
"dest_type": "text",
|
||||
"description": "Future Use"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCLN",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "sscln",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Length"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCLNU",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "ssclnu",
|
||||
"dest_type": "text",
|
||||
"description": "Length Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCWD",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "sscwd",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Width"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCWDU",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "sscwdu",
|
||||
"dest_type": "text",
|
||||
"description": "Width Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCHG",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "sschg",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Height"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCHGU",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "sschgu",
|
||||
"dest_type": "text",
|
||||
"description": "Height Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCWG",
|
||||
"source_type": "NUMERIC(15,5)",
|
||||
"dest_name": "sscwg",
|
||||
"dest_type": "numeric(15,5)",
|
||||
"description": "Weight"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCWGU",
|
||||
"source_type": "CHAR(3)",
|
||||
"dest_name": "sscwgu",
|
||||
"dest_type": "text",
|
||||
"description": "Weight Unit"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCFGTY",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "sscfgty",
|
||||
"dest_type": "text",
|
||||
"description": "Finished Good Type Code"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCFGAT",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "sscfgat",
|
||||
"dest_type": "text",
|
||||
"description": "Finished Good Attribute Code"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCFGCL",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "sscfgcl",
|
||||
"dest_type": "text",
|
||||
"description": "Finished Good Colour Type Code"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCFGFT",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "sscfgft",
|
||||
"dest_type": "text",
|
||||
"description": "Finished Good Flap Style Code"
|
||||
},
|
||||
{
|
||||
"source_name": "SSCFGFZ",
|
||||
"source_type": "CHAR(30)",
|
||||
"dest_name": "sscfgfz",
|
||||
"dest_type": "text",
|
||||
"description": "Finished Good Flap Size Code"
|
||||
}
|
||||
],
|
||||
"watermarks": [],
|
||||
"hooks": []
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user