Files
OMS/app/finance/dbschema/monthly_report.php
2025-12-28 23:13:25 +08:00

159 lines
3.5 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.
*/
$db['monthly_report']=array (
'columns' =>
array (
'monthly_id' =>
array (
'type' => 'int unsigned',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'editable' => false,
),
'shop_id' => array(
'type' => 'table:shop@ome',
'label' => '店铺名称',
// 'searchtype' => 'nequal',
'default_in_list' => true,
'in_list' => true,
// 'filtertype' => true,
// 'filterdefault' => true,
'order' => '5',
),
'monthly_date' =>
array (
'type' => 'varchar(32)',
'required' => true,
'comment'=>'账期名称',
'label'=>'账期名称',
'editable' => false,
'is_title' => true,
'in_list' => true,
'default_in_list' => true,
'searchtype' => 'nequal',
'filtertype' => true,
'filterdefault' => true,
'order'=>'10',
),
'bill_in_amount' => array(
'type' => 'money',
'label' => '实收金额',
'default_in_list' => true,
'in_list' => true,
'order' => 40
),
'bill_out_amount' => array(
'type' => 'money',
'label' => '实退金额',
'default_in_list' => true,
'in_list' => true,
'order' => 50,
),
'ar_in_amount' => array(
'type' => 'money',
'label' => '应收金额',
'default_in_list' => true,
'in_list' => true,
'order' => 20,
),
'ar_out_amount' => array(
'type' => 'money',
'label' => '应退金额',
'default_in_list' => true,
'in_list' => true,
'order' => 30,
),
'begin_time' =>
array (
'type' => 'time',
'comment'=>'起始时间',
'label'=>'起始时间',
'editable' => false,
'in_list' => true,
// 'default_in_list' => true,
'order'=>'20',
),
'end_time' =>
array (
'type' => 'time',
'required' => true,
'comment'=>'结束时间',
'label'=>'结束时间',
'editable' => false,
'in_list' => true,
// 'default_in_list' => true,
'order'=>'30',
),
'status' =>
array (
'type' => 'int',
'required' => true,
'comment' => '未启用(0) 未关账(1) 已关账(2)',
'default'=>'1',
'label'=>'是否关账',
'editable' => false,
'in_list' => true,
'default_in_list' => true,
'order'=>'40',
),
'status_time' =>
array (
'type' => 'time',
'comment'=>'关账时间',
'label'=>'关账时间',
'editable' => false,
'in_list' => true,
'default_in_list' => true,
'order'=>'50',
),
),
'index'=>array(
'ind_monthly_date' =>
array (
'columns' =>
array (
0 => 'monthly_date',
1 => 'shop_id',
),
'prefix' => 'unique'
),
'ind_begin_time' =>
array (
'columns' =>
array (
0 => 'begin_time',
),
),
'ind_end_time' =>
array (
'columns' =>
array (
0 => 'end_time',
),
),
'ind_status' =>
array (
'columns' =>
array (
0 => 'status',
),
),
// 'ind_shop_id' =>
// array (
// 'columns' =>
// array (
// 0 => 'shop_id',
// ),
// ),
),
'comment' => '月结账单',
'engine' => 'innodb',
'version' => '$Rev: $',
);