POST api/Pos/Busi/Depot/Check/AddOrModify
向系统中添加或修改一个盘点单的API,这个单据总是全总体成功,总体失败,同时会修改库存及记录台账。需要判断返回值 ,返回值errcode=0表示成功。 这个函数的单据号从
Request Information
URI Parameters
None.
Body Parameters
添加的入库单的内容。
PosDepotCheckParmName | Description | Type | Additional information |
---|---|---|---|
billnum |
单号,@BillNum char(20) 。 |
string |
Required Max length: 20 |
depotid |
仓库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. |
checkingId |
盘点计划号。 |
integer |
Required |
details |
明细记录 @Details as T_Pos_Bill_Detail READONLY 明细记录 |
Collection of PosDepotBillDetailParm |
Required |
Request Formats
application/json, text/json
Sample:
{ "billnum": "sample string 1", "depotid": "sample string 2", "yhdlm": "sample string 3", "happendate": "sample string 4", "happentime": "sample string 5", "memory": "sample string 6", "checkingId": 7, "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
Sample:
<PosDepotCheckParm 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> <checkingId>7</checkingId> <depotid>sample string 2</depotid> <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 4</happendate> <happentime>sample string 5</happentime> <memory>sample string 6</memory> <yhdlm>sample string 3</yhdlm> </PosDepotCheckParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
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
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": "sample string 3" }
application/xml, text/xml
Sample:
<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
Sample:
Binary JSON content. See http://bsonspec.org for details.