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

86 lines
2.5 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['order_taobao_items']=array(
'columns' =>
array(
'otbiid' => array(
'type' => 'int(11)',
'pkey' => true,
'extra' => 'auto_increment',
'required' => true,
'label' => '主键ID',
),
'otbid' => array(
'type' => 'table:order_taobao@invoice',
'default' => '0',
'required' => true,
'label' => '开票申请原始ID',
),
'item_name' => array(
'type' => 'varchar(200)',
'label' => '商品名称',
),
'amount' => array (
'type' => 'money',
'default' => '0',
'label' => '价税合计',
),
'row_type' => array(
'type' => array(
0=>'正常行',
1=>'折扣行',
2=>'被折扣行',
),
'label' => '发票行性质',
'default' => '0',
),
'specification' => array(
'type' => 'varchar(100)',
'label' => '规格型号',
),
'sum_price' => array(
'type' => 'money',
'default' => '0',
'required' => true,
'label' => '不含税总金额',
),
'tax' => array(
'type' => 'money',
'default' => '0',
'required' => true,
'label' => '税额',
),
'price' => array(
'type' => 'money',
'default' => '0',
'required' => true,
'label' => '单价',
),
'quantity' => array (
'type' => 'number',
'default' => 1,
'required' => true,
),
'tax_rate' => array(
'type' => 'decimal(3,2)',
'default' => '0.00',
'required' => true,
'label' => '税率',
),
'unit' => array(
'type' => 'varchar(20)',
'label' => '单位',
),
),
'index' => array(
),
'comment' => '淘系原始开票明细信息',
'engine' => 'innodb',
'version' => '$Rev: $',
);