凭证Json格式
单据类型 125
单据表头
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| date | 是 | string | 单据日期 |
| summary | 否 | string | 摘要 |
| vouchertypeshortname | 是 | string | 凭证类型短名 |
| voucherno | 是 | int | 凭证编号 |
| attach | 否 | int | 附件数 |
| inputno | 是 | string | 制单人 |
| detail | 是 | json数组 | 单据明细 |
单据明细
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| ausercode | 是 | string | 会计科目编号 |
| afullname | 是 | string | 会计科目全名 |
| busercode | 核算客户供应商时必录 | string | 客户/供应商编号 |
| bfullname | 核算客户供应商时必录 | string | 客户/供应商全名 |
| eusercode | 核算个人时必录 | string | 职员编号 |
| efullname | 核算个人时必录 | string | 职员全名 |
| dusercode | 核算部门时必录 | string | 部门编号 |
| dfullname | 核算部门时必录 | string | 部门全名 |
| musercode | 核算项目时必录 | string | 项目编号 |
| mfullname | 核算项目时必录 | string | 项目全名 |
| foreignname | 核算外币时必录 | string | 币种 |
| wrate | 核算外币时必录 | float | 汇率 |
| qty | 核算数量时必录 | float | 数量 4位小数 |
| jfullname | 核算结算方式时必录 | string | 结算方式全名 |
| jbillno | 否 | int | 票号 |
| jdate | 否 | string | 结算日期 yyyy-mm-dd |
| comment | 否 | string | 摘要 |
| debittotal | 是,与贷方金额互斥 | float | 借方金额 2位小数 |
| lendtotal | 是,与贷方金额互斥 | float | 贷方金额 2位小数 |
| wtotal | 核算外币时必录 | float | 外币金额 2位小数 |
单据json示例
{
"date": "2019-11-19",
"summary": "",
"vouchertypeshortname": "记",
"voucherno": 1,
"attach": 1,
"inputno": "会计主管",
"detail": [
{
"ausercode": "1001",
"afullname": "库存现金",
"busercode": "",
"bfullname": "",
"eusercode": "",
"efullname": "",
"dusercode": "",
"dfullname": "",
"musercode": "",
"mfullname": "",
"foreignname": "",
"wrate": "",
"qty": "",
"jfullname": "",
"jbillno": "",
"jdate": "",
"comment": "",
"debittotal": 100,
"lendtotal": "",
"wtotal": ""
},
{
"ausercode": "1002",
"afullname": "银行存款",
"busercode": "",
"bfullname": "",
"eusercode": "",
"efullname": "",
"dusercode": "",
"dfullname": "",
"musercode": "",
"mfullname": "",
"foreignname": "",
"wrate": "",
"qty": "",
"jfullname": "汇兑",
"jbillno": 1,
"jdate": "2020-01-01",
"comment": "",
"debittotal": "",
"lendtotal": 100,
"wtotal": ""
}
]
}
