pipekit/config/modules/icstr.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

395 lines
10 KiB
JSON

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