add a conversion to pay_month

This commit is contained in:
Paul Trowbridge 2017-10-30 14:43:04 -04:00
parent e9b185fc05
commit 242ebb8029

View File

@ -464,4 +464,47 @@ SET regex =
"function": "extract" "function": "extract"
} }
$j$::jsonb $j$::jsonb
WHERE target = 'Check Number'; WHERE target = 'Check Number';
UPDATE tps.map_rm
SET regex =
$j$
{
"name":"ADP Codes",
"description":"link to adp code definitions",
"defn": [
{
"key": "{gl_descr}",
"field": "gl_descr",
"regex": ".*",
"flag":"",
"retain":"n",
"map":"y"
},
{
"key": "{prim_offset}",
"field": "prim_offset",
"regex": ".*",
"flag":"",
"retain":"n",
"map":"y"
},
{
"key": "{pay_date}",
"field": "pay_month",
"regex": ".{1,4}",
"flag":"",
"retain":"y",
"map":"n"
}
],
"function":"extract",
"where": [
{
}
]
}
$j$::jsonb
WHERE
target = 'ADP Codes';