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

165 lines
3.4 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['inventory_items']=array (
'columns' =>
array (
'item_id' =>
array (
'type' => 'number',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'editable' => false,
),
'inventory_id' =>
array (
'type' => 'table:inventory',
'required' => true,
'editable' => false,
'pkey' => true,
'label' => '盘点ID'
),
'product_id' =>
array (
'type' => 'table:products@ome',
'label' => '货品ID',
'editable' => false,
),
'pos_id' =>
array (
'type' => 'table:branch_pos@ome',
'label' => '货位ID',
'editable' => false,
),
'name' =>
array (
'type' => 'varchar(100)',
'label' => '货品名称',
'width' => 140,
'editable' => false,
'in_list' => true,
'default_in_list' => true,
),
'bn' =>
array (
'type' => 'varchar(32)',
'label' => '货号',
'width' => 140,
'editable' => false,
'in_list' => true,
'default_in_list' => true,
),
'spec_info' =>
array (
'type' => 'varchar(32)',
'label' => '规格型号',
'width' => 110,
'editable' => false,
'in_list' => true,
),
'unit' =>
array (
'type' => 'varchar(10)',
'label' => '单位',
'width' => 30,
'editable' => false,
'filtertype' => 'normal',
'in_list' => true,
),
'pos_name' =>
array (
'type' => 'varchar(32)',
'label' => '货位名称',
'width' => 80,
'editable' => false,
'filtertype' => 'normal',
'in_list' => true,
),
'accounts_num' =>
array (
'type' => 'number',
'label' => '帐面数量',
'width' => 75,
'editable' => false,
'in_list' => true,
'default_in_list' => true,
),
'actual_num' =>
array (
'type' => 'number',
'label' => '实际数量',
'width' => 75,
'editable' => false,
'in_list' => true,
'default_in_list' => true,
),
'shortage_over' =>
array (
'type' => 'mediumint',
'label' => '盈亏记录',
'width' => 75,
'editable' => false,
'in_list' => true,
'default_in_list' => true,
),
'price' =>
array (
'type' => 'money',
'label' => '单价',
'width' => 75,
'editable' => false,
'in_list' => true,
'default_in_list' => false,
),
'availability' =>
array(
'type' => 'bool',
'default' => 'false',
'label' => '有效性',
'editable' => false,
),
'error_log' =>
array (
'type' => 'text',
'editable' => false,
'label' => '错误日志'
),
'memo' =>
array (
'type' => 'text',
'editable' => false,
'label' => '备注'
),
),
'index' =>
array (
'ind_bn' =>
array (
'columns' =>
array (
0 => 'bn',
),
),
'ind_name' =>
array (
'columns' =>
array (
0 => 'name',
),
),
'ind_availability' =>
array (
'columns' =>
array (
0 => 'availability',
),
),
),
'comment' => '盘点明细表',
'engine' => 'innodb',
'version' => '$Rev: 44513 $',
);