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

128 lines
2.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['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: $',
);