curl --location --request GET '/tripartite/definition/simple' \
--header 'accountSetId: 794981295003285450' \
--header 'F-API-KEY: <api-key>'{
"success": true,
"code": 200,
"msg": "",
"data": [
{
"id": "802135025771417602",
"accountSetsId": "735079029572375852",
"dataCount": "0",
"voucherCount": "0",
"pos": 1,
"name": "纷析云费用系统",
"code": "0xFmmwnNRth",
"description": "纷析云费用系统",
"enabled": true,
"dataFields": [
{
"displayName": "编码",
"fieldName": "code",
"fieldType": "STRING",
"description": "确定数据的唯一性",
"required": true,
"primaryKey": true,
"period": false
},
{
"displayName": "日期",
"fieldName": "date",
"fieldType": "DATE",
"description": "生成凭证时的凭证日期",
"required": true,
"primaryKey": false,
"period": true
},
{
"displayName": "员工姓名",
"fieldName": "name",
"fieldType": "STRING",
"description": "",
"required": false,
"primaryKey": false,
"period": false,
"accountingCategoryType": "EMPLOYEE",
"categoryTypeId": "2"
},
{
"displayName": "应发工资",
"fieldName": "wageAmount",
"fieldType": "NUMBER",
"description": "",
"required": false,
"primaryKey": false,
"period": false
},
{
"displayName": "实发工资",
"fieldName": "actualWageAmount",
"fieldType": "NUMBER",
"description": "",
"required": false,
"primaryKey": false,
"period": false
},
{
"displayName": "社保",
"fieldName": "socialAmount",
"fieldType": "NUMBER",
"description": "",
"required": false,
"primaryKey": false,
"period": false
},
{
"displayName": "公积金",
"fieldName": "providentAmount",
"fieldType": "NUMBER",
"description": "",
"required": false,
"primaryKey": false,
"period": false
}
],
"voucherTemplates": [
{
"tid": "2018607450332200960",
"voucherWord": "记",
"dateFieldName": "date",
"summaryFieldNames": [
"providentAmount",
"socialAmount"
],
"items": [
{
"itemType": "DATA_SUBJECT",
"subjectId": "433708449910640641",
"direction": "借",
"amountFieldName": "actualWageAmount",
"autoEqual": false,
"amountRatio": 100.00
},
{
"itemType": "FINANCIAL_SUBJECT",
"subjectId": "433708450254573570",
"direction": "贷",
"amountFieldName": "wageAmount",
"autoEqual": false,
"amountRatio": 100.00
}
],
"rules": [
{
"fieldName": "name",
"matchValues": [
"99"
],
"logical": "OR"
},
{
"fieldName": "code",
"matchValues": [
"212"
],
"logical": "AND"
}
]
}
]
},
{
"id": "802127171958149122",
"accountSetsId": "735079029572375852",
"dataCount": "0",
"voucherCount": "0",
"pos": 0,
"name": "纷析云进销存",
"code": "0xFkYfzu9tR",
"description": "纷析云进销存的单据数据生成凭证",
"enabled": true,
"dataFields": [
{
"displayName": "编码",
"fieldName": "code",
"fieldType": "STRING",
"description": "确定数据的唯一性",
"required": true,
"primaryKey": true,
"period": false
},
{
"displayName": "日期",
"fieldName": "date",
"fieldType": "DATE",
"description": "生成凭证时的凭证日期",
"required": true,
"primaryKey": false,
"period": true
},
{
"displayName": "金额",
"fieldName": "amount",
"fieldType": "NUMBER",
"description": "单据金额",
"required": true,
"primaryKey": false,
"period": false
},
{
"displayName": "类型",
"fieldName": "type",
"fieldType": "STRING",
"description": "单据类型",
"required": true,
"primaryKey": false,
"period": false
},
{
"displayName": "客户",
"fieldName": "customer",
"fieldType": "STRING",
"description": "关联客户",
"required": false,
"primaryKey": false,
"period": false,
"accountingCategoryType": "CUSTOMER",
"categoryTypeId": "0"
},
{
"displayName": "备注",
"fieldName": "remark",
"fieldType": "STRING",
"description": "单据备注",
"required": false,
"primaryKey": false,
"period": false,
"accountingCategoryType": "VENDOR"
}
],
"voucherTemplates": [
{
"tid": "2018592473819000832",
"voucherWord": "记",
"dateFieldName": "date",
"summaryFieldNames": [
"remark",
"code",
"type"
],
"items": [
{
"itemType": "DATA_SUBJECT",
"subjectId": "433708450439122958",
"direction": "借",
"amountFieldName": "amount",
"autoEqual": false,
"amountRatio": 100.00
},
{
"itemType": "FINANCIAL_SUBJECT",
"subjectId": "433708449910640641",
"direction": "贷",
"amountFieldName": "amount",
"autoEqual": true,
"amountRatio": 100.00
}
],
"rules": [
{
"fieldName": "type",
"matchValues": [
"入库"
],
"logical": "AND"
}
]
},
{
"tid": "2018873199353352192",
"voucherWord": "记",
"dateFieldName": "date",
"summaryFieldNames": [
"remark",
"code",
"type"
],
"items": [
{
"itemType": "DATA_SUBJECT",
"subjectId": "433708450380402697",
"direction": "借",
"amountFieldName": "amount",
"autoEqual": false,
"amountRatio": 100.00
},
{
"itemType": "FINANCIAL_SUBJECT",
"subjectId": "433708449910640641",
"direction": "贷",
"amountFieldName": "amount",
"autoEqual": true,
"amountRatio": 100.00
}
],
"rules": [
{
"fieldName": "type",
"matchValues": [
"出库"
],
"logical": "AND"
}
]
}
]
}
]
}