mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-04 22:36:52 +08:00
2. 【新增】手工创建订单折扣可输入正数 3. 【优化】盘点申请单确认 4. 【修复】采购退货单模拟出库失败问题 5. 【新增】订单金额客户实付与结算金额 6. 【优化】仓库发货统计报表物料名称显示 7. 【优化】自有仓储虚拟发货逻辑 8. 【修复】基础物料分类管理问题
301 lines
9.3 KiB
PHP
301 lines
9.3 KiB
PHP
<?php
|
|
/**
|
|
* Copyright 2012-2026 ShopeX (https://www.shopex.cn)
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
$db['monthly_report_items'] = array(
|
|
'columns' =>
|
|
array(
|
|
'id' =>
|
|
array(
|
|
'type' => 'int unsigned',
|
|
'required' => true,
|
|
'pkey' => true,
|
|
'extra' => 'auto_increment',
|
|
'editable' => false,
|
|
),
|
|
'monthly_id' =>
|
|
array(
|
|
'type' => 'table:monthly_report',
|
|
'label' => '账单名称',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 10,
|
|
),
|
|
'order_bn' => [
|
|
'type' => 'varchar(255)',
|
|
'label' => '订单号',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'searchtype' => 'nequal',
|
|
'filtertype' => 'normal',
|
|
'filterdefault' => true,
|
|
'order' => 20,
|
|
],
|
|
'ship_time' => [
|
|
'type' => 'time',
|
|
'label' => '销售日期',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 30,
|
|
],
|
|
'reship_time' => [
|
|
'type' => 'time',
|
|
'label' => '销退日期',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 35,
|
|
],
|
|
'shishou_trade_time' => [
|
|
'type' => 'time',
|
|
'label' => '平台收入日期',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 30,
|
|
],
|
|
'shitui_trade_time' => [
|
|
'type' => 'time',
|
|
'label' => '平台支出日期',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 40,
|
|
],
|
|
'yingshou_money' => [
|
|
'type' => 'money',
|
|
'label' => '销售应收',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 50,
|
|
'filtertype' => 'normal',
|
|
'filterdefault' => true,
|
|
],
|
|
'yingtui_money' => [
|
|
'type' => 'money',
|
|
'label' => '销售应退',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 60,
|
|
'filtertype' => 'normal',
|
|
'filterdefault' => true,
|
|
],
|
|
'refund_only_money' => [
|
|
'type' => 'money',
|
|
'label' => '售后仅退款',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 60,
|
|
'filtertype' => 'normal',
|
|
'filterdefault' => true,
|
|
],
|
|
'xiaotui_total' => [
|
|
'type' => 'money',
|
|
'label' => '销退合计',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 70,
|
|
'filtertype' => 'normal',
|
|
'filterdefault' => true,
|
|
],
|
|
'shishou_money' => [
|
|
'type' => 'money',
|
|
'label' => '平台收入',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 80,
|
|
'filtertype' => 'normal',
|
|
'filterdefault' => true,
|
|
],
|
|
'shitui_money' => [
|
|
'type' => 'money',
|
|
'label' => '平台支出',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 90,
|
|
'filtertype' => 'normal',
|
|
'filterdefault' => true,
|
|
],
|
|
'shouzhi_total' => [
|
|
'type' => 'money',
|
|
'label' => '收支合计',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 100,
|
|
'filtertype' => 'normal',
|
|
'filterdefault' => true,
|
|
],
|
|
'gov_yingshou_total' => [
|
|
'type' => 'money',
|
|
'label' => '国补应收合计',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 105,
|
|
'filtertype' => 'normal',
|
|
'filterdefault' => true,
|
|
],
|
|
'gov_shishou_total' => [
|
|
'type' => 'money',
|
|
'label' => '国补实收合计',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 106,
|
|
'filtertype' => 'normal',
|
|
'filterdefault' => true,
|
|
],
|
|
'gap' => [
|
|
'type' => 'decimal(20,3)',
|
|
'label' => 'GAP',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 110,
|
|
'filtertype' => 'normal',
|
|
'filterdefault' => true,
|
|
],
|
|
'gap_type' => [
|
|
'type' => 'varchar(255)',
|
|
'label' => '差异类型',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 120,
|
|
],
|
|
'sales_gap' => [
|
|
'type' => 'decimal(20,3)',
|
|
'label' => '销售GAP',
|
|
'default' => '0',
|
|
'comment' => '销售应收-平台收入',
|
|
'in_list' => false,
|
|
'default_in_list' => false,
|
|
],
|
|
'refund_gap' => [
|
|
'type' => 'decimal(20,3)',
|
|
'label' => '退款GAP',
|
|
'default' => '0',
|
|
'comment' => '销售应退-平台支出',
|
|
'in_list' => false,
|
|
'default_in_list' => false,
|
|
],
|
|
'verification_status' => array(
|
|
'type' => [
|
|
'1' => '未核销',
|
|
'2' => '已核销',
|
|
],
|
|
'default' => '1',
|
|
'label' => '核销状态',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 130,
|
|
),
|
|
'memo' => [
|
|
'type' => 'text',
|
|
'label' => '核销备注',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 140,
|
|
],
|
|
'actually_amount' => array(
|
|
'type' => 'money',
|
|
'default' => '0',
|
|
'width' => 65,
|
|
'editable' => false,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'label' => '客户实付',
|
|
),
|
|
'platform_amount' => array(
|
|
'type' => 'money',
|
|
'default' => '0',
|
|
'width' => 65,
|
|
'editable' => false,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'label' => '平台承担金额',
|
|
'comment' => '平台承担金额(不包含支付优惠)',
|
|
),
|
|
'refund_actually_amount' => array(
|
|
'type' => 'money',
|
|
'default' => '0',
|
|
'width' => 65,
|
|
'editable' => false,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'label' => '客户应退',
|
|
),
|
|
'refund_platform_amount' => array(
|
|
'type' => 'money',
|
|
'default' => '0',
|
|
'width' => 65,
|
|
'editable' => false,
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'label' => '平台补贴退',
|
|
'comment' => '平台补贴退(不包含支付优惠)',
|
|
),
|
|
'at_time' => array(
|
|
'type' => 'TIMESTAMP',
|
|
'label' => '创建时间',
|
|
'default' => 'CURRENT_TIMESTAMP',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 1000,
|
|
),
|
|
'up_time' => array(
|
|
'type' => 'TIMESTAMP',
|
|
'label' => '更新时间',
|
|
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
|
|
'in_list' => true,
|
|
'default_in_list' => true,
|
|
'order' => 1010,
|
|
),
|
|
),
|
|
'index' => array(
|
|
'ind_order_bn_monthly_id' =>
|
|
array(
|
|
'columns' =>
|
|
array(
|
|
'order_bn','monthly_id'
|
|
),
|
|
'prefix' => 'unique'
|
|
),
|
|
'ind_verification_status' => [
|
|
'columns' => [
|
|
'verification_status'
|
|
]
|
|
],
|
|
'ind_gov_yingshou_total' => [
|
|
'columns' => [
|
|
'gov_yingshou_total'
|
|
]
|
|
],
|
|
'ind_gov_shishou_total' => [
|
|
'columns' => [
|
|
'gov_shishou_total'
|
|
]
|
|
],
|
|
'ind_gap' => [
|
|
'columns' => [
|
|
'gap'
|
|
]
|
|
],
|
|
'ind_gap_type' => [
|
|
'columns' => [
|
|
'gap_type'
|
|
]
|
|
],
|
|
'ind_at_time' => ['columns' => ['at_time']],
|
|
'ind_up_time' => ['columns' => ['up_time']],
|
|
),
|
|
'comment' => '月结账单明细',
|
|
'engine' => 'innodb',
|
|
'version' => '$Rev: $',
|
|
); |