Only pm00200 (vendor master) covered the AP side; every transactional PM table was missing even though the parallel receivables (rm*) set was fully built out. Add ten modules mirroring that AR structure: pm00100 vendor class setup pm20100 open apply detail pm00300 vendor address master pm30200 paid transaction history pm00400 key master (doc index) pm30300 apply history pm10100 open GL distributions pm30600 GL distribution history pm20000 open transactions pm30700 tax history All full reloads. The whole set is <=230k rows and loads in seconds over the Postgres COPY path, so a watermark buys nothing — and a date-keyed incremental carries the row-level purge drift documented for icstt. pm20000 and pm30200 do have DEX_ROW_TS if that changes. Column maps come from pipekit's own /api/introspect/columns over the GPSERVER linked server. Descriptions are null throughout: GP populates no MS_Description extended properties (CHG has zero), and the metadata lives in the Dexterity dictionary rather than SQL Server. The group is scheduled 0 1 * * * but left disabled, matching the Accounts Receivable group. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
39 lines
1.0 KiB
Transact-SQL
39 lines
1.0 KiB
Transact-SQL
SELECT
|
|
RTRIM([VCHRNMBR]) AS vchrnmbr,
|
|
[DSTSQNUM] AS dstsqnum,
|
|
[CNTRLTYP] AS cntrltyp,
|
|
[CRDTAMNT] AS crdtamnt,
|
|
[DEBITAMT] AS debitamt,
|
|
[DSTINDX] AS dstindx,
|
|
[DISTTYPE] AS disttype,
|
|
[CHANGED] AS changed,
|
|
RTRIM([USERID]) AS userid,
|
|
[PSTGSTUS] AS pstgstus,
|
|
RTRIM([VENDORID]) AS vendorid,
|
|
RTRIM([TRXSORCE]) AS trxsorce,
|
|
[PSTGDATE] AS pstgdate,
|
|
RTRIM([INTERID]) AS interid,
|
|
RTRIM([CURNCYID]) AS curncyid,
|
|
[CURRNIDX] AS currnidx,
|
|
[ORCRDAMT] AS orcrdamt,
|
|
[ORDBTAMT] AS ordbtamt,
|
|
RTRIM([APTVCHNM]) AS aptvchnm,
|
|
[APTODCTY] AS aptodcty,
|
|
[SPCLDIST] AS spcldist,
|
|
RTRIM([DistRef]) AS distref,
|
|
RTRIM([RATETPID]) AS ratetpid,
|
|
RTRIM([EXGTBLID]) AS exgtblid,
|
|
[XCHGRATE] AS xchgrate,
|
|
[EXCHDATE] AS exchdate,
|
|
[TIME1] AS time1,
|
|
[RTCLCMTD] AS rtclcmtd,
|
|
[DECPLACS] AS decplacs,
|
|
[EXPNDATE] AS expndate,
|
|
RTRIM([ICCURRID]) AS iccurrid,
|
|
[ICCURRIX] AS iccurrix,
|
|
[DENXRATE] AS denxrate,
|
|
[MCTRXSTT] AS mctrxstt,
|
|
RTRIM([CorrespondingUnit]) AS correspondingunit,
|
|
[DEX_ROW_ID] AS dex_row_id
|
|
FROM [GPSERVER].[CHG].[dbo].[PM10100]
|