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

110 lines
3.2 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['cpfr_items'] = array(
'columns' => array(
'item_id' => array(
'type' => 'number',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'editable' => false,
),
'cpfr_id' => array(
'type' => 'table:cpfr',
'editable' => false,
'required' => true,
),
'store_bn' => array(
'type' => 'varchar(20)',
'label' => '门店编码',
'editable' => false,
),
'to_branch_id' => array(
'type' => 'number',
'label' => '调入仓库',
'filtertype' => 'normal',
'filterdefault' => true,
'default_in_list' => true,
'in_list' => true,
),
'bn' => array(
'type' => 'varchar(30)',
'label' => '货号',
'width' => 110,
'editable' => false,
'filtertype' => 'normal',
'in_list' => true,
),
'product_id' => array (
'type' => 'int unsigned',
'required' => true,
'editable' => false,
'default_in_list' => true,
'in_list' => true,
),
'num' => array(
'type' => 'number',
'required' => true,
'editable' => false,
'label' => '实际补货数量',
'default' => '0',
'default_in_list' => true,
'in_list' => true,
'order' => 50,
),
'original_num' => array(
'type' => 'number',
'required' => true,
'editable' => false,
'label' => '申请补货数量',
'default' => '0',
'default_in_list' => true,
'in_list' => true,
'order' => 50,
),
'reple_nums' => array(
'type' => 'number',
'editable' => false,
'default' => 0,
'label' => '建议补货数量',
'default_in_list' => true,
'in_list' => true,
'order' => 50,
),
'from_branch_store' => array(
'type' => 'number',
'editable' => false,
'default' => 0,
'label' => '调出仓库存',
'default_in_list' => true,
'in_list' => true,
'order' => 60,
),
'to_branch_store' => array(
'type' => 'number',
'editable' => false,
'default' => 0,
'label' => '调入仓库存',
'default_in_list' => true,
'in_list' => true,
'order' => 62,
),
),
'index' => array(
'idx_to_branch_id' => array('columns' => array('to_branch_id')),
'idx_cpfr_store_bn' => array(
'columns' => array(
0 => 'cpfr_id',
1 => 'store_bn',
),
),
),
'comment' => '配货单明细表',
'engine' => 'innodb',
'version' => '$Rev: 51996',
);