pipekit/config/modules/icstt.json
Paul Trowbridge 217177b3a7 Carry module description through config export/apply
config_io handled dest_description but never the module's own
description field: it was absent from export_config, from both
repo.create_module and repo.update_module calls in apply_config, and
from the change-detection watch tuple. Descriptions set via the web
form were therefore invisible to the config tree — `pipekit apply`
silently ignored a description in a module's JSON, and `pipekit export`
would have dropped all 127 existing ones on a round-trip.

Adding "description" to the watch tuple means a module file without the
key now reads as a change to NULL, so backfill the key into all 131
existing module files from the DB. Without this, the next apply would
have wiped every description it was meant to preserve.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-04 00:05:57 -04:00

388 lines
9.8 KiB
JSON

{
"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",
"description": "Cost History",
"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": []
}