物料店物料库存修改
This commit is contained in:
@@ -400,6 +400,7 @@ func (a *API) QueryStock(goodsNo string) (queryStockResult []*QueryStockResult,
|
||||
"warehouseNo": WarehouseNo,
|
||||
"returnZeroStock": 2, //表示返回库存为0的数据
|
||||
"stockType": 1,
|
||||
"stockStatus": 1, //良品
|
||||
}
|
||||
if goodsNo != "" {
|
||||
params["goodsNo"] = goodsNo
|
||||
|
||||
@@ -86,7 +86,7 @@ func TestSearchShopStock(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestQueryStock(t *testing.T) {
|
||||
result, err := api.QueryStock("EMG4418113943423")
|
||||
result, err := api.QueryStock("")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -94,7 +94,7 @@ func TestQueryStock(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestWaybillReceive(t *testing.T) {
|
||||
err := api.WaybillReceive(&WaybillReceiveParam{
|
||||
_, err := api.WaybillReceive(&WaybillReceiveParam{
|
||||
SalePlat: SalePlatSourceDelivery,
|
||||
CustomerCode: CustomerCode,
|
||||
OrderID: "883289609977992",
|
||||
|
||||
@@ -56,7 +56,7 @@ func TestRetailList(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestRetailListAll(t *testing.T) {
|
||||
result, err := api.RetailListAll(testPoiCode)
|
||||
result, err := api.RetailListAll("9325917")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user