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

204 lines
5.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.
*/
class tgstockcost_stockschema
{
function get_schema()
{
$db['branch_product']=array (
'columns' =>
array (
'product_bn' =>
array (
'label' => '货号',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'searchtype' => 'has',
'filterdefault' => true,
'filtertype' => 'normal',
'filterdefault' => true,
),
'product_name' =>
array (
'label' => '名称',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'filtertype' => 'normal',
'filterdefault' => true,
'orderby'=>false,
),
'type_name' =>
array (
'label' => '商品类型',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'filtertype' => 'normal',
'filterdefault' => true,
'orderby'=>false,
),
'brand_name' =>
array (
'label' => '品牌',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'filtertype' => 'normal',
'filterdefault' => true,
'orderby'=>false,
),
'spec_info' =>
array (
'label' => '规格',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'filtertype' => 'normal',
'filterdefault' => true,
'orderby'=>false,
),
'unit' =>
array (
'label' => '单位',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'filtertype' => 'normal',
'filterdefault' => true,
'orderby'=>false,
),
'start_nums' =>
array (
'label' => '期初数量',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'filtertype' => 'normal',
'filterdefault' => true,
'orderby'=>false,
),
'start_unit_cost' =>
array (
'label' => '期初单位成本',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'filtertype' => 'normal',
'filterdefault' => true,
'orderby'=>false,
),
'start_inventory_cost' =>
array (
'label' => '期初库存成本',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'filtertype' => 'normal',
'filterdefault' => true,
'orderby'=>false,
),
'in_nums' =>
array (
'label' => '入库数量',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'filtertype' => 'normal',
'filterdefault' => true,
'orderby'=>false,
),
'in_unit_cost' =>
array (
'label' => '入库单位成本',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'filtertype' => 'normal',
'filterdefault' => true,
'orderby'=>false,
),
'in_inventory_cost' =>
array (
'label' => '入库库存成本',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'filtertype' => 'normal',
'filterdefault' => true,
'orderby'=>false,
),
'out_nums' =>
array (
'label' => '出库数量',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'filtertype' => 'normal',
'filterdefault' => true,
'orderby'=>false,
),
'out_unit_cost' =>
array (
'label' => '出库单位成本',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'filtertype' => 'normal',
'filterdefault' => true,
'orderby'=>false,
),
'out_inventory_cost' =>
array (
'label' => '出库库存成本',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'filtertype' => 'normal',
'filterdefault' => true,
'orderby'=>false,
),
'store' =>
array (
'label' => '结存数量',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'filtertype' => 'normal',
'filterdefault' => true,
'orderby'=>false,
),
'unit_cost' =>
array (
'label' => '结存单位成本',
'type'=>'money',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'filtertype' => 'normal',
'filterdefault' => true,
'orderby'=>false,
),
'inventory_cost' =>
array (
'label' => '结存库存成本',
'editable' => false,
'in_list' => true,
'default_in_list'=>true,
'filtertype' => 'normal',
'filterdefault' => true,
'orderby'=>false,
'type'=>'money',
),
),
// 'engine' => 'innodb',
//'version' => '$Rev: $',
);
return $db['branch_product'];
}
}