物料店物料库存修改

This commit is contained in:
苏尹岚
2020-06-22 18:08:11 +08:00
parent b007c6c034
commit 08694d9470
3 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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",

View File

@@ -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)
}