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

83 lines
2.1 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_costschema
{
function get_schema()
{
$db['branch_product']=array (
'columns' =>
array (
'id' =>
array (
'type' => 'number',
'required' => true,
'pkey' => true,
'extra' => 'auto_increment',
'editable' => false,
),
'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,
),
'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'];
}
}