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

85 lines
1.7 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['stockdump_items']=array (
'columns' =>
array (
'item_id' =>
array (
'type' => 'number',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
),
'stockdump_id' =>
array (
'type' => 'table:stockdump',
'required' => true,
'label' => 'ID'
),
'stockdump_bn' =>
array (
'type' => 'varchar(20)',
'required' => true,
'label' => '编号',
),
'product_id' =>
array (
'type' => 'table:products@ome',
'required' => true,
'editable' => false,
),
'stockdump_date' =>
array (
'type' => 'time',
'label' => '生成时间',
),
'bn' =>
array (
'type' => 'varchar(30)',
'label' => '货号',
),
'product_name' =>
array (
'type' => 'varchar(200)',
'label' => '货品名称',
),
'num' =>
array (
'type' => 'number',
'label' => '数量',
'default' => 0,
),
'in_nums' =>
array (
'type' => 'number',
'label' => '已出入库数量',
'default' => 0,
),
'defective_num' =>
array (
'type' => 'number',
'label' => '不良品数量',
'default' => 0,
),
'appro_price'=>
array(
'type' => 'money',
'label' => '出入库价格',
),
),
'index' => array(
'idx_appropriation_bn' => array(
'columns' => array('stockdump_bn','bn')
),
),
'comment' => '库存出入库单明细',
'engine' => 'innodb',
'version' => '$Rev: 44513 $',
);