mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-02 21:55:50 +08:00
128 lines
2.7 KiB
PHP
128 lines
2.7 KiB
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
$db['fifo']=array (
|
||
'columns' =>
|
||
array (
|
||
'id' =>
|
||
array (
|
||
'type' => 'bigint unsigned',
|
||
'required' => true,
|
||
'pkey' => true,
|
||
'extra' => 'auto_increment',
|
||
'editable' => false,
|
||
),
|
||
'branch_id' =>
|
||
array (
|
||
'type' => 'int unsigned',
|
||
'required' => true,
|
||
'pkey' => true,
|
||
'editable' => false,
|
||
),
|
||
'product_id' =>
|
||
array (
|
||
'type' => 'int unsigned',
|
||
'required' => true,
|
||
'pkey' => true,
|
||
'editable' => false,
|
||
),
|
||
'product_bn' =>
|
||
array (
|
||
'type' => 'varchar(30)',
|
||
'label' => '货品编码',
|
||
'width' => 85,
|
||
'searchtype' => 'has',
|
||
'filtertype' => 'normal',
|
||
'filterdefault' => true,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
),
|
||
'stock_bn' =>
|
||
array (
|
||
'type' => 'varchar(30)',
|
||
'label' => '单据流水号',
|
||
'width' => 85,
|
||
'searchtype' => 'has',
|
||
'filtertype' => 'normal',
|
||
'filterdefault' => true,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
),
|
||
'in_num' =>
|
||
array (
|
||
'type' => 'mediumint',
|
||
'label' => '入库数量',
|
||
'default' => 0,
|
||
'editable' => false,
|
||
),
|
||
'out_num' =>
|
||
array (
|
||
'type' => 'mediumint',
|
||
'label' => '已出库数量',
|
||
'default' => 0,
|
||
'editable' => false,
|
||
),
|
||
'current_num' =>
|
||
array (
|
||
'type' => 'mediumint',
|
||
'label' => '当前在库数量',
|
||
'default' => 0,
|
||
'editable' => false,
|
||
),
|
||
'bill_bn' =>
|
||
array (
|
||
'type' => 'varchar(30)',
|
||
'label' => '原始单据号',
|
||
'width' => 85,
|
||
'searchtype' => 'has',
|
||
'filtertype' => 'normal',
|
||
'filterdefault' => true,
|
||
'editable' => false,
|
||
'in_list' => true,
|
||
'default_in_list' => true,
|
||
),
|
||
'current_unit_cost' =>
|
||
array(
|
||
'type' => 'money',
|
||
'label' => '当前单位成本',
|
||
'default' => 0,
|
||
),
|
||
'current_inventory_cost' =>
|
||
array(
|
||
'type' => 'money',
|
||
'label' => '当前库存成本',
|
||
'default' => 0,
|
||
),
|
||
'is_sart' =>
|
||
array(
|
||
'type' => 'tinyint(1)',
|
||
'label' => '是否期初',
|
||
'default' => 0,
|
||
),
|
||
),
|
||
'index' =>
|
||
array (
|
||
'ind_product_id' =>
|
||
array (
|
||
'columns' =>
|
||
array (
|
||
0 => 'product_id',
|
||
),
|
||
),
|
||
'ind_branch_id' =>
|
||
array (
|
||
'columns' =>
|
||
array (
|
||
0 => 'branch_id',
|
||
),
|
||
),
|
||
),
|
||
'comment' => '出入库成本流水表',
|
||
'engine' => 'innodb',
|
||
'version' => '$Rev: $',
|
||
); |