mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
86 lines
2.5 KiB
PHP
86 lines
2.5 KiB
PHP
<?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: $',
|
||
); |