pncc source

This commit is contained in:
Paul Trowbridge 2018-05-30 08:33:11 -04:00
parent 07e5c55f98
commit aec0ea5563
2 changed files with 68 additions and 0 deletions

1
reload/pncc/srce.cmd Normal file
View File

@ -0,0 +1 @@
curl -H "Content-Type: application/json" -X POST -d@./srce.json http://localhost:81/srce_set

67
reload/pncc/srce.json Normal file
View File

@ -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"
}
]
}
}