archive_sales_objects
销售明细对象表
所属应用: archive
表结构
| ColumnName | Comment | Type | Not null | Default | Autoincrement |
|---|---|---|---|---|---|
| obj_id | obj_id | int(10) unsigned | Y | Y | |
| sale_id | 销售单编号id | bigint(20) unsigned | Y | N | |
| order_id | 订单ID | int(10) unsigned | Y | 0 | N |
| order_obj_id | 订单objects表ID | int(10) unsigned | N | 0 | N |
| obj_type | 物料类型 | varchar(50) | N | N | |
| goods_id | 销售物料ID | int(10) unsigned | Y | 0 | N |
| goods_bn | 销售物料编号 | varchar(40) | N | N | |
| goods_name | 销售物料名称 | varchar(200) | N | N | |
| quantity | 销售数量 | decimal(20,2) | Y | 1 | N |
| price | 销售单价 | decimal(20,3) | N | 0 | N |
| sale_price | 单价*销售数量 | decimal(20,3) | N | 0 | N |
| pmt_price | 商品优惠总金额 | decimal(20,3) | N | 0 | N |
| apportion_pmt | 平摊优惠金额 | decimal(20,3) | N | 0 | N |
| sales_amount | 正销售:商品在订单实际成交金额(原始总总金额-优惠金额-其他费用) | decimal(20,3) | N | 0 | N |
| refund_money | 退款金额 | decimal(20,3) | N | 0 | N |
| cost | 商品成本价格 | decimal(20,3) | N | 0 | N |
| cost_amount | 数量*成本单价 | decimal(20,3) | N | 0 | N |
| cost_tax | 商品开票税率 | decimal(20,3) | N | N | |
| iostock_id | 出入库单号 | bigint(20) unsigned | N | N | |
| oid | 子订单号 | varchar(50) | N | 0 | N |
| settlement_amount | 结算金额 | decimal(20,3) | N | 0 | N |
| actually_amount | 客户实付 | decimal(20,3) | N | 0 | N |
| platform_amount | 平台承担金额(不包含支付优惠) | decimal(20,3) | N | 0 | N |
| platform_pay_amount | 支付优惠金额 | decimal(20,3) | N | 0 | N |
| archive_time | 归档时间 | int(11) | Y | N |
索引
| Key name | Column names | Unique | Comment |
|---|---|---|---|
| primary | obj_id | Y | |
| ind_goods_bn | goods_bn | N | |
| idx_c_sale_id | sale_id | N | |
| idx_c_order_id | order_id | N | |
| idx_c_iostock_id | iostock_id | N |
