mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-19 03:35:28 +08:00
1. 【新增】售后单售后原因类型支持搜索
2. 【新增】手工创建订单折扣可输入正数 3. 【优化】盘点申请单确认 4. 【修复】采购退货单模拟出库失败问题 5. 【新增】订单金额客户实付与结算金额 6. 【优化】仓库发货统计报表物料名称显示 7. 【优化】自有仓储虚拟发货逻辑 8. 【修复】基础物料分类管理问题
This commit is contained in:
43
app/ome/lib/order/combine/const.php
Normal file
43
app/ome/lib/order/combine/const.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* 定义订单审核相关的业务常量
|
||||
*
|
||||
* @author wangbiao@shopex.cn
|
||||
* @version 2025.06.18
|
||||
*/
|
||||
class ome_order_combine_const
|
||||
{
|
||||
// 禁止审核订单
|
||||
const __LARGE_APPLIANCES = 0x0001;
|
||||
|
||||
// 赠品审批
|
||||
const __ORDER_GIFT_APPROVAL = 0x0002;
|
||||
|
||||
// 等待SAP取消ODN单据
|
||||
const __WAIT_SAP_CANCEL_ODN = 0x0004;
|
||||
|
||||
private $status = array(
|
||||
self::__LARGE_APPLIANCES => array('identifier'=>'禁止审核', 'text'=>'禁止审核', 'color'=>'#FF6A6A', 'search'=>'true'),
|
||||
self::__ORDER_GIFT_APPROVAL => array('identifier'=>'赠品审批', 'text'=>'赠品审批', 'color'=>'#FF00FF', 'search'=>'true'),
|
||||
self::__WAIT_SAP_CANCEL_ODN => array('identifier'=>'等待ODN取消', 'text'=>'等待取消ODN单据', 'color'=>'#FFA500', 'search'=>'true'),
|
||||
);
|
||||
|
||||
/**
|
||||
* 获取业务标识名称
|
||||
*
|
||||
* @param $is_not_combine
|
||||
* @return string
|
||||
*/
|
||||
public function getIdentifier($is_not_combine)
|
||||
{
|
||||
$str = '';
|
||||
foreach ($this->status as $key => $val)
|
||||
{
|
||||
if ($is_not_combine & $key) {
|
||||
$str .= sprintf("<span class='tag-label' title='%s' style='background-color:%s;color:#ffffff;'>%s</span>", $val['text'].':不允许审核', $val['color'], $val['identifier']);
|
||||
}
|
||||
}
|
||||
|
||||
return $str;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user