Files
OMS/app/console/controller/admin/stockdumpConfirm.php
2025-12-28 23:13:25 +08:00

33 lines
1.0 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.
*/
class omestorage_ctl_admin_stockdumpConfirm extends desktop_controller{
var $name = "确认转储单";
var $workground = "console_center";
function index(){
$this->title = '确认转储单';
$params = array(
'title'=>$this->title,
'use_buildin_recycle'=>false,
'use_buildin_import'=>false,
'use_buildin_filter'=>true,
);
$params['base_filter'] = array('otype'=>2,'in_status'=>9,'confirm_type'=>1,'self_status'=>1);
$user_branch = kernel::single("ome_userbranch");
$branch_id= $user_branch->get_user_branch_id();
if($branch_id){
$where_branch_id = '('.implode(',', $branch_id).')';
$params['base_filter']['filter_sql'] = "(from_branch_id in ".$where_branch_id." or to_branch_id in ".$where_branch_id.")";
}
$this->finder('omestorage_mdl_stockdump',$params);
}
}