Files
OMS/app/console/lib/event/receive/inventory.php
2025-12-28 23:13:25 +08:00

34 lines
988 B
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.
*/
class console_event_receive_inventory extends console_event_response{
/**
*
* 盘点单事件处理
* @param array $datainStorage
*/
public function create($data){
$inventoryObj = kernel::single('console_receipt_inventory');
$result = $inventoryObj->do_inventory($data,$msg);
$io_source = $data['io_source'];
if($result){
if ($io_source == 'selfwms' || $data['autoconfirm'] == 'Y'){
$inventoryObj->finish_inventory($data['inventory_bn'],$data['branch_bn'],$data['inventory_type'],$data['items']);
return $this->send_succ('盘点单操作成功');
}else{
return $this->send_succ('盘点单操作成功');
}
}else{
return $this->send_error($msg);
}
}
}