源系统平台:畅捷通T+
源系统接口: 科目查询/tplus/api/v2/Account/Query
目标系统平台: 畅捷通T+
目标系统接口: 凭证创建/tplus/api/v2/doc/Create
源平台元数据配置:
{
"id": "code",
"api": "/tplus/api/v2/Account/Query",
"type": "QUERY",
"method": "POST",
"number": "name",
"idCheck": true,
"request": [
{
"id": "code",
"type": "string",
"field": "code",
"label": "code",
"value": null,
"parent": null
}
],
"response": [],
"otherRequest": [
{
"id": "param",
"type": "string",
"field": "dataKey",
"label": "dataKey",
"value": "dto",
"parent": null
}
],
"otherResponse": []
}
目标平台元数据配置:
{
"id": null,
"api": "/tplus/api/v2/doc/Create",
"type": "EXECUTE",
"method": "POST",
"number": null,
"idCheck": true,
"request": [
{
"type": "string",
"field": "ExternalCode",
"label": "外部编码",
"value": null,
"describe": "字符串长度<50",
"is_required": true
},
{
"type": "string",
"field": "ClearMoreAuxInfo",
"label": "OpenApi生成凭证",
"value": null,
"describe": "是否忽略用户多传入的辅助项信息",
"is_required": false
},
{
"type": "string",
"field": "DocType",
"label": "凭证字",
"value": null,
"parser": {
"name": "ConvertObjectParser",
"params": "Code"
},
"describe": null,
"is_required": false
},
{
"type": "string",
"field": "Name",
"label": "凭证类别名称",
"value": null,
"describe": null,
"is_required": false
},
{
"type": "string",
"field": "Code",
"label": "数字(0~9)> 0",
"value": null,
"describe": "数字(0~9)> 0,必须全部是数字不能有其他符号;长度由系统设置,[系统管理]--[单据设置]—[单据编码设置]—[凭证]—[流水号长度]如果长度不够,前面补0;如果不传值,会按照规则取号",
"is_required": false
},
{
"type": "string",
"field": "VoucherDate",
"label": "制单日期",
"value": null,
"describe": null,
"is_required": false
},
{
"type": "string",
"field": "IsModifiedCode",
"label": "是否修改编号",
"value": null,
"describe": "是否修改编号,取值\"true\"/\"false\"\r\n\r\nIsModifiedCode:\"true\",则用参数中的Code作为凭证编号;手工编码时必录(IsModifiedCode:\"true\")",
"is_required": false
},
{
"type": "string",
"field": "AttachedVoucherNum",
"label": "附单据数",
"value": null,
"describe": "数字[0,9999]",
"is_required": false
},
{
"type": "string",
"field": "Memo",
"label": "备注",
"value": null,
"describe": "字符串长度<50",
"is_required": false
},
{
"type": "string",
"field": "DynamicPropertyKeys",
"label": "表头动态属性",
"value": null,
"describe": "表头自定义项列:公用数值自定义项(pubuserdefdecm),公用字符自定义项(pubuserdefnvc),专用数值自定义项 (priuserdefdecm),专用字符自定义项(priuserdefnvc)",
"is_required": false
},
{
"type": "string",
"field": "DynamicPropertyValues",
"label": "表头动态属性的值",
"value": null,
"describe": "表头动态属性的值,与上面DynamicPropertyKeys相对应",
"is_required": false
},
{
"type": "array",
"field": "Entrys",
"label": "Entrys",
"children": [
{
"type": "string",
"field": "Summary",
"label": "摘要",
"value": null,
"parent": "Entrys",
"describe": "字符串长度<200",
"is_required": true
},
{
"type": "string",
"field": "Account",
"label": "科目档案",
"value": null,
"parent": "Entrys",
"parser": {
"name": "ConvertObjectParser",
"params": "Code"
},
"describe": "必须是末级科目",
"is_required": true
},
{
"type": "string",
"field": "ExchangeRate",
"label": "汇率",
"value": "1",
"parent": "Entrys",
"describe": "科目启用外币核算必输,否则默认1",
"is_required": false
},
{
"type": "string",
"field": "Currency",
"label": "货币",
"value": null,
"parent": "Entrys",
"parser": {
"name": "ConvertObjectParser",
"params": "Code"
},
"describe": "举例:Currency: { Code: \"RMB\" }",
"is_required": true
},
{
"type": "string",
"field": "AmountCr",
"label": "贷方本币",
"value": null,
"parent": "Entrys",
"describe": null,
"is_required": true
},
{
"type": "string",
"field": "QuantityCr",
"label": "贷方数量",
"value": null,
"parent": "Entrys",
"describe": null,
"is_required": false
},
{
"type": "string",
"field": "AmountDr",
"label": "借方本币",
"value": null,
"parent": "Entrys",
"describe": null,
"is_required": true
},
{
"type": "string",
"field": "QuantityDr",
"label": "借方数量",
"value": null,
"parent": "Entrys",
"describe": null,
"is_required": false
},
{
"type": "string",
"field": "Price",
"label": "单价",
"value": null,
"parent": "Entrys",
"describe": null,
"is_required": false
},
{
"type": "string",
"field": "Unit",
"label": "计量单位",
"value": null,
"parent": "Entrys",
"parser": {
"name": "ConvertObjectParser",
"params": "Code"
},
"describe": null,
"is_required": false
},
{
"type": "string",
"field": "AuxInfos",
"label": "辅助核算项",
"value": null,
"parent": "Entrys",
"parser": {
"name": "ConvertObjectParser",
"params": "Code"
},
"describe": null,
"is_required": false
}
],
"describe": null,
"is_required": true
}
],
"response": [],
"otherRequest": [
{
"type": "string",
"field": "dataKey",
"label": "dataKey",
"value": "dto",
"describe": null,
"is_required": false
}
],
"otherResponse": []
}