POST api/Pos/Busi/Depot/Trans/AddOrModify
向系统中添加或修改一个调拨单的API,这个单据总是全总体成功,总体失败,同时会修改库存及记录台账。需要判断返回值 ,返回值errcode=0表示成功。 这个函数的单据号从
Request Information
URI Parameters
None.
Body Parameters
添加的采购单的内容。
PosDepotTransParmName | Description | Type | Additional information |
---|---|---|---|
billnum |
单号,@BillNum char(20) 。 |
string |
Required Max length: 20 |
deliveryman |
送货人姓名 |
string |
Max length: 30 |
indepotid |
入到的仓库ID, @DepotId char(4) 。 |
string |
Required Max length: 4 |
outdepotid |
出的仓库ID, @DepotId char(4) 。 |
string |
Required Max length: 4 |
yhdlm |
仓库管理员用户登陆名,@YHDLM varchar(20) 。 |
string |
Required Max length: 20 |
happendate |
单据日期,@HappenDate char(8)。 |
string |
Required Max length: 8 Min length: 8 |
happentime |
单据时间, @HappenTime char(6)。 |
string |
Required Max length: 6 Min length: 6 |
memory |
备注, @Momory varchar(100)。 |
string |
None. |
details |
明细记录 @Details as T_Pos_Bill_Detail READONLY 明细记录 |
Collection of PosDepotBillDetailParm |
Required |
Request Formats
application/json, text/json
{ "billnum": "sample string 1", "deliveryman": "sample string 2", "indepotid": "sample string 3", "outdepotid": "sample string 4", "yhdlm": "sample string 5", "happendate": "sample string 6", "happentime": "sample string 7", "memory": "sample string 8", "details": [ { "billnum": "sample string 1", "productid": 2, "price": 3.0, "quantity": 4.0, "unit": "sample string 5" }, { "billnum": "sample string 1", "productid": 2, "price": 3.0, "quantity": 4.0, "unit": "sample string 5" } ] }
application/xml, text/xml
<PosDepotTransParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <billnum>sample string 1</billnum> <deliveryman>sample string 2</deliveryman> <details> <PosDepotBillDetailParm> <billnum>sample string 1</billnum> <price>3</price> <productid>2</productid> <quantity>4</quantity> <unit>sample string 5</unit> </PosDepotBillDetailParm> <PosDepotBillDetailParm> <billnum>sample string 1</billnum> <price>3</price> <productid>2</productid> <quantity>4</quantity> <unit>sample string 5</unit> </PosDepotBillDetailParm> </details> <happendate>sample string 6</happendate> <happentime>sample string 7</happentime> <indepotid>sample string 3</indepotid> <memory>sample string 8</memory> <outdepotid>sample string 4</outdepotid> <yhdlm>sample string 5</yhdlm> </PosDepotTransParm>
application/x-www-form-urlencoded
Sample not available.
application/bson
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
向系统中添加或修改一个调拨单的API,这个单据总是全总体成功,总体失败,同时会修改库存及记录台账。需要判断返回值 ,返回值errcode=0表示成功。 这个函数的单据号从
CommonOperationResultName | Description | Type | Additional information |
---|---|---|---|
errcode |
错误代码,通常0表示成功,其他值表示错误。 |
integer |
None. |
errmsg |
错误描述,当errcode不为零时,此值可以用于呈现给用户。 |
string |
None. |
tag |
操作同时,服务器端需要返回的其他值。 |
string |
None. |
Response Formats
application/json, text/json
{ "errcode": 1, "errmsg": "sample string 2", "tag": "sample string 3" }
application/xml, text/xml
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag>sample string 3</tag> </CommonOperationResult>
application/bson
Binary JSON content. See http://bsonspec.org for details.