Files
OMS/app/erpapi/lib/store/request/stockin.php
2025-12-28 23:13:25 +08:00

64 lines
1.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
/**
* pos入库单
*
* @category
* @package
* @author sunjing
* @version $Id: Z
*/
class erpapi_store_request_stockin extends erpapi_store_request_abstract
{
/**
* 入库单创建
*
* @return void
* @author
**/
public function stockin_create($sdf){
$stockin_bn = $sdf['io_bn'];
$iscancel = kernel::single('console_service_commonstock')->iscancel($stockin_bn);
if ($iscancel) {
return $this->succ('入库单已取消,终止同步');
}
$title = $this->__channelObj->wms['channel_name'].'入库单添加';
$params = $this->_format_stockin_create_params($sdf);
if (!$params) {
return $this->error('参数为空,终止同步');
}
$method = $this->get_stockin_create_apiname($sdf['bill_type']);
$result = $this->call($method, $params, $callback, $title, 10, $stockin_bn);
if($result['succ'] == 'succ'){
if($result['data']['docNo']){
$result['data']['wms_order_code'] = $result['data']['docNo'];
}
}
return $result;
}
protected function get_stockin_create_apiname($bill_type)
{
return '';
}
protected function _format_stockin_create_params($sdf)
{
return $params;
}
}