数据表:ims_yz_invoice_goods_detail_data(发票--发票商品挂件数据详情表)。
| 字段 | 类型 | 默认值 | 约束 | 说明 |
|---|---|---|---|---|
id | integer unsigned | - | 非空、自增 | |
uniacid | integer | - | - | |
goods_id | integer | - | 非空 | 商品数据id |
goods_option_id | integer | - | - | 商品规格id |
code | string(255) | - | 非空 | 税收分类编码 |
name | string(255) | - | 非空 | 税收分类名称 |
use_discount | boolean | 0 | 非空 | 是否使用优惠政策:0否1是 |
discount | string(255) | - | 非空 | 选择的优惠政策 |
tax_type | string(255) | - | 非空 | 免税类型 |
tax_rate | string(255) | - | 非空 | 税率 |
goods_name | string(255) | - | 非空 | 商品名称 |
tax_flag | boolean | 1 | 非空 | 含税标识: 0-不含税;1-含税 (默认) |
created_at | integer | - | - | |
updated_at | integer | - | - | |
sd_duty_free | string(255) | - | 非空 | 优惠特定征税方式代码01:不征税02:零税率03:减按计征04:免税05:简易征税 |
