修改入库单创建

This commit is contained in:
ZweiCD 2020-07-14 14:27:45 +08:00
parent de0e7ecaae
commit 1c6fdd4bb6
3 changed files with 6 additions and 7 deletions

View File

@ -48,8 +48,8 @@ class QimenWms extends BaseWms implements WmsInterface
'createTime' => date('Y-m-d H:i:s'), //发货单创建时间
'placeOrderTime' => $order['created_at'], //前台订单 (店铺订单) 创建时间 (下单时间)
'operateTime' => date('Y-m-d H:i:s'), //操作 (审核) 时间
'shopNick' => $order['order_sender_info']['shop_name'] ?? static::$default_shop_name,
'sellerNick' => $order['order_sender_info']['shop_name'] ?? static::$default_seller_nick,
'shopNick' => (isset($order['order_sender_info']['shop_name']) && $order['order_sender_info']['shop_name']) ? $order['order_sender_info']['shop_name'] : static::$default_shop_name,
'sellerNick' => (isset($order['order_sender_info']['shop_name']) && $order['order_sender_info']['shop_name']) ? $order['order_sender_info']['shop_name'] : static::$default_seller_nick,
'remark' => $order['remark'],
'logisticsCode' => $order['order_sender_info']['logistics_code'],
//发货人信息
@ -268,10 +268,9 @@ class QimenWms extends BaseWms implements WmsInterface
/**
* 新增入库计划
* @param array $params
* @param int $type
* @return array|\DOMDocument
*/
public function stockInCreate($params, $type)
public function stockInCreate($params)
{
$method = 'taobao.qimen.entryorder.create';

View File

@ -16,7 +16,7 @@ Interface WmsInterface
public function returnOrderCreate(array $params);
public function stockInCreate(array $params, int $type);
public function stockInCreate(array $params);
public function stockOutCreate(array $params);

View File

@ -75,8 +75,8 @@ class WmsStrategy
return $this->wmsClient->returnOrderCreate($params);
}
public function stockInCreate($params, $type = 0) {
return $this->wmsClient->stockInCreate($params, $type);
public function stockInCreate($params) {
return $this->wmsClient->stockInCreate($params);
}
public function stockOutCreate($params) {