From 0bedaa5657b20f3b8dbfcad28c6094f331a65c9e Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 30 May 2018 13:43:17 -0400 Subject: [PATCH] start work on paycom --- reload/paycom/extract.sql | 32 ++ reload/paycom/load.cmd | 4 + reload/paycom/map.json | 455 ++++++++++++++++++ reload/paycom/srce.json | 67 +++ reload/paycom/vals.json | 952 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 1510 insertions(+) create mode 100644 reload/paycom/extract.sql create mode 100644 reload/paycom/load.cmd create mode 100644 reload/paycom/map.json create mode 100644 reload/paycom/srce.json create mode 100644 reload/paycom/vals.json diff --git a/reload/paycom/extract.sql b/reload/paycom/extract.sql new file mode 100644 index 0000000..2edb86b --- /dev/null +++ b/reload/paycom/extract.sql @@ -0,0 +1,32 @@ +--transactions with date in download format for constraint +COPY +( +SELECT + to_char(r."AsOfDate",'mm/dd/yyyy') "AsOfDate" + ,r."BankId" + ,r."AccountNumber" + ,r."AccountName" + ,r."BaiControl" + ,r."Currency" + ,r."Transaction" + ,r."Reference" + ,r."Amount" + ,r."Description" +FROM + tps.trans + JOIN LATERAL jsonb_populate_record(NULL::tps.pncc, rec) r ON TRUE +WHERE + srce = 'PNCC' +) +TO 'C:\users\ptrowbridge\downloads\pncc.csv' WITH (format csv, header TRUE) + +--source +SELECT DEFN FROM TPS.SRCE WHERE SRCE = 'PNCC' + +--mapdef +SELECT jsonb_agg(row_to_json(x)::jsonb) FROM (SELECT srce, target "name", regex, seq "sequence" FROM tps.map_rm WHERE srce = 'PNCC') x + +--map values +SELECT jsonb_agg(row_to_JSON(x)::jsonb) FROM (SELECT srce "source", target "map", retval ret_val, "map" mapped FROM tps.map_rv WHERE srce = 'PNCC') X + + diff --git a/reload/paycom/load.cmd b/reload/paycom/load.cmd new file mode 100644 index 0000000..fa087a8 --- /dev/null +++ b/reload/paycom/load.cmd @@ -0,0 +1,4 @@ +curl -H "Content-Type: application/json" -X POST -d@./srce.json http://localhost:81/srce_set +curl -H "Content-Type: application/json" -X POST -d@./map.json http://localhost:81/mapdef_set +curl -H "Content-Type: application/json" -X POST -d@./vals.json http://localhost:81/mapval_set +curl -v -F upload=@//mnt/c/Users/ptrowbridge/Downloads/pncc.csv http://localhost:81/import?srce=PNCC \ No newline at end of file diff --git a/reload/paycom/map.json b/reload/paycom/map.json new file mode 100644 index 0000000..f910106 --- /dev/null +++ b/reload/paycom/map.json @@ -0,0 +1,455 @@ +[ + { + "name": "Check Number", + "srce": "PNCC", + "regex": { + "defn": [ + { + "key": "{Description}", + "map": "n", + "field": "checkn", + "regex": "[^0-9]*([0-9]*)\\s|$", + "retain": "y" + } + ], + "where": [ + { + "Transaction": "Checks Paid" + } + ], + "function": "extract" + }, + "sequence": 2 + }, + { + "name": "Strip Amount Commas", + "srce": "PNCC", + "regex": { + "defn": [ + { + "key": "{Amount}", + "map": "n", + "flag": "g", + "field": "amount", + "regex": ",", + "retain": "y", + "replace": "" + } + ], + "name": "Strip Amount Commas", + "where": [ + {} + ], + "function": "replace", + "description": "the Amount field come from PNC with commas embeded so it cannot be cast to numeric" + }, + "sequence": 1 + }, + { + "name": "Trans Type", + "srce": "PNCC", + "regex": { + "defn": [ + { + "key": "{AccountName}", + "map": "y", + "field": "acctn", + "regex": "(.*)", + "retain": "n" + }, + { + "key": "{Transaction}", + "map": "y", + "field": "trans", + "regex": "(.*)", + "retain": "n" + }, + { + "key": "{Description}", + "map": "y", + "field": "ini", + "regex": "([\\w].*?)(?=$| -|\\s[0-9].*?|\\s[\\w/]+?:)", + "retain": "y" + } + ], + "name": "Trans Type", + "where": [ + {} + ], + "function": "extract", + "description": "extract intial description in conjunction with account name and transaction type for mapping" + }, + "sequence": 1 + }, + { + "name": "Currency", + "srce": "PNCC", + "regex": { + "defn": [ + { + "key": "{Description}", + "map": "y", + "field": "ini", + "regex": "([\\w].*?)(?=$| -|\\s[0-9].*?|\\s[\\w/]+?:)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "y", + "field": "curr1", + "regex": ".*(DEBIT|CREDIT).*(USD|CAD).*(?=DEBIT|CREDIT).*(?=USD|CAD).*", + "retain": "y" + }, + { + "key": "{Description}", + "map": "y", + "field": "curr2", + "regex": ".*(?=DEBIT|CREDIT).*(?=USD|CAD).*(DEBIT|CREDIT).*(USD|CAD).*", + "retain": "y" + } + ], + "name": "Currency", + "where": [ + { + "Transaction": "Miscellaneous Credits" + }, + { + "Transaction": "Miscellaneous Debits" + } + ], + "function": "extract", + "description": "pull out currency indicators from description of misc items and map" + }, + "sequence": 2 + }, + { + "name": "Parse ACH Credits", + "srce": "PNCC", + "regex": { + "defn": [ + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "beneficiary", + "regex": "Comp Name:(.+?)(?=\\d{6} Com|SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "Cust ID", + "regex": "Cust ID:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "Desc", + "regex": "Desc:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "originator", + "regex": "Cust Name:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "Batch Discr", + "regex": "Batch Discr:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "Comp ID", + "regex": "Comp ID:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "Addenda", + "regex": "Addenda:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "SETT", + "regex": "SETT:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "Date", + "regex": "Date:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "Time", + "regex": "Time:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + } + ], + "name": "Parse ACH Credits", + "where": [ + { + "Transaction": "ACH Credits" + } + ], + "function": "extract", + "description": "parse select components of the description for ACH Credits Receieved" + }, + "sequence": 2 + }, + { + "name": "Parse ACH Debits", + "srce": "PNCC", + "regex": { + "defn": [ + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "originator", + "regex": "Comp Name:(.+?)(?=\\d{6} Com|SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "Cust ID", + "regex": "Cust ID:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "Desc", + "regex": "Desc:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "beneficiary", + "regex": "Cust Name:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "Batch Discr", + "regex": "Batch Discr:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "Comp ID", + "regex": "Comp ID:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "Addenda", + "regex": "Addenda:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "SETT", + "regex": "SETT:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "Date", + "regex": "Date:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "Time", + "regex": "Time:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)", + "retain": "y" + } + ], + "name": "Parse ACH Debits", + "where": [ + { + "Transaction": "ACH Debits" + } + ], + "function": "extract", + "description": "parse select components of the description for ACH Credits Receieved" + }, + "sequence": 2 + }, + { + "name": "Parse Wires", + "srce": "PNCC", + "regex": { + "defn": [ + { + "key": "{Description}", + "map": "n", + "flag": "g", + "field": "dparse", + "regex": "([A-Z]{3,}?:)(.*)(?=[A-Z]{3,}?:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "beneficiary_components", + "regex": "BENEFICIARY:(.*?)AC/([\\d-]*) (.*)(?=[A-Z]{3,}?:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "originator_components", + "regex": "ORIGINATOR:(.*?)AC/(\\d*) (.*)(?=[A-Z]{3,}?:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "beneficiary", + "regex": "BENEFICIARY:(.*?)AC/[\\d-]* .*(?=[A-Z]{3,}?:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "originator", + "regex": "ORIGINATOR:(.*?)AC/\\d* .*(?=[A-Z]{3,}?:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "OBI", + "regex": "OBI:(.*?)(?=[A-Z]{3,}?:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "RFB", + "regex": "RFB:(.*?)(?=[A-Z]{3,}?:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "ABA", + "regex": "ABA:(.*?)(?=[A-Z]{3,}?:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "BBI", + "regex": "BBI:(.*?)(?=[A-Z]{3,}?:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "BENEBNK", + "regex": "BENEBNK:(.*?)(?=[A-Z]{3,}?:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "IBK", + "regex": "IBK:(.*?)(?=[A-Z]{3,}?:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "RATE", + "regex": "RATE:(.*?)(?=[A-Z]{3,}?:|$)", + "retain": "y" + }, + { + "key": "{Description}", + "map": "n", + "flag": "", + "field": "RECVBNK", + "regex": "RECVBNK:(.*?)(?=[A-Z]{3,}?:|$)", + "retain": "y" + } + ], + "name": "Parse Wires", + "where": [ + { + "Transaction": "Money Transfer DB - Wire" + }, + { + "Transaction": "Money Transfer DB - Other" + }, + { + "Transaction": "Money Transfer CR-Wire" + }, + { + "Transaction": "Money Transfer CR-Other" + }, + { + "Transaction": "Intl Money Transfer Debits" + }, + { + "Transaction": "Intl Money Transfer Credits" + } + ], + "function": "extract", + "description": "pull out whatever follows OBI in the description until atleast 3 capital letters followed by a colon are encountered" + }, + "sequence": 2 + } +] \ No newline at end of file diff --git a/reload/paycom/srce.json b/reload/paycom/srce.json new file mode 100644 index 0000000..3564fa6 --- /dev/null +++ b/reload/paycom/srce.json @@ -0,0 +1,67 @@ +{ + "name": "PNCC", + "source": "client_file", + "loading_function": "csv", + "constraint": [ + "{AsOfDate}" + ], + "schemas": { + "default": [ + { + "path": "{AsOfDate}", + "type": "date", + "column_name": "AsOfDate" + }, + { + "path": "{BankId}", + "type": "text", + "column_name": "BankId" + }, + { + "path": "{AccountNumber}", + "type": "text", + "column_name": "AccountNumber" + }, + { + "path": "{AccountName}", + "type": "text", + "column_name": "AccountName" + }, + { + "path": "{BaiControl}", + "type": "text", + "column_name": "BaiControl" + }, + { + "path": "{Currency}", + "type": "text", + "column_name": "Currency" + }, + { + "path": "{Transaction}", + "type": "text", + "column_name": "Transaction" + }, + { + "path": "{Reference}", + "type": "text", + "column_name": "Reference" + }, + { + "path": "{Amount}", + "type": "text", + "column_name": "Amount" + }, + { + "path":"{Description}", + "type": "text", + "column_name": "Description" + }, + { + "path": "{AdditionalRemittance}", + "type": "text", + "column_name": "AdditionalRemittance" + } + ] + } +} \ No newline at end of file diff --git a/reload/paycom/vals.json b/reload/paycom/vals.json new file mode 100644 index 0000000..56d712b --- /dev/null +++ b/reload/paycom/vals.json @@ -0,0 +1,952 @@ +[ + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "party": "PNC", + "ledger": "Manual", + "reason": "Bank Fees", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "CANADA TAX", + "acctn": "The HC Operating Company OPERA", + "trans": "Detail Debit Adjustments" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "AP - ACH", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "ACH DEBIT SETTLEMENT", + "acctn": "The HC Operating Company OPERA", + "trans": "ACH Debits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "Returned Deposit RTM", + "trantype": "Collections" + }, + "source": "PNCC", + "ret_val": { + "ini": "RET DEP ITEM RTM", + "acctn": "The HC Operating Company FBO P", + "trans": "Deposited Items Returned" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "Returned Deposit STOP", + "trantype": "Collections" + }, + "source": "PNCC", + "ret_val": { + "ini": "RET DEP ITEM STOP", + "acctn": "The HC Operating Company FBO P", + "trans": "Deposited Items Returned" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "AR - Collections", + "trantype": "Collections" + }, + "source": "PNCC", + "ret_val": { + "ini": "CREDIT ADJUSTMENT", + "acctn": "The HC Operating Company FBO P", + "trans": "Detail Credit Adjustments" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "reason": "Returned Check", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "REFER TO MAKER OF CK RETURN CK", + "acctn": "The HC Operating Company OPERA", + "trans": "Detail Credit Adjustments" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "Payroll Adjustment", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "DEBIT ADJUSTMENT", + "acctn": "The HC Operating Company PAYR", + "trans": "Detail Debit Adjustments" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "AR - Collections", + "trantype": "Collections" + }, + "source": "PNCC", + "ret_val": { + "ini": "DEPOSIT", + "acctn": "The HC Operating Company FBO P", + "trans": "Detail Deposits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "AP - Wire", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "INTL WIRE OUT", + "acctn": "The HC Operating Company OPERA", + "trans": "Intl Money Transfer Debits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "AP - Wire", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "INTL WIRES OUT", + "acctn": "The HC Operating Company OPERA", + "trans": "Intl Money Transfer Debits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "AR - Collections", + "trantype": "Collections" + }, + "source": "PNCC", + "ret_val": { + "ini": "WHLS LBX DEP", + "acctn": "The HC Operating Company FBO P", + "trans": "Lockbox Deposits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "AR - Collections", + "trantype": "Collections" + }, + "source": "PNCC", + "ret_val": { + "ini": "WHLS LBX DEP932855", + "acctn": "The HC Operating Company FBO P", + "trans": "Lockbox Deposits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "reason": "Revolver Advance", + "trantype": "Revolver Borrow" + }, + "source": "PNCC", + "ret_val": { + "ini": "ADVANCE", + "acctn": "The HC Operating Company OPERA", + "trans": "Miscellaneous Credits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "trantype": "Collections" + }, + "source": "PNCC", + "ret_val": { + "ini": "DEPOSIT:", + "acctn": "The HC Operating Company FBO P", + "trans": "Miscellaneous Credits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "reason": "Misc Credit", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "MISC CREDIT", + "acctn": "The HC Operating Company OPERA", + "trans": "Miscellaneous Credits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "reason": "Revolver Payment", + "trantype": "Revolver Borrow" + }, + "source": "PNCC", + "ret_val": { + "ini": "PAYMENT", + "acctn": "The HC Operating Company FBO P", + "trans": "Miscellaneous Credits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "Revolver Payment", + "trantype": "Revolver Payment" + }, + "source": "PNCC", + "ret_val": { + "ini": "PAYMENT", + "acctn": "The HC Operating Company FBO P", + "trans": "Miscellaneous Debits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "AR - Collections", + "trantype": "Collections" + }, + "source": "PNCC", + "ret_val": { + "ini": "INTTL WIRES IN", + "acctn": "The HC Operating Company FBO P", + "trans": "Intl Money Transfer Credits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "reason": "Revolver Advance", + "trantype": "Revolver Borrow" + }, + "source": "PNCC", + "ret_val": { + "ini": "PNC BANK- NJ LOAN PROCEEDS", + "acctn": "The HC Operating Company FBO P", + "trans": "Money Transfer CR-Other" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "reason": "Revolver Advance", + "trantype": "Revolver Borrow" + }, + "source": "PNCC", + "ret_val": { + "ini": "PNC BANK-PGH LOAN PROCEEDS", + "acctn": "The HC Operating Company OPERA", + "trans": "Money Transfer CR-Other" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "AR - Collections", + "trantype": "Collections" + }, + "source": "PNCC", + "ret_val": { + "ini": "FED WIRE IN", + "acctn": "The HC Operating Company FBO P", + "trans": "Money Transfer CR-Wire" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "reason": "Returned Wires", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "FED WIRE IN", + "acctn": "The HC Operating Company OPERA", + "trans": "Money Transfer CR-Wire" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "Returned Item", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "BOOK TRANSFER DEBIT", + "acctn": "The HC Operating Company OPERA", + "trans": "Money Transfer DB - Other" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "Freight Wires", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "FED WIRE OUT", + "acctn": "The HC Operating Company FREIG", + "trans": "Money Transfer DB - Wire" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "AP - Wire", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "FED WIRE OUT", + "acctn": "The HC Operating Company OPERA", + "trans": "Money Transfer DB - Wire" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "FED WIRE OUT", + "acctn": "The HC Operating Company PAYR", + "trans": "Money Transfer DB - Wire" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "reason": "ZBA Funding", + "trantype": "Funding" + }, + "source": "PNCC", + "ret_val": { + "ini": "FUNDS TRANSFER FROM ACCT", + "acctn": "The HC Operating Company FREIG", + "trans": "ZBA Credits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "reason": "ZBA Funding", + "trantype": "Funding" + }, + "source": "PNCC", + "ret_val": { + "ini": "FUNDS TRANSFER FROM ACCT", + "acctn": "The HC Operating Company OPERA", + "trans": "ZBA Credits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "reason": "ZBA Funding", + "trantype": "Funding" + }, + "source": "PNCC", + "ret_val": { + "ini": "FUNDS TRANSFER FROM ACCT", + "acctn": "The HC Operating Company PAYR", + "trans": "ZBA Credits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "ZBA Funding", + "trantype": "Funding" + }, + "source": "PNCC", + "ret_val": { + "ini": "FUNDS TRANSFER TO ACCT", + "acctn": "The HC Operating Company OPERA", + "trans": "ZBA Debits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "ZBA Funding", + "trantype": "Funding" + }, + "source": "PNCC", + "ret_val": { + "ini": "FUNDS TRANSFER TO ACCT", + "acctn": "The HC Operating Company PAYR", + "trans": "ZBA Debits" + } + }, + { + "map": "Currency", + "mapped": { + "party": "The HC Canada Operating Company, Ltd.", + "ledger": "Manual", + "reason": "IC - Can to US Settlement", + "trantype": "Interco Collection" + }, + "source": "PNCC", + "ret_val": { + "ini": "DEPOSIT:", + "curr1": [ + "CREDIT", + "USD" + ], + "curr2": [ + "DEBIT", + "CAD" + ] + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "party": "PNC", + "ledger": "Manual", + "reason": "Bank Fees", + "trantype": "Fees" + }, + "source": "PNCC", + "ret_val": { + "ini": "CORPORATE ACCOUNT ANALYSIS CHARGE", + "acctn": "The HC Operating Company OPERA", + "trans": "Miscellaneous Fees" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "party": "PNC", + "ledger": "Manual", + "reason": "Bank Fees", + "trantype": "Fees" + }, + "source": "PNCC", + "ret_val": { + "ini": "PNC MERCHANT FINCL ADJ", + "acctn": "The HC Operating Company FBO P", + "trans": "Miscellaneous Fees" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "Revolver Payment", + "trantype": "Revolver Payment" + }, + "source": "PNCC", + "ret_val": { + "ini": "PNC BANK- NJ LOAN PMTS", + "acctn": "The HC Operating Company FBO P", + "trans": "Miscellaneous Debits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "WITHDRAWAL:", + "acctn": "The HC Operating Company FBO P", + "trans": "Miscellaneous Debits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "reason": "Returned Item", + "trantype": "Collections" + }, + "source": "PNCC", + "ret_val": { + "ini": "BOOK TRANSFER CREDIT", + "acctn": "The HC Operating Company FBO P", + "trans": "Money Transfer CR-Other" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "reason": "Returned Item", + "trantype": "Collections" + }, + "source": "PNCC", + "ret_val": { + "ini": "BOOK TRANSFER CREDIT", + "acctn": "The HC Operating Company OPERA", + "trans": "Money Transfer CR-Other" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "reason": "Returned Item", + "trantype": "Collections" + }, + "source": "PNCC", + "ret_val": { + "ini": "BOOK TRANSFER CREDIT GHFTDD DDA CREDIT", + "acctn": "The HC Operating Company FBO P", + "trans": "Money Transfer CR-Other" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "reason": "Payroll Credits", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "19UDV", + "acctn": "The HC Operating Company PAYR", + "trans": "ACH Credits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "AR - Collections", + "trantype": "Collections" + }, + "source": "PNCC", + "ret_val": { + "ini": "ACH CREDIT RECEIVED", + "acctn": "The HC Operating Company FBO P", + "trans": "ACH Credits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "reason": "Payroll Credits", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "ACH CREDIT RECEIVED", + "acctn": "The HC Operating Company PAYR", + "trans": "ACH Credits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "reason": "AP ACH Returned", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "ACH CREDIT RETURN", + "acctn": "The HC Operating Company OPERA", + "trans": "ACH Credits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "Auto ACH Out", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "ACH DEBIT RECEIVED", + "acctn": "The HC Operating Company FBO P", + "trans": "ACH Debits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "Auto ACH Out", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "ACH DEBIT RECEIVED", + "acctn": "The HC Operating Company OPERA", + "trans": "ACH Debits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "Auto ACH Out", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "ACH DEBIT RECEIVED", + "acctn": "The HC Operating Company PAYR", + "trans": "ACH Debits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "AP - Check Run", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "CASHED CHECK", + "acctn": "The HC Operating Company OPERA", + "trans": "Checks Paid" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "Payroll Checks", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "CASHED CHECK", + "acctn": "The HC Operating Company PAYR", + "trans": "Checks Paid" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "Freight Checks", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "CHECK", + "acctn": "The HC Operating Company FREIG", + "trans": "Checks Paid" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "AP - Check Run", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "CHECK", + "acctn": "The HC Operating Company OPERA", + "trans": "Checks Paid" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "Payroll Checks", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "CHECK", + "acctn": "The HC Operating Company PAYR", + "trans": "Checks Paid" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "Freight Checks", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "SUBSTITUTE CHK", + "acctn": "The HC Operating Company FREIG", + "trans": "Checks Paid" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "AP - Check Run", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "SUBSTITUTE CHK", + "acctn": "The HC Operating Company OPERA", + "trans": "Checks Paid" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "Returned Deposit NSF", + "trantype": "Collections" + }, + "source": "PNCC", + "ret_val": { + "ini": "RET DEP ITEM NSF UN", + "acctn": "The HC Operating Company FBO P", + "trans": "Deposited Items Returned" + } + }, + { + "map": "Currency", + "mapped": { + "party": "The HC Canada Operating Company, Ltd.", + "ledger": "Manual", + "reason": "IC - US to CAN Settlement", + "trantype": "Interco Funding" + }, + "source": "PNCC", + "ret_val": { + "ini": "WITHDRAWAL:", + "curr1": [ + "DEBIT", + "USD" + ], + "curr2": [ + "CREDIT", + "CAD" + ] + } + }, + { + "map": "Currency", + "mapped": { + "party": "The HC Canada Operating Company, Ltd.", + "ledger": "Manual", + "reason": "IC - round-trip settlement return", + "trantype": "Interco Collection" + }, + "source": "PNCC", + "ret_val": { + "ini": "DEPOSIT:", + "curr1": [ + "CREDIT", + "USD" + ], + "curr2": [ + "DEBIT", + "USD" + ] + } + }, + { + "map": "Currency", + "mapped": { + "party": "The HC Canada Operating Company, Ltd.", + "ledger": "Manual", + "reason": "IC - Can to US Settlement", + "trantype": "Interco Collection" + }, + "source": "PNCC", + "ret_val": { + "ini": "DEPOSIT:", + "curr1": [ + "DEBIT", + "USD" + ], + "curr2": [ + "CREDIT", + "CAD" + ] + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "Manual", + "trantype": "Collections" + }, + "source": "PNCC", + "ret_val": { + "ini": "DEPOSIT:", + "acctn": "The HC Operating Company OPERA", + "trans": "Miscellaneous Credits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "reason": "Payroll Checks", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "SUBSTITUTE CHK", + "acctn": "The HC Operating Company PAYR", + "trans": "Checks Paid" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "manual", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "ACH DEBIT RETURN", + "acctn": "The HC Operating Company OPERA", + "trans": "ACH Debits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "manual", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "ACH CREDIT SETTLEMENT", + "acctn": "The HC Operating Company OPERA", + "trans": "ACH Credits" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "-1", + "ledger": "Manual", + "trantype": "Disbursement" + }, + "source": "PNCC", + "ret_val": { + "ini": "CHECK", + "acctn": "The HC Operating Company FBO P", + "trans": "Checks Paid" + } + }, + { + "map": "Trans Type", + "mapped": { + "sign": "1", + "ledger": "AR - Collections", + "trantype": "Collections" + }, + "source": "PNCC", + "ret_val": { + "ini": "POSTING CORRECTION RETURN CK", + "acctn": "The HC Operating Company FBO P", + "trans": "Detail Credit Adjustments" + } + } +] \ No newline at end of file