采购订单Json

**单据类型 150 **

单据表头

参数名必选类型说明
date是string单据日期
number否string单据编号,不传会自动生成
summary否string摘要
busercode是string供应商编号
bfullname是string供应商全名
eusercode否string经办人编号
efullname否string经办人全名
kusercode否string仓库编号
kfullname否string仓库全名
dusercode否string部门编号
dfullname否string部门全名
gatheringdate否string交货日期
inputno是string制单人全名
billtype是int单据处理类型 本单据为0
musercode否string项目编号
mfullname否string项目全名
userdefined01否string表头自定义项1
userdefined02否string表头自定义项2
userdefined03否string表头自定义项3
userdefined04否string表头自定义项4
userdefined05否string表头自定义项5
userdefined06否string表头自定义项6
userdefined07否string表头自定义项7
userdefined08否string表头自定义项8
userdefined09否string表头自定义项9
userdefined09否string表头自定义项9
userdefined10否string表头自定义项10
userdefined11否string表头自定义项11
userdefined12否string表头自定义项12
userdefined13否string表头自定义项13
userdefined14否float表头自定义项14
userdefined15否float表头自定义项15
userdefined16否float表头自定义项16
LogOnDate是string登陆日期
detail是Json数组单据明细

单据明细

参数名必选类型说明
pusercode是string存货编号
pfullname是string存货全名
unitname与nunit二选一string存货单位名称
nunit与nunit二选一int单位编号 1为基本单位 2为辅助单位1 3为辅助单位2
qty是float基本单位数量 4位小数
price是float基本单位折前单价 6位小数
total是float基本单位折前金额 2位小数
discount是float基本单位折扣 4位小数
discountprice是float基本单位折后单价 6位小数
discounttotal是float基本单位折后金额 2位小数
tax是float基本单位税率 2位小数
taxprice是float基本单位含税单价 6位小数
taxtotal是float基本单位税额 2位小数
tax_total是float基本单位价税合计 2位小数
price_unit是float实际单位折前单价 6位小数
discountprice_unit是float实际单位折后单价 6位小数
taxprice_unit是float实际单位含税单价 6位小数
blockno否string批号
prodate否string到期日期
c1usercode否string存货自定义1编号
c1fullname否string存货自定义1全名
c2usercode否string存货自定义2编号
c2fullname否string存货自定义2全名
custom3否string存货自定义3
custom4否string存货自定义4
sourcevchcode否int订单vchcode
sourcevchtype否int订单vchtype
sourcedlyorder否int订单dlyorder
qtyother否float副单位数量 4位小数
comment否string行摘要
freedom01否string自由项1
freedom02否string自由项2
freedom03否string自由项3
freedom04否string自由项4
freedom05否string自由项5
freedom06否string自由项6
freedom07否string自由项7
freedom08否string自由项8
freedom09否string自由项9
freedom10否string自由项10
freedom11否string自由项11
freedom12否string自由项12
freedom13否string自由项13
freedom14否float自由项14
freedom15否float自由项15
freedom16否float自由项16
freedomdatedif否int日期间隔
btypeothercode否string存货多编码
usedtype是int表格类型 本单据为1
pdetail是int库存类型 本单据为0
detailsign否int赠品标志 1表示赠品

单据Json示例

  • 示例只展示必录项,其他项目内容按需添加
{
 "date": "2019-09-19",
 "summary": "",
 "busercode": "00101",
 "bfullname": "供应商一101",
 "inputno": "会计主管",
 "billtype": 0,
 "draft": 2,
 "dtotal": 100,
 "billtotal": 100,
 "logondate": "2019-09-19",
 "detail": [
   {
     "pusercode": "00101",
     "pfullname": "移动存货一101",
     "nunit": 1,
     "qty": 10,
     "price": 10,
     "total": 100,
     "discount": 1,
     "discountprice": 10,
     "discounttotal": 100,
     "tax": 0,
     "taxprice": 10,
     "taxtotal": 0,
     "tax_total": 100,
     "price_unit": 100,
     "discountprice_unit": 100,
     "taxprice_unit": 100,
     "qtyother": 0,
     "comment": "",
     "usedtype": 1,
     "pdetail": 0,
     "detailsign": 0
   }
 ]
}