mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 02:45:33 +08:00
176 lines
3.9 KiB
PHP
176 lines
3.9 KiB
PHP
<?php
|
|
/**
|
|
* Copyright 2012-2026 ShopeX (https://www.shopex.cn)
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
$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 $',
|
|
); |