mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-26 18:55:44 +08:00
1. 【新增】售后单售后原因类型支持搜索
2. 【新增】手工创建订单折扣可输入正数 3. 【优化】盘点申请单确认 4. 【修复】采购退货单模拟出库失败问题 5. 【新增】订单金额客户实付与结算金额 6. 【优化】仓库发货统计报表物料名称显示 7. 【优化】自有仓储虚拟发货逻辑 8. 【修复】基础物料分类管理问题
This commit is contained in:
@@ -266,4 +266,29 @@ class ome_branch_type{
|
||||
|
||||
return $branchList;
|
||||
}
|
||||
|
||||
//通过仓库类型和仓储ID获取仓库ID
|
||||
/**
|
||||
* 通过仓库类型和仓储ID获取仓库
|
||||
*
|
||||
* @param string $type 仓库类型(对应branch_type.type)
|
||||
* @param int $wmsId 仓储ID(对应branch.wms_id)
|
||||
* @param string $warehouseCode 仓库编码(对应branch.warehouse_code)
|
||||
* @return array 仓库信息
|
||||
*/
|
||||
public function getBranchByTypeWms($typeName, $wmsId, $warehouseCode = '') {
|
||||
if (empty($typeName) || empty($wmsId)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$branchModel = app::get('ome')->model('branch');
|
||||
$filter = array(
|
||||
'storage_code' => trim($typeName),
|
||||
'wms_id' => intval($wmsId),
|
||||
'warehouse_code' => $warehouseCode
|
||||
);
|
||||
$branch = $branchModel->getList('branch_id', $filter, 0, 1);
|
||||
|
||||
return $branch ? $branch[0] : [];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user