Web API 销售订单保存Json字串【分享】
金蝶云社区-云社区用户4u731234
云社区用户4u731234
0人赞赏了该文章 2,898次浏览 未经作者许可,禁止转载编辑于2015年11月02日 14:00:05

感谢4楼细心的小伙伴反馈,本帖子的标题里写的是【销售订单】,结果给的帖子Json字串是【销售出库单】的,
特把【销售订单】也测试整理了下,
惯例:
成功调用结果:

具体【销售订单】Json字串:
{
"Creator": "String",
"NeedUpDateFields": [],
"Model": {
"FID": 0,
"FBillTypeID": {
"FNumber": "XSDD01_SYS",
"FNAME": "标准销售订单"
},
"FBusinessType": "NORMAL",
"FSaleOrgId": {
"FNUMBER": "103",
"FNAME": "销售公司"
},
"FCustId": {
"FNUMBER": "CUST0002",
"FNAME": "东方机械"
},
"FSettleCurrId": {
"FNUMBER": "PRE001",
"FNAME": "人民币"
},
"FSalerId": {
"FNUMBER": "004",
"FNAME": "自定义加的一个销售员"
},
"SAL_SaleOrder__FSaleOrderEntry": [
{
"FMaterialId": {
"FNUMBER": "1.01.003",
"FNAME": "70KW柴油机"
},
"FSettleOrgIds": {
"FNUMBER": "103",
"FNAME": "销售公司"
},
"FUnitID": {
"FNUMBER": "Pcs"
},
"FQty": 10
}
]
}
}

----分割线----
原帖子内容的【销售出库单】继续保留如下

成功调用结果:


具体Json字串:

{
"Creator": "String",
"NeedUpDateFields": [],
"Model": {
"FID": 0,
"FBillTypeID": {
"FBillTypeID": "",
"FNUMBER": "XSCKD01_SYS",
"FNAME": "标准销售出库单"
},
"FSaleOrgId": {
"FOrgID": 0,
"FNUMBER": "103",
"FNAME": "销售公司"
},
"FCustomerID": {
"FCUSTID": 0,
"FNUMBER": "CUST0002",
"FNAME": "东方机械"
},
"FStockOrgId": {
"FOrgID": 0,
"FNUMBER": "101.2",
"FNAME": "总装事业部"
},
"FOwnerIdHead": {
"FItemID": 0,
"FNUMBER": "103",
"FNAME": "销售公司"
},
"FNote": "",
"SAL_OUTSTOCK__FEntity": [
{
"FMaterialID": {
"FNumber": "1.01.001",
"FName": "50KW柴油机new2"
},
"FUnitID": {
"FNumber": "Pcs",
"FName": ""
},
"FStockID": {
"FNumber": "CK001"
},
"FMustQty": 1,
"FRealQty": 1,
"FAmount": 0,
"FPrice": 0,
"FTaxPrice": 0,
"FDiscount": 0,
"FDiscountRate": 0,
"FIsFree": true,
"FLot": {
"FNUMBER": "0000"
}
}
],
"SAL_OUTSTOCK__SubHeadEntity": {
"FSettleCurrID": {
"FCURRENCYID": 0,
"FNumber": "PRE001",
"FName": "人民币"
},
"FLocalCurrID": {
"FCURRENCYID": 0,
"FNumber": "PRE001",
"FName": "人民币"
},
"FSettleOrgID": {
"FOrgID": 0,
"FNumber": "103"
},
"FExchangeTypeID": {
"FRATETYPEID": 0,
"FNumber": "HLTX01_SYS"
},
"FExchangeRate": "1",
"FBillAllAmount": 0
}
}
}