seperate out maps for ach credits vs debits
This commit is contained in:
parent
2d6212e3cd
commit
e9b185fc05
@ -25,17 +25,18 @@ SET regex =
|
|||||||
$j$::jsonb
|
$j$::jsonb
|
||||||
WHERE
|
WHERE
|
||||||
target = 'Strip Amount Commas';
|
target = 'Strip Amount Commas';
|
||||||
|
|
||||||
|
|
||||||
UPDATE tps.map_rm
|
UPDATE tps.map_rm
|
||||||
SET regex =
|
SET regex =
|
||||||
$j$
|
$j$
|
||||||
{
|
{
|
||||||
"name":"Parse ACH",
|
"name":"Parse ACH Credits",
|
||||||
"description":"parse select components of the description for ACH Credits Receieved",
|
"description":"parse select components of the description for ACH Credits Receieved",
|
||||||
"defn": [
|
"defn": [
|
||||||
{
|
{
|
||||||
"key": "{Description}",
|
"key": "{Description}",
|
||||||
"field":"Comp Name",
|
"field":"beneficiary",
|
||||||
"regex": "Comp Name:(.+?)(?=\\d{6} Com|SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)",
|
"regex": "Comp Name:(.+?)(?=\\d{6} Com|SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)",
|
||||||
"flag":"",
|
"flag":"",
|
||||||
"retain":"y",
|
"retain":"y",
|
||||||
@ -59,7 +60,7 @@ SET regex =
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "{Description}",
|
"key": "{Description}",
|
||||||
"field":"Cust Name",
|
"field":"originator",
|
||||||
"regex": "Cust Name:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)",
|
"regex": "Cust Name:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)",
|
||||||
"flag":"",
|
"flag":"",
|
||||||
"retain":"y",
|
"retain":"y",
|
||||||
@ -118,14 +119,110 @@ SET regex =
|
|||||||
"where": [
|
"where": [
|
||||||
{
|
{
|
||||||
"Transaction":"ACH Credits"
|
"Transaction":"ACH Credits"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
$j$::jsonb
|
||||||
|
WHERE target = 'Parse ACH Credits';
|
||||||
|
|
||||||
|
|
||||||
|
UPDATE tps.map_rm
|
||||||
|
SET regex =
|
||||||
|
$j$
|
||||||
|
{
|
||||||
|
"name":"Parse ACH Debits",
|
||||||
|
"description":"parse select components of the description for ACH Credits Receieved",
|
||||||
|
"defn": [
|
||||||
|
{
|
||||||
|
"key": "{Description}",
|
||||||
|
"field":"originator",
|
||||||
|
"regex": "Comp Name:(.+?)(?=\\d{6} Com|SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)",
|
||||||
|
"flag":"",
|
||||||
|
"retain":"y",
|
||||||
|
"map":"n"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"key": "{Description}",
|
||||||
|
"field":"Cust ID",
|
||||||
|
"regex": "Cust ID:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)",
|
||||||
|
"flag":"",
|
||||||
|
"retain":"y",
|
||||||
|
"map":"n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "{Description}",
|
||||||
|
"field":"Desc",
|
||||||
|
"regex": "Desc:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)",
|
||||||
|
"flag":"",
|
||||||
|
"retain":"y",
|
||||||
|
"map":"n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "{Description}",
|
||||||
|
"field":"beneficiary",
|
||||||
|
"regex": "Cust Name:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)",
|
||||||
|
"flag":"",
|
||||||
|
"retain":"y",
|
||||||
|
"map":"n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "{Description}",
|
||||||
|
"field":"Batch Discr",
|
||||||
|
"regex": "Batch Discr:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)",
|
||||||
|
"flag":"",
|
||||||
|
"retain":"y",
|
||||||
|
"map":"n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "{Description}",
|
||||||
|
"field":"Comp ID",
|
||||||
|
"regex": "Comp ID:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)",
|
||||||
|
"flag":"",
|
||||||
|
"retain":"y",
|
||||||
|
"map":"n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "{Description}",
|
||||||
|
"field":"Addenda",
|
||||||
|
"regex": "Addenda:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)",
|
||||||
|
"flag":"",
|
||||||
|
"retain":"y",
|
||||||
|
"map":"n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "{Description}",
|
||||||
|
"field":"SETT",
|
||||||
|
"regex": "SETT:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)",
|
||||||
|
"flag":"",
|
||||||
|
"retain":"y",
|
||||||
|
"map":"n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "{Description}",
|
||||||
|
"field":"Date",
|
||||||
|
"regex": "Date:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)",
|
||||||
|
"flag":"",
|
||||||
|
"retain":"y",
|
||||||
|
"map":"n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "{Description}",
|
||||||
|
"field":"Time",
|
||||||
|
"regex": "Time:(.+?)(?=SEC:|Cust ID:|Desc:|Comp Name:|Comp ID:|Batch Discr:|Cust Name:|Addenda:|SETT:|Date:|Time:|$)",
|
||||||
|
"flag":"",
|
||||||
|
"retain":"y",
|
||||||
|
"map":"n"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"function":"extract",
|
||||||
|
"where": [
|
||||||
{
|
{
|
||||||
"Transaction":"ACH Debits"
|
"Transaction":"ACH Debits"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
$j$::jsonb
|
$j$::jsonb
|
||||||
WHERE target = 'Parse ACH';
|
WHERE target = 'Parse ACH Debits';
|
||||||
|
|
||||||
UPDATE tps.map_rm
|
UPDATE tps.map_rm
|
||||||
SET regex =
|
SET regex =
|
||||||
@ -158,6 +255,22 @@ SET regex =
|
|||||||
"retain":"y",
|
"retain":"y",
|
||||||
"map":"n"
|
"map":"n"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"key": "{Description}",
|
||||||
|
"field": "beneficiary",
|
||||||
|
"regex": "BENEFICIARY:(.*?)AC/\\d* .*(?=[A-Z]{3,}?:|$)",
|
||||||
|
"flag":"",
|
||||||
|
"retain":"y",
|
||||||
|
"map":"n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "{Description}",
|
||||||
|
"field": "originator",
|
||||||
|
"regex": "ORIGINATOR:(.*?)AC/\\d* .*(?=[A-Z]{3,}?:|$)",
|
||||||
|
"flag":"",
|
||||||
|
"retain":"y",
|
||||||
|
"map":"n"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"key": "{Description}",
|
"key": "{Description}",
|
||||||
"field": "OBI",
|
"field": "OBI",
|
||||||
|
Loading…
Reference in New Issue
Block a user