|
@@ -31,7 +31,7 @@ $config = array
|
|
|
'search' => 'day',
|
|
|
'search_button' => array
|
|
|
(
|
|
|
- 'sum' => 'cash,daili_cash,soft_cash,goods_cash,zt_cash,sc_cash',
|
|
|
+ 'sum' => 'cash,daili_cash,soft_cash,goods_cash,zt_cash,sc_cash,hd_cash,sd_cash',
|
|
|
'option' => array(
|
|
|
'day' => '按天',
|
|
|
'week' => '按周',
|
|
@@ -45,68 +45,90 @@ $config = array
|
|
|
|
|
|
'cash' => array
|
|
|
(
|
|
|
- 'type' => 'varchar-100',
|
|
|
+ 'type' => 'float-11,2',
|
|
|
'name' => '总收入',
|
|
|
'default' => '0',
|
|
|
'desc' => '总收入',
|
|
|
- 'match' => 'is_string',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
'search' => 'order',
|
|
|
- 'list' => 'round({cash}, 2)',
|
|
|
+ 'list' => true,
|
|
|
),
|
|
|
|
|
|
'daili_cash' => array
|
|
|
(
|
|
|
- 'type' => 'varchar-100',
|
|
|
+ 'type' => 'float-11,2',
|
|
|
'name' => '代理费',
|
|
|
'default' => '0',
|
|
|
'desc' => '代理费',
|
|
|
- 'match' => 'is_string',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
'search' => 'order',
|
|
|
- 'list' => 'round({daili_cash}, 2)',
|
|
|
+ 'list' => true,
|
|
|
),
|
|
|
|
|
|
'soft_cash' => array
|
|
|
(
|
|
|
- 'type' => 'varchar-100',
|
|
|
+ 'type' => 'float-11,2',
|
|
|
'name' => '软件服务费',
|
|
|
'default' => '0',
|
|
|
'desc' => '代软件服务费理费',
|
|
|
- 'match' => 'is_string',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
'search' => 'order',
|
|
|
- 'list' => 'round({soft_cash}, 2)',
|
|
|
+ 'list' => true,
|
|
|
),
|
|
|
|
|
|
'goods_cash' => array
|
|
|
(
|
|
|
- 'type' => 'varchar-100',
|
|
|
+ 'type' => 'float-11,2',
|
|
|
'name' => '赠送商品价值',
|
|
|
'default' => '0',
|
|
|
'desc' => '赠送商品价值',
|
|
|
- 'match' => 'is_string',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
'search' => 'order',
|
|
|
- 'list' => 'round({goods_cash}, 2)',
|
|
|
+ 'list' => true,
|
|
|
),
|
|
|
|
|
|
'zt_cash' => array
|
|
|
(
|
|
|
- 'type' => 'varchar-100',
|
|
|
+ 'type' => 'float-11,2',
|
|
|
'name' => '直推佣金',
|
|
|
'default' => '0',
|
|
|
'desc' => '直推佣金',
|
|
|
- 'match' => 'is_string',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
'search' => 'order',
|
|
|
- 'list' => 'round({zt_cash}, 2)',
|
|
|
+ 'list' => true,
|
|
|
),
|
|
|
|
|
|
'sc_cash' => array
|
|
|
(
|
|
|
- 'type' => 'varchar-100',
|
|
|
+ 'type' => 'float-11,2',
|
|
|
+ 'name' => '市场培训费',
|
|
|
+ 'default' => '0',
|
|
|
+ 'desc' => '市场培训费',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'search' => 'order',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'hd_cash' => array
|
|
|
+ (
|
|
|
+ 'type' => 'float-11,2',
|
|
|
+ 'name' => '活动佣金',
|
|
|
+ 'default' => '0',
|
|
|
+ 'desc' => '活动佣金',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'search' => 'order',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'sd_cash' => array
|
|
|
+ (
|
|
|
+ 'type' => 'float-11,2',
|
|
|
'name' => '市场培训费',
|
|
|
'default' => '0',
|
|
|
'desc' => '市场培训费',
|
|
|
- 'match' => 'is_string',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
'search' => 'order',
|
|
|
- 'list' => 'round({sc_cash}, 2)',
|
|
|
+ 'list' => true,
|
|
|
),
|
|
|
|
|
|
'state' => array
|
|
@@ -156,7 +178,7 @@ $config = array
|
|
|
'order' => array('time' => 'desc', 'cdate' => 'desc'),
|
|
|
'page' => array(20, 'list'),
|
|
|
'group' => 'day',
|
|
|
- 'col' => '*,min(day) as time, sum(cash) as cash, sum(daili_cash) as daili_cash, sum(soft_cash) as soft_cash, sum(zt_cash) as zt_cash, sum(goods_cash) as goods_cash, sum(sc_cash) as sc_cash',
|
|
|
+ 'col' => '*,min(day) as time, sum(cash) as cash, sum(daili_cash) as daili_cash, sum(soft_cash) as soft_cash, sum(zt_cash) as zt_cash, sum(goods_cash) as goods_cash, sum(sc_cash) as sc_cash, sum(hd_cash) as hd_cash, sum(sd_cash) as sd_cash',
|
|
|
),
|
|
|
),
|
|
|
);
|