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

249 lines
5.6 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['analysis_stocknsale']=array (
'columns' =>
array (
'nsale_id' =>
array (
'type' => 'number',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'editable' => false,
'order' => 1,
),
'material_bn' =>
array (
'type' => 'varchar(200)',
'label' => '物料编码',
'width' => 120,
'in_list' => true,
'default_in_list' => true,
'editable' => false,
'required' => true,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 2,
),
'material_name' =>
array (
'type' => 'varchar(200)',
'required' => true,
'label' => '物料名称',
'width' => 260,
'in_list' => true,
'default_in_list' => true,
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 3,
),
'branch_name' =>
array (
'type' => 'varchar(200)',
'required' => true,
'label' => '仓库名',
'width' => 130,
'in_list' => true,
'default_in_list' => true,
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 4,
),
'branch_id' =>
array (
'type' => 'table:branch@ome',
'required' => true,
'label' => '仓库id',
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 5,
),
'nsale_days' =>
array (
'type' => 'number',
'required' => true,
'label' => '呆滞天数',
'width' => 120,
'in_list' => true,
'default_in_list' => true,
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 6,
),
'material_type' =>
array (
'type' => 'tinyint(1)',
'required' => true,
'label' => '物料类型',
'width' => 100,
'default' => 1,
'in_list' => true,
'default_in_list' => true,
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 7,
),
'barcode' =>
array (
'type' => 'varchar(255)',
// 'required' => true,
'label' => '条形码',
'width' => 120,
'in_list' => true,
'default_in_list' => true,
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 8,
),
'now_num' =>
array (
'type' => 'mediumint(8)',
'required' => true,
'label' => '结存数量',
'default' => 0,
'width' => 120,
'in_list' => true,
'default_in_list' => true,
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 9,
),
'inventory_cost' =>
array (
'type' => 'decimal(20,3)',
'required' => true,
'label' => '库存成本',
'default' => 0.000,
'width' => 120,
'in_list' => true,
'default_in_list' => true,
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 10,
),
'now_inventory_cost' =>
array (
'type' => 'decimal(20,3)',
'required' => true,
'label' => '结存库存成本',
'default' => 0.000,
'width' => 120,
'in_list' => true,
// 'default_in_list' => true,
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 11,
),
'unit_cost' =>
array (
'type' => 'decimal(20,3)',
'required' => true,
'label' => '单位成本',
'default' => 0.000,
'width' => 120,
'in_list' => true,
// 'default_in_list' => true,
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 12,
),
'now_unit_cost' =>
array (
'type' => 'decimal(20,3)',
'required' => true,
'label' => '结存单位成本',
'default' => 0.000,
'width' => 120,
'in_list' => true,
// 'default_in_list' => true,
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 13,
),
'balance_nums' =>
array (
'type' => 'number',
'required' => true,
'label' => '呆滞库存',
'width' => 120,
'in_list' => true,
// 'default_in_list' => true,
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 14,
),
'create_time' =>
array (
'type' => 'time',
'required' => true,
'label' => '出入库时间',
'width' => 120,
'in_list' => true,
// 'default_in_list' => true,
'editable' => false,
'filtertype' => 'normal',
'filterdefault' => true,
'order' => 20,
),
),
'index' =>
array (
'ind_materialbn_branchid' =>
array (
'columns' =>
array (
0 => 'material_bn',
1 => 'branch_id',
),
'prefix' => 'unique',
),
'ind_material_name' =>
array (
'columns' =>
array (
0 => 'material_name',
),
),
'ind_material_type' =>
array (
'columns' =>
array (
0 => 'material_type',
),
),
'ind_barcode' =>
array (
'columns' =>
array (
0 => 'barcode',
),
),
'ind_create_time' =>
array (
'columns' =>
array (
0 => 'create_time',
),
),
),
'comment' => '呆滞库存统计报表',
'engine' => 'innodb',
'version' => '$Rev: $',
);