凭证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": ""
    }
  ]
}